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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only