Click here to Skip to main content
15,790,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: who can help me? Pin
Gerry Schmitz25-Oct-09 18:13
mveGerry Schmitz25-Oct-09 18:13 
GeneralRe: who can help me? Pin
Mycroft Holmes25-Oct-09 19:11
professionalMycroft Holmes25-Oct-09 19:11 
Questionwho can help me Pin
Abdaqader25-Oct-09 8:34
Abdaqader25-Oct-09 8:34 
AnswerRe: who can help me Pin
Dave Kreskowiak25-Oct-09 9:14
mveDave Kreskowiak25-Oct-09 9:14 
GeneralRe: who can help me Pin
Ekoj Lirpa25-Oct-09 9:59
Ekoj Lirpa25-Oct-09 9:59 
GeneralRe: who can help me Pin
Abhishek Sur25-Oct-09 13:09
professionalAbhishek Sur25-Oct-09 13:09 
GeneralRe: who can help me Pin
Christian Graus25-Oct-09 10:21
protectorChristian Graus25-Oct-09 10:21 
Questiontables Pin
csrss25-Oct-09 8:13
csrss25-Oct-09 8:13 
hi. Dunno how to properly name the question, but here it goes.
I got my lib (dll) exporting function which returns 2 unsigned long values:
1 is a single number and
2 is table which contains a lot of numbers. Basically it looks like this:
DWORD MyFunc(PULONG table, PULONG nr);
then call it:
ulong table[256];
ulong nr;
MyFunc(&table, &nr);
My dll is written in win32 api. Next i got C# app which have to access to this function.
And here i dont know to do it. Any suggestions?
code like:
Uint32[] table= new Uint32[256];
Uint32 nr = new Uint32();
MyFunc(out table, out nr);
crashes C# app.
AnswerRe: tables Pin
Richard MacCutchan25-Oct-09 8:39
mveRichard MacCutchan25-Oct-09 8:39 
GeneralRe: tables Pin
csrss25-Oct-09 9:05
csrss25-Oct-09 9:05 
GeneralRe: tables Pin
Richard MacCutchan25-Oct-09 9:33
mveRichard MacCutchan25-Oct-09 9:33 
GeneralRe: tables Pin
csrss25-Oct-09 12:14
csrss25-Oct-09 12:14 
AnswerRe: tables Pin
Luc Pattyn25-Oct-09 13:32
sitebuilderLuc Pattyn25-Oct-09 13:32 
GeneralRe: tables Pin
Richard MacCutchan25-Oct-09 13:37
mveRichard MacCutchan25-Oct-09 13:37 
GeneralRe: tables Pin
Luc Pattyn25-Oct-09 13:42
sitebuilderLuc Pattyn25-Oct-09 13:42 
GeneralRe: tables [modified] Pin
csrss25-Oct-09 15:25
csrss25-Oct-09 15:25 
QuestionNOPs in disassembly Pin
Ekoj Lirpa25-Oct-09 7:34
Ekoj Lirpa25-Oct-09 7:34 
GeneralRe: NOPs in disassembly Pin
Henry Minute25-Oct-09 8:26
Henry Minute25-Oct-09 8:26 
GeneralRe: NOPs in disassembly Pin
Ekoj Lirpa25-Oct-09 8:51
Ekoj Lirpa25-Oct-09 8:51 
GeneralRe: NOPs in disassembly Pin
Richard MacCutchan25-Oct-09 9:03
mveRichard MacCutchan25-Oct-09 9:03 
GeneralRe: NOPs in disassembly Pin
GameZelda25-Oct-09 9:29
GameZelda25-Oct-09 9:29 
GeneralRe: NOPs in disassembly Pin
Ekoj Lirpa25-Oct-09 9:48
Ekoj Lirpa25-Oct-09 9:48 
GeneralRe: NOPs in disassembly [modified] Pin
harold aptroot25-Oct-09 10:06
harold aptroot25-Oct-09 10:06 
AnswerRe: NOPs in disassembly Pin
PIEBALDconsult25-Oct-09 16:26
professionalPIEBALDconsult25-Oct-09 16:26 
QuestionCustom Control Pin
Kumold25-Oct-09 4:50
Kumold25-Oct-09 4:50 

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.