What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » More Params with Interop.Call?

More Params with Interop.Call?
Author: Message:
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
35 / Male / Flag
Joined: Jul 2006
O.P. Huh?  More Params with Interop.Call?
Quick question (I hope...)

How can you pass more than 9 parameters to an API function?
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
08-27-2006 05:21 PM
Profile PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: More Params with Interop.Call?
Write a DLL. Are you trying to use CreateWindow or CreateWindowEx?
08-27-2006 07:02 PM
Profile PM Find Quote Report
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
35 / Male / Flag
Joined: Jul 2006
O.P. RE: More Params with Interop.Call?
I'm using CreateWindowEx
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
08-27-2006 07:30 PM
Profile PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: More Params with Interop.Call?
This is kinda related, if you're trying to use CreateFont, which needs 14 paramaters, you can use CreateFontIndirect
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
08-28-2006 09:54 AM
Profile E-Mail PM Web Find Quote Report
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
35 / Male / Flag
Joined: Jul 2006
O.P. RE: More Params with Interop.Call?
It would work for that API call, but I haven't found such for CreateWindowEx...
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
08-28-2006 01:14 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: More Params with Interop.Call?
Is there a reason you're using CreateWindowEx? And if you must, I would wrap it in a DLL.
[Image: spartaafk.png]
08-28-2006 03:05 PM
Profile PM Web Find Quote Report
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
35 / Male / Flag
Joined: Jul 2006
O.P. RE: More Params with Interop.Call?
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...
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
08-28-2006 03:11 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: More Params with Interop.Call?
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.
[Image: spartaafk.png]
08-28-2006 03:31 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On