Hi,
I have decleared the IDispatch interface but I'm having trouble using it.
Word.Applicatio n MSWord = new Word.Applicatio nClass();
IDispatch wb = (IDispatch)MSWo rd.WordBasic;
int lcid = System.Globaliz ation.CultureIn fo.CurrentCultu re.LCID;
string[] rgsNames = {"DisableAutoMa cros"};
int[] rgDispId;
Guid nullGUID = Guid.Empty;
int result = wb.GetIDsOfName s(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.Applicatio n MSWord = new Word.Applicatio nClass();
IDispatch wb = (IDispatch)MSWo rd.WordBasic;
int lcid = System.Globaliz ation.CultureIn fo.CurrentCultu re.LCID;
string[] rgsNames = {"DisableAutoMa cros"};
int[] rgDispId;
Guid nullGUID = Guid.Empty;
int result = wb.GetIDsOfName s(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
Comment