Problem with ALT::CA2W -
-
יום חמישי 02 אוגוסט 2012 08:56
Hello,
I'm trying to convert LPCSRT to LPCWSRT using ALT::CA2W. I added include files: #include <atlconv.h>, #include <atldef.h>, #include <atlbase.h> , #include <atlstr.h>. Program is compiling without errors but then I get information: 'An unhandled exception of type 'System.TypeInitializationException' occurred in Unknown Module.' and program terminates.
Before I added those include files everything was OK.
Why is it happening?
Please, help
- נערך על-ידי bobogumizelka יום חמישי 02 אוגוסט 2012 08:57
כל התגובות
-
יום חמישי 02 אוגוסט 2012 18:25
What is LPCSRT and LPCWSRT. I did not heard of it. I think it is LPCSTR and LPCWSTR. Also it is ATL::CA2W
http://geekswithblogs.net/dastblog/archive/2006/11/24/98746.aspx
I tried it and every thing is ok. May be following post may help you
http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/d7b32bd0-a54d-430b-944d-ca504d2c9de3/
Thanks, Renjith V R
- הוצע כתשובה על-ידי Helen ZhaoModerator יום חמישי 09 אוגוסט 2012 02:12
- סומן כתשובה על-ידי Helen ZhaoModerator יום שישי 10 אוגוסט 2012 08:23