|
|
i have made a dialog based program that uses the command "CClientDC dc(this);" in the OnInitDialog().....i dont seem to have problems here.....but when i use this same command in a derived class CMyStatic(derived from CStatic Class) in the constructor of CMyStatic, i get no errrors but when i execute the file i get a dialog saying.....
Debug Assertion Failed
File:wingdi.cpp
line:981
File:afxwin2.inl
line:98
File:wingdi.cpp
line:707
File:winocc.cpp
line:199
File:wingdi.cpp
line:696
sob..... .....somebody ...anybody.....HELP!!!!!
|
|
|
|
|
You can not use any functions that rely on the hWnd been set within the constructor of a CWnd derived class.
If you look at the code you will see that the pWnd is set but the hWnd is NULL.
The hWnd is set as the control is created.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
I'm running a C program in visual C++ which uses command line switches. How do I use these as I've never used them before, and don't know how to specify either the commands or the the underlying options.
TIA
Keck
|
|
|
|
|
Without knowing what application you are attempting to run I doubt we will be able to help.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Hi - thanks for responding anyway. I think I've just made a breakthrough myself while looking for a way to explain it better.
Thank you
Keck
|
|
|
|
|
project->settings->debug->programarguments (might be this is wat u r looking for)
|
|
|
|
|
command line options can be found at
Project>Settings>C/C++
You can see the project option are set there.
For c programs use the /Tc key and for c++ programs use /Tp key.
You can get complete list of compiler options can be found in MSDN.
I believe most of these options can be set using GUI itself.
Regards
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
BOOL CDocument::OnNewDocument()
{
.............//in this place how can i know weather document object is
.............//created or not.
.............//
}
Hemagiri Y B
S/W Engg
INDIA
|
|
|
|
|
Both the CSingleDocTemplate and CMultiDocTemplate class contain this call:
AfxMessageBox(AFX_IDP_FAILED_TO_CREATE_DOC);
to inform the application user that it failed to create the document.
For development purposes (DEBUGING) they also produce messages in the Build results windows using:
TRACE0("CDocTemplate::CreateNewDocument returned NULL.\n");
The base CDocument::OnNewDocument() just does some intialization of existing variables. In a single document/view: this means you need to destroy any previous information your document is holding and reinitialize any needed variables. In a multiple document/view: this means you may need to initialize some data variables needed to store your data.
BOOL CMyEditDoc::OnNewDocument()
{
if( !CDocument::OnNewDocument() )
return FALSE;
if( !MyInitFunction() )
{
return FALSE;
}
return TRUE;
}
For both single and muli-doc application: The document object already exist before this member function is called, otherwize this function could not have been called ligaly. The document and the document object that holds it are 2 different things. Note: If this function fails (return FALSE) then any window created to view the data is automaticaly destroyed (the document object may also be destroyed).
A bit long winded, but I hope it helps a little.
INTP
|
|
|
|
|
Hello,
How could i parse a XML from a CHttpFile object (response from a HTTP request)?
Which class or method can i use?
[]'
Cris
|
|
|
|
|
a cgi acessing oracle which wrote by VC,HOW TO DO IT ?plese tell me about it or some source code about it .Thanks a lot !
|
|
|
|
|
Hi,
I am trying to port a vc6 coinstaller project (basically a DLL) to vc7. It compiles and builds correctly. The difference is that the new vc7 DLL does not display the property page for a particular device. The vc6 build is doing it correctly. I have coded an exception in the CoInstallerFunc but I see that the device Manager is not calling it.
I also posted this message to some MS discussion forums and I keep getting errors like "Your Passport session has expired. You need to sign in again before you can post to this group." I sign in and no change. I delete cookies, still no change. Looked on Google without success. So how do I post a new question to an MS newsgroup when this message appears? (It's ironic that I ask a discussion board on how to post to a newsgroup, but anyway...)
|
|
|
|
|
Hi,
I want to access the serial port on my pc, programming with visual c++ .net under winNT.4. Can anyone suggest a good tutorial on this subject or give me a lead.
regards, donEirik
|
|
|
|
|
|
Serial communication is the same as reading and writing files. The above mensioned tutorials / examples will help you out.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
anyone can help in creating a device driver for windows 2000.I don't know even basics of device drivers.
|
|
|
|
|
Have you looked at any DDK examples?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
I don't have a ddk.where can i get it.pls advise.
|
|
|
|
|
The DDK is available from Microsoft. It comes as part of the MSDN subscription. I am not sure if you can download it without a subscription nor whether it is available alone. Try searching for DDK on www.microsoft.com[^]
Hope this helps you out.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Here is a book on the subject.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
anyone can help in creating a device driver for windows 2000.I don't know even basics of device drivers.
|
|
|
|
|
I'm currently using a sample code can send text as well as image files as a attachment along with the Outlook Express mail.
However, my current requirement is to send image files that are embedded inside the mail and not attachments. I tried to create a code for this but of no success. Could someone give me some tips regarding this. Else if you have the sample code for the above, I would be grateful if you would send it to me.
Another problem I have is that when I send an HTML file (this file contains an image file inside it) as an attachment with the mail, I observe that only the html file and the image link has been sent to the recipient. I don't know a way to send the image file also with the html file. Please enlighten me regarding this.
|
|
|
|
|
which interface are you using to automate Outlook exp
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I'm looking to resize the main window of a simple, plain win32 application and i can't seem to find the control to do that without the user physically dragging the corner of the applicaiton to manually resize it. If someone could help me out with a link or an example i would be greatly appreciative..
Thank you!
|
|
|
|