Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

PBNI CommandParm RunApplication cannot obtain

$
0
0

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");

}


Viewing all articles
Browse latest Browse all 2881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>