Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: hi1

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    4,573

    Re: Accessing USB Host in Windows Mobile 5.0

    Have you already success?
  2. Replies
    11
    Views
    11,170

    Re: Looking for free UML modeller

    for any kind of Free UML CASE Tools you'd visit http://case-tools.org/free.html
    regards,
  3. Thread: UML tools

    by hi1
    Replies
    3
    Views
    500

    Re: UML tools

    yes... try this http://case-tools.org/

    kind regards
  4. Replies
    0
    Views
    366

    Makefile implicit rule

    Hello,

    I could not find a proper section for posting, so I'm posting in this C++ one...

    I'm writing a Makefile, and there is a behavior that I don't understand. Here's what I'm doing:
    ...
  5. Replies
    24
    Views
    4,915

    Re: fwrite ERRNO 22 with big (?) size

    You are right again. I can't rely on that test.
    This is why i received partial body on Windows.
    On Linux the flag "MSG_WAITALL" is available, but this does not seem a reliable solution.

    So this...
  6. Replies
    24
    Views
    4,915

    Re: fwrite ERRNO 22 with big (?) size

    So this turned out to be a problem with the socket API, and has nothing to do with fwrite.
    I've tried to increase the receive socket buffer size with "setsockopt", but i still receive partial body....
  7. Replies
    24
    Views
    4,915

    Re: fwrite ERRNO 22 with big (?) size

    You were right, i get access violation trying to do "puts(parsed_request->body+100000);".
    So now i have to recheck all the program logic that fills the buffer...



    #define _READ_CHUNK 512...
  8. Replies
    24
    Views
    4,915

    Re: fwrite ERRNO 22 with big (?) size

    You are right about that.
    But i expected that even if there was a mismatch between the buffer size and the "content_length" value the write operation should at least start and then throw an error,...
  9. Replies
    24
    Views
    4,915

    Re: fwrite ERRNO 22 with big (?) size

    Well, i think that if the whole thing works ok on linux (no segm.faults thrown and the file is written correctly), then the logic must be correct (body buffer must be of the correct size).
    Dont you...
  10. Replies
    24
    Views
    4,915

    Re: fwrite ERRNO 22 with big (?) size

    Yes i've thinked of it too, but the test case i've used for testing is build so that the content_length matches exactly the length of the body buffer.
    So you can assume that this condition is always...
  11. Replies
    24
    Views
    4,915

    Re: fwrite ERRNO 22 with big (?) size

    Boy, it's just what i've posted:
    If fwrite succeed errno remains 0 and perror outputs "No error",
    otherwise errno!=0 and perror output something meaningful.
  12. Replies
    24
    Views
    4,915

    Re: fwrite ERRNO 22 with big (?) size

    No, perror always output "Invalid Argument" (that is, errno 22).
    I've also disabled multi-threading so there can't be any interference with other threads...

    "content_length" is of "unsigned int"...
  13. Replies
    24
    Views
    4,915

    Re: fwrite ERRNO 22 with big (?) size

    Ok, now i've added the checks.
    I've omitted them since they did not seem relevant to me.
  14. Replies
    24
    Views
    4,915

    Re: fwrite ERRNO 22 with big (?) size

    That call is for debug purpose only.
    I'll remove that once i've fixed the issue.
  15. Replies
    24
    Views
    4,915

    Re: fwrite ERRNO 22 with big (?) size

    I already tried that. Still get ERRNO==22. :-(
    BTW, the correct way should be the first one. See http://www.opengroup.org/onlinepubs/009695399/functions/fwrite.html):
    I mean to write...
  16. Replies
    24
    Views
    4,915

    socket receive a chunk at a time

    On linux the same call to fwrite works correctly (errno==0),
    on windows i get ERRNO==22 if the "size" parameter is somewhat big (e.g. "103429"). :-/

    see the code:


    // first i open the file...
  17. Replies
    8
    Views
    1,765

    Re: Problem releasing CWebBrowser2

    I have the same problem when I open dialog with WebBrowser control in it. The dialog is NOT in another thread. I don't know is this a very correct sollution, but I solved it with this code in the...
  18. Re: C++ String: How to convert a string into a numeric type?

    Another one easy solution :

    conversion to string:

    template<class T>
    std::string toString(const T& t)
    {
    std::ostringstream stream;
    stream << t;
    return stream.str();
  19. Replies
    0
    Views
    628

    Volume Control with mouse movement

    Hi there,
    most important information first:
    * Paid: No
    * Type: Very Small Program (I guess less than 15 minutes for an experienced programmer)
    * Requirements: Should run on Windows...
  20. Replies
    2
    Views
    2,192

    Volume Control with mouse movement

    Hi there,
    I hope this is the right area to post this.

    I was wondering if anyone of you could write a little program for me that changes the System Volume by mouse movements, i.e. moving the mouse...
  21. Re: inheritance, copy costructors and assignment operators issue

    Boy, you are right!
    Maybe i've made confusion between Java and C++ having studied both in the same time.
    If only the compiler had warned me about constructor chaining...

    EDIT: now everything...
  22. inheritance, copy costructors and assignment operators issue

    Hello everybody, since last year i've been developing an SDL-based library for videogames,
    but lately i'm stuck on a problem that concerns (i think) inheritance and copy costructors/assignment...
Results 1 to 22 of 22


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center