Click here to Skip to main content
15,903,033 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionShare permissions Pin
kelprinc23-Jan-06 21:10
kelprinc23-Jan-06 21:10 
QuestionConvert Binary File to Text File in C++ Pin
PremalathaP23-Jan-06 19:12
PremalathaP23-Jan-06 19:12 
AnswerRe: Convert Binary File to Text File in C++ Pin
Cedric Moonen23-Jan-06 20:54
Cedric Moonen23-Jan-06 20:54 
AnswerRe: Convert Binary File to Text File in C++ Pin
gecool30-Jan-06 23:44
gecool30-Jan-06 23:44 
Questionsome help with a simple project Pin
vertig073023-Jan-06 6:16
vertig073023-Jan-06 6:16 
QuestionSet default namespace Pin
Ariston Darmayuda23-Jan-06 3:58
Ariston Darmayuda23-Jan-06 3:58 
AnswerRe: Set default namespace Pin
Michael Dunn23-Jan-06 7:40
sitebuilderMichael Dunn23-Jan-06 7:40 
AnswerRe: Set default namespace Pin
Saksida Bojan23-Jan-06 11:01
Saksida Bojan23-Jan-06 11:01 
Yes. Copy And Paste.

you can name class like:

NSA_class1, NSA_NSB_class2, NSA_NSC_class3.

If you are making more simple program, then one namespace is more than enough.

What kind of program are you making, that you need so much namespace nesting?

I had created a smoll project with a name test.

//test.h
#pragma once

namespace NSA
{
	namespace NSB
	{
		public ref class test1{};
	}
	namespace NSC
	{
		ref class test2{};
		ref class test3{};
	}
}


// tes.cpp : main project file.
#include "stdafx.h"
#include "test.h" // This is where is my namepsace nested classes
using namespace NSA; //this need to be after include of our class,
using namespace NSA::NSB; //and need to be before of include statment.
using namespace NSA::NSC; //any file included afther this will use same namespace

#include "Form1.h"
using namespace tes;

[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
	// Enabling Windows XP visual effects before any controls are created
	Application::EnableVisualStyles();
	Application::SetCompatibleTextRenderingDefault(false); 

	// Create the main window and run it
	Application::Run(gcnew Form1());
	return 0;
}


//form.h
private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) 
{
	 test1 ^t1 = gcnew test1;
	 test2 ^t2 = gcnew test2;
	 test3 ^t3 = gcnew test3;
}

AnswerRe: Set default namespace Pin
Ariston Darmayuda23-Jan-06 17:06
Ariston Darmayuda23-Jan-06 17:06 
GeneralRe: Set default namespace Pin
Saksida Bojan23-Jan-06 20:49
Saksida Bojan23-Jan-06 20:49 
QuestionManaged extensions on the LAN? Pin
IlanTal23-Jan-06 1:20
IlanTal23-Jan-06 1:20 
AnswerRe: Managed extensions on the LAN? Pin
S Douglas24-Jan-06 22:11
professionalS Douglas24-Jan-06 22:11 
GeneralRe: Managed extensions on the LAN? Pin
IlanTal24-Jan-06 22:24
IlanTal24-Jan-06 22:24 
GeneralRe: Managed extensions on the LAN? Pin
S Douglas24-Jan-06 22:34
professionalS Douglas24-Jan-06 22:34 
AnswerRe: Managed extensions on the LAN? Pin
S Douglas24-Jan-06 22:16
professionalS Douglas24-Jan-06 22:16 
GeneralRe: Managed extensions on the LAN? Pin
IlanTal24-Jan-06 22:52
IlanTal24-Jan-06 22:52 
GeneralRe: Managed extensions on the LAN? Pin
S Douglas24-Jan-06 23:04
professionalS Douglas24-Jan-06 23:04 
QuestionCompiled help via the LAN? Pin
IlanTal23-Jan-06 1:19
IlanTal23-Jan-06 1:19 
AnswerRe: Compiled help via the LAN? Pin
S Douglas24-Jan-06 20:28
professionalS Douglas24-Jan-06 20:28 
GeneralRe: Compiled help via the LAN? Pin
IlanTal24-Jan-06 21:10
IlanTal24-Jan-06 21:10 
GeneralRe: Compiled help via the LAN? Pin
S Douglas24-Jan-06 21:38
professionalS Douglas24-Jan-06 21:38 
GeneralRe: Compiled help via the LAN? Pin
IlanTal24-Jan-06 21:58
IlanTal24-Jan-06 21:58 
GeneralRe: Compiled help via the LAN? Pin
S Douglas24-Jan-06 22:05
professionalS Douglas24-Jan-06 22:05 
GeneralRe: Compiled help via the LAN? Pin
IlanTal24-Jan-06 22:17
IlanTal24-Jan-06 22:17 
GeneralRe: Compiled help via the LAN? Pin
S Douglas24-Jan-06 22:30
professionalS Douglas24-Jan-06 22:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.