Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to retrieve image with Html Pin
led mike6-Jul-06 6:26
led mike6-Jul-06 6:26 
GeneralRe: How to retrieve image with Html Pin
Bluebamboo6-Jul-06 6:31
Bluebamboo6-Jul-06 6:31 
Questiontiff file reading Pin
roopeshgangwar6-Jul-06 4:16
roopeshgangwar6-Jul-06 4:16 
AnswerRe: tiff file reading Pin
rubben6-Jul-06 5:17
rubben6-Jul-06 5:17 
GeneralRe: tiff file reading Pin
roopeshgangwar6-Jul-06 9:19
roopeshgangwar6-Jul-06 9:19 
QuestionTreeview [modified] Pin
travellermania6-Jul-06 3:49
travellermania6-Jul-06 3:49 
AnswerRe: Treeview Pin
Nader Elshehabi6-Jul-06 5:18
Nader Elshehabi6-Jul-06 5:18 
Questionarray exporting in c++ dll to c# client Pin
Tugberk_Kara6-Jul-06 3:21
Tugberk_Kara6-Jul-06 3:21 
I have a function in c++ returning array as:


int * funcArg(int *a ) {
int * DLLArg;
DLLArg=a;

return DLLArg;
};


I exported this function in dll( I checked with dumpbin.exe)

I declared this function in c# client as:

[DllImport("DenemeNonMfcDll.dll")]
public extern static int [] funcArg(int [] a);


And I called this function in c# client as:

int [] intArray;

intArray = new int[3] {0, 1, 2};


foreach (int num in funcArg(intArray))
{
System.Console.WriteLine(num.ToString());
}


But I got System.Runtime.InteropServices.MarshalDirectiveException and it says it can not marshal return value.

What should I do?
URGENT HELP!!!
AnswerRe: array exporting in c++ dll to c# client Pin
rubben6-Jul-06 5:06
rubben6-Jul-06 5:06 
GeneralRe: array exporting in c++ dll to c# client Pin
Tugberk_Kara6-Jul-06 5:36
Tugberk_Kara6-Jul-06 5:36 
QuestionDisplaying a label over other controls Pin
anderde6-Jul-06 3:20
anderde6-Jul-06 3:20 
AnswerRe: Displaying a label over other controls Pin
Not Active6-Jul-06 3:30
mentorNot Active6-Jul-06 3:30 
GeneralRe: Displaying a label over other controls Pin
anderde6-Jul-06 3:44
anderde6-Jul-06 3:44 
GeneralRe: Displaying a label over other controls Pin
Not Active6-Jul-06 3:59
mentorNot Active6-Jul-06 3:59 
GeneralRe: Displaying a label over other controls Pin
anderde6-Jul-06 4:31
anderde6-Jul-06 4:31 
GeneralRe: Displaying a label over other controls Pin
anderde7-Jul-06 6:10
anderde7-Jul-06 6:10 
QuestionEnterprise Library January 2006 Pin
Brendan Vogt6-Jul-06 2:41
Brendan Vogt6-Jul-06 2:41 
AnswerRe: Enterprise Library January 2006 Pin
Not Active6-Jul-06 2:54
mentorNot Active6-Jul-06 2:54 
GeneralRe: Enterprise Library January 2006 Pin
Brendan Vogt6-Jul-06 3:03
Brendan Vogt6-Jul-06 3:03 
GeneralRe: Enterprise Library January 2006 Pin
Not Active6-Jul-06 3:15
mentorNot Active6-Jul-06 3:15 
QuestionRe: Enterprise Library January 2006 Pin
Brendan Vogt6-Jul-06 3:44
Brendan Vogt6-Jul-06 3:44 
AnswerRe: Enterprise Library January 2006 Pin
Not Active6-Jul-06 4:05
mentorNot Active6-Jul-06 4:05 
GeneralRe: Enterprise Library January 2006 Pin
Brendan Vogt6-Jul-06 4:42
Brendan Vogt6-Jul-06 4:42 
QuestionW MI Pin
Dayal_Sunil6-Jul-06 2:25
Dayal_Sunil6-Jul-06 2:25 
QuestionPrinting a Window Form Pin
Vipin Venugopal6-Jul-06 2:16
Vipin Venugopal6-Jul-06 2:16 

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.