|
If you do a quickwatch on pWndParentFrame in the debugger, is it pointing to the frame window you
are expecting (check its class )? Maybe you're not traversing up the window heirarchy far
enough...
Mark
|
|
|
|
|
|
What does GetMainWnd() return? It should give you a pointer to the main window, which you can then use to call GetActiveDocument() .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have an SDI application, with a form view, which has a few property sheets displayed.
When I click on "Open" button from the tool bar, to my surprise, CMyDocument::Serialize(CArchive& ar) is not called, and the title is updated by my selected file name.
How can this happen?!
TIA!
|
|
|
|
|
lucy wrote: How can this happen?!
Probably by writing broken code... like the code you posted yesterday.
led mike
|
|
|
|
|
I don't think I posted any code yesterday.
and I didn't make any changes to CMyDocument, only updated the
CMyDocument::Serialize (),
added code to serialize my member variables to &ar.
|
|
|
|
|
lucy wrote: I don't think I posted any code yesterday.
You are correct. My bad, I confused you with someone else.
lucy wrote: updated the
CMyDocument::Serialize (),
added code to serialize my member variables to &ar.
can you post your ::Serialize() code?
led mike
|
|
|
|
|
sure, I will.
I am not at work today. Caught a cold. I will post the code tomorrow.
Thank you very much!
|
|
|
|
|
I can't link NcFreeNetconProperties.
VS2005's linker returns:
error LNK2019: unresolved external symbol _NcFreeNetconProperties@4
I need to use this call because I earlier involked: GetProperties(NETCON_PROPERTIES **ppProps)
|
|
|
|
|
Besides being deprecated/unsupported according to the PSDK...
It looks like you need to LoadLibrary() NetShell.dll and use GetProcAddress().
There's no link library mentioned in the docs.
Mark
|
|
|
|
|
This worked great. Thank you.
Though this has been deprecated it is still the preferred method if one is using INetConnection. (see http://msdn2.microsoft.com/en-us/library/aa365097.aspx[^]
Do you have any other solution for enabling or disabling a network card on an XP machine?
|
|
|
|
|
I do not!
Thanks for the link - I've never looked in to that internet connection sharing stuff
Mark
|
|
|
|
|
I'm required to add several "{{" , "}}" and | to a CString that is used for a parser. Danged if I can find the proper was to do this.
Thanks for any help.
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
What about Insert() and the concatenation operators?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
CString s;
s.Insert(0,"{");
s.Insert(120,"}");
|
|
|
|
|
This is a bit of a long shot, but does anybody know where I might be able to get a hold of DirectX December 2004 SDK?
I know it can be downloaded from microsoft, but their website refuses to let me do so. It requires a windows validation ( for a freeware SDK??? ) and is accusing me of having an invalid key What happened to all the "windows vista is uncrackable" hype? They still need to check the key and even then get it wrong!!
|
|
|
|
|
Heh
I have a copy I can post for download. Email me if you need it.
Mark
|
|
|
|
|
Hi !!
I want to include Vertical scroll in my dialog box..
What should i do ??
I put directly Vertical Scroll through toolbox..then what next ??
Shah
|
|
|
|
|
|
Yeh..But since last 2 days, I have problem with google( server problem ) so i thought it would be good if i will ask this question in Codeproject..
|
|
|
|
|
Shah Satish wrote: I have problem with google( server problem )
Ok, well the first hit returned in my query is a link to a CodeProject Article. So you should be able to find that then right?
led mike
|
|
|
|
|
Did you search on the codeproject?
|
|
|
|
|
Hi !!
Yeh..I got it n thank you very very much for your reply..
Shah
|
|
|
|
|
Very good
|
|
|
|
|
I'm writing a serial communications library for communicating with GPS devices. Serial ports are opened in overlapped mode. A thread is responsible for reading data from the device at regular time intervals, and displaying relevant information to the user. I already have the core reading functionality working. What I'm looking for now is a way to notify the user when the connection has been lost, in as reasonably short a delay as possible. How can I accomplish this? Allen Denver's MSDN article includes a basic description of overlapped serial status checking, and I'm guessing that there is a particular event I should be waiting for. Which event would that be?
Cheers.
|
|
|
|