[dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed?
Go Back  Xtreme Visual Basic Talk > > > [dev C++] - why the string isn't showed?


Reply
 
Thread Tools Display Modes
  #1  
Old 06-06-2013, 10:13 AM
Cambalinho_83's Avatar
Cambalinho_83 Cambalinho_83 is offline
Senior Contributor
 
Join Date: Feb 2008
Location: somewhere in space
Posts: 1,296
Default [dev C++] - why the string isn't showed?


Code:
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <iostream>
using namespace std;
int main()
{
   cout << "hello\n" ;
getch();
return 0;
}
why the string isn't showed?
Reply With Quote
  #2  
Old 06-06-2013, 11:20 AM
OnErr0r's Avatar
OnErr0r[dev C++] - why the string isn't showed? OnErr0r is offline
Obsessive OPtimizer

Administrator
* Guru *
 
Join Date: Jun 2002
Location: Debug Window
Posts: 13,773
Default

The question you wish to pose is: "Why isn't the string shown?"

The string is indeed shown. At least here it is with vs.net.

What exactly do you see?

VS.NET is available for free.
__________________
Quis custodiet ipsos custodues.
Reply With Quote
  #3  
Old 06-07-2013, 01:31 PM
Cambalinho_83's Avatar
Cambalinho_83 Cambalinho_83 is offline
Senior Contributor
 
Join Date: Feb 2008
Location: somewhere in space
Posts: 1,296
Default

Quote:
Originally Posted by OnErr0r View Post
The question you wish to pose is: "Why isn't the string shown?"

The string is indeed shown. At least here it is with vs.net.

What exactly do you see?

VS.NET is available for free.
the problem was resolved
for compile C we use gcc.exe, but for C++ we use g++.exe
thanks for all
Reply With Quote
  #4  
Old 06-07-2013, 06:27 PM
OnErr0r's Avatar
OnErr0r[dev C++] - why the string isn't showed? OnErr0r is offline
Obsessive OPtimizer

Administrator
* Guru *
 
Join Date: Jun 2002
Location: Debug Window
Posts: 13,773
Default

For the sake of those who read this later give the solution.
__________________
Quis custodiet ipsos custodues.
Reply With Quote
  #5  
Old 06-08-2013, 03:11 AM
Cambalinho_83's Avatar
Cambalinho_83 Cambalinho_83 is offline
Senior Contributor
 
Join Date: Feb 2008
Location: somewhere in space
Posts: 1,296
Default

Quote:
Originally Posted by OnErr0r View Post
For the sake of those who read this later give the solution.
sorry
the problem was in code, but in string:
Code:
Private Sub mnuCompileCompile_Click()
    Dim strCompilerName As String
    Dim strCPPFonteName As String
    Dim strEXEFileName As String
    Call ConvertCode(rtbConvertedCode, rtbTextCode)
   
    rtbConvertedCode.SaveFile App.Path & "\test.cpp", rtfCFText
    strCompilerName = """" & App.Path & "\MinGW32\bin\g++.exe" & """"
    strEXEFileName = """" & App.Path & "\test" & """"
    strCPPFonteName = """" & App.Path & "\test.cpp" & """"
    
    ShellExecute Form1.hwnd, "open", strCompilerName, "-o " & strEXEFileName & " " & strCPPFonteName, App.Path & "\MinGW32\bin", 10
End Sub
now theres 2 importante things that i must speak

1 - instead use gcc.exe, now i use g++.exe. why? because gcc.exe compile C code and g++.exe compiler C\C++ code;

2 - why i use a doube quotes before and after the file name? because theres some diference between Command Line and Windows strings. with these tecnic we can use big strings(i think) and spaces between words without problems. these is VB6 code, but other languages must have their own ways

thanks for all
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
[dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed? [dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed?
 
[dev C++] - why the string isn't showed?
[dev C++] - why the string isn't showed?
 
-->