|
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!
|
|
|
|
|
|
excellent, thank you
|
|
|
|
|
I'm looking for something like MIDAS, how can i use it in Visual C++, or analog for building 3 points database architecture( i don't know how it sounds in English, i'll explain - i want to have 2 programms, one programm is clien - no logic he has, just using the interface that server provides, and server programm that connected to DB Server and handles all the connections with other clients). Any example...
|
|
|
|
|
|
Thanks for participating, but i can't understand how can this article help me? I sugges i have to make everything by my hands? I mean using sockets....
Does Visual C++ have anything that can help me, like MIDAS components in Delphi or Web Services...
|
|
|
|
|
Hi all
How can i change all the key from lower case to upper when ever clicking a button(which is owner draw) on my dialog box which is created in an SDI application, and can u also tell me the functions to be used to get the button status and that which can be passed in my send message
such as
void MyDialog::OnBUTTONLShift()
{
}
whenever shift button is pressed with mouse all the caps should be shown else all small case charac should be shown on my owerdraw buttons
where the code for abutton is written as follow
void MyDialog::OnButton90()
{
CTrailView *pView = (CTrailView *)((CMainFrame*)GetParent())->GetActiveView();
pView->SendMessage(WM_KEYDOWN, 90, 1);
pView->SendMessage(WM_CHAR,90,1);
pView->SendMessage(WM_KEYUP, 90, 1);
}
Request to all to continue this
|
|
|
|
|
Hi,
I would like to display a dialog box with Japanese fonts. The dialog properties show the string in japanese in MSDEV, but when the message dialog is shown, ?????'s are shown in place of a few characters.
Any help would be very helpful.
Thanx.
|
|
|
|