Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Classic Visual Basic (VB 6 or earlier) » General Visual Basic » VB GUID and hex question


VB GUID and hex questionExpand / Collapse
Author
Message
Posted 7/2/2009 2:42:32 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 7/7/2009 1:30:18 AM
Posts: 44, Visits: 135
I found an article on getting a bitmap out of a file like a dll file but it uses

dim IID_IDispatch as GUID


IID_IDispatch.data1 = &H20400
IID_IDispatch.data4(0) &HC0
IID_IDispatch.data4(7) &H46



How does a GUID work?

V Also I know I asked this one before but I can't find it.

What does a Hex number mean? For example what does &H20400 or is there a way to convert it.

I know that sometimes 1= enable and 0 = Disable.

Same thing for 1= True and 0 = False

I know that 1 and 0 won't always mean that but how can I tell what the hex mean.

Before I use a code I want to understand it. I just don't go around and take code then use it when I have no idea what it all means or what it suppose to do or how it works.


That's just how I am

Thanks everyone
Post #27867
Posted 7/3/2009 2:25:31 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 7/23/2010 8:17:22 PM
Posts: 169, Visits: 778
GUID = Globally Unique IDentifier and the code you are talking about looks like it may be for extracting icons out of dll's and exe's.

To get the value of a hex you can use the immediate window...

?&H91
 145

 and while 0 = false, any non-zero = true in vb so 100 = true

Good Luck

Post #27869
Posted 7/26/2009 10:26:03 AM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: 6/30/2010 9:01:29 PM
Posts: 503, Visits: 2,337
Besides the nice tip from vb5prgrmr there are heaps of Hex/AACII/Decimal/Binary converters

Here On PSC

 

"So much to learn. So little time to do it. Wise men know it's later than one thinks"!

<Vote here to make Keith a Moderator>

Mark's Syntax.Zip

I don't answer programming questions via PMs. That's what the forum is for! 

Post #27941
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 6:55pm