|
Hi All,
I've got a big problem and could somebody kindly give me a hand?
The requirement is to use WebBrowser control and display content in Anti-alias font. Assume 'smooth edges of screen fonts' display property is not checked. (we can't assume it is checked) How I can make the content of WebBrowser control render in Anti-alias font?
I've got some ideas but most of them are proven to be not working. Now, I'm thinking of solutions like creating a 'HFont' with 'CreateFont' that takes a 'ANTIALIASED_QUALITY' 'fdwQuality' parameter. And put the HFont to system by 'AddFontMemResourceEx' function. And let the HTML to specify using the new font. Do you think this method can work? any other good suggestions?
Thx and regards,
mingfai
Reference:
AddFontMemResourceEx: adds the font resource from a memory image to the system.
http://msdn.microsoft.com/library/en-us/gdi/fontext_23zs.asp
|
|
|
|
|
I have 2 fils in a project :
1 Cpp file and the second C file .
a variable x is declared in the Cpp file and i need that
the C file will "know" that variable.
is there supose to be a problem?
when i tried this:
Cpp File C_File
int x; extern int x
i get an error : unresolved external
I will be very glad to get any help
|
|
|
|
|
Put this in your .h:
#ifdef __cplusplus
extern "C" {
#endif
extern int x;
#ifdef __cplusplus
}
#endif and this in your .cpp:
#include <···.h>
int x;
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
meirav wrote:
int x; extern int x
hmmmm...
dont put both in the same file.
file1.cpp -> declare it there :- int x;
file2.c -> extern "C" int x;
Try that.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
If I have 2 radio boxes and I want to make sure the user can check only one of them at a time (ie if the user checks one, the other gets automatically unchecked).....then how do I do this?
Thanks.
|
|
|
|
|
lets say you have two pairs of 3 radio buttons [thus 6 total].
use the WS_GROUP style for the 1st and 4th.
Now you have two sets of 3-mutually exclusive radio buttons
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
If you mean radio buttons, then have them on a group box.
|
|
|
|
|
It seems if you place your group boxes with radio buttons in another group box, you can check only one button at a time effectively checking one group at a time. It needs a SetCheck() on the first button you want to start with.
|
|
|
|
|
The "group" attribute controls which radio buttons are linked up. It has nothing to do with being in a group box like the previous posts have said. The first radio button must have the group attribute set, the others must not have it set, then the control right after the last radio button in the tab order should have it set to mark the end of the group.
--Mike--
http://home.inreach.com/mdunn/
While I can't be correct on all matters, I can make the reassuring claim that where I am inaccurate, I am at least definitively inaccurate.
your with and
Sonork - 100.10414 AcidHelm
|
|
|
|
|
Hello,
I am interested in using the MSXML parser using VC++. It seems there are endless books on the subject for VB and every other language, but I haven't been able to find one for VC++ specifically. I know many code sites (MSDN, CodeProject, etc.) have articles, but I would prefer a book. Can anyone suggest a book that focuses on the MSXML parser and VC++ (not .NET)?
Thanks!
Derek
|
|
|
|
|
Hi Derek
You are correct there. Nearly all the documentation on MSXML is about VB. I had this same problem an year ago.
I finally ended up using Expat - an XML parser library in C
I believe that since then there is Expat++ which is a C++ class library
I'd recommend Expat unless you very specifically want to use MSXML
Regards
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
I would be suprised to find one. Using it in VC++ is just like using it in VB. Import it, create an instance and call its member functions (just like all other COM objects).
Hope this helps,
Bill
|
|
|
|
|
Hi all,
anyone know how to control an Excel sheet (if it is possible), create cells, create table, color it and similar...
thanks a lot.
|
|
|
|
|
http://support.microsoft.com/support/kb/articles/q199/6/91.asp
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
I use ShellExecute to execute IE opens some CGI script like:
HINSTANCE result = ShellExecute(NULL, _T("open"), mUrl, NULL,NULL, cmdshow );
Is it true?
And when I created, the handle is result?
And how to close this dialog by coding in my program?
Please help me! thank you very much!
|
|
|
|
|
The HINSTANCE returned is dummy. Ignore it.
I'd advise you to use ShellExecuteEx
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Hi folks
I have a guestion, How to save CBitmap object as a bmp file?
Mike
|
|
|
|
|
Read the FAQ.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Does anybody knows tools for detecting resource leaks under 9x?
|
|
|
|
|
|
10x Eugene,
I suppose you mean Numega BoundsChecker, unfortunatelly it doesn't work under 9x, not even Mutek Bug Trapper
|
|
|
|
|
I have DLL with some functions .
I wrote in vc client program and I need to create Dynamic linking .
How have do it ???
====================================================================
I tried write so :
--------------------
typedef DWORD(SQRTPROC) (DWORD,char*);
HINSTANCE hInstance;
SQRTPROC* pFunc;
VERIFY (hInstance = ::LoadLibrary("c:\\windows\\system\\myDLL.dll"));
VERIFY (pFunc = (SQRTPROC*) ::GetProcAddress(hInstance, "Func1"));
DWORD a = (*pFunc) (1, str); // Call the DLL function
===================================================================
and I got the error :
error LNK2001: unresolved external symbol _Func1@8
|
|
|
|
|
Most likely you have left some missing call to Func1() when you decided to switch to dynamic linking. Remember now all calls to this functions must be thru the pointer pFunc . You have two options:
- Globally replace all calls to
Func1() with appropriate calls to the pointer,
- write a little wrapper named
Func1 that internally uses the pointer.
Ellaborating on the second solution, you can even consider doing what's called lazy initialization and load the function only when first needed, like this:
DWORD Func1(DWORD dw,char* pch)
{
static SQRTPROC* pFunc=(SQRTPROC*)::GetProcAddress(hInstance, "Func1");
return (*pFunc)(dw,pch);
}
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thank you !
I realy have left some missing call to Func1() .
Now it passed compilation successfully.
But I have a new problem with it .
I send it in a new thread.
|
|
|
|
|
I want to write a VC++ program, that can delete some file in system folder like: C:\\windows\\temporary internet files\0
I use some code like that
SHFILEOPSTRUCT sh;
sh.hwnd = GetSafeHwnd();
sh.wFunc = FO_DELETE;
sh.pFrom = "c:\\windows\\temporary internet files\\*.gif\0";
sh.pTo = NULL;
sh.fFlags = FOF_NOCONFIRMATION | FOF_SILENT;
sh.hNameMappings = 0;
sh.lpszProgressTitle = NULL;
SHFileOperation (&sh);
But happens a error: can not delete file : file system error (1026)
Default Internet Explore is IE. When I use Netscape like default I can delete some files!
Any ideas?
Thank you!
|
|
|
|