Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionVisual C++ Express, No MFC? Does that matter? Pin
mtthw22-Oct-09 1:51
mtthw22-Oct-09 1:51 
AnswerRe: Visual C++ Express, No MFC? Does that matter? Pin
CPallini22-Oct-09 1:53
mveCPallini22-Oct-09 1:53 
GeneralRe: Visual C++ Express, No MFC? Does that matter? Pin
mtthw22-Oct-09 11:02
mtthw22-Oct-09 11:02 
AnswerRe: Visual C++ Express, No MFC? Does that matter? Pin
Maximilien22-Oct-09 2:45
Maximilien22-Oct-09 2:45 
GeneralRe: Visual C++ Express, No MFC? Does that matter? Pin
mtthw22-Oct-09 11:11
mtthw22-Oct-09 11:11 
AnswerRe: Visual C++ Express, No MFC? Does that matter? Pin
Richard MacCutchan22-Oct-09 2:47
mveRichard MacCutchan22-Oct-09 2:47 
GeneralRe: Visual C++ Express, No MFC? Does that matter? Pin
mtthw22-Oct-09 11:30
mtthw22-Oct-09 11:30 
GeneralRe: Visual C++ Express, No MFC? Does that matter? Pin
Richard MacCutchan22-Oct-09 23:20
mveRichard MacCutchan22-Oct-09 23:20 
AnswerRe: Visual C++ Express, No MFC? Does that matter? Pin
David Crow22-Oct-09 2:58
David Crow22-Oct-09 2:58 
AnswerRe: Visual C++ Express, No MFC? Does that matter? Pin
KarstenK22-Oct-09 21:38
mveKarstenK22-Oct-09 21:38 
JokeRe: Visual C++ Express, No MFC? Does that matter? Pin
Moak24-Oct-09 1:34
Moak24-Oct-09 1:34 
GeneralRe: Visual C++ Express, No MFC? Does that matter? Pin
KarstenK25-Oct-09 21:28
mveKarstenK25-Oct-09 21:28 
Questionproblem in splitter Pin
bagavathikumar22-Oct-09 1:43
bagavathikumar22-Oct-09 1:43 
AnswerRe: problem in splitter [modified] Pin
Iain Clarke, Warrior Programmer23-Oct-09 4:43
Iain Clarke, Warrior Programmer23-Oct-09 4:43 
QuestionMFC using Visual Studio 2005 Pin
RS.Ratheesh22-Oct-09 1:36
RS.Ratheesh22-Oct-09 1:36 
AnswerRe: MFC using Visual Studio 2005 Pin
Randor 22-Oct-09 2:04
professional Randor 22-Oct-09 2:04 

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.