Page 1 of 1

fwh jan 2007 + xhab jan 2007 error

Posted: Thu Mar 08, 2007 10:15 am
by Richard Chidiak
Antonio

I have migrated my system to fwh jan and also xhb pro to jan 2007

When i link my app, i get

xlink error : Unresolved external symbol _ansitowide

Any clue ?

Thanks

Richard

Posted: Thu Mar 08, 2007 11:05 am
by Antonio Linares
Richard,

Strange... Please add this function:

Code: Select all

#pragma BEGINDUMP

#include <windows.h>

LPWSTR AnsiToWide( LPSTR cAnsi );

LPWSTR ansitowide( LPSTR cAnsi )
{
   return AnsiToWide( cAnsi );
}
#pragma ENDDUMP

Posted: Thu Mar 08, 2007 11:28 am
by Richard Chidiak
Antonio

Same link error message

Switching back to fwh october 2006 , this is the one i was using compiles and links ok

Richard

Posted: Thu Mar 08, 2007 1:58 pm
by Antonio Linares
Richard,

Place an underscore in front:

Code: Select all

#pragma BEGINDUMP 

#include <windows.h> 

LPWSTR AnsiToWide( LPSTR cAnsi ); 

LPWSTR _ansitowide( LPSTR cAnsi ) 
{ 
   return AnsiToWide( cAnsi ); 
} 
#pragma ENDDUMP

Posted: Thu Mar 08, 2007 2:14 pm
by Richard Chidiak
Antonio

No change same error

Very strange, where can it come from ?

Everything compiles OK with fwh 2.8 october

Richard

Posted: Thu Mar 08, 2007 4:03 pm
by Antonio Linares
Richard,

We email you the most recent libraries