CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Thread: Successful

Threaded View

  1. #1
    Join Date
    Jan 2006
    Posts
    42

    Successful

    hii guys,
    Atlast successful in sending Text1.Text = "123" as a single byte through MScomm port .
    Manually converted it into hex and then kept the byte in an array and sent
    okay,
    how can i convert the "123.45" to IEEE hex format , what can be the logic ,
    its complicated to me , i am trying, but will be obliged if get help

    Do we have Union and Structures in Visual Basic so that i can implement this logic of C for spliting integer,long integer and floating point into bytes and
    combining bytes to them.
    union
    {
    unsigned int hl ;
    struct
    {
    unsigned char l ;
    unsigned char h ;
    }
    split ;
    }combo ;

    yogi
    Last edited by yogesh_gothe; February 18th, 2006 at 07:08 AM. Reason: Union and structures

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured