Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

unresoloved api function -- Command

Oct
362
2
Hello -- any help would be appreciated

I am in the process to getting one of my plugins to run with v17 --

I probably just missing something, but I been getting an unresolved for the API call "Command" --
I was not sure if it was a name conflict, so I modified the pligin.cpp example code and added a command
that call the api Command call like this --

rc = Command( L"echo -- Hello this is a test", 0 ) ;

I get the same unresolved with this too

It seems that there could be a function signature issue -- Is there a compiler setting that I could be
missing? I know there is some obscure compiler switch that use "unsigned short" and not wchar_t for
unicode char -- any insight would be appreciated

The build log is attached

thanks

fpe
 

Attachments

Hmmm! It doesn't seem to matter here (VC10, I wonder why not), but the v17 header declares
Code:
int WINAPI Command( LPTSTR pszLine, int nReserved );
while the v17 .lib contains
Code:
?Command@@YGHPB_WH@Z (int __stdcall Command(wchar_t const *,int))

They're different. If you're using the v17 .h, try changing it to "LPCTSTR pszLine".
 
There are other discrepancies.

The header says
Code:
LPVOID WINAPI AllocMem( unsigned int * puSize );
while the lib has
Code:
?AllocMem@@YGPAXI@Z (void * __stdcall AllocMem(unsigned int))
 
Hmmm! It doesn't seem to matter here (VC10, I wonder why not), but the v17 header declares
Code:
int WINAPI Command( LPTSTR pszLine, int nReserved );
while the v17 .lib contains
Code:
?Command@@YGHPB_WH@Z (int __stdcall Command(wchar_t const *,int))

They're different. If you're using the v17 .h, try changing it to "LPCTSTR pszLine".
Hello --

I figured it was a function signature issue .... would it make any sense to put the sdk content in github -- at
least we would be able to track changes ...

Thanks

fpe
 
Back
Top
[FOX] Ultimate Translator
Translate