Click here to Skip to main content
15,910,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralReturn values Pin
Timothy Grabrian29-Mar-04 17:52
professionalTimothy Grabrian29-Mar-04 17:52 
GeneralRe: Return values Pin
Maxwell Chen29-Mar-04 18:31
Maxwell Chen29-Mar-04 18:31 
GeneralHours and minutes Pin
dstory29-Mar-04 17:44
sussdstory29-Mar-04 17:44 
GeneralRe: Hours and minutes Pin
Christian Graus29-Mar-04 17:47
protectorChristian Graus29-Mar-04 17:47 
GeneralThis isn't really a question Pin
MrNiceBerG29-Mar-04 17:16
MrNiceBerG29-Mar-04 17:16 
GeneralThis isn't really an answer Pin
Roger Wright29-Mar-04 18:14
professionalRoger Wright29-Mar-04 18:14 
GeneralRe: This isn't really an answer Pin
Prakash Nadar29-Mar-04 19:07
Prakash Nadar29-Mar-04 19:07 
General#include <string> and errors... help me fix Pin
HuuQuynh29-Mar-04 17:09
HuuQuynh29-Mar-04 17:09 
Hello,

I downloaded a source code in sourceforge.net and rebuild it to learn what it does in system!

It requires too many: Service Pack 3 for Visual C 6.0, DirectX SDK, DDK, and Processor Pack for Visual C 6.0 too.

But after passing many error in compiling, building its dependencies, I come to the last component: the main program.

In the "stdafx.h" file, it includes many header, but the important is:

<br />
#include <vector><br />
#include <string><br />
<br />
using namespace std;<br />
<br />


and VC say error when compiling the first file stdafx.cpp:

<br />
<br />
--------------------Configuration: DScaler - Win32 Release--------------------<br />
Compiling...<br />
StdAfx.cpp<br />
D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream(557) : error C2059: syntax error : 'catch'<br />
D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream(557) : error C2143: syntax error : missing ';' before '{'<br />
D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream(559) : error C2712: Cannot use __try in functions that require object unwinding<br />
D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream(578) : error C2059: syntax error : 'catch'<br />
D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream(578) : error C2143: syntax error : missing ';' before '{'<br />
Error executing cl.exe.<br />
<br />
DScaler.exe - 5 error(s), 0 warning(s)<br />
<br />



If I comment #include <string>, I can pass this file (remember it is stdafx.cpp), but I will get many many other errors in next files.

So please help me to fix this error!

PS. I download DScaler from sourceforge.net. Thank you very much!
GeneralRe: #include &lt;string&gt; and errors... help me fix Pin
Christian Graus29-Mar-04 17:46
protectorChristian Graus29-Mar-04 17:46 
GeneralRe: #include &lt;string&gt; and errors... help me fix Pin
HuuQuynh29-Mar-04 19:43
HuuQuynh29-Mar-04 19:43 
GeneralRe: #include &lt;string&gt; and errors... help me fix Pin
Roger Allen30-Mar-04 0:38
Roger Allen30-Mar-04 0:38 
GeneralRe: #include &lt;string&gt; and errors... help me fix Pin
HuuQuynh11-Apr-04 21:48
HuuQuynh11-Apr-04 21:48 
GeneralExporting Dialogs Pin
axid3j1al29-Mar-04 17:02
axid3j1al29-Mar-04 17:02 
GeneralRe: Exporting Dialogs Pin
Christian Graus29-Mar-04 17:47
protectorChristian Graus29-Mar-04 17:47 
GeneralModalLess Dialog Pin
asv29-Mar-04 16:49
asv29-Mar-04 16:49 
GeneralRe: ModalLess Dialog Pin
Christian Graus29-Mar-04 17:48
protectorChristian Graus29-Mar-04 17:48 
GeneralRe: ModalLess Dialog Pin
22491729-Mar-04 18:31
22491729-Mar-04 18:31 
GeneralRe: ModalLess Dialog Pin
David Crow30-Mar-04 4:18
David Crow30-Mar-04 4:18 
GeneralRe: ModalLess Dialog Pin
asv30-Mar-04 17:04
asv30-Mar-04 17:04 
GeneralRe: ModalLess Dialog Pin
David Crow31-Mar-04 2:03
David Crow31-Mar-04 2:03 
Generalfile stream help pleaseeee Pin
strik29-Mar-04 16:37
strik29-Mar-04 16:37 
GeneralRe: file stream help pleaseeee Pin
Antti Keskinen29-Mar-04 18:50
Antti Keskinen29-Mar-04 18:50 
GeneralRe: file stream help pleaseeee Pin
strik29-Mar-04 20:26
strik29-Mar-04 20:26 
GeneralRe: file stream help pleaseeee Pin
Robert A. T. Káldy29-Mar-04 22:41
Robert A. T. Káldy29-Mar-04 22:41 
GeneralRe: file stream help pleaseeee Pin
Antti Keskinen30-Mar-04 0:04
Antti Keskinen30-Mar-04 0:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.