Solved

C# conversions for GUID declaration

Posted on 2007-03-21
2
773 Views
Last Modified: 2012-08-13
I have C# code that I am trying to convert to VB.NET. I've used a number of conversion utilities, but they don't help.  The code is ultimately trying to write date via USB to a GARMIN GPS system. I'm having trouble declaring the GUID in VB.net

Can anyone show me how to convert the following?
DEFINE_GUID(GUID_DEVINTERFACE_GRMNUSB, 0x2c9c45c2L, 0x8e7d, 0x4c08, 0xa1, 0x2d, 0x81, 0x6b, 0xba, 0xe7, 0x22, 0xc0);
0
Comment
Question by:CASorter
2 Comments
 
LVL 25

Accepted Solution

by:
dstanley9 earned 500 total points
ID: 18765116
try

Dim GUID_DEVINTERFACE_GRMNUSB as new Guid(&H2c9c45c2L, &H8e7d, 0x4c08, &Ha1, &H2d, &H81, &H6b, &Hba, &He7, &H22, &Hc0)
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question