Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDoes Postmessage/SendMessage require a Message Map entries Pin
ForNow22-May-09 6:38
ForNow22-May-09 6:38 
AnswerRe: Does Postmessage/SendMessage require a Message Map entries Pin
led mike22-May-09 8:37
led mike22-May-09 8:37 
GeneralRe: Does Postmessage/SendMessage require a Message Map entries Pin
ForNow22-May-09 10:50
ForNow22-May-09 10:50 
GeneralRe: Does Postmessage/SendMessage require a Message Map entries Pin
«_Superman_»22-May-09 16:21
professional«_Superman_»22-May-09 16:21 
GeneralRe: Does Postmessage/SendMessage require a Message Map entries Pin
ForNow23-May-09 15:33
ForNow23-May-09 15:33 
QuestionGPS & GoogleMap matching Pin
yunpil22-May-09 5:17
yunpil22-May-09 5:17 
AnswerRe: GPS & GoogleMap matching Pin
Stuart Dootson22-May-09 6:33
professionalStuart Dootson22-May-09 6:33 
RantRe: GPS & GoogleMap matching Pin
Rajesh R Subramanian23-May-09 0:39
professionalRajesh R Subramanian23-May-09 0:39 
QuestionOutlook email(.Msg ) file problem in vista explorer.... Pin
onlyjaypatel22-May-09 3:33
onlyjaypatel22-May-09 3:33 
QuestionCommand object execute parameters [modified] Pin
vital_parsley200022-May-09 2:56
vital_parsley200022-May-09 2:56 
QuestionRe: Command object execute parameters Pin
CPallini22-May-09 3:08
mveCPallini22-May-09 3:08 
AnswerRe: Command object execute parameters Pin
vital_parsley200022-May-09 4:01
vital_parsley200022-May-09 4:01 
GeneralRe: Command object execute parameters Pin
Stuart Dootson22-May-09 4:52
professionalStuart Dootson22-May-09 4:52 
GeneralRe: Command object execute parameters Pin
vital_parsley200022-May-09 5:13
vital_parsley200022-May-09 5:13 
GeneralRe: Command object execute parameters Pin
Stuart Dootson22-May-09 6:02
professionalStuart Dootson22-May-09 6:02 
vital_parsley2000 wrote:
Error:80020005.
ErrorMessage:Type mismatch..


Hmmm - what does that tell us.... Type mismatch So, what type are involved? 1) The column types, 2) the declared parameter types, 3) the value you pass for the parameter. Let's examine your first parameter:

pCmd->CreateParameter("strIsbn",adVarChar,adParamInput,sizeof(char),vtMissing);


Column type? Don't know, you haven't told us.
Parameter type? VARCHAR - but you've specified a maximum length of 1 (the sizeof(char) bit)
Value? well, immediately vtMissing, but later you assign it with

pCmd->Parameters->Append((_variant_t)strIsbn); //GOES INTO THE CATCH BLOCK FROM HERE.


All looks well ...except that if strIsbn is a string containing more than one character, it's incompatible with the parameter, and (I suspect) you have a type mis-match.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Command object execute parameters Pin
Stuart Dootson22-May-09 6:32
professionalStuart Dootson22-May-09 6:32 
GeneralRe: Command object execute parameters Pin
vital_parsley200022-May-09 19:01
vital_parsley200022-May-09 19:01 
AnswerRe: Command object execute parameters Pin
CPallini22-May-09 6:05
mveCPallini22-May-09 6:05 
GeneralRe: Command object execute parameters Pin
vital_parsley200022-May-09 6:32
vital_parsley200022-May-09 6:32 
GeneralRe: Command object execute parameters Pin
CPallini22-May-09 8:38
mveCPallini22-May-09 8:38 
GeneralRe: Command object execute parameters Pin
vital_parsley200022-May-09 19:34
vital_parsley200022-May-09 19:34 
GeneralRe: Command object execute parameters Pin
Stuart Dootson22-May-09 22:16
professionalStuart Dootson22-May-09 22:16 
GeneralRe: Command object execute parameters Pin
vital_parsley200023-May-09 0:38
vital_parsley200023-May-09 0:38 
QuestionDebug Assertion Failed Pin
Davitor22-May-09 2:29
Davitor22-May-09 2:29 
AnswerRe: Debug Assertion Failed Pin
sujeet22-May-09 2:37
sujeet22-May-09 2:37 

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.