D
Dominic Godin
Hi,
I have decleared the IDispatch interface but I'm having trouble using it.
Word.Application MSWord = new Word.ApplicationClass();
IDispatch wb = (IDispatch)MSWord.WordBasic;
int lcid = System.Globalization.CultureInfo.CurrentCulture.LCID;
string[] rgsNames = {"DisableAutoMacros"};
int[] rgDispId;
Guid nullGUID = Guid.Empty;
int result = wb.GetIDsOfNames(ref nullGUID, rgsNames, 2,
lcid, out rgDispId);
This code sets the result to -1073741819. I can find next to no info on
this error code. Also the rgDispId stays null. What I'm I doing wrong?
Any Ideas?
Dominic Godin
I have decleared the IDispatch interface but I'm having trouble using it.
Word.Application MSWord = new Word.ApplicationClass();
IDispatch wb = (IDispatch)MSWord.WordBasic;
int lcid = System.Globalization.CultureInfo.CurrentCulture.LCID;
string[] rgsNames = {"DisableAutoMacros"};
int[] rgDispId;
Guid nullGUID = Guid.Empty;
int result = wb.GetIDsOfNames(ref nullGUID, rgsNames, 2,
lcid, out rgDispId);
This code sets the result to -1073741819. I can find next to no info on
this error code. Also the rgDispId stays null. What I'm I doing wrong?
Any Ideas?
Dominic Godin