AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

.NET Framework - AutoHotkey Interop (feedback required)
Goto page Previous  1, 2
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Sean



Joined: 12 Feb 2007
Posts: 1397

PostPosted: Mon Nov 26, 2007 2:16 pm    Post subject: Reply with quote

Sean wrote:
lexikos wrote:
it doesn't seem worth worrying about.
I'm not worried. I just don't like to play/mess with SafeArray, as I would try to manage it manually minimizing the usage of SafeArray APIs as I did with Variant.

I got bored and it's pretty simple in this case, I created the SafeArray manually:
Code:
VarSetCapacity(rArgs,24,0), NumPut(&vtArg,NumPut(16,NumPut(1,rArgs,0,"Ushort")+2)+4), NumPut(1,rArgs,16)
paArgs := &rArgs
; COM_SysFreeString(psLibrary)
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5390
Location: /b/

PostPosted: Mon Nov 26, 2007 11:25 pm    Post subject: Reply with quote

Andreone wrote:
Quote:
What .NET capabilities would people be interested in?
For example, the ability to load a c# UI component ...
Or being able to use .NET methods in general. Would be useful in some places, especially for those who are more familiar with this than WinAPI. It would be interesting to see if portability could be increased to support Linux/Mac on Mono, although I don't know what kind of changes to AutoHotkey would be needed.
_________________

Back to top
View user's profile Send private message Visit poster's website
Lexikos



Joined: 17 Oct 2006
Posts: 2739
Location: Australia, Qld

PostPosted: Mon Dec 03, 2007 9:31 am    Post subject: Reply with quote

I haven't done much with the script lately, so I figured I'd post what I have so far. I've also posted a "translation" of some sample code from the XPTable article at The Code Project.

I used Sean's "manual SafeArray creation" code, so thanks for that (and your other help, of course Rolling Eyes), Sean.
Back to top
View user's profile Send private message
AHKnow



Joined: 03 Jul 2004
Posts: 118

PostPosted: Tue Dec 04, 2007 6:09 am    Post subject: Reply with quote

An amazing conversation between Sean, Lexikos, and others. .NET and COM capabilities embedded in AutoHotkey.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group