PLease help with a C++ to VB translation 
Author Message
 PLease help with a C++ to VB translation

data = (dcd^sense) ? (deltv) : (deltv | 0x1000000)

How can I write this in VB.NET?



Mon, 15 Aug 2005 21:56:43 GMT  
 PLease help with a C++ to VB translation

Quote:
> data = (dcd^sense) ? (deltv) : (deltv | 0x1000000)

> How can I write this in VB.NET?

I believe this is what you need:

data = iif((dcd Xor sense) = 0, deltv Or &H1000000, deltv)

Or you can use a standard if then else:

If (dcd Xor sense) = 0 Then
   data = deltv Or &H100000
Else
   data = deltv
End If

--
If you don't like lunchmeat, please remove it from my e-mail address to
send me an e-mail



Mon, 15 Aug 2005 22:20:06 GMT  
 PLease help with a C++ to VB translation

http://www.linux-magazin.de/Artikel/ausgabe/2000/09/Lirc/lirc.html

It has source code in English.


  data = (dcd^sense) ? (deltv) : (deltv | 0x1000000)

  How can I write this in VB.NET?



Mon, 15 Aug 2005 23:23:53 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. C++ Command to Vb translation

2. C++ Command to VB translation

3. C++ to VB translation?

4. C++ To Basic Code Translation Help!

5. C++ To Basic Code Translation Help!

6. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

7. Wordbasic translation question: Please Help

8. Question regarding BSTR Visual c++ dll and VB 6- Please help

9. Please help w/translation algorithm

10. From C++ to VB, please help.

11. Please Help with C translation...usage (I'm Lost)

12. From C++ to VB, please help.

 

 
Powered by phpBB® Forum Software