g_ppsv->RunCmd

"diamantsus-/[email protected] [power-pro]" <[email protected]> 22 Jul 2019 06:06:19 +0000
Newsgroups gmane.comp.windows.power-pro
Message-ID <[email protected]>
when i try to use
g_ppsv->RunCmd("debug", "", "");
i get a compiler error:
Error    C2664    'void (LPSTR,LPSTR,LPSTR)': cannot convert argument 1 from 'const char [10]' to 'LPSTR'    AlxPPro    c:\AlxPPro\dllmain.cpp

then i change from LPSTR to LPCSTR

void (*RunCmd)(LPCSTR szCmd, LPCSTR szParam, LPCSTR szWork);

and compile but when i use i get ppro error:

debug
Error occurred near line 51 of script Test@Test:
TestPlugin.MouseHook(1)
Press Cancel to end all running scripts.

why?