Click here to Skip to main content
15,920,468 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB.NET Pin
Dave Kreskowiak12-Jun-04 7:10
mveDave Kreskowiak12-Jun-04 7:10 
GeneralRe: VB.NET Pin
Mekong River12-Jun-04 22:47
Mekong River12-Jun-04 22:47 
GeneralDatabase Pin
Jan Konijnenberg12-Jun-04 0:03
Jan Konijnenberg12-Jun-04 0:03 
GeneralRe: Database Pin
Hesham Amin12-Jun-04 0:46
Hesham Amin12-Jun-04 0:46 
Generalbitwise rotation Pin
Ercoolz11-Jun-04 22:07
Ercoolz11-Jun-04 22:07 
GeneralRe: bitwise rotation Pin
Dave Kreskowiak12-Jun-04 1:58
mveDave Kreskowiak12-Jun-04 1:58 
GeneralRe: bitwise rotation Pin
Ercoolz13-Jun-04 3:00
Ercoolz13-Jun-04 3:00 
GeneralRe: bitwise rotation Pin
Dave Kreskowiak13-Jun-04 8:24
mveDave Kreskowiak13-Jun-04 8:24 
After a little research and testing, there is also a problem I forgot about. In VB6, the shifting doesn't work in all cases because VB works only with signed numbers. If you use the techniques on &hFFFFFFFF (-1 decimal) and shfit the number ANY number of bits to the left, you'll get &hffffffff (-1 decimal).

To get true bits shift support, you'll need a C++ .DLL to take care of the bit shifting for you. This is because C++ can work on the numbers as unsigned, doing the shifting correctly, then sending them back to VB6. Even then, you won't be able to do reliable calculations with those numbers because the sign bit will not be valid. You may think you have a positive value after a bit shift operation when you don't.



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralAddHandler / RemoveHandler Pin
PaleyX11-Jun-04 16:11
PaleyX11-Jun-04 16:11 
GeneralRe: AddHandler / RemoveHandler Pin
Dave Kreskowiak12-Jun-04 1:56
mveDave Kreskowiak12-Jun-04 1:56 
GeneralOffice Addin Listen All event Pin
skoizumi2911011-Jun-04 12:43
sussskoizumi2911011-Jun-04 12:43 
GeneralDeployment Rearranges Controls on Form Pin
Brent Lamborn11-Jun-04 7:37
Brent Lamborn11-Jun-04 7:37 
GeneralVisual Basic homework Pin
KristineB11-Jun-04 6:55
KristineB11-Jun-04 6:55 
GeneralRe: Visual Basic homework Pin
Colin Angus Mackay11-Jun-04 7:41
Colin Angus Mackay11-Jun-04 7:41 
GeneralRe: Visual Basic homework Pin
KristineB11-Jun-04 7:44
KristineB11-Jun-04 7:44 
GeneralRe: Visual Basic homework Pin
Colin Angus Mackay11-Jun-04 8:06
Colin Angus Mackay11-Jun-04 8:06 
GeneralRe: Visual Basic homework Pin
KristineB11-Jun-04 8:07
KristineB11-Jun-04 8:07 
GeneralRe: Visual Basic homework Pin
KristineB11-Jun-04 9:12
KristineB11-Jun-04 9:12 
GeneralRe: Visual Basic homework Pin
Colin Angus Mackay11-Jun-04 9:47
Colin Angus Mackay11-Jun-04 9:47 
GeneralExcel/VBA - Hard question Pin
Jon G11-Jun-04 1:31
Jon G11-Jun-04 1:31 
GeneralRe: Excel/VBA - Hard question Pin
Dave Kreskowiak14-Jun-04 3:00
mveDave Kreskowiak14-Jun-04 3:00 
GeneralAccess security Pin
Rana Kashif10-Jun-04 20:20
Rana Kashif10-Jun-04 20:20 
GeneralRe: Access security Pin
Dave Kreskowiak11-Jun-04 10:32
mveDave Kreskowiak11-Jun-04 10:32 
QuestionHow to add product key in package and Deployement wizard Pin
Rana Kashif10-Jun-04 20:17
Rana Kashif10-Jun-04 20:17 
AnswerRe: How to add product key in package and Deployement wizard Pin
tramdtt10-Jun-04 20:52
tramdtt10-Jun-04 20:52 

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.