win98 Unicode dll

This is a discussion on win98 Unicode dll within the Windows Programming forums, part of the Platform Specific Boards category; on win98 if I use char instead of WCHAR when calling a function from a dll then will char be ...

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    161

    win98 Unicode dll

    on win98 if I use char instead of WCHAR when calling a function from a dll then will char be converted to WCHAR. I ask this because I get this error on win98 from a project developed on winxp;
    Warning : Cannot register Unicode DLL on Windows 95

    thanx in advance!

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    The dll is compiled to use unicode functions.

    For example, you can have:

    GetWindowText
    GetWindowTextA (Ansi)
    GetWindowTextW (Wide - unicode)

    GetWindowText is #defined to GetWindowTextW if UNICODE is defined or GetWindowTextA if it is not.

    The W version of functions are only available natively on Windows NT based systems.

    Your dll has been compiled with UNICODE defined and therefore uses these W functions.

    As the W functions are not available on Win9x the dll will fail.

    Typically, a dll supplier will provide a unicode version that uses the W functions for NT and an ansi version that uses the A functions for 9x.

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    161
    thanx.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 07:11 AM
  2. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 02:20 AM
  3. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 12:34 PM
  4. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 04:29 AM
  5. UNICODE and GET_STATE
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21