Darn you VB!

This is a discussion on Darn you VB! within the C++ Programming forums, part of the General Programming Boards category; Hey... Anybody here good at VB ? Seems that there is another tool that does what I need to do... ...

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    118

    Darn you VB!

    Hey...

    Anybody here good at VB?
    Seems that there is another tool that does what I need to do... in C++.
    I can roughly tell what it does, but I'm not quite sure how to do it in C++. Can anybody here kinda translate into the procedures that I would need to do?

    Code:
    Dim MyByte1 As Byte
        Dim MyByte4 As Byte
        Dim MyByteX As Byte
        Dim ProbeString As String
        
        'Make the 9byte magic-probe string
        MyByte1 = (Val("&H" & "02" & "&"))
        MyByte4 = (Val("&H" & "20" & "&"))
        MyByteX = (Val("&H" & "0" & "&"))
        ProbeString = Chr(MyByte1) & Chr(MyByteX) & Chr(MyByteX) & Chr(MyByte4) & Chr(MyByteX) & Chr(MyByteX) & Chr(MyByteX) & Chr(MyByteX) & Chr(MyByteX)
    Thanks for all of your help!

    FlyingIsFun1217

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    118
    Anybody?
    Tryin to keep the topic alive. Really wanna figure this one out!

    FlyingIsFun1217

  3. #3
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,145
    Forum Guidelines. Read before posting
    5. Don't bump threads. (Bumping: posting messages on threads to move them up the list or to post on a thread that has been inactive for two weeks or longer).
    2. Use descriptive subject lines

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,607
    I'm no VB guru, but here's the manual: http://msdn2.microsoft.com/en-us/lib...dk(VS.80).aspx

    gg

  5. #5
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    You might have better luck posting on a VB forum. Try http://www.tek-tips.com/

  6. #6
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,584
    We are done here. Sorry, this is not a VB board and you will be better served by asking your question on a VB board.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Passing an Array of Strings from VB to a C DLL
    By mr_nice! in forum Windows Programming
    Replies: 9
    Last Post: 03-08-2005, 05:16 AM
  2. C with VB ?
    By khpuce in forum Windows Programming
    Replies: 2
    Last Post: 02-21-2005, 07:00 AM
  3. Passing parameters from VB to C++ through ActiveX DLL
    By torbjorn in forum Windows Programming
    Replies: 0
    Last Post: 12-10-2002, 02:13 AM
  4. VB Calling Convention?!
    By minime6696 in forum Windows Programming
    Replies: 6
    Last Post: 03-27-2002, 03:39 PM
  5. Sending a string to C++ from VB 6.
    By VirtualAce in forum C++ Programming
    Replies: 4
    Last Post: 08-21-2001, 02:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21