Solved

C# conversions for GUID declaration

Posted on 2007-03-21
2
769 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
Comment Utility
try

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

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now