Click here to Skip to main content
15,894,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: Word Automation Pin
Ernst Kuschke16-Apr-04 2:59
Ernst Kuschke16-Apr-04 2:59 
GeneralRe: Word Automation Pin
Dominic Godin16-Apr-04 5:31
Dominic Godin16-Apr-04 5:31 
GeneralRe: Word Automation Pin
Heath Stewart16-Apr-04 5:49
protectorHeath Stewart16-Apr-04 5:49 
GeneralRe: Word Automation Pin
Dominic Godin19-Apr-04 22:06
Dominic Godin19-Apr-04 22:06 
GeneralRe: Word Automation Pin
Heath Stewart20-Apr-04 3:52
protectorHeath Stewart20-Apr-04 3:52 
GeneralRe: Word Automation Pin
Dominic Godin20-Apr-04 6:55
Dominic Godin20-Apr-04 6:55 
GeneralRe: Word Automation Pin
Heath Stewart20-Apr-04 8:31
protectorHeath Stewart20-Apr-04 8:31 
GeneralRe: Word Automation Pin
Dominic Godin21-Apr-04 1:37
Dominic Godin21-Apr-04 1:37 
Bugger still stuck Frown | :(

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 returns a result of -1073741819. There is little info on this error code. I have tried this with the Word.Application object MSWord with methods I know are there and I still get the same error code. Also the rgDispId is always set to null.

It seems I'm still missing a key point of understanding here.
GeneralRe: Word Automation Pin
Heath Stewart21-Apr-04 3:18
protectorHeath Stewart21-Apr-04 3:18 
GeneralRe: Word Automation Pin
Dominic Godin21-Apr-04 4:14
Dominic Godin21-Apr-04 4:14 
GeneralRe: Word Automation Pin
Heath Stewart21-Apr-04 6:22
protectorHeath Stewart21-Apr-04 6:22 
GeneralRe: Word Automation Pin
Dominic Godin21-Apr-04 7:14
Dominic Godin21-Apr-04 7:14 
GeneralRe: Word Automation Pin
Dominic Godin22-Apr-04 0:54
Dominic Godin22-Apr-04 0:54 
GeneralRe: Word Automation Pin
Heath Stewart22-Apr-04 2:37
protectorHeath Stewart22-Apr-04 2:37 
Questionhow to get a list of computers on Local area network Pin
vutrunghieu16-Apr-04 0:55
vutrunghieu16-Apr-04 0:55 
AnswerRe: how to get a list of computers on Local area network Pin
Heath Stewart16-Apr-04 6:12
protectorHeath Stewart16-Apr-04 6:12 
GeneralRe: how to get a list of computers on Local area network Pin
vutrunghieu18-Apr-04 7:17
vutrunghieu18-Apr-04 7:17 
GeneralRe: how to get a list of computers on Local area network Pin
Heath Stewart19-Apr-04 2:13
protectorHeath Stewart19-Apr-04 2:13 
Generalweek numbers Pin
robmays16-Apr-04 0:02
robmays16-Apr-04 0:02 
GeneralRe: week numbers Pin
Stefan Troschuetz16-Apr-04 0:22
Stefan Troschuetz16-Apr-04 0:22 
GeneralRe: week numbers Pin
robmays16-Apr-04 0:25
robmays16-Apr-04 0:25 
GeneralRe: week numbers Pin
Stefan Troschuetz16-Apr-04 1:02
Stefan Troschuetz16-Apr-04 1:02 
GeneralRe: week numbers Pin
Colin Angus Mackay16-Apr-04 2:13
Colin Angus Mackay16-Apr-04 2:13 
GeneralRe: week numbers Pin
robmays16-Apr-04 2:23
robmays16-Apr-04 2:23 
GeneralRe: week numbers Pin
Stefan Troschuetz16-Apr-04 2:45
Stefan Troschuetz16-Apr-04 2:45 

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.