-
July 10th, 2003, 06:44 AM
#1
MBCS & Unicode
Hi ,
I have a an exe and a dll. Exe is _MBCS.
But the dll is _UINCODE. Will it cause any problem if i load the dll from the exe. I won't be passing any strings to the Dll.
But i will be passing the HWND (handle) of the exe to the dll.
Will it cause any poblem at any point of time. My m/c is Japanese.
Thanks in Advance
-
July 10th, 2003, 07:01 AM
#2
But i will be passing the HWND (handle) of the exe to the dll.
Yes, that will cause problems in some cases. The MBCS .exe has created "ANSI" windows, so they will not understand Unicode messages. If your Dll sends any Unicode-specific messages to the windows, this will not work.
Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
Supports C++ and VB out of the box, but can be configured for other languages.
-
July 10th, 2003, 07:25 AM
#3
Hi Madrid,
MBCS.exe is just giving its handle to the dll. Dll is not returning anything to the Exe. Dll may pass some events to the Exe by PostMessage (some #define values only ).
So will it cause any problem?
Thanks in Advance
-
July 10th, 2003, 08:04 AM
#4
As far as I understand things, this will give problems, yes. The Dll will use PostMessageW and post a Unicode message, whereas the exe has an 'ANSI' Window procedure.
Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
Supports C++ and VB out of the box, but can be configured for other languages.
-
July 10th, 2003, 08:37 AM
#5
::PostMessage(hWndHome ,100,0 ,0);
Suppose if i post a message like this will it cause problems.
I am just using the integer value 100 in the post message.
Will it cause problem.
Thanks for all ur help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|