Click here to Skip to main content
15,915,764 members
Home / Discussions / C#
   

C#

 
GeneralRe: file open check Pin
V.27-Jun-05 1:33
professionalV.27-Jun-05 1:33 
GeneralRe: file open check Pin
mav.northwind27-Jun-05 1:51
mav.northwind27-Jun-05 1:51 
GeneralRe: file open check Pin
syseca_challenge27-Jun-05 1:55
syseca_challenge27-Jun-05 1:55 
GeneralRe: file open check Pin
mav.northwind27-Jun-05 1:56
mav.northwind27-Jun-05 1:56 
GeneralRe: file open check Pin
syseca_challenge27-Jun-05 2:40
syseca_challenge27-Jun-05 2:40 
General.net 2005 importing!!!! Pin
innocent7326-Jun-05 20:49
innocent7326-Jun-05 20:49 
GeneralRe: .net 2005 importing!!!! Pin
Dave Kreskowiak27-Jun-05 9:24
mveDave Kreskowiak27-Jun-05 9:24 
GeneralCalling C# from Managed C++ Pin
wdli26-Jun-05 19:25
wdli26-Jun-05 19:25 
Hello Everyone:

I have posted the same question in managed C++ board.

This is my problem:

I have C# project compiled as a DLL. The C# class is defined as:

public Cs_Class
{
String name;
public Cs_Class(String n)
{ name = n; }

....
}

I have another MC++ project that uses the DLL. The MC++ class is defined as:

public Cpp_Class
{
....
void Test(String* testStr)
{
//Create the c# class
//
Cs_Class* c = new Cs_Class(testStr);
}

}


The compilation/linking was fine. I then encountered a run-time exception:

System.MissingMethodException: Method not found: Cs_Class..ctor(System.String)...

Strangly enough, if I took out the String parameter in Cs_Class constructor and not pass in String* in MC++ class when constructing the Cs_Class object, then everything was fine.

Why??

Thanks in advance.

David


GeneralRe: Calling C# from Managed C++ Pin
Fahaad Yogalivia26-Jun-05 20:58
sussFahaad Yogalivia26-Jun-05 20:58 
GeneralRe: Calling C# from Managed C++ Pin
mav.northwind27-Jun-05 2:48
mav.northwind27-Jun-05 2:48 
GeneralRe: Calling C# from Managed C++ Pin
wdli27-Jun-05 8:30
wdli27-Jun-05 8:30 
Generalcompile a C# class file from a procees in code Pin
dilsudharaka26-Jun-05 18:27
dilsudharaka26-Jun-05 18:27 
GeneralRe: compile a C# class file from a procees in code Pin
Christian Graus26-Jun-05 18:36
protectorChristian Graus26-Jun-05 18:36 
GeneralRe: compile a C# class file from a procees in code Pin
S. Senthil Kumar26-Jun-05 19:19
S. Senthil Kumar26-Jun-05 19:19 
GeneralRe: compile a C# class file from a procees in code Pin
mav.northwind26-Jun-05 20:39
mav.northwind26-Jun-05 20:39 
GeneralVS 2005 beta 2 Pin
Anonymous26-Jun-05 15:32
Anonymous26-Jun-05 15:32 
GeneralRe: VS 2005 beta 2 Pin
Christian Graus26-Jun-05 15:58
protectorChristian Graus26-Jun-05 15:58 
GeneralRe: VS 2005 beta 2 Pin
IamJunk27-Jun-05 1:22
IamJunk27-Jun-05 1:22 
Generallisten everybody Pin
snouto26-Jun-05 14:38
snouto26-Jun-05 14:38 
GeneralRe: listen everybody Pin
Corinna John26-Jun-05 20:35
Corinna John26-Jun-05 20:35 
QuestionHow can i understand the file i've load is a correct PNG file? Pin
Sasuko26-Jun-05 13:08
Sasuko26-Jun-05 13:08 
AnswerRe: How can i understand the file i've load is a correct PNG file? Pin
Christian Graus26-Jun-05 15:59
protectorChristian Graus26-Jun-05 15:59 
GeneralRe: How can i understand the file i've load is a correct PNG file? Pin
Anonymous26-Jun-05 21:53
Anonymous26-Jun-05 21:53 
GeneralRe: How can i understand the file i've load is a correct PNG file? Pin
Christian Graus27-Jun-05 13:34
protectorChristian Graus27-Jun-05 13:34 
GeneralVersion Information Pin
Mr. Naveed Butt26-Jun-05 9:51
professionalMr. Naveed Butt26-Jun-05 9:51 

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.