Skip to Content
avatar image
Former Member

PBNI CommandParm RunApplication cannot obtain

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)


        IPB_VM* vm = NULL;


        static const char *liblist [] = {"runapp.pbd"};

        vm->RunApplication("runapp", liblist, 1,szcommandline, &session);






Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 24, 2014 at 02:06 AM

    PowerBuilder Code:

                               MessageBox("command line",CommandParm())

    Displayed as an empty string

    Add comment
    10|10000 characters needed characters exceeded