Use RunApplication, found that although the incoming CommandLine but PB end use CommandParm () simply can't get the incoming parameters, how should do? thank you
C++ Code:
WPARAM wParam, LPARAM lParam)
{
IPB_Session* session = NULL;
// Provide command line parameters (employee ids)
// to be passed to the PowerBuilder application
LPCTSTR szcommandline = "102 110";
int wmId, wmEvent, ret;
PAINTSTRUCT ps;
HDC hdc;
HINSTANCE hPBVMInst = ::LoadLibrary("pbvm90.dll");
P_PB_GetVM getvm = (P_PB_GetVM)
GetProcAddress(hPBVMInst,"PB_GetVM");
IPB_VM* vm = NULL;
getvm(&vm);
static const char *liblist [] = {"runapp.pbd"};
vm->RunApplication("runapp", liblist, 1,szcommandline, &session);
session->Release();
FreeLibrary(hPBVMInst);
system("PAUSE");
}