Error : CommandLineToArgvW is not a member of '`global namespace''
-
Hai, Iam using this line for getting the commandline argument. The error iam getting is: wchar_t** szArglist = ::CommandLineToArgvW( ::GetCommandLineW(), &numArgs ); error C2039: 'CommandLineToArgvW' : is not a member of '`global namespace'' error C2065: 'CommandLineToArgvW' : undeclared identifier error C2440: 'initializing' : cannot convert from 'int' to 'unsigned short ** ' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast. Can anyone suggest how to rectify this error.. Thanks & Regards, Harshadha
-
Hai, Iam using this line for getting the commandline argument. The error iam getting is: wchar_t** szArglist = ::CommandLineToArgvW( ::GetCommandLineW(), &numArgs ); error C2039: 'CommandLineToArgvW' : is not a member of '`global namespace'' error C2065: 'CommandLineToArgvW' : undeclared identifier error C2440: 'initializing' : cannot convert from 'int' to 'unsigned short ** ' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast. Can anyone suggest how to rectify this error.. Thanks & Regards, Harshadha
Add a
#include <shellapi.h>
Steve
-
Add a
#include <shellapi.h>
Steve
-
Hai Steve, I have included the needed header files and Lib file(Shell32.lib).Actually my code is working in VC++ but the same code is not working in EVC. Thanks For Spending Your Precious Time by Replying... Thanks & Regards Harshadha.
harshadha wrote:
but the same code is not working in EVC.
Its no supported on that platform.
Prasad Notifier using ATL | Operator new[],delete[][^]
-
harshadha wrote:
but the same code is not working in EVC.
Its no supported on that platform.
Prasad Notifier using ATL | Operator new[],delete[][^]
-
harshadha wrote:
Do you have any idea how to use that in EVC
No. Possibly, you can get help from mobile development[^] forum.
Prasad Notifier using ATL | Operator new[],delete[][^]