Solved

C# conversions for GUID declaration

Posted on 2007-03-21
2
779 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

679 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