Old style VB Declare statements

  • Thread starter Thread starter Water Cooler v2
  • Start date Start date
W

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?
 
Water Cooler v2 said:
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.
 
Water Cooler,

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

Cor
 
Back
Top