Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Richard MacCutchan13-Oct-09 7:04
mveRichard MacCutchan13-Oct-09 7:04 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Mohamed_Khalil13-Oct-09 7:10
Mohamed_Khalil13-Oct-09 7:10 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Richard MacCutchan13-Oct-09 7:20
mveRichard MacCutchan13-Oct-09 7:20 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Mohamed_Khalil13-Oct-09 7:25
Mohamed_Khalil13-Oct-09 7:25 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Mohamed_Khalil13-Oct-09 7:29
Mohamed_Khalil13-Oct-09 7:29 
GeneralRe: I have problem with C for passing ARGS to main function in LINUX Pin
Richard MacCutchan13-Oct-09 9:12
mveRichard MacCutchan13-Oct-09 9:12 
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 
Hi All,

I have an application in which i am taking an LOGINREC structure variable like this LOGINREC m_loginrec which is defined in syblogin.h of SYBASE SDK 11.1.1
and my code is like this

if ((m_loginrec = dblogin()) == 0)
{
TRACE0("dbl: couldn't get loginrec.\n");
return FALSE;
}

// Set the login timeout value.
dbsetlogintime(m_login_time);

// Set up the loginrec.
if (m_application.GetLength() > 0)
DBSETLAPP(m_loginrec, (char *) (const char *) m_application);
if (m_user.GetLength() > 0)
DBSETLUSER(m_loginrec, (char *) (const char *) m_user);
if (m_password.GetLength() > 0)
DBSETLPWD(m_loginrec, (char *) (const char *) m_password);
if (m_host.GetLength() > 0)
DBSETLHOST(m_loginrec, (char *) (const char *) m_host);

// Open the connection.
if ((m_dbproc = dbopen(m_loginrec, (char *) (const char *)m_server)) == 0)
{
TRACE1("dbl: couldn't open connection to server %s.\n",
(char *) (const char *) m_server);
return(FALSE);
}
The problem of mine is

As i will get LOGINREC pointer through dblogin() function,that pointer i am passing through dbopen() function.My code is perfectly working in vs-2003 in MS-2000 machine...

But when i migrate the code it is returning the proper LOGINREC when i enter correct login and password otherwise The entire application is getting crashed when i enter wrong username/password...
Can i change or define my own LOGINREC (or) It is with problem of VISTA machine...?
Can anybody suggest...?

Thanks in Advance
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 
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 

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.