Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I Can Start The DDE Service, But How Do I Stop It??

Status
Not open for further replies.

chicagirl55

Programmer
Oct 9, 2002
5
0
0
US
I am using VB 6 to write to an Access datadase. I've been having problems starting and stopping the DDE services in the code recently. I figured out how to start the DDE service on the computer but now I need to figure out how to stop it. Here's what I have now:

Code:
Select Case SourceErrorCode 
    Case 297 'No DDE Connection 
      Call cmdEstablishDDE_Click 
      errorhandler = True 
    Case 286 'Net DDE Service Not Running 
      Response = Shell("c:\Winnt\System32\NetDDE.exe", vbMinimizedNoFocus) 
      If Response <> 0 Then errorhandler = True 
    Case 282 'Net DDE Service Not Running 

      Response = Shell(&quot;c:\Winnt\System32\NetDDE.exe&quot;, vbMinimizedNoFocus) 
      If Response <> 0 Then errorhandler = True

Any ideas on how to stop the DDE service would be greatly appreciated! Thanks.

[cannon] [pc3]
Don't we all feel like this every once in a while?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top