Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert c# to vb.net
Message
From
14/02/2003 21:08:18
 
 
To
14/02/2003 08:51:28
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00753178
Message ID:
00753599
Views:
16
Randy,

You may be better of to just use the C# class libary that declares these functions. When calling C++ dll's this is where the ability of C# to have pointer types and some other stuff that is not in VB comes to an advantage. Create a wrapper class to the dlls in C#m then just call the C# methods from your VB.Net app.

BOb


>Hello all, I need a little help converting C# code to VB.NET code. Can anyone help me with the following code.
>
>[DllImport("coredll.dll")]
>private static extern int LoadCursor(int zeroValue, int cursorID);
>
>[DllImport("coredll.dll")]
>private static extern int SetCursor(int cursorHandle);
>
>This might not be exactly what I am looking for. I am writing a smart device app and I can't find anything about changing the cursor. The LoadCursor function throws a NotSupported error, so I am trying to use the coredll in a class.
>
>I also have one other question. What is the code to determine that the PDA is connected to the PC? I am using ActiveSync. Thanks for the help.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform