Click here to Skip to main content
15,906,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: LOGINREC problem...IN VISTA machine under VS-2008 Pin
Bram van Kampen14-Oct-09 10:20
Bram van Kampen14-Oct-09 10:20 
Smile | :)
Hi,

Vetukuri Raju wrote:
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??


I am Unfamiliar with SyBase, I just gave a general approach to such a problem.
What is your Target Platform. If it is Vista Only, maybe you should try the Upgrade. If it is a mixture of systems, Common sense states that you should consider if the new SDK is compatible with all the platforms your customers have.


Vetukuri Raju wrote:
My control is not coming to _dbproc from the CALLBACK function.

So without i get return value how can i apply try and catch..


That does not matter, you do not need a return value if things go wrong. An exception was thrown somewhere, you must catch it yourself, if you don't the System will catch it, and close down your app.
Just try something like:


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

        return dbproc;
      }
    }
    catch(...){
      AfxMessageBox("Invalid Name or Password");
      continue;
    }
}//FOR


In the above if anything in the try{ } block throws an exception, control will be passed to the code in your
catch{ } block, Here you handle the exception by showing a Messagebox, and try again.

The above will probably some work, but I hope you get the General Idea. (A good idea would be to allow the user to enter a New Password, or, to exit ).

Regards,

Bram van Kampen

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 
GeneralRe: Extracting data from the webpages using MFC Pin
Richard MacCutchan13-Oct-09 3:12
mveRichard MacCutchan13-Oct-09 3:12 

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.