Designing a client-server application using VC++

munisgtm

Senior member
Apr 18, 2006
371
0
0
Hi!

Well i have a project that requires me to collect system specifications from client PCs and then send it to a server application which in turns connects to SQL server and store the data(This is a local network , no internet is involved).

The language of choice is VC++ . Now i need to know that what API/interface (ATL,COM,MFC) should i use(read:learn) to create the application which is best suited to c++ and is easy as well ?

Up-till now have made a simple win32console app which extracts the specs.

Thanks in advance! :)
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
If the server is constant; then just have the client write the data to a file on the server or open up a socket to a receiver program.

The receiver on the server will get the socket data and dump it into the SQL package.

Spawn a thread for each socket connected to handle the updates.

If you use a file, then after the data is written on the server, a semaphore file can be created.
Have a app on the server that then monitors for the data semaphore file. When the semaphore file is detected; the app can grab the datafile and process it.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Is this internal only? If not, why not just get the specifications via WMI in a scripting language? VBScript and JScript are supported on all versions of Windows out of the box and adding ActiveState Perl or IronPython is really simple if you'd prefer them.

A middle-man server process seems overkill as well, unless you don't trust the client portion and also have it santizing data and stuff.