User Profile

Collapse

Profile Sidebar

Collapse
Tangleman
Tangleman
Last Activity: Jun 24 '11, 05:09 PM
Joined: Oct 15 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • before casting, the data is an unsigned char (or byte) stored in a vector. I've confirmed through debugging that it correctly pullling the 4 bytes of the ip address from the vector and correctly inserting it into the sockaddr_in struct. So I'm pretty sure the problem is with the actual call to WSAAddressToStr ing itself. Manually typing 50 for the 5th parameter (size of buffer to receive string represtation) doesn't solve it. I still get error...
    See more | Go to post

    Leave a comment:


  • Converting UINT IP address to string format in MSVC++ 6.0

    My program is acting as a server accepting command requests from a client. Two of those commands (FtpGet and FtpPut) include a parameter for an ip address. My program accepts the ip address as a vector of unsigned chars (bytes), which I then throw into an unsigned long so that I can use the ntohl function to convert it to host byte order. I then need to convert the ip address into it string representation to continue with my program.
    ...
    See more | Go to post

  • Tangleman
    started a topic Boost in an MFC app on NT4
    in C

    Boost in an MFC app on NT4

    I am trying to modify a current MFC application running on Windows NT4 to use boost libraries for ethernet communcications (originally, it used CommX for serial) and general increased performance, effieciency, and clarity of code.

    I started out modifying it in VS2010, but I found that I was unable to produce a valid NT4 app with VS2010. I googled the issue and found that VS2005 was the last version able to create an NT4 app. I got...
    See more | Go to post

  • Worked like a charm!

    Thanks a lot jkmyoung!!
    See more | Go to post

    Leave a comment:


  • You mean like this?

    <xs:element name="if">
    <xs:complexType >
    <xs:sequence>
    <xs:choice minOccurs="0" maxOccurs="unbo unded">
    <xs:group ref="general_co mmand"/>
    <xs:group ref="macro_cont rol_command"/>
    </xs:choice>
    <xs:element ref="else" minOccurs="0"/>
    </xs:sequence>...
    See more | Go to post

    Leave a comment:


  • Tangleman
    started a topic Non-Deterministic error in an if-else xml block
    in XML

    Non-Deterministic error in an if-else xml block

    I have a schema that defines a programming language for a script that drives a sequentially executing process. It defines the structure of a script that has to interact with a pre-existing, custom-made XML parsing engine. Part of this is an if-else block that has to be defined as:

    <if {condition}>
    statements...
    <else/>
    statements...
    </if>

    The else and subsequent statements...
    See more | Go to post
No activity results to display
Show More
Working...