HighTechTalks DotNet Forums  

Unicode or non unicode

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss Unicode or non unicode in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
sunil
 
Posts: n/a

Default Unicode or non unicode - 06-10-2006 , 05:10 AM






Hi

I have a dll , i want to know whether it is compiled using _UNICODE and
UNICODE macro. Is there any way to find the same ?

Actually in my visual studio 8 it is showing wired behavior.I have
defined some variable TCHAR var1 ; sometimes it says var1 as char
sometime as WCHAR. So I am totally confused whether i have done some
mistake. Or it is a problem of visual studio 8.

I have defined _UNICODE and UNICODE.


Regards,
Sunil Virmani


Reply With Quote
  #2  
Old   
Mihai N.
 
Posts: n/a

Default Re: Unicode or non unicode - 06-11-2006 , 03:31 AM






Quote:
I have a dll , i want to know whether it is compiled using _UNICODE and
UNICODE macro. Is there any way to find the same ?
Nothing 100% sure. Nothing prevents one to call/declare ANSI API from a
Unicode component, or wide API from an ANSI one.
(see for instance here: http://www.mihai-nita.net/20060317a.shtml)

But you can try "dumpbin /exports" and "dumpbin /imports"
If you see wide API and in your code you know you don't explicitely call
it, then is compiled with UNICODE.
If it needs MFC and in imports you see mfc80.dll, then is ANSI, and if
you see mfc80u.dll, then is Unicode.

But, as I was saying, there is no 100% proof, without seeing the code.

--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.