0 Members and 1 Guest are viewing this topic.
void HLiftCoeff (VESSEL *v, double beta, double M, double Re, void *context, double *cl, double *cm, double *cd)
CreateAirfoil ( LIFT_VERTICAL , _V(0,0,0.5),VLiftCoeff, 5.5, 200, 3);
cblkSetClassCaps.cpp(252) : error C2664: 'VESSEL::CreateAirfoil' : cannot convert parameter 3 from 'void (__cdecl *)(VESSEL *,double,double,double,void *,double *,double *,double *)' to 'AirfoilCoeffFunc'1> None of the functions with this name in scope match the target type
1>Édition des liens en cours...1>clbkConsumeBufferedKey.obj : error LNK2005: "unsigned int anim_gear" (?anim_gear@@3IA) already defined in cblkSetClassCaps.obj
Centaur a écrit:Bon coddons la suite...
Centaur a écrit:J'ai juste une bizarerie avec VS 2005, en rentrant les mêmes réglages dans le release et le debug, erreur de LNK dans l'un et pas dans l'autre, vous avez dis bizarre?
oapi::Sketchpad *skp = oapiGetSketchpad(DispSurf); skp->SetTextAlign (oapi::Sketchpad::CENTER, oapi::Sketchpad::BASELINE); skp->SetTextColor (RGB(200,200,250)); skp->SetPen(g_Param.hPen[2]); skp->SetTextColor( RGB(200, 200, 250)); skp->SetBackgroundMode(oapi::Sketchpad::BK_TRANSPARENT); skp->Text(60,20, "Sketchpad Test", 14); skp->Rectangle(10,10,60,60); oapiReleaseSketchpad(skp);
DLLCLBK void InitModule (HINSTANCE hModule){ g_Param.hDLL = hModule; g_Param.hSkpFont= oapiCreateFont( 12, false, "fixed", FONT_NORMAL);
DLLCLBK void ExitModule (HINSTANCE hModule){ oapiReleaseFont (g_Param.hSkpFont);
char cBuf[256]={0} oapi::Sketchpad *skp = oapiGetSketchpad(surf); skp->SetTextColor(RGB(0, 196,0)); skp->SetBackgroundColor(RGB(0, 196,0)); skp->SetBackgroundMode(oapi::Sketchpad::BK_TRANSPARENT); skp->SetTextAlign (oapi::Sketchpad::CENTER); strcpy(cBuf,"Hello"); skp->Text(10,20,cBuf,strlen(cBuf)); oapiReleaseSketchpad(skp);
GDIFont::GDIFont (int height, bool prop, const char *face, Style style, int orientation): oapi::Font (height, prop, face, style, orientation){ char *def_fixedface = "Courier New"; char *def_sansface = "Arial"; char *def_serifface = "Times New Roman"; if (!_stricmp (face, "fixed")) { face = def_fixedface; } else if (!_stricmp (face, "sans")) { face = def_sansface; } else if (!_stricmp (face, "serif")) { face = def_serifface; } else if (_stricmp (face, def_fixedface) && _stricmp (face, def_sansface) && _stricmp (face, def_serifface)) { face = (prop ? def_sansface : def_fixedface); } int weight = (style & BOLD ? FW_BOLD : FW_NORMAL); DWORD italic = (style & ITALIC ? TRUE : FALSE); DWORD underline = (style & UNDERLINE ? TRUE : FALSE); hFont = CreateFont (height, 0, orientation, orientation, weight, italic, underline, 0, 0, 3, 2, 1, 49, face);}
char cBuf[256]={0} oapi::Sketchpad *skp = oapiGetSketchpad(surf); skp->SetTextColor(RGB(0, 196,0)); skp->SetBackgroundColor(RGB(0, 196,0)); skp->SetBackgroundMode(oapi::Sketchpad::BK_TRANSPARENT); skp->SetTextAlign (oapi::Sketchpad::CENTER); [i] skp->SetFont (g_param.hSkpFont);[/i] strcpy(cBuf,"Hello"); skp->Text(10,20,cBuf,strlen(cBuf)); oapiReleaseSketchpad(skp);
Centaur a écrit: skp->SetFont (g_param.hSkpFont);
Centaur a écrit:Je suis plongé dans l'API reference de Martin, il ne fait pas mention d'obsolescence de la fonction clbkLoadPanel par rapport à clbxLoadPanel2D.
This method replaces VESSEL2::clbkLoadPanel. It defines the panels via SURFHANDLES instead of bitmaps