OK
What i am doing? I have a dll. This dll has a function which takes a string
as input and display it in a message box( or on a dialog box). I don't have
code of this dll. I use this dll by loadlibrary then i call that function of
dll which takes string as input.
In my MFC application, first i load the dll by loadlibrary then i call
function of dll and pass a string. This function display that string in a
message box.But i don't see correct string in message box which i passed, i
see some garbage value. I think this is the problem of font. If i change the
font of string in my MFC application and i pass it in dll function then the
dll function will display the correct string .
Actually my MFC application is Unicode application and dll is ANSI
application. So i need to change the font of string which i passed. I took
this dll from an organization so i don't have code of this dll and i have
only this option to use the dll.
Post by Scott McPhillips [MVP]Post by VKumarI don't want to use the string on dialog box. I am sending this string from
exe to dll. My application is MFC application. This application use a dll. I
pass this string from application to dll in a function of dll. String is
displaying as garbage in dll. If i change the font of string in exe and pass
this to dll then the string will display correctly in dll function. I don't
have code of dll. I use dll by LoadLibrary.
This a not clear. DLLs do not have a font, and strings do not have a
font. Can you explain what you mean by "change the font of string?"
--
Scott McPhillips [VC++ MVP]