Click here to Skip to main content
15,922,407 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Delaying Shutdown through windows service and executing scripts ? Pin
Randor 22-Oct-09 3:08
professional Randor 22-Oct-09 3:08 
GeneralRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari22-Oct-09 3:24
Kushagra Tiwari22-Oct-09 3:24 
QuestionRe: Delaying Shutdown through windows service and executing scripts ? Pin
Randor 22-Oct-09 3:30
professional Randor 22-Oct-09 3:30 
AnswerRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari22-Oct-09 3:39
Kushagra Tiwari22-Oct-09 3:39 
GeneralRe: Delaying Shutdown through windows service and executing scripts ? Pin
Randor 22-Oct-09 3:49
professional Randor 22-Oct-09 3:49 
AnswerRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari22-Oct-09 3:47
Kushagra Tiwari22-Oct-09 3:47 
AnswerRe: Delaying Shutdown through windows service and executing scripts ? Pin
Covean22-Oct-09 3:42
Covean22-Oct-09 3:42 
GeneralRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari22-Oct-09 3:48
Kushagra Tiwari22-Oct-09 3:48 
QuestionRe: Delaying Shutdown through windows service and executing scripts ? Pin
David Crow22-Oct-09 4:01
David Crow22-Oct-09 4:01 
AnswerRe: Delaying Shutdown through windows service and executing scripts ? Pin
Covean22-Oct-09 4:08
Covean22-Oct-09 4:08 
QuestionRe: Delaying Shutdown through windows service and executing scripts ? [modified] Pin
Kushagra Tiwari22-Oct-09 5:11
Kushagra Tiwari22-Oct-09 5:11 
AnswerRe: Delaying Shutdown through windows service and executing scripts ? [modified] Pin
Covean22-Oct-09 5:50
Covean22-Oct-09 5:50 
GeneralRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari22-Oct-09 6:46
Kushagra Tiwari22-Oct-09 6:46 
QuestionRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari22-Oct-09 21:10
Kushagra Tiwari22-Oct-09 21:10 
GeneralRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari22-Oct-09 23:29
Kushagra Tiwari22-Oct-09 23:29 
GeneralRe: Delaying Shutdown through windows service and executing scripts ? Pin
Covean23-Oct-09 0:31
Covean23-Oct-09 0:31 
GeneralRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari23-Oct-09 0:39
Kushagra Tiwari23-Oct-09 0:39 
QuestionRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari23-Oct-09 2:12
Kushagra Tiwari23-Oct-09 2:12 
AnswerRe: Delaying Shutdown through windows service and executing scripts ? Pin
Covean23-Oct-09 2:40
Covean23-Oct-09 2:40 
GeneralRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari23-Oct-09 3:01
Kushagra Tiwari23-Oct-09 3:01 
QuestionRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari26-Oct-09 1:28
Kushagra Tiwari26-Oct-09 1:28 
AnswerRe: Delaying Shutdown through windows service and executing scripts ? Pin
Covean26-Oct-09 4:05
Covean26-Oct-09 4:05 
AnswerRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari26-Oct-09 20:21
Kushagra Tiwari26-Oct-09 20:21 
QuestionSYBASE's Functions giving LOGIN CRASH problem in VC++ code Pin
Vetukuri Raju22-Oct-09 1:59
Vetukuri Raju22-Oct-09 1:59 
Hi ALL,

I have a strange problem with me..... I have an application(vc++) in which i am taking login to SYBASE database.For that i am using Sybase SDk.My code is working fine with MS-2000 OS,But when i am working the same code in vista machine i am getting login crash when I enter wrong password/username....But working successfully with correct details...

I have code like this...
_dbproc = dbConnect (&_loginfo, _T("Phoenix")); (this is calling of my function)
Called Function:
DBPROCESS NEAR * CALLBACK dbConnect (LPLOGINFO li, LPSTR app)

{
DBPROCESS NEAR *dbproc;

LOGINREC *login;

if ((login = dblogin ()) == NULL)
return (DBPROCESS NEAR *) NULL;

DBSETLHOST (login, _dbhost); //for host
DBSETLUSER (login, li->dbid); //for username
DBSETLPWD (login, li->dbpwd);//for password
DBSETLAPP (login, app); //for application name

dbproc = dbopen (login, li->dbsrv); (My Login crashes here when i enter wrong username/password)

dbfreelogin (login);

if (dbproc != (DBPROCESS NEAR *) NULL)
dbuse (dbproc, li->dbdb);

return dbproc;
}

As i said above dblogin() is a function that returns LOGINREC structure pointer when we provide correct login details otherwise FALSE...
And dbopen() function takes the LOGINREC as a first input argument and tries to open the application...
But not returning back when i enter incorrect login details.....There it is crashing...

Can anybody helps in this..
Thanks in advance
GeneralRe: SYBASE's Functions giving LOGIN CRASH problem in VC++ code Pin
CPallini22-Oct-09 2:33
mveCPallini22-Oct-09 2:33 

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.