Click here to Skip to main content
15,885,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Difference between MS C++ and "normal" C++? Pin
Megidolaon23-Feb-09 0:06
Megidolaon23-Feb-09 0:06 
GeneralRe: Difference between MS C++ and "normal" C++? Pin
CPallini23-Feb-09 0:16
mveCPallini23-Feb-09 0:16 
GeneralRe: Difference between MS C++ and "normal" C++? Pin
tyr200023-Feb-09 1:02
tyr200023-Feb-09 1:02 
GeneralRe: Difference between MS C++ and "normal" C++? Pin
kamalesh8223-Feb-09 1:27
kamalesh8223-Feb-09 1:27 
GeneralRe: Difference between MS C++ and "normal" C++? Pin
grassrootkit23-Feb-09 1:39
grassrootkit23-Feb-09 1:39 
GeneralRe: Difference between MS C++ and "normal" C++? Pin
toxcct23-Feb-09 1:44
toxcct23-Feb-09 1:44 
AnswerRe: Difference between MS C++ and "normal" C++? Pin
grassrootkit23-Feb-09 1:14
grassrootkit23-Feb-09 1:14 
AnswerRe: Difference between MS C++ and "normal" C++? Pin
toxcct23-Feb-09 1:42
toxcct23-Feb-09 1:42 
you are obviously totally confused.

recent Microsoft C++ Compiler (above version 2003) are significantly closer to the standard C++ than previous ones.

so you can write a totally standard C++ Application (say, under vi or notepad, why not), and compile it with any compiler. gcc would handle it, and VC++ as well.

what makes you becoming non-standard C++ is by using compiler-specific commands, or non-portable libraries (such as Win32, MFC)...

but remember that VC++ only provides extensions to the standard, so anything standard should work with a Visual C++ compiler. If it doesn't, you're probably doing it wrong (show your code about cin/cout/#include)...!


However, as an example, the following is 100% standard C++:
<font color="blue">#include</font> <iostream>
<font color="blue">#include</font> <string>
 
<font color="blue">void</font> main(<font color="blue">void</font>) {
    std::string strName = <font color="gray">""</font>;
 
    <font color="green">// Getting the User Name</font>
    std::cout << <font color="gray">"your name: "</font>;
    std::cin >> strName;
 
    <font color="green">// Saying Hi</font>
    std::cout << <font color="gray">"Hello "</font> << strName << <font color="gray">" !"</font> << endl;
}



modified on Monday, February 23, 2009 8:00 AM

AnswerRe: Difference between MS C++ and "normal" C++? Pin
Megidolaon23-Feb-09 2:46
Megidolaon23-Feb-09 2:46 
GeneralRe: Difference between MS C++ and "normal" C++? Pin
toxcct23-Feb-09 5:20
toxcct23-Feb-09 5:20 
QuestionPLease help me "OnCtlColor" not working in property sheet Pin
Le@rner22-Feb-09 22:25
Le@rner22-Feb-09 22:25 
AnswerRe: PLease help me "OnCtlColor" not working in property sheet Pin
Iain Clarke, Warrior Programmer23-Feb-09 4:33
Iain Clarke, Warrior Programmer23-Feb-09 4:33 
QuestionGet Removal Device ID Pin
MsmVc22-Feb-09 22:11
MsmVc22-Feb-09 22:11 
AnswerRe: Get Removal Device ID Pin
«_Superman_»22-Feb-09 22:35
professional«_Superman_»22-Feb-09 22:35 
GeneralRe: Get Removal Device ID Pin
MsmVc23-Feb-09 0:46
MsmVc23-Feb-09 0:46 
Questionhow to draw transparent rectangle in MFC Pin
saksp22-Feb-09 21:42
saksp22-Feb-09 21:42 
AnswerRe: how to draw transparent rectangle in MFC Pin
Code-o-mat22-Feb-09 22:17
Code-o-mat22-Feb-09 22:17 
AnswerRe: how to draw transparent rectangle in MFC Pin
Stuart Dootson22-Feb-09 22:21
professionalStuart Dootson22-Feb-09 22:21 
AnswerRe: how to draw transparent rectangle in MFC Pin
tyr200023-Feb-09 1:05
tyr200023-Feb-09 1:05 
AnswerRe: how to draw transparent rectangle in MFC Pin
mohini19893-Mar-09 20:48
mohini19893-Mar-09 20:48 
QuestionUse CreateProcess to execute a VBS file Pin
Erik22-Feb-09 20:17
Erik22-Feb-09 20:17 
AnswerRe: Use CreateProcess to execute a VBS file Pin
«_Superman_»22-Feb-09 21:15
professional«_Superman_»22-Feb-09 21:15 
AnswerRe: Use CreateProcess to execute a VBS file Pin
Stuart Dootson22-Feb-09 21:44
professionalStuart Dootson22-Feb-09 21:44 
GeneralRe: Use CreateProcess to execute a VBS file Pin
CPallini22-Feb-09 22:15
mveCPallini22-Feb-09 22:15 
GeneralRe: Use CreateProcess to execute a VBS file Pin
Erik22-Feb-09 23:45
Erik22-Feb-09 23:45 

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.