|
Hi,
Detecting a "Missing Character Glyph" without looking at a window
I am developing a dialog similar to Windows Word - Insert - Symbol Table Dialog.
For this all the charaters have to be displayed for the selected font (from all the existing fonts) and subsets which support the current font.
I am able to display the characters but some are appearing blank. These are the characters which are not supported by the the current font.
Can anyone tell me how to detect missing glyphs?
Till now I have tried with WideCharToMultiByte and GetCharacterPlacement.
But nothing seems to work.
I thought of using uniscribe function ScriptStringAnalyse.
Is this the correct function I should use?
Also I dont have Usp10.h and Usp10.lib on my system. Though I do have Usp10.dll
I thought of downloading same but looks like it comes as SDK package.
I just need this .h and .lib file.
Can anybody send me these two files?
Thanks a ton,
Arti Gujare
Arti Gujare
|
|
|
|
|
I know the SDK can be quite a pain to download, I managed to put it off for months and months, but 400mb laters, I already feel the benefits.
I would really advise you download it and burn it to CD. Scrounging files here and there will just end up causing more conflicts than a drunk french man in an english bar.
|
|
|
|
|
hi
i have problem converting from char * to unsigned short * when compiling in UNICODE ,i have _UNICODE defined
code is as follows:
CString sBuf;
sBuf.Format(_T("RCPT TO:<%s>\r\n"), m_sEmailAddress);
//where m_sEmailAddress is CString object
LPTSTR pszRCPT = T2A((LPTSTR) (LPCTSTR) sBuf); //error is at this line
any links would do good
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
-- modified at 12:24 Wednesday 5th April, 2006
|
|
|
|
|
|
QuickDeveloper wrote: LPTSTR pszRCPT = T2A((LPTSTR) (LPCTSTR) sBuf); //error is at this line
which ?
|
|
|
|
|
v2.0 wrote: which ?
the error is while typecasting sBuf to LPTSTR....
is there any other way to type cast??
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
QuickDeveloper wrote: the error is while typecasting sBuf to LPTSTR....
i didn't ask WHERE, but WHICH
man, if you don't tell us the error message, how do you want us to help you ?
we are not geniuses
|
|
|
|
|
v2.0 wrote: if you don't tell us the error message,
the error message is the title of the post
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
Use this sBuf.GetBuffer(sBuf.GetLength())
Regards,
FarPointer
|
|
|
|
|
T2A converts to ANSI. In a Unicode build, LPTSTR will be a wide character, so setting a variable of type LPTSTR to the result of the T2A macro makes no sense. If you want pszRCPT to be ANSI (as implied by the code), declare it as LPSTR (note the missing 'T')
LPSTR - ANSI character string
LPWSTR - wide character string
LPTSTR - ANSI or wide character string depending on if _UNICODE is defined or not
|
|
|
|
|
Thank you very much..the problem is solved
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
T2A returns an ANSI string, but you're assigning to a LPTSTR (a Unicode string).
You also shouldn't be removing the const without a good reason, which I don't see in the snippet.
LPCSTR pszRCPT = T2CA(LPCTSTR(sBuf));
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
Type checking ruins everyone's lives.
__asm
{
mov eax, [sBuf]
mov [pszRCPT], eax
}
|
|
|
|
|
Why can't I put a menu on an MDI child?!?! Who did this!?! Life is no longer worth living!
|
|
|
|
|
Hi,
How to change the security permission of a folder and a file.
Regards,
FarPointer
|
|
|
|
|
Search for Access Control Entry (ACE) and Access Control List (ACL).
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
|
which os r u using?
r u the Administrator of ur system?
if so. u can set the permission.
start>>control panel>>administrator tools>>local security policy>>windows setting>> local policy>>security option>>network acess sharing and security model for local sysem >>select classic - local....
now right+click the folder for which u need permission>> security tab>>
i belive rest of the thing u could do...
JAYARAJ
|
|
|
|
|
I am developing a dialog similar to Windows Word - Insert - Symbol Table Dialog.
For this all the charaters have to be displayed for the selected font (from all the existing fonts) and subsets which support the current font.
I am able to display the characters but some are appearing blank. These are the characters which are not supported by the the current font.
Can anyone tell me how to detect missing glyphs?
Thanks a ton,
Arti Gujare
Arti Gujare
|
|
|
|
|
i am working with dialog base application and there is several buttons on the dialog and setted bitmaps on these button but now i want to change image image on button when mouse over on this button and mousedown and mouseup and mouse down for some time all 4 events i want different image onthis button so for this
what i have to do for the same?
Bankey Khandelwal
Software Engineer
|
|
|
|
|
|
Has anyone ever had any success using "WaitCommEvent"
My experience thusfar is that it never returns. I have used some examples that i found using Overlapped I/O but they don't seem to work either. If anyone has had any success using this, please respond. I am not sure what else to try. All i want to do is catch a signal on the DSR pin when it is sent.
|
|
|
|
|
Greetings:
I have recently started using Visual Studio V7.0 (previously used V6.0), but still using MCF. I have continued to use CString for various things text storage but today I tried to use the "Find" member function.
What happened? VS 7.0 doesn't even seem to document CString and its members anymore. When I tried to build my program, I get this error:
error C2664: 'int ATL::CStringT<basetype,stringtraits>::Find(ATL::CSimpleStringT<basetype,t_bmfcdll>::XCHAR,int) throw() const' : cannot convert parameter 1 from 'const TCHAR *[7]' to 'ATL::CSimpleStringT<basetype,t_bmfcdll>::XCHAR'
with
[
BaseType=char,
StringTraits=StrTraitMFC_DLL<char>,
t_bMFCDLL=true
]
and
[
BaseType=char,
t_bMFCDLL=true
]
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
Huh?
Can someone tell me how I can just use my faithful CString and get back to work?
Thanks in advance,
Mark
-- modified at 11:00 Wednesday 5th April, 2006
|
|
|
|
|
your program certainly have a MFC support lack...
|
|
|
|
|
Hi;
The program was initialized using the MFC App Wizard. It has a main window, menus, tool bars, status bars, etc, etc. All of them MFC classes. I have been using CString throughout until today when I tried to use "Find".
Mark
|
|
|
|