Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionseek prime number Pin
youbo31-Jul-07 3:13
youbo31-Jul-07 3:13 
AnswerRe: seek prime number Pin
CPallini31-Jul-07 3:28
mveCPallini31-Jul-07 3:28 
GeneralRe: seek prime number Pin
youbo31-Jul-07 3:46
youbo31-Jul-07 3:46 
QuestionModify contents of tooltip on mouse over filename Pin
AeJai31-Jul-07 2:44
AeJai31-Jul-07 2:44 
AnswerRe: Modify contents of tooltip on mouse over filename Pin
Nelek31-Jul-07 2:59
protectorNelek31-Jul-07 2:59 
GeneralRe: Modify contents of tooltip on mouse over filename Pin
AeJai31-Jul-07 3:31
AeJai31-Jul-07 3:31 
AnswerRe: Modify contents of tooltip on mouse over filename Pin
Iain Clarke, Warrior Programmer31-Jul-07 3:07
Iain Clarke, Warrior Programmer31-Jul-07 3:07 
QuestionODBC Database Function Query Pin
Programm3r31-Jul-07 0:53
Programm3r31-Jul-07 0:53 
Hi all,

I'm using an ODBC class that I found on CP. It works very well. I have one question regarding whether a certain function exists in the ODBC API. A function that can perform more or less the following:

Before I can insert a record into the database I need to check whether the certain record exists, so I perform a select statement on the table (with the records details), if I receive an integer value greater than 0 I know that the record exists, thus I need to perform an update statement else I perform a normal insert statement.

Is there a function that can compare the old values of the record with the new values I want to update the record with, and update the specified record.

I heard that Visual Age Smalltalk can perform this task, and had to find out if VC++ can do the same Smile | :)

P.S. If there is a better way of doing it please let me know Sigh | :sigh:

Many Thanks,
Regards,


The only programmers that are better that C programmers are those who code in 1's and 0's Green Alien | [Alien]

Smile | :) Programm3r

My Blog: ^_^

AnswerRe: ODBC Database Function Query Pin
mandanani31-Jul-07 1:14
mandanani31-Jul-07 1:14 
GeneralRe: ODBC Database Function Query Pin
Programm3r31-Jul-07 1:32
Programm3r31-Jul-07 1:32 
GeneralRe: ODBC Database Function Query Pin
James R. Twine31-Jul-07 2:58
James R. Twine31-Jul-07 2:58 
GeneralRe: ODBC Database Function Query Pin
Programm3r31-Jul-07 3:02
Programm3r31-Jul-07 3:02 
GeneralRe: ODBC Database Function Query Pin
James R. Twine31-Jul-07 3:21
James R. Twine31-Jul-07 3:21 
AnswerRe: ODBC Database Function Query Pin
Hamed Musavi31-Jul-07 4:32
Hamed Musavi31-Jul-07 4:32 
GeneralRe: ODBC Database Function Query Pin
Programm3r31-Jul-07 4:43
Programm3r31-Jul-07 4:43 
GeneralRe: ODBC Database Function Query [modified] Pin
Hamed Musavi31-Jul-07 5:07
Hamed Musavi31-Jul-07 5:07 
QuestionWriting to a file Pin
tom groezer31-Jul-07 0:51
tom groezer31-Jul-07 0:51 
AnswerRe: Writing to a file Pin
prasad_som31-Jul-07 0:56
prasad_som31-Jul-07 0:56 
QuestionPostthread message Pin
shakumar_2231-Jul-07 0:50
shakumar_2231-Jul-07 0:50 
AnswerRe: Postthread message Pin
prasad_som31-Jul-07 0:59
prasad_som31-Jul-07 0:59 
AnswerRe: Postthread message Pin
mandanani31-Jul-07 1:06
mandanani31-Jul-07 1:06 
GeneralRe: Postthread message Pin
mandanani31-Jul-07 1:17
mandanani31-Jul-07 1:17 
GeneralRe: Postthread message Pin
shakumar_2231-Jul-07 1:50
shakumar_2231-Jul-07 1:50 
GeneralRe: Postthread message Pin
James R. Twine31-Jul-07 3:03
James R. Twine31-Jul-07 3:03 
AnswerRe: Postthread message Pin
Iain Clarke, Warrior Programmer31-Jul-07 3:14
Iain Clarke, Warrior Programmer31-Jul-07 3:14 

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.