Old style VB Declare statements

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Water Cooler v2

    #1

    Old style VB Declare statements

    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?

  • Herfried K. Wagner [MVP]

    #2
    Re: Old style VB Declare statements

    "Water Cooler v2" <wtr_clr@yahoo. com> schrieb:[color=blue]
    > 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?[/color]


    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/>

    Comment

    • Cor Ligthert [MVP]

      #3
      Re: Old style VB Declare statements

      Water Cooler,

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

      Cor

      "Water Cooler v2" <wtr_clr@yahoo. com> schreef in bericht
      news:1151406220 .848658.241040@ m73g2000cwd.goo glegroups.com.. .[color=blue]
      > 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?
      >[/color]


      Comment

      • Peter Macej

        #4
        Re: Old style VB Declare statements

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

        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

        Comment

        Working...