Click here to Skip to main content
16,005,316 members
Home / Discussions / C#
   

C#

 
GeneralNot tested yet but currently in development. BTW: Not 100% accurate by design. Pin
Uwe Keim10-May-05 17:50
sitebuilderUwe Keim10-May-05 17:50 
Generaldrag and drop Pin
Mridang Agarwalla10-May-05 6:39
Mridang Agarwalla10-May-05 6:39 
GeneralRe: drag and drop Pin
Judah Gabriel Himango10-May-05 7:54
sponsorJudah Gabriel Himango10-May-05 7:54 
GeneralFinding out if XP is SP1 or SP2 Pin
easander10-May-05 4:45
easander10-May-05 4:45 
GeneralRe: Finding out if XP is SP1 or SP2 Pin
Dave Kreskowiak10-May-05 4:52
mveDave Kreskowiak10-May-05 4:52 
GeneralRe: Finding out if XP is SP1 or SP2 Pin
Judah Gabriel Himango10-May-05 4:59
sponsorJudah Gabriel Himango10-May-05 4:59 
GeneralRe: Finding out if XP is SP1 or SP2 Pin
easander10-May-05 5:24
easander10-May-05 5:24 
GeneralMix C++ and C# Pin
Drusemark10-May-05 3:02
Drusemark10-May-05 3:02 
I understood you could mix languages. I created 1 solution with 2 projects with the following code:
C# routine:
using System;<br />
<br />
namespace CSServer {<br />
	class CSServer {<br />
				<br />
		#region Application Start<br />
<br />
		static public void Enter_CSServer() <br />
		{<br />
			int tmp;<br />
			Console.WriteLine("Hello World (C#)");<br />
			Do_Call_Back("Hello from the CS side", &tmp);<br />
			Console.WriteLine("Value={0}",tmp);<br />
		} /* Enter_CSServer */<br />
		#endregion<br />
		<br />
	} /* CSServer */<br />
} /* CSServer */

CPP Routine: (startup project)
// This is the main project file for VC++ application project <br />
// generated using an Application Wizard.<br />
<br />
#include "stdafx.h"<br />
<br />
#using <mscorlib.dll><br />
<br />
using namespace System;<br />
<br />
<br />
int _tmain()<br />
{<br />
    // TODO: Please replace the sample code below with your own.<br />
    Console::WriteLine(S"Hello World(CPP)");<br />
<br />
	Enter_CSServer();<br />
<br />
	Console::WriteLine(S"Goodbye Cruel World (CPP)");<br />
	return 0;<br />
}<br />
int Do_Call_Back(char *str, int *value)<br />
{<br />
	Console::WriteLine(str);<br />
	*value = 1;<br />
	return(1);<br />
}
I get routine-not-found on Enter_CSServer and Do_Call_Back.

The real problem is much bigger but this gets the essance.


Scott Krusemark
330-966-1231
GeneralRe: Mix C++ and C# Pin
Colin Angus Mackay10-May-05 4:03
Colin Angus Mackay10-May-05 4:03 
GeneralRe: Mix C++ and C# Pin
Drusemark10-May-05 7:16
Drusemark10-May-05 7:16 
GeneralRe: Mix C++ and C# Pin
mav.northwind10-May-05 19:59
mav.northwind10-May-05 19:59 
GeneralRe: Mix C++ and C# Pin
Drusemark17-May-05 4:25
Drusemark17-May-05 4:25 
GeneralRe: Mix C++ and C# Pin
mav.northwind17-May-05 4:42
mav.northwind17-May-05 4:42 
GeneralRe: Mix C++ and C# Pin
Drusemark17-May-05 5:32
Drusemark17-May-05 5:32 
QuestionHow to modify the ..... Pin
Shankar Balaji10-May-05 3:01
Shankar Balaji10-May-05 3:01 
AnswerRe: How to modify the ..... Pin
MoustafaS10-May-05 5:30
MoustafaS10-May-05 5:30 
QuestionHow to Rotate Controls Pin
RajeshGuptha10-May-05 2:53
RajeshGuptha10-May-05 2:53 
GeneralSearching a particular node in XML Pin
Shankar Balaji10-May-05 1:45
Shankar Balaji10-May-05 1:45 
GeneralRe: Searching a particular node in XML Pin
Polis Pilavas10-May-05 2:42
Polis Pilavas10-May-05 2:42 
GeneralRe: Searching a particular node in XML Pin
Shankar Balaji10-May-05 2:58
Shankar Balaji10-May-05 2:58 
GeneralRe: Searching a particular node in XML Pin
Polis Pilavas10-May-05 3:12
Polis Pilavas10-May-05 3:12 
GeneralRe: Searching a particular node in XML Pin
Shankar Balaji10-May-05 3:22
Shankar Balaji10-May-05 3:22 
GeneralRe: Searching a particular node in XML Pin
Polis Pilavas10-May-05 3:24
Polis Pilavas10-May-05 3:24 
GeneralRe: Searching a particular node in XML Pin
Shankar Balaji10-May-05 3:34
Shankar Balaji10-May-05 3:34 
GeneralRe: Searching a particular node in XML Pin
Polis Pilavas10-May-05 3:44
Polis Pilavas10-May-05 3:44 

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.