|
|
Nice web the first result. I have added to favorites
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
plz solve tte assignment
|
|
|
|
|
|
Wow...what a lot of code!
Russell
|
|
|
|
|
f*ck off, a$$hole
|
|
|
|
|
adik1310 wrote: SUBJECT : URGENT
1) Don't let your urgencies or emergencies become someone else's problem.
2) Don't post any code other than what is absolutely relevant.
3) Read here and here.
4) Before submitting your post, click the Preview button.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
easy...
Jemmy : Deadline? Pfft, a real programmer eats deadlines for breakfast. :P
Mark: I thought real programmers ignored deadlines
Best wishes to Rexx[^]
|
|
|
|
|
Hai..Dear,
In VC++ ,I Opened a new cpp file, and i written the necessary codes,and i created workspace for that ...then i included .h files also...like this 4 .cpp & 4.h files are there in this project.
I have included #include windows.h in 2 of my .header file.
now it is showing the error
fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include windows.h
If i remove this header #include windows.h, then it is showing more than 50 errors...
what to do for this?
|
|
|
|
|
You need not to include windows.h file in MFC application. Check in the project propritey and in the general tab check for "use of MFC. if you are using MFC application it should show "MFC in a Shared DLL". If it is showing anything else change it to this and try it againg.
|
|
|
|
|
Actually i want to use non-mfc aplication only.
|
|
|
|
|
If you application is not the MFC. Then include the Windows.h file and change the Use of mfc from project property to "Use Standard Windows Libraries". Even after that if you getting the errors just write down what type of errors you are getting.
|
|
|
|
|
Hi...thanks for ur attention onmy query,
I am using CString kind of datatype in my code. so i need to include afx.h and afxwin.h and max of 5 afx related header files...
I think becos of this the error "windows.h is alredy defined " it is throwing...and in some other header file already i included windows.h...
what to do for this...
|
|
|
|
|
CString is MFC, so you either need to change to a MFC app or don't use CString. You can't do both.
Judy
|
|
|
|
|
D.Mani wrote: I am using CString...
Which is MFC, which contradicts your earlier statement, "Actually i want to use non-mfc aplication only."
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
D.Mani wrote: Actually i want to use non-mfc aplication only.
Then why did you opt to create an MFC application?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Can you more explin about your program?(you make a cpp file and a header file and include windows.h then you got an error if you delete this code you get 50 errors)
|
|
|
|
|
please mention windows.h in one of the file may be include it in stdafx.h.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Shilpi Boosar wrote: ...may be include it in stdafx.h.
Were you not paying attention? The errors are a direct result of windows.h being included unnecessarily.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hai.
now i will tell u the problem....
i opened win32 application...and i had 3 files which reqd windows.h ...so i added windows.h in win32 files...
now i have one cpp file which is mfc support file..mfc support means using Cstring datatype..and AFxBeginthread and some other also...
so..now i have added that mfc support cpp file to my project...
which is having header files #include<afx.h> and <fxwin.h> and etc..related to mfc..
now i builded my program...it is throwing this error...
fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
|
|
|
|
|
While it's certainly possible to add MFC support to an existing Win32 Application, it would be much easier to just use AppWizard to create an MFC Exe application instead.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello,
I am using CDatabase 's pen function t pen a database .Now I want to flag a message if the database desn't exist or it is not opening.
CDatabase::Open() does not return true r false so tried using try catch throw but the control does not go to catch part of the above block
What do I do ? I did the following
try
{
if (!CurrentDatabase.IsOpen())
CurrentDatabase.Open(_T(DatabaseName),FALSE,FALSE,_T("ODBC;"));
}
catch (CFileException* e)
{
AfxMessageBox("Check your Database");
throw;
}
Regards
Prithaa
|
|
|
|
|
As far as I am aware, CDatabase class will throw a Database exception (CDBException) and not CFileException.
|
|
|
|
|
Hello,
Thanks ,It worked.
I should have checked that.
Prithaa
|
|
|
|
|
You can find VC++ Interview Questions and Answers on all
topics Such as
<b>C++, MFC, Win32, COM, DCOM, STL, Multi-Threading, UML, OOAD,
Graphics libraries - LeadTools, OpenGL,
Data structures- Linked lists, Trees, searching and sorting.
</b>
Most Frequently Asked VC++ Interview Questions and
Answers collected from more than 100 real time interviews
and tests can be found at following link.
http://sumedh.shende.googlepages.com/
|
|
|
|