Solved [H E L P] Small annoying error...

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Derpman

Newbie
Mar 9, 2013
4
152
0
So Ive been trying to make a interface for my dll.
And when i type any line starting with:"Application::*rest of the code*" i get a error saying 'name followed by :: must be a class or namespace name".
Please someone respond quickly, this is a reall pain in the ass since i dont know how to fix it.
Thanks!
 

Syperus

RTFM
Meme Tier VIP
Dank Tier Donator
Oct 29, 2012
432
2,638
7
Add these along with the forms call
C++:
#using <System.dll>
#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>

using namespace System;
using namespace System::Drawing;
 

Chuck E

Coder
Dank Tier Donator
Nobleman
Jan 2, 2013
122
588
1
Hey,

It could be that you are missing the using directive: System.Windows.Forms
- using namespace System::Windows::Forms;

If it's not that, then could you list your code, or at least the function with the offending instruction.
 
Last edited:

Derpman

Newbie
Mar 9, 2013
4
152
0
"#include "Intahface.h"


using namespace DllAc;


int UIMain()
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);

Intahface^ NewUi = gcnew Intahface();
Application::Run(NewUi);
return 1;



}
"
Heres the code that I wrote. Every line that starts with application:: has that error. :/ please be a bit more specific, since im not that good of a coder.
 

Chuck E

Coder
Dank Tier Donator
Nobleman
Jan 2, 2013
122
588
1
You need to add
C++:
using namespace System::Windows::Forms;

Like so:

C++:
[COLOR=#666666]#include "Intahface.h"[/COLOR]

using namespace System::Windows::Forms;
[COLOR=#666666]using namespace DllAc;[/COLOR]


[COLOR=#666666]int UIMain()[/COLOR]
[COLOR=#666666]{[/COLOR]
[COLOR=#666666]Application::EnableVisualStyles();[/COLOR]
[COLOR=#666666]Application::SetCompatibleTextRenderingDefault(fal se);[/COLOR]

[COLOR=#666666]Intahface^ NewUi = gcnew Intahface();[/COLOR]
[COLOR=#666666]Application::Run(NewUi);[/COLOR]
[COLOR=#666666]return 1;[/COLOR]



[COLOR=#666666]}[/COLOR]
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods