CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: MBCS & Unicode

  1. #1
    Join Date
    May 2002
    Posts
    19

    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

  2. #2
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    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.

  3. #3
    Join Date
    May 2002
    Posts
    19
    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

  4. #4
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    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.

  5. #5
    Join Date
    May 2002
    Posts
    19
    ::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
  •  





Click Here to Expand Forum to Full Width

Featured