Type: Posts; User: egawtry
Search took 0.05 seconds.
August 12th, 2013, 10:47 AM
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...
July 11th, 2013, 01:40 AM
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...
June 11th, 2013, 10:11 AM
Seems that you went with modifying the server side anyway. ;)
June 10th, 2013, 12:33 PM
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.
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...
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...
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. ...
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...
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...
February 29th, 2012, 02:27 PM
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] )
February 29th, 2012, 12:01 PM
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.
February 29th, 2012, 11:08 AM
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.
February 15th, 2012, 10:18 AM
Just an idea - are you compiling UNICODE or MBCS?
MBCS will use local code pages and mess up like you are seeing.
January 24th, 2012, 11:37 PM
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.
January 22nd, 2012, 12:50 PM
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...
January 20th, 2012, 01:14 PM
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...
January 18th, 2012, 05:53 PM
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.
January 18th, 2012, 11:55 AM
Convert the UNICODE string to MBCS, then insert it.
wcstombs_s(&size, szString, _countof(szString), (LPCWSTR)strWText, strWText.GetLength());
January 17th, 2012, 11:22 PM
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...
January 4th, 2012, 06:12 PM
January 4th, 2012, 05:58 PM
But the LIB file isn't distributed to end users.:ehh:
January 4th, 2012, 05:33 PM
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. ...
January 4th, 2012, 01:49 PM
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...
January 4th, 2012, 01:30 PM
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.
January 4th, 2012, 01:25 PM
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.
Click Here to Expand Forum to Full Width