05-17-2006, 05:46 AM
I have a VB6 app that uses FindWindow, SetParent, SendMessage, GetMenu and other API calls.

I cannot get anything working in .NET.

05-17-2006, 06:19 AM
See if they are on www.pinvoke.net, or ask a specific question...

05-23-2006, 01:57 PM
One thing that was killing me with API calls in vb.net is that a long in VB6 is an integer in vb.net.

05-25-2006, 06:22 PM
Absolutely, that is a cardinal rule with APIs in .NET -- all longs in VB6 must be redeclared as Integers in VB.NET.

Also, arguments that are as Any must be more specifically declared (are you going to pass integers, strings, or what?). :)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum