|
Let me rephrase this statement I made to avoid confrontation...
"For any of these, (except stock objects) you should always call DeleteObject to free up any GDI resources held up inside (that is, after the object is selected OUT of the DC)."
Let it be restated like this...
"For any of these, (except stock objects) I always call DeleteObject to free up any GDI resources held up inside (that is, after the object is selected OUT of the DC) to be safe since I'm not sure if the CGdiObject calls DeleteObject internally in it's destructor".
DeleteObject is required in Win32 but like I said before, you will find differing schools of thought on how this needs to be handled using the CGdiObject and what it does with the GDI resources internally when it's destructor is called. I cannot find anyplace in the MFC source where the GDI objects are getting cleaned up but I may not be looking in the right place.
|
|
|
|
|
Hi all,
I need to check if the above applications are installed on my computer.
to check office outlook i can try to create an instance of the outlook COM object. if it fails i know it is not installed.
how can i check if Outlook express and Msn messenger are installed also?
thanks in advanced
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
YaronNir wrote: how can i check if Outlook express and Msn messenger are installed also?
well, i found out that messenger also using COM object...
all that left is how to find Outlook express?
thanks
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
YaronNir wrote: well, i found out that messenger also using COM object...
all that left is how to find Outlook express?
Is this[^] of any help!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
thanks for the reference!
in that example i see how to read and write messages
can u refer me to how to import contacts from outlookexpress? (loop over the contact list)
thanks again
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
YaronNir wrote: in that example i see how to read and write messages
can u refer me to how to import contacts from outlookexpress? (loop over the contact list)
Outlook Express Contact BOOK is nothing,but Window Addess Book (WAB), see these link:-
www.insideoe.com/files/wab.htm[^] or look for Interface IWABObject:: to know more
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
thanks will do!
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
See here for list of all installed programs
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
whitesky
|
|
|
|
|
The thing is , later on i will need to interact with the above applications
(such as importing contacts from) so look at the registry is not so good for me...
main question remains: how to interact with outlook express?
thanks again
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
YaronNir wrote: http://www.codeproject.com/com/COMBasics.asp
These article are very well Written.. Thanks!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
thanks , don't forget to vote
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Hey folks:
How can I:
1) Easily parse thru XML (I can use MFC classes if this makes it any easier, but no .NET)
2) Once I have a URI, how can I download *all associated content* i.e. images/text/whatever is on the webpage... and how can I specify where all of that goes?
3) How can I send XML over HTTP?
Classes/methods/articles/etc.... would be very helpful.
Help your local noob. :P
|
|
|
|
|
chasetoys wrote: Easily parse thru XML
Search for MSXML. Or use a third-party parser like Expat.
chasetoys wrote: Once I have a URI, how can I download *all associated content*
You have to do this yourself, extract all the various elements and download them individually. Or you can download the page to an MHT file.
chasetoys wrote: How can I send XML over HTTP?
It's just an HTTP POST.
0 bottles of beer on the wall, 0 bottles of beer, you take 1 down, pass it around, 4294967295 bottles of beer on the wall.
Awasu 2.2.2 [^]: A free RSS/Atom feed reader with support for Code Project.
|
|
|
|
|
|
chasetoys wrote: How can I:
1) Easily parse thru XML (I can use MFC classes if this makes it any easier, but no .NET)
2) Once I have a URI, how can I download *all associated content* i.e. images/text/whatever is on the webpage... and how can I specify where all of that goes?
3) How can I send XML over HTTP?
Classes/methods/articles/etc.... would be very helpf
For Internet related Activity :-
http://www.codeproject.com/internet/amhttputils.asp[^]
For XML related activity :-
www.codeproject.com/soap/markuparchive.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hello.
I writing some MFC application and in some place i need to show some window on the top of all other windows.
The other windows are working in different application.
How can i be sure that my window in really will be on top ?
Thanks for any help.
-- modified at 0:42 Sunday 28th May, 2006
|
|
|
|
|
try SetWindowPos
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
yanshof wrote:
How can i be sure that my window in really will be on top ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
|
I'm stuck on a situation to change html element sytle in a webbrowser2 in a mfc dialog program. VC6+windows sdk 2003.
Does anyone have idea how to do it?
i already got the onclick event and get the ihtmlelement object. really emergence, pls help me if you can, thx first.
|
|
|
|
|
I'm not sure that its helpful to you anyway see Here[^]
whitesky
|
|
|
|
|
|
My monitor control have 10 lines sized
after the 10th AddString(...);
Scroll bar pop up on the monitor controll
But as more AddString comes (so more lines)
the Focus of Monitor is on the first 10 lines
So how the monitor control get focus on each new AddString?
|
|
|
|
|
|
OMG ... sorry my mistake..
i mean List Box
(i have add a variable m_MonitorCtrl for that box ..:P)
|
|
|
|