Click here to Skip to main content
15,915,065 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: recordset question Pin
Nick Parker14-Jul-03 4:35
protectorNick Parker14-Jul-03 4:35 
GeneralRe: recordset question Pin
jafrazee14-Jul-03 7:34
jafrazee14-Jul-03 7:34 
GeneralRe: recordset question Pin
David Crow14-Jul-03 8:02
David Crow14-Jul-03 8:02 
GeneralRe: recordset question Pin
jafrazee14-Jul-03 8:16
jafrazee14-Jul-03 8:16 
GeneralRe: recordset question Pin
David Crow14-Jul-03 8:34
David Crow14-Jul-03 8:34 
GeneralRe: recordset question Pin
jafrazee14-Jul-03 8:40
jafrazee14-Jul-03 8:40 
GeneralRe: recordset question Pin
Toni7814-Jul-03 19:48
Toni7814-Jul-03 19:48 
Generalprinter prog Pin
:wq!14-Jul-03 3:35
:wq!14-Jul-03 3:35 
I'm writing a very simple console program to solve a very specific problem i'm having:

I have two computers set up in a home network configuration. One is newer and one is older. I have my printer plugged into the older one (becuase of space). However, if the older comp is not on and I run Word i get this error (that references the printer driver) that crashes word. I've called customer support for the printer and the vendor but they are clueless (go figure). So I've decided to write a simple fix for this prob. However, I haven't written code in a year (no so much a prob) and there are some things i've never had to do in a prog that i'm going to have to do for this:

-start a process (the printer software) from within my prog...I'm probably going to use CreateProcess()

-end a process from within my prog

-to check and see if a process is running (the printer software)...wishful thinking tells me someone has a function that does this and will simply return a bool value Smile | :)

-to check if the other computer is connected to the network...I figured the easiest way to do this would be to ping the other computer and use the ping as the deciding factor, but how do you get a ping from within your own prog?

Any help on this would definently be great.
Thanks

PS I'm going to hide the prog using parameters from CreateProcess() because creating a service would be too much of a hassle.
GeneralRe: printer prog Pin
John M. Drescher14-Jul-03 3:54
John M. Drescher14-Jul-03 3:54 
GeneralRe: printer prog Pin
:wq!14-Jul-03 4:25
:wq!14-Jul-03 4:25 
GeneralRe: printer prog Pin
:wq!14-Jul-03 4:35
:wq!14-Jul-03 4:35 
GeneralRe: printer prog Pin
John M. Drescher14-Jul-03 4:54
John M. Drescher14-Jul-03 4:54 
GeneralRe: printer prog Pin
:wq!14-Jul-03 4:57
:wq!14-Jul-03 4:57 
GeneralExtension association Pin
martin_j14-Jul-03 3:26
martin_j14-Jul-03 3:26 
GeneralRe: Extension association Pin
David Crow14-Jul-03 8:06
David Crow14-Jul-03 8:06 
GeneralRefreshing Child Windows Pin
RishiPatel14-Jul-03 2:46
RishiPatel14-Jul-03 2:46 
Generala hard question ---about using OpenDriver() Pin
gdzfy14-Jul-03 2:45
gdzfy14-Jul-03 2:45 
GeneralHide File/Folder Pin
vikramlinux14-Jul-03 2:41
vikramlinux14-Jul-03 2:41 
GeneralRe: Hide File/Folder Pin
David Crow14-Jul-03 3:13
David Crow14-Jul-03 3:13 
GeneralCSV class Pin
JensB14-Jul-03 2:26
JensB14-Jul-03 2:26 
GeneralCString questions Pin
johnstonsk14-Jul-03 2:21
johnstonsk14-Jul-03 2:21 
GeneralRe: CString questions Pin
Alexandru Savescu14-Jul-03 2:28
Alexandru Savescu14-Jul-03 2:28 
GeneralRe: CString questions Pin
Ryan Binns14-Jul-03 2:32
Ryan Binns14-Jul-03 2:32 
GeneralRe: CString questions Pin
David Crow14-Jul-03 3:17
David Crow14-Jul-03 3:17 
GeneralRe: CString questions Pin
johnstonsk14-Jul-03 3:28
johnstonsk14-Jul-03 3:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.