CSharp to VB

I am trying to use some libraries written in CSharp and access them in VB.  I am using VB 2010.  My problem is that vb will recognize all functions and subroutines within the project except for the functions that have a void* or void** pointer in the declaration of the function or sub. How would I go about programming a CSharp wrapper so that VB will recognize the appropriate code. I downloaded the libraries from the nasa website for creating and reading CDF data files as follows:

cdf.gsfc.nasa.gov/html/Version/V3500/sw_and_docs.html

Any and all help is greatly appreciated.

Thanks.

June 3rd, 2013 6:05pm

csharp use of 'void' is roughly equivalent to vb.net defining a subroutine (sub). When I get frustrated with it (or find the need to use some of it in my projects), I use this site to

http://www.developerfusion.com/tools/convert/csharp-to-vb/

al

Free Windows Admin Tool Kit Click here and download it now
June 3rd, 2013 8:39pm

Hi jimdoh,

VB.NET does not support unsafe code; means, you simply cannot convert void* to VB.NET (because void* is unsafe code). Note that you can still use C# library in VB, you just need to add a reference to the C# library (which may have unsafe code) to your VB project, and use it this way.

Mind that Visual Studio VB forum is over there:
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/

PS. Maybe Visio forum could be renamed somehow.. I remember I had a phone number where only one digit was different from the a pension fund's phone number. That was fun. Now and then I got a call from some grandma, and a long talk about her pension and grandchildren

June 3rd, 2013 8:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics