Click here to Skip to main content
16,018,057 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
If you compare your code with the article content, then you may find:
vital_parsley2000 wrote:
pCmd->CreateParameter("strIsbn",adVarChar,adParamInput,sizeof(char),vtMissing);

should possibly be
paramIsbn = pCmd->CreateParameter("strIsbn",adVarChar,adParamInput,-1,vtMissing);


Where paramIsbn must be declared as _ParameterPtr

Moreover you should replace

vital_parsley2000 wrote:
pCmd->Parameters->Append((_variant_t)strIsbn);


with something like this
paramIsbn->Value = _variant_t( strIsbn );
pCmd->Parameters->Append(paramIsbn);



The same for all the other parameters
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

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 
GeneralRe: Debug Assertion Failed Pin
Davitor22-May-09 2:48
Davitor22-May-09 2:48 
QuestionQuery About SDI Application Pin
Saleem Anwar22-May-09 1:08
Saleem Anwar22-May-09 1:08 
AnswerRe: Query About SDI Application Pin
Le@rner22-May-09 20:52
Le@rner22-May-09 20:52 
QuestionHow to send a soap message from browser to a local webservice developed in vc++ Pin
sujeet21-May-09 23:07
sujeet21-May-09 23:07 
AnswerRe: How to send a soap message from browser to a local webservice developed in vc++ Pin
ThatsAlok21-May-09 23:11
ThatsAlok21-May-09 23:11 
QuestionWM_KEYDOWN Pin
susanne121-May-09 22:33
susanne121-May-09 22:33 
AnswerRe: WM_KEYDOWN Pin
_AnsHUMAN_ 21-May-09 22:39
_AnsHUMAN_ 21-May-09 22:39 
GeneralRe: WM_KEYDOWN Pin
susanne121-May-09 22:53
susanne121-May-09 22:53 
GeneralRe: WM_KEYDOWN Pin
ThatsAlok21-May-09 23:10
ThatsAlok21-May-09 23:10 
GeneralRe: WM_KEYDOWN Pin
susanne121-May-09 23:20
susanne121-May-09 23:20 

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.