unresoloved api function -- Command

Oct 18, 2008
273
1
#1
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

#2
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:
[email protected]@[email protected] (int __stdcall Command(wchar_t const *,int))
They're different. If you're using the v17 .h, try changing it to "LPCTSTR pszLine".
 
Oct 18, 2008
273
1
#4
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:
[email protected]@[email protected] (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