Click here to Skip to main content
15,881,715 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Hook communication Pin
«_Superman_»13-Sep-09 18:19
professional«_Superman_»13-Sep-09 18:19 
AnswerRe: Hook communication Pin
Naveen13-Sep-09 18:35
Naveen13-Sep-09 18:35 
GeneralRe: Hook communication Pin
paperboy214-Sep-09 2:36
paperboy214-Sep-09 2:36 
Questionhow to sending input in rich edit to a device?? Pin
mr bard212-Sep-09 17:55
mr bard212-Sep-09 17:55 
AnswerRe: how to sending input in rich edit to a device?? Pin
Code-o-mat12-Sep-09 22:11
Code-o-mat12-Sep-09 22:11 
AnswerRe: how to sending input in rich edit to a device?? Pin
Richard MacCutchan12-Sep-09 22:18
mveRichard MacCutchan12-Sep-09 22:18 
Questionerror C2664:'load':cannot convert parameter 1 from 'unsigned short *' to 'struct tagVARIANT' Pin
CHYGO12-Sep-09 16:50
CHYGO12-Sep-09 16:50 
AnswerRe: error C2664:'load':cannot convert parameter 1 from 'unsigned short *' to 'struct tagVARIANT' Pin
norish12-Sep-09 20:26
norish12-Sep-09 20:26 
The load's prototype is below, this is the reason.
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE load(
    /* [in] */ VARIANT xmlSource,
    /* [retval][out] */ VARIANT_BOOL *isSuccessful) = 0;


One solution is this.
#include <comdef.h>
...
bstr = filename.AllocSysString();
_variant_t file(bstr);
hr = pDoc->load (file, b_load);

GeneralRe: error C2664:'load':cannot convert parameter 1 from 'unsigned short *' to 'struct tagVARIANT' Pin
«_Superman_»13-Sep-09 18:23
professional«_Superman_»13-Sep-09 18:23 
QuestionMessage Loop... Pin
birajendu12-Sep-09 9:36
birajendu12-Sep-09 9:36 
QuestionRe: Message Loop... Pin
David Crow12-Sep-09 15:31
David Crow12-Sep-09 15:31 
AnswerRe: Message Loop... Pin
birajendu12-Sep-09 18:11
birajendu12-Sep-09 18:11 
GeneralRe: Message Loop... Pin
Saurabh.Garg12-Sep-09 20:37
Saurabh.Garg12-Sep-09 20:37 
GeneralRe: Message Loop... Pin
Moak12-Sep-09 22:38
Moak12-Sep-09 22:38 
QuestionRe: Message Loop... Pin
Rajesh R Subramanian13-Sep-09 3:39
professionalRajesh R Subramanian13-Sep-09 3:39 
AnswerRe: Message Loop... Pin
birajendu13-Sep-09 17:23
birajendu13-Sep-09 17:23 
GeneralRe: Message Loop... Pin
Luc Pattyn13-Sep-09 17:36
sitebuilderLuc Pattyn13-Sep-09 17:36 
AnswerRe: Message Loop... Pin
jinjiashan13-Sep-09 17:39
jinjiashan13-Sep-09 17:39 
Questiontimer control Pin
hellogany12-Sep-09 5:20
hellogany12-Sep-09 5:20 
AnswerRe: timer control Pin
Chris Losinger12-Sep-09 9:40
professionalChris Losinger12-Sep-09 9:40 
AnswerRe: timer control Pin
jinjiashan13-Sep-09 17:44
jinjiashan13-Sep-09 17:44 
QuestionXML Data in Tree control Pin
hellogany12-Sep-09 5:19
hellogany12-Sep-09 5:19 
AnswerRe: XML Data in Tree control Pin
hellogany13-Sep-09 21:08
hellogany13-Sep-09 21:08 
AnswerRe: XML Data in Tree control Pin
Richard MacCutchan13-Sep-09 23:38
mveRichard MacCutchan13-Sep-09 23:38 
QuestionIs it possible to protect a folder in windows using Visual C++ Pin
Member 211485212-Sep-09 4:41
Member 211485212-Sep-09 4:41 

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.