1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| string funcName(readName(msgBuf));
LPCSTR funcNameL;
funcNameL=funcName.c_str(); // converts String into LPCSTR
int loop=0;
-> while(msgbuf[ltr]!='\0')
{
string paramType(readType(msgBuf));
std::istringstream iss( paramType );
int paramTypeInt;
iss >> paramTypeInt;
string paramValue;
switch (paramTypeInt)
{
case 193 :
paramValue=readName(msgBuf);
break;
defaut :
break;
}
}
FCTX<int, char*, char*, unsigned int>::type Fn_Ptr;
Fn_Ptr = (FCTX<int, char*, char*, unsigned int>::type )GetProcAddress(ModId, funcNameL);
Status = Fn_Ptr(0, "Your function is working", "Hey dude", MB_OK);
printf ("After function call, status = %i (1 means ok)\n", Status);
cout<<" Address pointer : "<<Fn_Ptr<<" !! "<<endl;
cout<<funcNameL<<" ( "<<paramType<<','<<paramValue<<" );"<<endl; |
Partager