Re: Change the font
- From: "VKumar" <cmanoj@xxxxxxxxxxxxxxx>
- Date: Tue, 18 Apr 2006 18:45:09 +0530
I don't pass unicode string in function of dll. I pass ANSI string.
I have also tried by taking a unicode string and converting it to ansi
string by Widechartomultibyte. but don't get success.
"VKumar" <cmanoj@xxxxxxxxxxxxxxx> wrote in message
news:#FsM#muYGHA.4060@xxxxxxxxxxxxxxxxxxxxxxx
OKstring
What i am doing? I have a dll. This dll has a function which takes a
as input and display it in a message box( or on a dialog box). I don'thave
code of this dll. I use this dll by loadlibrary then i call that functionof
dll which takes string as input.i
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,
see some garbage value. I think this is the problem of font. If i changethe
font of string in my MFC application and i pass it in dll function thenthe
dll function will display the correct string .is
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.
"Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp> wrote in message
news:uwXDvWuYGHA.4760@xxxxxxxxxxxxxxxxxxxxxxx
VKumar wrote:from
I don't want to use the string on dialog box. I am sending this string
dll. Iexe to dll. My application is MFC application. This application use a
pass this string from application to dll in a function of dll. String
anddisplaying as garbage in dll. If i change the font of string in exe
pass
don'tthis to dll then the string will display correctly in dll function. I
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]
.
- Follow-Ups:
- Re: Change the font
- From: David Wilkinson
- Re: Change the font
- References:
- Change the font
- From: VKumar
- Re: Change the font
- From: Ajay Kalra
- Re: Change the font
- From: VKumar
- Re: Change the font
- From: Scott McPhillips [MVP]
- Re: Change the font
- From: VKumar
- Change the font
- Prev by Date: Re: Change the font
- Next by Date: Re: Change the font
- Previous by thread: Re: Change the font
- Next by thread: Re: Change the font
- Index(es):
Relevant Pages
|