Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 20:37

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP] Compiling problems

Discussion on [HELP] Compiling problems within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
noentre0093's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 202
Received Thanks: 83
[HELP] Compiling problems

ok so im having this problems compiling

Code:
using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace System::IO;
Code:
void Main(void)
{
    Application::EnableVisualStyles();
    Application::SetCompatibleTextRenderingDefault(false);
    Application::Run(gcnew Form1);
    Application::Exit();
}
the error is



any solutions?
noentre0093 is offline  
Old 02/09/2013, 10:54   #2
 
TIMΣ™'s Avatar
 
elite*gold: 23
Join Date: Oct 2010
Posts: 2,986
Received Thanks: 357
The compiler have problems with your using namespace's. First it show you that ComponentModel is not a part of System and that there is not a namespace with that name. The other errors are similar to this error. So forget the namespace's and write your code without them. The other possibility is that you try to change your namespaces. But you can use using namespace System; , because it accept it.

Edit: Ironically it accepts using namespace System::IO; too

Edit²: Try this:
Code:
using System::ComponentModel;
using System::Collections;
using System::Windows::Forms;
using System::Data;
using System::Drawing;
using System::IO;
Without using namespace System; ! But I am sure that this wouldn't work.
TIMΣ™ is offline  
Old 02/09/2013, 12:28   #3
 
Schlüsselbein's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 1,137
Received Thanks: 869
Not really on topic but why are you using C++/CLI? Theres almost no reason to use it. If you want o write managed code then C# is your choice. If you want to write unmanaged, use C++(0x). Even if you need to some unmanaged code in your C# program then you can always use p/invoke.
If you just want to have a GUI for your program but dont want to give up the efficiency of pure C++, have a look at one of the great GUI-tookits like Qt, wxWidgets, WTL, Fox-toolkit, FLTK etc.
Schlüsselbein is offline  
Old 02/09/2013, 14:03   #4
 
ernilos's Avatar
 
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
I only need say c++ .net sucks.
You have added the .net libs?
ernilos is offline  
Reply


Similar Threads Similar Threads
compiling?HELP!!!
02/05/2013 - WoW Private Server - 7 Replies
hi ich brauche unbedingt hilfe! was genau ist compiling? wie ist das auf wow privat server anwendbar? geht es besser als mit einem repack? was genau ist beim compiling dann besser? und wie stell ich einen wow server online? ._. ich möchte nämlich einen 5.1 wow server erstellen und deshalb suche ich eine schnelle antwort o.O danke
Need help for Compiling!
12/16/2012 - Flyff Private Server - 0 Replies
I have Visual Studio Professional C++ 6.0 and all options here are so confusing I can't seem to Compile the files. =/ Reply please add me on facebook: http://www.facebook.com/KimPacificador
resource udf problems with autoit compiling
07/16/2012 - AutoIt - 2 Replies
>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper. exe" /prod /in "C:\Users\tomas\Favorites\Source Codes\mystery cabal works\bot test.au3" +>15:09:22 Starting AutoIt3Wrapper v.2.1.0.33 Environment(Language:0409 Keyboard:00000452 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64) >Running AU3Check (1.54.22.0) from:C:\Program Files (x86)\AutoIt3 +>15:09:22 AU3Check ended.rc:0 >Running:(3.3.8.1):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe /in...
Css SDK Compiling
05/25/2012 - Counter-Strike - 0 Replies
Hey Leute :) Ich hab ein Problem und zwar: Ich wollte meine Surf Map endlich beenden. Nun Habe ich sie vorhin ganz normal problemlos Compilt :) Nun habe ich paar fehler gefunden und habe sie anschließend gefixt Nun wollte ich sie compilen und dann kam ne komische Meldung Ich wartete über 30 minuten und es passiert immer noch nix .. http://www.abload.de/img/unbenannt44ms9.png Vorhin ging alles ganznormal und jetzt dauert es EWIG!
Compiling CE
10/27/2007 - Kal Online - 2 Replies
.



All times are GMT +1. The time now is 20:37.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.