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

Search:

Type: Posts; User: Conrad Braam

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    3,410

    Re: File_open_by_file_id

    The bit you need is the access rights required to the file - they are commented out and replaced by 0 in the snippet. Just drop in the needed rights, and you will be away again. Apparently any open...
  2. Replies
    42
    Views
    6,820

    Re: Why CP articles are better than CG!

    Thanks again Brad for trawling the forums to give all and sundry help here.

    I stick to CodeGuru because it was the easiest place to post 5 years ago. At the time I did not have a good internet...
  3. Replies
    3
    Views
    654

    Re: Size of project uploads

    Thanks for the quick response guys. Yes, the limit is where it should be, I just looked at other web-products upload default limits and 500K pretty much matches with common sense. :-)
    I'm not a...
  4. Replies
    42
    Views
    6,820

    Re: Why CP articles are better than CG!

    1. Make the article edit-box for project a bit wider... please, thank you. It's really hard typing into a small box
    That's about it.
  5. Replies
    3
    Views
    654

    Size of project uploads

    Due to a size limit of 500K its getting difficult to upload a demo executable for my project. anyone else have a similar problem?

    I mean 500K zipped (1.2mb unzipped) is pretty huge, and yes, it's...
  6. Replies
    5
    Views
    1,268

    Re: winsock recv incomplete message problem

    One assumes you have eliminated any hardware between the 2 ends which would get in the way. Tell us a little more about your application or protocol, I am sure someone will have an example where they...
  7. Replies
    2
    Views
    593

    Re: Killing threads

    I am not sure I completely understand how 'throw'ing while your thread which may be preparing to make a kernel call really differs much from just terminating it in terms of safety and releasing all...
  8. Replies
    12
    Views
    701

    Re: Mouse Power -

    Hey. I always though the way to 'draw' over the desktop was to create a transparent window to cover the desktop. The only problem is that the user will not be able to interact with anything under...
  9. Replies
    6
    Views
    848

    Re: Serial Communication (WriteFile)

    Good stuff, glad we could help.
    Just to clarify for anyone else reading this sample, the data should be typed
    unsigned short, to make it portable unless we ensure the correct compiler options.
    try...
  10. Replies
    6
    Views
    848

    Re: Serial Communication (WriteFile)

    I would not use anything other than a buffer-pointer to something 8-bit to recieve the eventual data: By specifying a 16-bit type, you are assuming that the data will have the intended endian-ness...
  11. Replies
    6
    Views
    551

    Re: Very Strange behaviour with LPCTSTR

    Basically as xC0000005 stated, your code is actually comparing a pointer to the literal "SUCCESS" to your pointer. Nothing prevents the compiler from having placed the 2 in separate modules and then...
  12. Replies
    6
    Views
    738

    Are we over-commercialised?

    No capatalist or socialist or even political comments please.

    When the majority of programmer websites are 50% advertising pixels, are we reflective of where life in the digital medium is going....
  13. Replies
    6
    Views
    848

    Re: Serial Communication (WriteFile)

    Some things to remember when writting or reading some data in this way.
    1. Timeouts will be much longer than you intended. Check the parameters and the SetCommTimeouts() timeout structure.
    2. You...
  14. Re: Free Heap block modified after it was freed

    The FC is a pretty common junk byte. The 0x0BADFOOD is a kind of HEX for "Bad Food" :-) , it is also easy to spot in a dump, so if you ever see bad-food in your actual data, you know your data got a...
  15. Re: Free Heap block modified after it was freed

    The way memory works in debug is that the debug version of MFC allocs all block a bit bigger than they need to be, it then puts some magical bytes 0x0BADFOOD into the bytes that are just ahead of and...
  16. Replies
    2
    Views
    539

    Re: Visual C++ 2005 char* to CString

    There are many flavours that will solve your problem, this is my gut-response.


    //CString str;
    //char c[] = "Hello";
    const char *c = "Hello";
    CString str(c);
    //str.Format("%s",c);...
  17. Replies
    4
    Views
    759

    Re: Article updates online?

    Bonus

    It's all working now. I was considdering getting the article nuked, and moving elsewhere. But then I remembered why I chose codeguru as a site initially; simple, no-frills, fast and all...
  18. Replies
    4
    Views
    759

    Re: Article updates online?

    Aah, it is broke on my side, my profile no longer contains the http://www.codeguru.com/cpp/i-n/network/serialcommunications/article.php/c5401/ project, I remember a FAQ for that, I will look it up so...
  19. Replies
    4
    Views
    759

    Article updates online?

    I was just wondering, what is the process for updating my article?

    I last updated it a year ago, and need to desperately touch-up the article, and upload new source, because contrary to the...
  20. I am not a VB Guru, but in order to answer your...

    I am not a VB Guru, but in order to answer your question quickest, I suggest opening the following.
    start/run/cmd.exe, when console appears, type in MODE, a list of all devices will appear, CON,...
  21. Hi, thanks. We are using Unimodem V. I have got...

    Hi, thanks.
    We are using Unimodem V. I have got a test app at the moment that does not actually give me the tones, but on a port monitor, I can see that the tones are being interpreted by the modem....
  22. Replies
    8
    Views
    918

    Yep, like I said, if the port # is grater than 9,...

    Yep, like I said, if the port # is grater than 9, U need to use the\\..\ format for the name, search youir MSDN for
    HOWTO: Specify Serial Ports Larger than COM9 the answer in techincal terms is...
  23. Replies
    8
    Views
    918

    bug in the class is fixed here...

    Quite simply you need to change the code in CSerial::Open, to
    if (nPort < 10)
    wsprintf( szPort, "COM%d", nPort );
    else
    wsprintf( szPort, "\\\\.\\COM%d", nPort );

    That should be...
  24. Replies
    8
    Views
    918

    ripper

    I dunno who sold you the USB gospel, but I do not buy it. as u said many people will still have serious applications for Serial and printer ports.
    Once USB gets some serious standardization going,...
  25. Replies
    8
    Views
    918

    Comm port names >COM9 are recognised with a long...

    Comm port names >COM9 are recognised with a long file naming system, look in the MSDN help, it is there her is a code fragment/func

    // ----------------------------------- FixComPortName...
Results 1 to 25 of 27
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center