Click here to Skip to main content
15,921,226 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNot able to add event handlers!! Pin
SteamEngine15-Oct-06 22:17
SteamEngine15-Oct-06 22:17 
AnswerRe: Not able to add event handlers!! Pin
Cedric Moonen15-Oct-06 22:25
Cedric Moonen15-Oct-06 22:25 
GeneralRe: Not able to add event handlers!! Pin
prasad_som15-Oct-06 22:46
prasad_som15-Oct-06 22:46 
AnswerRe: Not able to add event handlers!! Pin
Hamid_RT17-Oct-06 6:41
Hamid_RT17-Oct-06 6:41 
QuestionHow to list Port Name in Visual C++ ? Pin
Gabriel Fernandez15-Oct-06 22:06
Gabriel Fernandez15-Oct-06 22:06 
AnswerRe: How to list Port Name in Visual C++ ? Pin
BadKarma15-Oct-06 22:46
BadKarma15-Oct-06 22:46 
GeneralRe: How to list Port Name in Visual C++ ? Pin
Gabriel Fernandez15-Oct-06 23:54
Gabriel Fernandez15-Oct-06 23:54 
QuestionADO execute problem Pin
_tasleem15-Oct-06 21:23
_tasleem15-Oct-06 21:23 
hi all i want to write the values inot database through ADO through Command variable but it gives error when i pass same values through stored procedure it works fine,here is the code

m_cptr->CommandText=(_bstr_t)"Insert into tbltemp(v1,v2,v3)values(@UserIp,@Pic,@WTime");<br />
m_cptr->Parameters->Append(m_cptr->CreateParameter(_bstr_t("@UserIp"),adVarChar,adParamInput,strIp.GetLength(),_bstr_t(strIp)));<br />
m_cptr->Parameters->Append(m_cptr->CreateParameter(_bstr_t("@Pic"),adLongVarBinary,adParamInput,obj.GetLength(),bpic));<br />
m_cptr->Parameters->Append(m_cptr->CreateParameter(_bstr_t("@WTime"),adVarChar,adParamInput,strTime.GetLength(),_bstr_t(strTime)));<br />
m_cptr->Execute(NULL,NULL,adCmdText);


but when execute method is throws exception called it gives error @UserIp
undeclared identifier
i tried to insert simple con.execute query method without command but it does not type cast teh bpic which contain image data and not insert in databse.
tell me how to do that.


Tasleem Arif

Questionole/db&#12288;connection Pin
With_problem15-Oct-06 21:01
With_problem15-Oct-06 21:01 
AnswerRe: ole/db&#12288;connection Pin
_tasleem15-Oct-06 21:29
_tasleem15-Oct-06 21:29 
QuestionCDO Pin
mkoliv15-Oct-06 20:54
mkoliv15-Oct-06 20:54 
AnswerRe: CDO tool needed!!! Pin
S Douglas15-Oct-06 21:27
professionalS Douglas15-Oct-06 21:27 
GeneralRe: CDO tool needed!!! Pin
Hamid_RT15-Oct-06 21:39
Hamid_RT15-Oct-06 21:39 
GeneralRe: CDO tool needed!!! Pin
S Douglas15-Oct-06 21:46
professionalS Douglas15-Oct-06 21:46 
GeneralRe: CDO tool needed!!! Pin
Hamid_RT15-Oct-06 22:25
Hamid_RT15-Oct-06 22:25 
GeneralMessage Closed Pin
15-Oct-06 21:50
mkoliv15-Oct-06 21:50 
GeneralRe: CDO tool needed!!! Pin
S Douglas15-Oct-06 21:56
professionalS Douglas15-Oct-06 21:56 
QuestionDLL Function Export Problem Pin
Programm3r15-Oct-06 20:52
Programm3r15-Oct-06 20:52 
GeneralRe: DLL Function Export Problem Pin
prasad_som15-Oct-06 22:51
prasad_som15-Oct-06 22:51 
QuestionRe: DLL Function Export Problem Pin
Programm3r15-Oct-06 23:04
Programm3r15-Oct-06 23:04 
GeneralRe: DLL Function Export Problem Pin
prasad_som15-Oct-06 23:18
prasad_som15-Oct-06 23:18 
GeneralRe: DLL Function Export Problem Pin
Programm3r15-Oct-06 23:26
Programm3r15-Oct-06 23:26 
GeneralRe: DLL Function Export Problem Pin
Programm3r15-Oct-06 23:39
Programm3r15-Oct-06 23:39 
GeneralRe: DLL Function Export Problem Pin
prasad_som16-Oct-06 0:03
prasad_som16-Oct-06 0:03 
GeneralRe: DLL Function Export Problem Pin
Programm3r16-Oct-06 0:08
Programm3r16-Oct-06 0:08 

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.