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

Search:

Type: Posts; User: egawtry

Page 1 of 28 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    3,768

    Re: Sockets dying with heavy memory use

    Thanks for the response.

    I finally rewrote it using a single thread rather than the multiple threads that had before. Haven't had a crash in two weeks now. So you are right, it probably was too...
  2. Replies
    3
    Views
    3,768

    Sockets dying with heavy memory use

    I have an app that runs a server (CLI) on a Windows 2008 Server. It runs a standard listen socket with max sockets and works great until someone uses a large number of system resources (Remote...
  3. Replies
    8
    Views
    1,199

    Re: Multiple apps accesing same file on a server

    Seems that you went with modifying the server side anyway. ;)

    Good luck!
  4. Replies
    8
    Views
    1,199

    Re: Multiple apps accesing same file on a server

    Then the PC IS a server. ;)

    You are talking about having another destination that handles everything properly, then it alone writes the result to the ftp server? That should work.
  5. Replies
    8
    Views
    1,199

    Re: Multiple apps accesing same file on a server

    FTP is not a very good file sharing solution. And you will have to use the scheme I outlined for HTTP with it.



    If you use a second file as a lock file, that can still mess up, but is the best...
  6. Re: Why are there predefined application specific ports?

    So you know which port to connect to on the remote computer. Without ports, the remote computer has no idea what to do when a connection is made. With a port, the computer sees a connection on port...
  7. Replies
    1
    Views
    1,222

    Re: how to display the MAC address of client?

    It may be that you have too small of an array. Try calling the GetAdaptersInfo() with a NULL and a zero to get the needed size.

    You may be getting no results so your "MAC" may be garbage. ...
  8. Replies
    8
    Views
    1,199

    Re: Multiple apps accesing same file on a server

    Look at LockFile() if is a shared file.

    If you are talking about something on a web server that you are accessing via HTTP GET/PUT, synchronization is very difficult. Normally a separate lock...
  9. Replies
    0
    Views
    207

    Long term packet communications problems

    Hello,

    I am running a raw socket based communication between two computers (one is a device, but the same thing). I poll for a large (1K) packet several times a second, then send an ACK when I...
  10. Thread: plz help me...

    by egawtry
    Replies
    8
    Views
    730

    Re: plz help me...

    Basic Bubblesort: (this should be in your book somewhere)



    int i, j;

    for(i = 0; i < 6; ++i)
    for(j = i+1; j < 6; ++j)
    {
    if( list[i] > list[j] )
  11. Thread: plz help me...

    by egawtry
    Replies
    8
    Views
    730

    Re: plz help me...

    Okay, looks like a standard array. For your program, do the bubblesort like I hope is in your textbook; then you will have:

    12 17 30 45 51 62

    Do a for() loop, adding every other one.

    Ex:...
  12. Thread: plz help me...

    by egawtry
    Replies
    8
    Views
    730

    Re: plz help me...

    What is the list?

    This seems to be an exercise of for() loops. First to sort the array, then to add every other number.

    Hints: i += 2 for the for(), and look up bubblesort for the sort.
    ...
  13. Replies
    18
    Views
    4,274

    Re: File encoding (utf-8/unicode/ascii etc...)

    Just an idea - are you compiling UNICODE or MBCS?

    MBCS will use local code pages and mess up like you are seeing.
  14. Replies
    2
    Views
    737

    Re: dll crashing issue

    You need to post more information.

    1. Is it a regular DLL or MFC?
    2. Does it access any database, if so, do you share it?
    3. What type of interface are you using.
  15. Replies
    22
    Views
    2,897

    Re: How to be a good programmer?

    I hardly have contempt for higher education, my current work on my masters demonstrates that. I DO have contempt for how CS is taught these days. Graduates leave college with all these bright...
  16. Replies
    22
    Views
    2,897

    Re: How to be a good programmer?

    I don't agree. That is the way to get a good corporate job, not necessarity be a good programmer. I have worked for corporations and interviewed many prospective new-grads. They were so full of...
  17. Replies
    14
    Views
    3,398

    Re: ComboBox + LPWSTR

    I have written several whitepapers on "Rootbeer" functions (A&W functions) for my work. If anyone is interested, I can dig them up and repost.

    -Erik
  18. Replies
    14
    Views
    3,398

    Re: ComboBox + LPWSTR

    Convert the UNICODE string to MBCS, then insert it.


    size_t size;
    CHAR szString[256];
    wcstombs_s(&size, szString, _countof(szString), (LPCWSTR)strWText, strWText.GetLength());
    //nIndex =...
  19. Replies
    3
    Views
    533

    Re: localhost socket control

    Are you sure you don't mean VB6? Things are not control based in C.

    What you need is to take a look at CSocket and CListen if you are using MFC, and socket(), connect(), and listen() if you are...
  20. Replies
    26
    Views
    3,712

    Re: DLL exported functions

    Правда. :)
  21. Replies
    26
    Views
    3,712

    Re: DLL exported functions

    But the LIB file isn't distributed to end users.:ehh:
  22. Replies
    26
    Views
    3,712

    Re: DLL exported functions

    The only reason I have ever seen, in spite of the "size" issue, is for people who are paranoid about security. It removes all possibility of easily hacking the DLL without having to disassemble it. ...
  23. Replies
    26
    Views
    3,712

    Re: DLL exported functions

    There are quite a few parameters that can be added to a DEF export, most of them unnecessary.

    The NONAME is for the paranoid, I assume that Igor did it out of habit.:)

    The most commonly used...
  24. Replies
    26
    Views
    3,712

    Re: DLL exported functions

    There are 3rd party programs to do this, but most people just dynamically export functions with _dllexport if they are too lazy to use a DEF file.




    That is why I ALWAYS use a DEF file.
    ...
  25. Replies
    26
    Views
    3,712

    Re: DLL exported functions

    True, it would link, but then immeadiately do the function missing popup when run. Sorry for the confusion, I was thinking of a special case.

    -Erik
Results 1 to 25 of 693
Page 1 of 28 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center