Home All Groups Group Topic Archive Search About

Old style VB Declare statements

Author
27 Jun 2006 11:03 AM
Water Cooler v2
OK, I know about PInvoke and I know about "Auto", but here's what I do
not know for sure.

Are old style VB signatures for Win32 API (with the changes in the
data-types, of course) still workable (directly portable) to VB.NET?

Author
27 Jun 2006 11:22 AM
Herfried K. Wagner [MVP]
"Water Cooler v2" <wtr_***@yahoo.com> schrieb:
> OK, I know about PInvoke and I know about "Auto", but here's what I do
> not know for sure.
>
> Are old style VB signatures for Win32 API (with the changes in the
> data-types, of course) still workable (directly portable) to VB.NET?


Yes and no.  .NET provides some more specific types such as 'IntPtr' and
marshalling attributes.  Thus it's often preferrable to re-check the
declarations with the C function prototypes.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
27 Jun 2006 11:25 AM
Cor Ligthert [MVP]
Water Cooler,

May I change the question, why would they not doing it (talking about a
Win32 operating system of course)

Cor

Show quoteHide quote
"Water Cooler v2" <wtr_***@yahoo.com> schreef in bericht
news:1151406220.848658.241040@m73g2000cwd.googlegroups.com...
> OK, I know about PInvoke and I know about "Auto", but here's what I do
> not know for sure.
>
> Are old style VB signatures for Win32 API (with the changes in the
> data-types, of course) still workable (directly portable) to VB.NET?
>
Author
27 Jun 2006 11:27 AM
Peter Macej
> Are old style VB signatures for Win32 API (with the changes in the
> data-types, of course) still workable (directly portable) to VB.NET?

Yes, see http://msdn2.microsoft.com/en-us/library/4zey12w5.aspx

--
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
..NET and ASP .NET code