Click here to Skip to main content
15,894,825 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: DataGridTextBoxColumn can hold the ComboBox ?? Pin
HemaRawat27-Dec-05 22:18
HemaRawat27-Dec-05 22:18 
GeneralRe: DataGridTextBoxColumn can hold the ComboBox ?? Pin
Robert Rohde27-Dec-05 22:30
Robert Rohde27-Dec-05 22:30 
GeneralRe: DataGridTextBoxColumn can hold the ComboBox ?? Pin
HemaRawat27-Dec-05 22:51
HemaRawat27-Dec-05 22:51 
Questiondisable the close button in pocket pc in vb.net Pin
eileenpp27-Dec-05 19:13
eileenpp27-Dec-05 19:13 
AnswerRe: disable the close button in pocket pc in vb.net Pin
Robert Rohde27-Dec-05 21:23
Robert Rohde27-Dec-05 21:23 
AnswerRe: disable the close button in pocket pc in vb.net Pin
Dean_SF28-Dec-05 5:27
Dean_SF28-Dec-05 5:27 
GeneralRe: disable the close button in pocket pc in vb.net Pin
eileenpp28-Dec-05 13:46
eileenpp28-Dec-05 13:46 
QuestionVB.NET 2003, Bits and Bit Shifting Pin
cknipe27-Dec-05 17:52
cknipe27-Dec-05 17:52 
Hi,

Uhm... Ok, I know I need to have a crash course in this whole Bit / Byte / Char thing, but I'm hoping as per usual, that the quickest and best way for me to learn this, will be learning by example...

I get a value from somewhere in memory (Handled by a IPC which, I have *nothing* to do with). Value: 0x3500 (Or rather, &H3500 I believe?)

How do I convert that back to, say a String? Or a Integer?

According to the associated documentation:
Version number:
The HIWORD (i.e. bytes 3306-7) gives the main version as BCD x 1000: e.g. 0x1998 for 1.998
The LOWORD (bytes 3304-5) gives the Interim build letter: 0=none, 1-26=a-z: e.g. 0x0005 = 'e'

The value is 4 Bits long. In (I presume VB 2002), this apparently works:

<br />
                Version = Chr(Asc("0") + (&HF And (Shift(myModule.Mod_Version, 28, RightShift)))) & "." & _<br />
                            Chr(Asc("0") + (&HF And (Shift(myModule.Mod_Version, 24, RightShift)))) & _<br />
                            Chr(Asc("0") + (&HF And (Shift(myModule.Mod_Version, 20, RightShift)))) & _<br />
                            Chr(Asc("0") + (&HF And (Shift(myModule.Mod_Version, 16, RightShift))))<br />


I know I may be asking allot here, but I'm more after someone explaining to me HOW this work, rather than just giving me example code (though, a example or 10 would be good as well). I have THOUSANDS of these magical 'Bits' and 'Byte Array' offsets that I need to read, manipulate, and write... Some of them I managed to get right (mostly the ones that returns Byte Arrays), but most of them, is a major battle to me.

From what I understand, I know that I need to loop through all the Bits in the Byte - and convert the Bits to whatever I want (Strings / Integers / etc) as I go along... But... How?? Confused | :confused:

Thanks guys / gals,

Hopefully I'll understand this all better in bit (or, should that be byte?)

--
Chris




-- modified at 23:53 Tuesday 27th December, 2005
QuestionTreeview related quesion Pin
JUNEYT27-Dec-05 11:31
JUNEYT27-Dec-05 11:31 
AnswerRe: Treeview related quesion Pin
Dave Kreskowiak28-Dec-05 4:09
mveDave Kreskowiak28-Dec-05 4:09 
GeneralRe: Treeview related quesion Pin
WetRivrRat28-Dec-05 4:15
WetRivrRat28-Dec-05 4:15 
QuestionUnexpected error when you add or remove components onto forms Pin
JUNEYT27-Dec-05 2:23
JUNEYT27-Dec-05 2:23 
QuestionSQL Database structure Pin
Sasmi27-Dec-05 2:15
Sasmi27-Dec-05 2:15 
AnswerRe: SQL Database structure Pin
Colin Angus Mackay27-Dec-05 2:28
Colin Angus Mackay27-Dec-05 2:28 
Questioninsert line number in VB Pin
Paritos27-Dec-05 1:54
Paritos27-Dec-05 1:54 
AnswerRe: insert line number in VB Pin
Colin Angus Mackay27-Dec-05 2:29
Colin Angus Mackay27-Dec-05 2:29 
AnswerRe: insert line number in VB Pin
Gulfraz Khan28-Dec-05 4:44
Gulfraz Khan28-Dec-05 4:44 
Questionresize combobox scrollbars Pin
plukje27-Dec-05 1:40
plukje27-Dec-05 1:40 
QuestionIncription Pin
Harshad Pednekar27-Dec-05 0:44
Harshad Pednekar27-Dec-05 0:44 
AnswerRe: Incription Pin
Robert Rohde27-Dec-05 21:29
Robert Rohde27-Dec-05 21:29 
QuestionCan we use VB script For inter process communication Pin
varmag26-Dec-05 23:54
varmag26-Dec-05 23:54 
QuestionHow do this databind (easy questionm I guess) Pin
MaWeRic26-Dec-05 22:19
MaWeRic26-Dec-05 22:19 
Questionbackground image crystal reports (urgent) Pin
fox2126-Dec-05 21:52
fox2126-Dec-05 21:52 
AnswerRe: background image crystal reports (urgent) Pin
Kim Mostinckx27-Dec-05 2:29
Kim Mostinckx27-Dec-05 2:29 
QuestionRegarding datagrid control (very urgent) Pin
nagalakshmibasireddy26-Dec-05 21:32
nagalakshmibasireddy26-Dec-05 21:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.