|
err... try this:
typedef DWORD (WINAPI * LPSQRTPROC) (DWORD,char*);
LPSQRTPROC pFunc;
VERIFY (pFunc = (LPSQRTPROC) ::GetProcAddress(hInstance, "MyFunc")); Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I have a dialog that's undergone heavy modifications, and I'm left with a ton of extra IDC_ values for controls that no longer exist.
Is there any utility or way to have it remove the unused control values?
I've also been expericing "duplicate control IDs" when renaming some. The bugger is that there are no duplicates. There were, but those were renamed or deleted, but it thinks they are stil there.
Thanks in advance
|
|
|
|
|
Go to View->Resource symbols. The ones in use will have a check mark, so you can delete the ones w/o checks.
--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
|
|
|
|
|
You might want to try this handy addin by Andy Metcalfe:
http://www.codeproject.com/macro/resorg.asp
It may help to solve your resource id woes.
Cheers
|
|
|
|
|
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
|
|
|
|