VSNet Addin Question
-
Does anyone know the value for the second parameter that is required when calling Documents.Open from the VSNet Object model? MS have made the second parameter a String to describe the Kind of document being opened (Enum anyone?) but I can't find any documentation on what the value should be. Empty string and null string both cause a " The Parameter Is Incorrect" exception to be thrown. :wtf: if(E_NOINTERFACE == pThat->QueryInterface(IID_IUnknown,(void**)&pUnk)) { // I aint no pUnk bitch! }
-
Does anyone know the value for the second parameter that is required when calling Documents.Open from the VSNet Object model? MS have made the second parameter a String to describe the Kind of document being opened (Enum anyone?) but I can't find any documentation on what the value should be. Empty string and null string both cause a " The Parameter Is Incorrect" exception to be thrown. :wtf: if(E_NOINTERFACE == pThat->QueryInterface(IID_IUnknown,(void**)&pUnk)) { // I aint no pUnk bitch! }
Duh. Tried "Text" and it worked. Anyone got any common sense they could lend me? Steve. if(E_NOINTERFACE == pThat->QueryInterface(IID_IUnknown,(void**)&pUnk)) { // I aint no pUnk bitch! }