Click here to Skip to main content
15,891,993 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Check sound card buffer [modified] Pin
Henry Minute11-Jul-09 11:07
Henry Minute11-Jul-09 11:07 
AnswerRe: Check sound card buffer Pin
anomis11-Jul-09 19:07
anomis11-Jul-09 19:07 
QuestionHow to change row heigth of a listviewitem(/treeviewnode) Pin
User 584223711-Jul-09 6:48
User 584223711-Jul-09 6:48 
AnswerRe: How to change row heigth of a listviewitem(/treeviewnode) Pin
Henry Minute11-Jul-09 11:11
Henry Minute11-Jul-09 11:11 
AnswerRe: How to change row heigth of a listviewitem(/treeviewnode) Pin
Sonhospa12-Jul-09 0:49
Sonhospa12-Jul-09 0:49 
GeneralRe: How to change row heigth of a listviewitem(/treeviewnode) [modified] Pin
User 584223713-Jul-09 2:51
User 584223713-Jul-09 2:51 
QuestionTranslation to VB [modified] Pin
Saul Johnson11-Jul-09 6:37
Saul Johnson11-Jul-09 6:37 
AnswerRe: Translation to VB Pin
riced11-Jul-09 9:46
riced11-Jul-09 9:46 
Here's some notes that I hope might help (it's a long time since I did C++ but I think I remember it.) Smile | :)

char *name - declares a pointer to a char, this is a common way to access a string/array of chars. VB.Net equivalent would be a string. So name[i] is the ith char in the string.
(I'm assuming that name is a parameter or that somewhere it has been set to a valid string)

off & 0x1F - is a bitwise and of the variable off and the hex value 0x1F (31 in decimal). Effectively this gives off mod 31 (i.e. remainder after division by 31)

<< - does a left shift by whatever that mod gives. Effectively this multiplies the value in name[i] by 2 to the power of off mod 31.

sum ^= - means that the value in sum is Xor'd with the the result of the modding and shifting.

Now how you translate that into VB is another matter. Big Grin | :-D
One thing to be wary of is that the C++ is probably dealing with 8-bit chars in VB they are probably 16 bit. You need to know where the data that fills the name string is coming from and so how many bits per char.

Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis

GeneralRe: Translation to VB Pin
Saul Johnson11-Jul-09 10:49
Saul Johnson11-Jul-09 10:49 
GeneralRe: Translation to VB Pin
Henry Minute11-Jul-09 11:14
Henry Minute11-Jul-09 11:14 
AnswerRe: Translation to VB Pin
Dave Doknjas11-Jul-09 14:34
Dave Doknjas11-Jul-09 14:34 
QuestionAccess to the path 'Global\.net clr networking' is denied Pin
Anubhava Dimri11-Jul-09 0:44
Anubhava Dimri11-Jul-09 0:44 
AnswerRe: Access to the path 'Global\.net clr networking' is denied Pin
Christian Graus11-Jul-09 2:21
protectorChristian Graus11-Jul-09 2:21 
GeneralRe: Access to the path 'Global\.net clr networking' is denied Pin
Anubhava Dimri12-Jul-09 18:10
Anubhava Dimri12-Jul-09 18:10 
QuestionI want to click a link in the web page [modified] Pin
pobre1210-Jul-09 23:25
pobre1210-Jul-09 23:25 
Questionsomething like windows vista sidebar or google sidebar Pin
Ali Hojjati10-Jul-09 21:15
Ali Hojjati10-Jul-09 21:15 
AnswerRe: something like windows vista sidebar or google sidebar Pin
Henry Minute11-Jul-09 0:44
Henry Minute11-Jul-09 0:44 
QuestionCan't get combo box to update with data [modified] Pin
Dominick Marciano10-Jul-09 8:01
professionalDominick Marciano10-Jul-09 8:01 
AnswerRe: Can't get combo box to update with data Pin
Henry Minute10-Jul-09 10:45
Henry Minute10-Jul-09 10:45 
QuestionRe: Can't get combo box to update with data Pin
Dominick Marciano16-Jul-09 7:18
professionalDominick Marciano16-Jul-09 7:18 
AnswerRe: Can't get combo box to update with data Pin
Henry Minute17-Jul-09 0:03
Henry Minute17-Jul-09 0:03 
QuestionPrinting in .net Pin
No-e10-Jul-09 7:55
No-e10-Jul-09 7:55 
AnswerRe: Printing in .net Pin
Henry Minute10-Jul-09 11:16
Henry Minute10-Jul-09 11:16 
GeneralRe: Printing in .net Pin
No-e10-Jul-09 11:45
No-e10-Jul-09 11:45 
QuestionFind a 16bit Process Pin
nlarson1110-Jul-09 4:01
nlarson1110-Jul-09 4:01 

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.