Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to Insert a record using SQLExecute. Pin
janaswamy uday12-Oct-09 5:31
janaswamy uday12-Oct-09 5:31 
QuestionRe: How to Insert a record using SQLExecute. Pin
David Crow12-Oct-09 5:39
David Crow12-Oct-09 5:39 
AnswerRe: How to Insert a record using SQLExecute. Pin
janaswamy uday12-Oct-09 7:44
janaswamy uday12-Oct-09 7:44 
QuestionRe: How to Insert a record using SQLExecute. Pin
David Crow12-Oct-09 7:47
David Crow12-Oct-09 7:47 
AnswerRe: How to Insert a record using SQLExecute. Pin
janaswamy uday12-Oct-09 7:50
janaswamy uday12-Oct-09 7:50 
QuestionRe: How to Insert a record using SQLExecute. Pin
David Crow12-Oct-09 7:53
David Crow12-Oct-09 7:53 
AnswerRe: How to Insert a record using SQLExecute. [modified] Pin
transoft12-Oct-09 11:09
transoft12-Oct-09 11:09 
AnswerRe: How to Insert a record using SQLExecute. Pin
Ozer Karaagac12-Oct-09 15:05
professionalOzer Karaagac12-Oct-09 15:05 
After reading your subsequent posts, it seems to be a string type problem. That is, ANSI/UNICODE mismatch.
Try the following;
USES_CONVERSION;

Ret = ::SQLExecDirect(StmtHandle,(SQLCHAR*)T2A((LPTSTR)(LPCTSTR)szResultant),SQL_NTS);
if(Ret != SQL_SUCCESS)
{
    ...
}
...

GeneralRe: How to Insert a record using SQLExecute. Pin
janaswamy uday12-Oct-09 16:40
janaswamy uday12-Oct-09 16:40 
GeneralRe: How to Insert a record using SQLExecute. Pin
Ozer Karaagac12-Oct-09 17:59
professionalOzer Karaagac12-Oct-09 17:59 
GeneralRe: How to Insert a record using SQLExecute. Pin
janaswamy uday13-Oct-09 4:56
janaswamy uday13-Oct-09 4:56 
GeneralRe: How to Insert a record using SQLExecute. Pin
Ozer Karaagac13-Oct-09 10:44
professionalOzer Karaagac13-Oct-09 10:44 
QuestionHow to get account expire value from Active Directory Pin
raja 412-Oct-09 2:47
raja 412-Oct-09 2:47 
AnswerRe: How to get account expire value from Active Directory Pin
CPallini12-Oct-09 3:04
mveCPallini12-Oct-09 3:04 
AnswerRe: How to get account expire value from Active Directory Pin
Randor 12-Oct-09 3:10
professional Randor 12-Oct-09 3:10 
QuestionSendMessage Aplication beetween switch xp users [modified] Pin
maulik_patel12-Oct-09 2:30
maulik_patel12-Oct-09 2:30 
AnswerRe: SendMessage Aplication beetween switch xp users Pin
«_Superman_»12-Oct-09 7:51
professional«_Superman_»12-Oct-09 7:51 
GeneralRe: SendMessage Aplication beetween switch xp users Pin
maulik_patel12-Oct-09 18:36
maulik_patel12-Oct-09 18:36 
QuestionCompilation error Pin
shilpi_gupta070812-Oct-09 2:01
shilpi_gupta070812-Oct-09 2:01 
AnswerRe: Compilation error Pin
Randor 12-Oct-09 2:15
professional Randor 12-Oct-09 2:15 
QuestionRe: Compilation error Pin
David Crow12-Oct-09 2:49
David Crow12-Oct-09 2:49 
AnswerRe: Compilation error Pin
shilpi_gupta070812-Oct-09 2:52
shilpi_gupta070812-Oct-09 2:52 
Questionminix Pin
rad-212-Oct-09 1:48
rad-212-Oct-09 1:48 
AnswerRe: minix Pin
Rajesh R Subramanian12-Oct-09 2:23
professionalRajesh R Subramanian12-Oct-09 2:23 
Questionminix 3 Pin
rad-212-Oct-09 1:38
rad-212-Oct-09 1:38 

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.