AvocadoSoftware.com

Software For Hardcore Developers
Welcome to AvocadoSoftware.com Sign in | Join | Help
in Search

Derick Baileys old blog archives - go to derickbailey.com for new contents

VB.NET and COM Interop method signatures.

I know a lot has already been said about COM interop in .NET, and VB.NET, but I wanted to share a little bit of information that a co-worker told me a few days ago. In my last post, I announced my ScRap.NET program as being available for download.

I have actually had this program almost ready to go for a couple of months now, but was never really ready to release because of a small issue. I use a Microsoft Wireless Natural keyboard and mouse at work... this particular keyboard has a row of special feature buttons on it for things like email, media player control, log off, etc. The problem I was running into, is that whenever I would run my ScRap.NET program, these special function keys would stop working. As soon as I exited ScRap.NET, though, they would all work fine.

As it turns out, I had my method signatures for the COM Interop wrong on a fine detail... I was passing structure parameters as ByVal, when I should have been passing them as ByRef. As soon as I made that change, my keyboard's special keys immediately began working while ScRap.NET was running.

Published Monday, November 15, 2004 7:39 AM by dredge
Filed Under: ,
New Comments to this post are disabled

This Blog

Post Calendar

<November 2004>
SuMoTuWeThFrSa
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

Advertisement

News

this is my old blog archives - go to http://derickbailey.com for updates

Syndication

Advertisement

Powered by Community Server, by Telligent Systems