Click here to Skip to main content
15,890,372 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Bram van Kampen13-Oct-09 12:58
Bram van Kampen13-Oct-09 12:58 
QuestionLOGINREC problem...IN VISTA machine under VS-2008 Pin
Vetukuri Raju13-Oct-09 5:48
Vetukuri Raju13-Oct-09 5:48 
AnswerRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
«_Superman_»13-Oct-09 9:10
professional«_Superman_»13-Oct-09 9:10 
GeneralRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
Vetukuri Raju13-Oct-09 22:15
Vetukuri Raju13-Oct-09 22:15 
GeneralRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
«_Superman_»14-Oct-09 7:32
professional«_Superman_»14-Oct-09 7:32 
GeneralRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
Vetukuri Raju13-Oct-09 22:15
Vetukuri Raju13-Oct-09 22:15 
AnswerRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
Bram van Kampen13-Oct-09 13:09
Bram van Kampen13-Oct-09 13:09 
GeneralRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
Vetukuri Raju14-Oct-09 6:04
Vetukuri Raju14-Oct-09 6:04 
Hi thank you for reply...

Actually we are using SYBASE SDK11.1.1 in MS-2000....But In Vista OS,Microsoft has come with SDK 12.5.1
Can you please tell am i getting this problem because of the SDK?
Should i install the same SDK into my Vista Machine??
AND

Actually my code is like this..I am using a callback function in my application...
if (dlg.DoModal() != IDOK) {
PostQuitMessage(0);
return 0;
}
else {
lstrcpyn(_loginfo.dbpwd, dlg.m_csPassword, 31);
lstrcpyn(_loginfo.dbid, dlg.m_csUser, 31);
lstrcpyn(_loginfo.dbsrv, dlg.m_csServer, 31);
lstrcpyn(_loginfo.dbdb, dlg.m_csDatabase, 31);
}
_dbproc = dbConnect (&_loginfo, _T("Phoenix"));

if (_dbproc != NULL)
break;

msg = (::GetKeyState (VK_CAPITAL) & 0x0001) ? IDS_ERR_LOGINFAILEDCAPS : IDS_ERR_LOGINFAILED;

if (AfxMessageBox (msg, MB_OKCANCEL | MB_ICONHAND) == IDCANCEL) {
PostQuitMessage(0);
return 0;
}
}
And CALLBACK function is like this....
At below code(bolded) my application getting crashed...


DBPROCESS NEAR * CALLBACK dbConnect (LPLOGINFO li, LPSTR app)

{
DBPROCESS NEAR *dbproc;

LOGINREC *login;

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

DBSETLHOST (login, _dbhost);
DBSETLUSER (login, li->dbid);
DBSETLPWD (login, li->dbpwd);
DBSETLAPP (login, app);

dbproc = dbopen (login, li->dbsrv);

dbfreelogin (login);

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

return dbproc;
}
My control is not coming to _dbproc from the CALLBACK function
So without i get return value how can i apply try and catch..

can you please help further..
GeneralRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
Bram van Kampen14-Oct-09 10:20
Bram van Kampen14-Oct-09 10:20 
GeneralRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
Vetukuri Raju22-Oct-09 1:41
Vetukuri Raju22-Oct-09 1:41 
QuestionFacing problem with Sockets in Win2008 Pin
V K 213-Oct-09 4:26
V K 213-Oct-09 4:26 
QuestionCustomButton Pin
ratprita13-Oct-09 1:19
ratprita13-Oct-09 1:19 
AnswerRe: CustomButton Pin
CPallini13-Oct-09 1:37
mveCPallini13-Oct-09 1:37 
Questionservice program Pin
zon_cpp13-Oct-09 0:21
zon_cpp13-Oct-09 0:21 
AnswerRe: service program Pin
Richard MacCutchan13-Oct-09 0:29
mveRichard MacCutchan13-Oct-09 0:29 
AnswerRe: service program Pin
CPallini13-Oct-09 0:32
mveCPallini13-Oct-09 0:32 
AnswerRe: service program Pin
Anish C.V13-Oct-09 1:09
Anish C.V13-Oct-09 1:09 
AnswerRe: service program Pin
Rajesh R Subramanian13-Oct-09 2:44
professionalRajesh R Subramanian13-Oct-09 2:44 
AnswerRe: service program Pin
David Crow13-Oct-09 3:35
David Crow13-Oct-09 3:35 
AnswerRe: service program Pin
Hadi Dayvary13-Oct-09 10:16
professionalHadi Dayvary13-Oct-09 10:16 
QuestionExtracting data from the webpages using MFC Pin
NaveenHS13-Oct-09 0:12
NaveenHS13-Oct-09 0:12 
AnswerRe: Extracting data from the webpages using MFC Pin
CPallini13-Oct-09 0:29
mveCPallini13-Oct-09 0:29 
GeneralRe: Extracting data from the webpages using MFC Pin
NaveenHS13-Oct-09 0:35
NaveenHS13-Oct-09 0:35 
GeneralRe: Extracting data from the webpages using MFC Pin
kilt13-Oct-09 2:12
kilt13-Oct-09 2:12 
GeneralRe: Extracting data from the webpages using MFC Pin
CPallini13-Oct-09 2:23
mveCPallini13-Oct-09 2:23 

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.