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

C#

 
QuestionMaximized child MDI form Pin
sinosoidal28-Mar-07 5:39
sinosoidal28-Mar-07 5:39 
Questiondisplaying images from a xml file Pin
diducmy28-Mar-07 5:35
diducmy28-Mar-07 5:35 
AnswerRe: displaying images from a xml file Pin
Martin#28-Mar-07 5:56
Martin#28-Mar-07 5:56 
QuestionXmlSerializer and CDATA Pin
theJazzyBrain28-Mar-07 5:15
theJazzyBrain28-Mar-07 5:15 
QuestionConverting a string to currency format Pin
lee.hallows28-Mar-07 5:09
lee.hallows28-Mar-07 5:09 
AnswerRe: Converting a string to currency format Pin
joon vh.28-Mar-07 5:17
joon vh.28-Mar-07 5:17 
QuestionUsing reference parameters when calling an exposed function from a DLL Pin
Dewald28-Mar-07 5:09
Dewald28-Mar-07 5:09 
AnswerRe: Using reference parameters when calling an exposed function from a DLL Pin
m@u28-Mar-07 5:29
m@u28-Mar-07 5:29 
Hi..

I don't know if i can help you on this because i'm not very experienced about PInvoke but just a few thoughts:

1. You have to possibility to Marshal Function Parameters in .Net so maybe the MarshalAs - Attribute could help you.
something like:
<br />
[DllImport("MyLibrary.dll", EntryPoint = "sendAPDU")]<br />
		public static extern int sendAPDU([MarshalAs(UnmanagedType.LPArray)] Byte[] TxAPDU, int TxLen, [MarshalAs(UnmanagedType.LPArray)]ref Byte[] RxAPDU, ref int RxLen);<br />

the MarshalAs Attribute can be found under System.Runtime.InteropServices

2. i don't know if this makes a difference in PInvoke but did you try to use out instead of ref for your output parameters?

greets
m@u
GeneralRe: Using reference parameters when calling an exposed function from a DLL Pin
Dewald28-Mar-07 23:39
Dewald28-Mar-07 23:39 
QuestionGuidance Automation Toolkit or CodeSmith? Pin
wojti28-Mar-07 5:03
wojti28-Mar-07 5:03 
Questioncalling function in parent form from child form Pin
Lordveralix28-Mar-07 4:13
Lordveralix28-Mar-07 4:13 
AnswerRe: calling function in parent form from child form Pin
Pete O'Hanlon28-Mar-07 4:22
mvePete O'Hanlon28-Mar-07 4:22 
GeneralRe: calling function in parent form from child form Pin
Lordveralix28-Mar-07 4:51
Lordveralix28-Mar-07 4:51 
GeneralRe: calling function in parent form from child form Pin
Pete O'Hanlon28-Mar-07 4:54
mvePete O'Hanlon28-Mar-07 4:54 
GeneralRe: calling function in parent form from child form Pin
Lordveralix28-Mar-07 5:13
Lordveralix28-Mar-07 5:13 
GeneralRe: calling function in parent form from child form Pin
Lordveralix28-Mar-07 7:11
Lordveralix28-Mar-07 7:11 
Question[Message Deleted] Pin
pashitech28-Mar-07 3:56
pashitech28-Mar-07 3:56 
AnswerRe: how to find help tools Pin
Judah Gabriel Himango28-Mar-07 4:06
sponsorJudah Gabriel Himango28-Mar-07 4:06 
AnswerRe: how to find help tools Pin
Judah Gabriel Himango28-Mar-07 4:55
sponsorJudah Gabriel Himango28-Mar-07 4:55 
GeneralRe: how to find help tools Pin
pashitech28-Mar-07 5:36
pashitech28-Mar-07 5:36 
QuestionREMOTE INSTALL Pin
waddah_com28-Mar-07 3:55
waddah_com28-Mar-07 3:55 
AnswerRe: REMOTE INSTALL Pin
Judah Gabriel Himango28-Mar-07 4:05
sponsorJudah Gabriel Himango28-Mar-07 4:05 
AnswerRe: REMOTE INSTALL Pin
Judah Gabriel Himango28-Mar-07 4:57
sponsorJudah Gabriel Himango28-Mar-07 4:57 
AnswerRe: REMOTE INSTALL Pin
Vasudevan Deepak Kumar28-Mar-07 7:52
Vasudevan Deepak Kumar28-Mar-07 7:52 
GeneralRe: REMOTE INSTALL Pin
waddah_com30-Mar-07 4:23
waddah_com30-Mar-07 4:23 

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.