Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalfile too big Pin
Fernando A. Gomez F.24-Nov-04 13:47
Fernando A. Gomez F.24-Nov-04 13:47 
GeneralRe: file too big Pin
John R. Shaw24-Nov-04 14:05
John R. Shaw24-Nov-04 14:05 
Questionhow to add a help document in GUI Pin
gerbi24-Nov-04 13:09
gerbi24-Nov-04 13:09 
GeneralProblem Tracker Pin
navek24-Nov-04 12:05
navek24-Nov-04 12:05 
Questionhow to start Sql Server Agent from VC++? Pin
venadder24-Nov-04 10:25
venadder24-Nov-04 10:25 
AnswerRe: how to start Sql Server Agent from VC++? Pin
ThatsAlok24-Nov-04 18:35
ThatsAlok24-Nov-04 18:35 
GeneralRe: how to start Sql Server Agent from VC++? Pin
venadder25-Nov-04 5:56
venadder25-Nov-04 5:56 
GeneralRe: how to start Sql Server Agent from VC++? Pin
venadder25-Nov-04 10:54
venadder25-Nov-04 10:54 
I got a little proglem here though

The computer which I am interested in is on LAN. that is the computer running SQL SERVER and where SQLSERVERAGENT service should be running.

the problem is
OpenSCManager function returns RPC server not available if I use the following call:

::OpenSCManager( "\\servername", SERVICES_ACTIVE_DATABASE, SC_MANAGER_ALL_ACCESS );


and it paase and returns a handle if I make this call
hscManager = ::OpenSCManager( "servername", SERVICES_ACTIVE_DATABASE, SC_MANAGER_ALL_ACCESS );

the subsequent call to ::OpenService passes if i do this

hscService = ::OpenService( hscManager, serviceName, SERVICE_ALL_ACCESS );

but then the call to QueryServiceStatus fails if i do the following
::QueryServiceStatus( hscService, lpServiceStatus )

the error code says Invalid Handle (i assume hscService ).

What am i doing wrong here?
If the calls to openscmanager and openservice paas the QueryServiceStatus fails. but if I append "\\" to the servername the openscmanager fails.

what is going on here??
Anyone can help?

GeneralVC++ .NET ignores output/intermediary directory Pin
Robert Bielik24-Nov-04 9:18
Robert Bielik24-Nov-04 9:18 
GeneralRe: VC++ .NET ignores output/intermediary directory Pin
Andrew Walker24-Nov-04 23:07
Andrew Walker24-Nov-04 23:07 
GeneralRe: VC++ .NET ignores output/intermediary directory Pin
Robert Bielik24-Nov-04 23:10
Robert Bielik24-Nov-04 23:10 
GeneralRe: VC++ .NET ignores output/intermediary directory Pin
Robert Bielik28-Nov-04 20:23
Robert Bielik28-Nov-04 20:23 
Questionhide portions of a window? Pin
Will Davidow24-Nov-04 9:04
Will Davidow24-Nov-04 9:04 
AnswerRe: hide portions of a window? Pin
John R. Shaw24-Nov-04 13:07
John R. Shaw24-Nov-04 13:07 
AnswerRe: hide portions of a window? Pin
Ryan Binns24-Nov-04 17:02
Ryan Binns24-Nov-04 17:02 
GeneralChecking menu Pin
Anonymous24-Nov-04 6:54
Anonymous24-Nov-04 6:54 
GeneralRe: Checking menu Pin
toxcct24-Nov-04 7:00
toxcct24-Nov-04 7:00 
GeneralOwn class like MessageBox Pin
Eugene Pustovoyt24-Nov-04 6:52
Eugene Pustovoyt24-Nov-04 6:52 
GeneralRe: Own class like MessageBox Pin
toxcct24-Nov-04 7:05
toxcct24-Nov-04 7:05 
GeneralRe: Own class like MessageBox Pin
Eugene Pustovoyt24-Nov-04 8:05
Eugene Pustovoyt24-Nov-04 8:05 
GeneralRe: Own class like MessageBox Pin
toxcct24-Nov-04 8:14
toxcct24-Nov-04 8:14 
GeneralRe: Own class like MessageBox Pin
Eugene Pustovoyt24-Nov-04 9:27
Eugene Pustovoyt24-Nov-04 9:27 
GeneralLarge Document Pin
Anonymous24-Nov-04 6:41
Anonymous24-Nov-04 6:41 
GeneralRe: Large Document Pin
Jack Puppy24-Nov-04 7:00
Jack Puppy24-Nov-04 7:00 
GeneralRe: Large Document Pin
Anonymous24-Nov-04 9:55
Anonymous24-Nov-04 9:55 

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.