Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Mon, 23 Jun 2008 11:51:10 -0400,    group: microsoft.public.platformsdk.mslayerforunicode        back       


Should be simple UNICODE question   
I have a lib I wrote that compiles as either
dllnameW.lib or dllnameA.lib appropriately,
then within the code I have:

#ifdef _UNICODE
//dostuff W
#else
//dostuff A
#endif

dllnameW.lib has a preprocessor def
of _UNICODE, the app I'm trying to
import with has a preprocessor def of
_UNICODE, so why when I step
into the code, does it step through
the A version??

As a matter of fact, when I select the unicode
build in the lib project, the W version is
still grayed out and the A version is "enabled".

What gives?  what aren't my preprocessors
working?

W PPD:   WIN32;_DEBUG;_LIB;_UNICODE;UNICODE

using VS2008.

Thanks..

Steven
date: Mon, 23 Jun 2008 11:51:10 -0400   author:   Steven

Re: Should be simple UNICODE question   
Okay... not sure what happened there.. I forced a rebuild all of
the library that I've had around for a long time, and everything
worked fine.


"Steven"  wrote in message 
news:O%23qMdjU1IHA.1628@TK2MSFTNGP03.phx.gbl...
>I have a lib I wrote that compiles as either
> dllnameW.lib or dllnameA.lib appropriately,
> then within the code I have:
>
> #ifdef _UNICODE
> //dostuff W
> #else
> //dostuff A
> #endif
>
> dllnameW.lib has a preprocessor def
> of _UNICODE, the app I'm trying to
> import with has a preprocessor def of
> _UNICODE, so why when I step
> into the code, does it step through
> the A version??
>
> As a matter of fact, when I select the unicode
> build in the lib project, the W version is
> still grayed out and the A version is "enabled".
>
> What gives?  what aren't my preprocessors
> working?
>
> W PPD:   WIN32;_DEBUG;_LIB;_UNICODE;UNICODE
>
> using VS2008.
>
> Thanks..
>
> Steven
>
date: Mon, 23 Jun 2008 13:30:01 -0400   author:   Steven

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us