Shoutbox

More Params with Interop.Call? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: More Params with Interop.Call? (/showthread.php?tid=65478)

More Params with Interop.Call? by Shondoit on 08-27-2006 at 05:21 PM

Quick question (I hope...)

How can you pass more than 9 parameters to an API function?


RE: More Params with Interop.Call? by deAd on 08-27-2006 at 07:02 PM

Write a DLL. Are you trying to use CreateWindow or CreateWindowEx?


RE: More Params with Interop.Call? by Shondoit on 08-27-2006 at 07:30 PM

I'm using CreateWindowEx


RE: More Params with Interop.Call? by Dempsey on 08-28-2006 at 09:54 AM

This is kinda related, if you're trying to use CreateFont, which needs 14 paramaters, you can use CreateFontIndirect


RE: More Params with Interop.Call? by Shondoit on 08-28-2006 at 01:14 PM

It would work for that API call, but I haven't found such for CreateWindowEx...


RE: More Params with Interop.Call? by RaceProUK on 08-28-2006 at 03:05 PM

Is there a reason you're using CreateWindowEx? And if you must, I would wrap it in a DLL.


RE: More Params with Interop.Call? by Shondoit on 08-28-2006 at 03:11 PM

I'm not in the liberty to tell you, or else I'd have to kill you;)
(Just kidding but I'm still not gonna tell)

I can wrap it in a DLL myself if I have to, but I wanted to do it without...
I haven't worked with Interop.Allocate, but could that be an alternative? Writing all Parameters to memory and passing a pointer to the DLL? Or however it may work...


RE: More Params with Interop.Call? by RaceProUK on 08-28-2006 at 03:31 PM

quote:
Originally posted by Shondoit
I haven't worked with Interop.Allocate, but could that be an alternative?
No, since Interop.Allocate will allocate on the heap, and parameters in a function call need to be on the stack.