Click here to Skip to main content
14,487,848 members
   

C#

 
GeneralRe: use the loudspeakers with C# Pin
Luc Pattyn23-Jul-08 7:01
sitebuilderLuc Pattyn23-Jul-08 7:01 
GeneralRe: use the loudspeakers with C# Pin
amityo23-Jul-08 13:23
Memberamityo23-Jul-08 13:23 
GeneralRe: use the loudspeakers with C# Pin
Luc Pattyn23-Jul-08 13:44
sitebuilderLuc Pattyn23-Jul-08 13:44 
GeneralRe: use the loudspeakers with C# Pin
amityo23-Jul-08 13:29
Memberamityo23-Jul-08 13:29 
AnswerRe: use the loudspeakers with C#-one more question Pin
amityo23-Jul-08 13:41
Memberamityo23-Jul-08 13:41 
QuestionDLLImport problem Pin
teejayem23-Jul-08 4:35
Memberteejayem23-Jul-08 4:35 
AnswerRe: DLLImport problem Pin
Luc Pattyn23-Jul-08 4:43
sitebuilderLuc Pattyn23-Jul-08 4:43 
GeneralRe: DLLImport problem Pin
teejayem23-Jul-08 5:01
Memberteejayem23-Jul-08 5:01 
Hey Luc!

Thats not good news! Sigh | :sigh:

I did a search on DLLImport & varargs and i was able to find someonthing HERE[^].

Right above the examples it explains the enum types. I found
Cdecl  -- The caller cleans the stack. This enables calling functions with varargs, 
which makes it appropriate to use for methods that accept a variable number of parameters, such as Printf.


I see in the example how they are using it in the printf. Do you think if i was to change my signature to
private static extern void ic_subcall(string sub_name, long sub_name_len, ref long code, long num_args, icstring var_args1, icstring var_args2, ..., ...);

and used the calling convention documented that i would work?

Don't be overcome by evil, but overcome evil with good

GeneralRe: DLLImport problem Pin
Luc Pattyn23-Jul-08 5:17
sitebuilderLuc Pattyn23-Jul-08 5:17 
GeneralRe: DLLImport problem Pin
teejayem23-Jul-08 6:07
Memberteejayem23-Jul-08 6:07 
AnswerRe: DLLImport problem Pin
led mike23-Jul-08 5:05
Memberled mike23-Jul-08 5:05 
GeneralRe: DLLImport problem Pin
teejayem23-Jul-08 5:17
Memberteejayem23-Jul-08 5:17 
GeneralRe: DLLImport problem Pin
led mike23-Jul-08 6:01
Memberled mike23-Jul-08 6:01 
GeneralRe: DLLImport problem [modified] Pin
teejayem23-Jul-08 6:27
Memberteejayem23-Jul-08 6:27 
GeneralRe: DLLImport problem Pin
led mike23-Jul-08 8:48
Memberled mike23-Jul-08 8:48 
Questionadd data in datarow and fit max length columns Pin
JoZ CaVaLLo23-Jul-08 4:32
MemberJoZ CaVaLLo23-Jul-08 4:32 
AnswerRe: add data in datarow and fit max length columns Pin
JoZ CaVaLLo23-Jul-08 4:46
MemberJoZ CaVaLLo23-Jul-08 4:46 
Questionwin form treeview image Pin
arkiboys23-Jul-08 3:53
Memberarkiboys23-Jul-08 3:53 
AnswerRe: win form treeview image Pin
Luc Pattyn23-Jul-08 4:07
sitebuilderLuc Pattyn23-Jul-08 4:07 
GeneralRe: win form treeview image Pin
arkiboys23-Jul-08 4:11
Memberarkiboys23-Jul-08 4:11 
GeneralRe: win form treeview image Pin
arkiboys23-Jul-08 4:17
Memberarkiboys23-Jul-08 4:17 
GeneralRe: win form treeview image Pin
Luc Pattyn23-Jul-08 4:21
sitebuilderLuc Pattyn23-Jul-08 4:21 
GeneralRe: win form treeview image Pin
arkiboys23-Jul-08 4:24
Memberarkiboys23-Jul-08 4:24 
QuestionDatagridview displaying garbage characters Pin
tkrn23-Jul-08 2:51
Membertkrn23-Jul-08 2:51 
AnswerRe: Datagridview displaying garbage characters Pin
SomeGuyThatIsMe23-Jul-08 3:19
MemberSomeGuyThatIsMe23-Jul-08 3:19 

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.