help compiling problems newbie here

help compiling problems newbie here

Post by tatzie003 on Sat Feb 09, 2013 2:43 am
([msg=73575]see help compiling problems newbie here[/msg])

as the title says heres the error
Image
tatzie003
New User
New User
 
Posts: 4
Joined: Sat Feb 09, 2013 2:41 am
Blog: View Blog (0)


Re: help compiling problems newbie here

Post by -Ninjex- on Sat Feb 09, 2013 2:56 am
([msg=73576]see Re: help compiling problems newbie here[/msg])

It would be helpful if you told us more on your issue, like what compiler you are using, the syntax you used while compiling if any, etc.

Maybe upload some code onto a pastebin for review.
If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you.⠠⠵
The absence of evidence is not evidence of absence.
I can explain it for you, but I can't understand it for you.
User avatar
-Ninjex-
Addict
Addict
 
Posts: 1199
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)


Re: help compiling problems newbie here

Post by tatzie003 on Sat Feb 09, 2013 3:07 am
([msg=73577]see Re: help compiling problems newbie here[/msg])

Code: Select all
#pragma once

namespace DNS {

   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;

   /// <summary>
   /// Summary for Form1
   /// </summary>
   public ref class Form1 : public System::Windows::Forms::Form
   {
   public:
      Form1(void)
      {
         InitializeComponent();
         //
         //TODO: Add the constructor code here
         //
      }
tatzie003
New User
New User
 
Posts: 4
Joined: Sat Feb 09, 2013 2:41 am
Blog: View Blog (0)


Re: help compiling problems newbie here

Post by -Ninjex- on Sat Feb 09, 2013 5:05 am
([msg=73578]see Re: help compiling problems newbie here[/msg])

tatzie003 wrote:
Code: Select all
#pragma once

namespace DNS {

   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;

   /// <summary>
   /// Summary for Form1
   /// </summary>
   public ref class Form1 : public System::Windows::Forms::Form
   {
   public:
      Form1(void)
      {
         InitializeComponent();
         //
         //TODO: Add the constructor code here
         //
      }

What are you trying to do, create a namespace? It looks like a really bad attempt at doing so...
You could provide some information...

What are you trying to do in the code above?
What do you use to compile your code?
If you are making a namespace, are you using headers?
etc..

I seriously can't help you based on the information provided above.
If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you.⠠⠵
The absence of evidence is not evidence of absence.
I can explain it for you, but I can't understand it for you.
User avatar
-Ninjex-
Addict
Addict
 
Posts: 1199
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)


Re: help compiling problems newbie here

Post by tatzie003 on Sat Feb 09, 2013 5:37 am
([msg=73579]see Re: help compiling problems newbie here[/msg])

-Ninjex- wrote:
tatzie003 wrote:
Code: Select all
#pragma once

namespace DNS {

   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;

   /// <summary>
   /// Summary for Form1
   /// </summary>
   public ref class Form1 : public System::Windows::Forms::Form
   {
   public:
      Form1(void)
      {
         InitializeComponent();
         //
         //TODO: Add the constructor code here
         //
      }

What are you trying to do, create a namespace? It looks like a really bad attempt at doing so...
You could provide some information...

What are you trying to do in the code above?
What do you use to compile your code?
If you are making a namespace, are you using headers?
etc..

I seriously can't help you based on the information provided above.


sry bro been busy XD
i used Visual Studio 2k12 im compiling a trainer theres a conflict within the System::ComponentModel
tatzie003
New User
New User
 
Posts: 4
Joined: Sat Feb 09, 2013 2:41 am
Blog: View Blog (0)


Re: help compiling problems newbie here

Post by -Ninjex- on Sat Feb 09, 2013 12:45 pm
([msg=73595]see Re: help compiling problems newbie here[/msg])

What program are you using to compile your code?...
If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you.⠠⠵
The absence of evidence is not evidence of absence.
I can explain it for you, but I can't understand it for you.
User avatar
-Ninjex-
Addict
Addict
 
Posts: 1199
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)


Re: help compiling problems newbie here

Post by LoGiCaL__ on Sat Feb 09, 2013 1:38 pm
([msg=73598]see Re: help compiling problems newbie here[/msg])

Is that all the code?
User avatar
LoGiCaL__
Addict
Addict
 
Posts: 1060
Joined: Sun May 30, 2010 12:33 pm
Blog: View Blog (0)


Re: help compiling problems newbie here

Post by tatzie003 on Sat Feb 09, 2013 9:07 pm
([msg=73606]see Re: help compiling problems newbie here[/msg])

uhh.. no should i post the whole code? its in 4 headers though or just the form1? :D
btw im using visual c++ to compile
tatzie003
New User
New User
 
Posts: 4
Joined: Sat Feb 09, 2013 2:41 am
Blog: View Blog (0)


Re: help compiling problems newbie here

Post by -Ninjex- on Sat Feb 09, 2013 10:11 pm
([msg=73607]see Re: help compiling problems newbie here[/msg])

Yes, paste the different header files in different code blocks though. It will make it easier for us to help you.

Also, in the code above it looks like you are missing two curly brackets "}"
If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you.⠠⠵
The absence of evidence is not evidence of absence.
I can explain it for you, but I can't understand it for you.
User avatar
-Ninjex-
Addict
Addict
 
Posts: 1199
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)



Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests