Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSending small strings through sockets (lag problem) Pin
kfaday14-Jun-04 7:44
kfaday14-Jun-04 7:44 
GeneralRe: Sending small strings through sockets (lag problem) Pin
Ravi Bhavnani14-Jun-04 8:58
professionalRavi Bhavnani14-Jun-04 8:58 
GeneralRe: Sending small strings through sockets (lag problem) Pin
gamitech14-Jun-04 9:10
gamitech14-Jun-04 9:10 
GeneralRe: Sending small strings through sockets (lag problem) Pin
kfaday14-Jun-04 9:32
kfaday14-Jun-04 9:32 
QuestionHow to capture "network cable unplugged" event Pin
bikram singh14-Jun-04 7:43
bikram singh14-Jun-04 7:43 
AnswerRe: How to capture "network cable unplugged" event Pin
David Crow14-Jun-04 8:49
David Crow14-Jun-04 8:49 
GeneralRe: How to capture "network cable unplugged" event Pin
bikram singh15-Jun-04 6:37
bikram singh15-Jun-04 6:37 
GeneralNT Windows Service in C++ to call a SQL Server Stored Procedure Pin
Anand Sundaram14-Jun-04 6:56
Anand Sundaram14-Jun-04 6:56 
Hello Everyone

I am trying to automate a database update (that involves some business logic) using a windows service. The constraints are that
1. I cannot write the service in .NET
Hence I opted to write the service as a C++ executable.

In the service, I have a call using ODBC API (ExecuteSQL method) to a SQL Server Stored procedure just before the call to Sleep method.

The problem is that the call to the stored proc to be executed does NOT work. But the Service installs/uninstalls/starts/stops fine.

If I strip off the code for the service and just run the ODBC part of it, it works fine.

I would like to know if there are issues that need to be taken into account if I make a ODBC call in an NT Service.

I will greatly appreciate any inputs on this.



Thanks
Anand

GeneralRe: NT Windows Service in C++ to call a SQL Server Stored Procedure Pin
Xiangyang Liu 刘向阳14-Jun-04 7:05
Xiangyang Liu 刘向阳14-Jun-04 7:05 
GeneralStored Procedure Concept Pin
Sridhar Sanikommu14-Jun-04 6:44
Sridhar Sanikommu14-Jun-04 6:44 
GeneralRe: Stored Procedure Concept Pin
David Crow14-Jun-04 8:55
David Crow14-Jun-04 8:55 
GeneralRe: Stored Procedure Concept Pin
Sridhar Sanikommu14-Jun-04 9:15
Sridhar Sanikommu14-Jun-04 9:15 
GeneralRe: Stored Procedure Concept Pin
David Crow14-Jun-04 10:21
David Crow14-Jun-04 10:21 
GeneralRe: Stored Procedure Concept Pin
Sridhar Sanikommu14-Jun-04 10:50
Sridhar Sanikommu14-Jun-04 10:50 
Generaldirect stream copy with AVIFile Pin
Zizilamoroso14-Jun-04 6:32
Zizilamoroso14-Jun-04 6:32 
GeneralI shut down explorer.exe but it restarts itself... Pin
Ian Bowler14-Jun-04 5:50
Ian Bowler14-Jun-04 5:50 
GeneralRe: I shut down explorer.exe but it restarts itself... Pin
toxcct14-Jun-04 6:01
toxcct14-Jun-04 6:01 
GeneralRe: I shut down explorer.exe but it restarts itself... Pin
Ian Bowler14-Jun-04 6:16
Ian Bowler14-Jun-04 6:16 
GeneralRe: I shut down explorer.exe but it restarts itself... Pin
jmkhael14-Jun-04 6:41
jmkhael14-Jun-04 6:41 
GeneralRe: I shut down explorer.exe but it restarts itself... Pin
Ian Bowler14-Jun-04 6:50
Ian Bowler14-Jun-04 6:50 
GeneralRe: I shut down explorer.exe but it restarts itself... Pin
Dan Madden14-Jun-04 9:37
Dan Madden14-Jun-04 9:37 
QuestionHow to show xp toolbar? Pin
JabraJabra14-Jun-04 4:55
JabraJabra14-Jun-04 4:55 
Generallooking for a tool or utility Pin
Anonymous14-Jun-04 4:55
Anonymous14-Jun-04 4:55 
QuestionHow to convert HTML to word DOC? Pin
Tcpip200514-Jun-04 4:31
Tcpip200514-Jun-04 4:31 
AnswerRe: How to convert HTML to word DOC? Pin
vcplusplus14-Jun-04 5:09
vcplusplus14-Jun-04 5:09 

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.