ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
||||
|
||||
Compiling a DLL in release mode
Hi,
I'm compiling a DLL in release mode and it now gives an error on the DLLMain.cpp. In debug mode it compiles fine. 1>..\..\DLL Maker\DLLMain.cpp(62) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char *' to 'LPCWSTR' I have started a project from scratch so I probably have some setting wrong. Does somebody have an idea? (It will compile if I cast to PLCWSTR but then it won't compile in debug mode anymore) Steven |
#2
|
||||
|
||||
On the Project's Properties page, under General, you need to change the Character Set from Unicode to either Multi-Byte or Not Set.
|
The Following 4 Users Say Thank You to Anthony Johnson For This Useful Post: | ||
Steven Hamoen (04-29-2010) |
Tags |
dllmain, lpcwstr, release mode |
Thread | Thread Starter | Forum | Replies | Last Post |
compiling all models, all such problems,why? | LINWEIXU | Q&A | 9 | 07-31-2009 12:46 AM |
Release schedule | Roland Tainton | Q&A | 3 | 03-17-2009 05:46 AM |
GUI: cant enter GUI edit mode | KelvinHo | Q&A | 4 | 04-01-2008 10:44 AM |
How to use the actual date/time data in Arrival Schedule Mode of Source | syseo | Q&A | 0 | 10-12-2007 08:22 PM |