
Signature
-john
February 28 1997: Last day libraries could order catalogue cards
from the Library of Congress.
"John M. Gamble" <jgamble@ripco.com> schrieb:
> I'm getting this message in Visual Studio 2005:
> PInvokeStackImbalance was detected
[quoted text clipped - 3 lines]
>
> [...]
I assume you took the sample from a VB6 projekt or code repository. Note
that VB 2005 is not a technical successor of VB6 and code is generally not
compatible between the two programming languages. Whereas 'Long' was a
32-bit data type in VB6, it's a 64-bit type in VB.NET. Thus you'll have to
modify your declarations, constants, and structures accordingly (this means,
changing 'Long' to 'Integer' or 'Int32', with some exceptions). Note that
some additional modifications of the source code may be necessary in order
to make the code work.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
John M. Gamble - 08 Jun 2007 23:03 GMT
>"John M. Gamble" <jgamble@ripco.com> schrieb:
>> I'm getting this message in Visual Studio 2005:
[quoted text clipped - 6 lines]
>
>I assume you took the sample from a VB6 projekt or code repository. Note
Hmm. The claim was that it was from a dotnet source, but given the other
change I had to make I am suspicious.
>that VB 2005 is not a technical successor of VB6 and code is generally not
>compatible between the two programming languages. Whereas 'Long' was a
[quoted text clipped - 3 lines]
>some additional modifications of the source code may be necessary in order
>to make the code work.
Thanks, I'll start with that.

Signature
-john
February 28 1997: Last day libraries could order catalogue cards
from the Library of Congress.