Register for your free account! | Forgot your password?

You last visited: Today at 14:26

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

Advertisement



Namespace problem

Discussion on Namespace problem within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Paristôn's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 101
Received Thanks: 51
Namespace problem

I got an annoying problem, that ..
when i add a folder to a specific path for example (New is a folder inside Network folder)

so that i should write :

using Conquer_Online_Server.Network.New;

The problem is that when i compile i got this error.

The type or namespace name 'New' doesnot exist in the namespace 'Conquer_Online_Server.Network' (are you missing an assembly reference?).


well, i googled alot , i got 0 solutions lol
changed the FrameWork version to 4.5

also i tried to add references to ma project but nothing could help.


In fact, that makes another problems that the program cannot see the codes inside the folder "New" so i got about 120 error .

so, if anybody faced this problem before and can help, please go for it.

thanks
Paristôn is offline  
Old 10/10/2014, 07:52   #2
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
Namespaces are not by folder names, it's just something Visual Studio has as a setting, where it creates the namespace automatically from the folder name. If the setting is off you have to type the namespace by yourself, so check all your .cs files in the folder and see if they match the namespace.
Super Aids is offline  
Old 10/10/2014, 17:32   #3
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 14
You just need to add a class or something else to this folder to get it's namespace work as you looking for ..
abdeen is offline  
Reply


Similar Threads Similar Threads
Warum man using namespace std; nicht verwenden sollte
10/01/2014 - C/C++ - 25 Replies
Guten Abend Dev's! Ich habe bei meiner Socketverbindung ein kleines Problem und zwar kriege ich bei der bind Funktion seit neusten den Fehler: C2440, ich weiß leider nicht, was ich verändert habe, was den Fehler auslösen könnte. Aufgrunddessen muss ich euch leider damit belästigen :) Quellcode(nur das wichtigste, der Rest wurde entfernt): hastebin - Zeile 46 Fehler: C2440 error C2440: '=': 'std::_Bind<_Forced,_Ret,_Fun,_V0_t,_V1_t,_V2_t ,_V3_t,_V4_t,_V5_t,<unnamed-symbol>>' kann...
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?!
07/28/2011 - Metin2 Private Server - 10 Replies
Also wie schon gesagt meins Server spinnt wodurch kiks usw. kommen :( ich lade euch die Screens in den Anhang, mit der Hoffnung, dass ihr mir helfen könnt :) wäre echt sehr nice :)



All times are GMT +2. The time now is 14:26.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.