doesn't works
I try also :
PDC_ExtTextOut(hPrDC,100,100, 0, NULL, wName, 15, NULL);
I think that the problem is
TCHAR * wName = ( TCHAR * ) hb_xgrab( len * sizeof( TCHAR ) );
Thank Maurizio
www.nipeservice.com
Maurizio,
A wide string uses to be the double length of the original string, as each char requires two bytes
Antonio ,
same effect
,
you cann see the variable wname
MessageBox( 0, wName, L"TRUE", 0 );
Maurizio [/u]
Maurizio,
Please try this:
MessageBox( 0, AnsiToWide( "Hello World" ), L"TRUE", 0 );
Antonio ,
I have thi serror
error C2664: 'AnsiToWide' : cannot convert parameter 1 from 'c
har [12]' to 'char'
This conversion requires a reinterpret_cast, a C-style cast or function-
style cast
Regards MAurizio
Maurizio,
You need to include this prototype:
TCHAR * AnsiToWide( char * );
HB_FUNC( ... )
{
...
}
Antonio ,
Now the error is
error LNK2019: unresolved external symbol "unsigned short * __cdec
l AnsiToWide(char *)" (?AnsiToWide@@YAPAGPAD@Z) referenced in function HB_FUN_PR
INTLINE
Maurizio
Maurizio,
As you are compiling in C++ mode, then please declare it this way:
extern "C" {
TCHAR * AnsiToWide( char * );
};
Antonio ,
exceptional it works
,
Now I cann finish the class .
Thank for your help.
MAurizio
Maurizio,
Glad to know that you got it working ![]()