i try to include some HMG HB_FUNC() but got
Error E2140 .\\HB_FUNC.PRG 880: Declaration is not allowed here in function HB_FUN_HMG_ISFUNCDLL
- Code: Select all Expand view RUN
- HB_FUNC ( HMG_ISFUNCDLL ) // HMG_IsFuncDLL ( pLibDLL | cLibName, cFuncName ) ---> Boolean
{
HMODULE hModule = NULL;
BOOL bRelease;
if ( HB_ISCHAR (1) )
{ hModule = LoadLibrary ((TCHAR *) hb_parc (1));
bRelease = TRUE;
}
else
{ hModule = hb_libHandle (hb_param (1, HB_IT_ANY));
bRelease = FALSE;
}
CHAR * cFuncName = (CHAR *) hb_parc (2); // this Line
hb_retl (GetProcAddress (hModule, cFuncName) ? TRUE : FALSE);
if (bRelease && hModule)
FreeLibrary (hModule);
}
i try to change Position but than all CODE behind does get Warning ...
any Idea how i can change it