Click here to Skip to main content
15,908,013 members
Home / Discussions / COM
   

COM

 
GeneralPassing Safearray arcoss COM to C# Pin
tyyryrteytry27-Feb-04 0:01
tyyryrteytry27-Feb-04 0:01 
GeneralCreateDispatch slow Pin
dzsigit26-Feb-04 21:21
dzsigit26-Feb-04 21:21 
GeneralRe: CreateDispatch slow Pin
Heath Stewart27-Feb-04 6:23
protectorHeath Stewart27-Feb-04 6:23 
GeneralEnumerating an interface. Pin
Kagehi25-Feb-04 14:19
Kagehi25-Feb-04 14:19 
GeneralRe: Enumerating an interface. Pin
Michael Sadler25-Feb-04 15:30
Michael Sadler25-Feb-04 15:30 
GeneralRe: Enumerating an interface. Pin
Kagehi26-Feb-04 7:56
Kagehi26-Feb-04 7:56 
GeneralRe: Enumerating an interface. Pin
Kagehi26-Feb-04 9:10
Kagehi26-Feb-04 9:10 
QuestionHow to open MS Project project using automation from stream. Pin
Dime77725-Feb-04 6:20
Dime77725-Feb-04 6:20 
Hello.

I've got a problem. I use automation in my custom COM object(which is created using JavaScript on a page) to open MS Project from a secured zone on a web site. Assuming user has logged on, using FileOpen method of Application object leads to another prompt for user to log in.

Here's the code snippet off my COM:

......................
CComDispatchDriver app;
app.CoCreateInstance(L"MSProject.Application);

CComVariant arg1 = FileName; //URL of the MS Project file passed from
//JavaScript to my COM; BSTR

CComVariant arg2 = VARIANT_TRUE; // Read-only mode.
app.Invoke2(L"FileOpen", &arg1, &arg2);
.......................................

That worked fine except for the need to login for the second time upon my COM trying to open file. After second authorization COM proceeded with its job.

First solution was to use URLDounloadToFile() function to download the file to the temporary local directory and then give it to the FileOpen. That worked perfectly, no need to authorize again, BUT
it's considered as a potential SECURITY HOLE.

So the second solution is to try to use URLOpenBlokingStream to actually open the stream of my URL and then somehow give it to the MS Project.
But I don't have an idea how to give IStream to the MS Project to open it.

Any suggestions would be highly appreciated
GeneralCopy Hook Pin
konagaya25-Feb-04 4:17
konagaya25-Feb-04 4:17 
Generalthe vaue of ESP was not properly saved across a function call Pin
hongzter24-Feb-04 15:51
hongzter24-Feb-04 15:51 
GeneralRe: the vaue of ESP was not properly saved across a function call Pin
Prakash Nadar24-Feb-04 17:06
Prakash Nadar24-Feb-04 17:06 
GeneralRe: the vaue of ESP was not properly saved across a function call Pin
hongzter24-Feb-04 20:15
hongzter24-Feb-04 20:15 
GeneralRe: the vaue of ESP was not properly saved across a function call Pin
Steve S25-Feb-04 5:57
Steve S25-Feb-04 5:57 
GeneralRe: the vaue of ESP was not properly saved across a function call Pin
hongzter26-Feb-04 14:04
hongzter26-Feb-04 14:04 
QuestionCOM Interface -> C++ wrapper utility ? Pin
vipsy24-Feb-04 3:29
vipsy24-Feb-04 3:29 
AnswerRe: COM Interface -> C++ wrapper utility ? Pin
ian mariano24-Feb-04 11:06
ian mariano24-Feb-04 11:06 
GeneralRe: COM Interface -> C++ wrapper utility ? Pin
vipsy24-Feb-04 18:06
vipsy24-Feb-04 18:06 
GeneralRe: COM Interface -> C++ wrapper utility ? Pin
yoav S16-Mar-04 9:01
sussyoav S16-Mar-04 9:01 
GeneralCOM Stateless Vs Stateful Pin
BIG_MG24-Feb-04 1:48
BIG_MG24-Feb-04 1:48 
GeneralRe: COM Stateless Vs Stateful Pin
Jörgen Sigvardsson24-Feb-04 3:37
Jörgen Sigvardsson24-Feb-04 3:37 
GeneralDCOM user identity Pin
-Dy24-Feb-04 1:46
-Dy24-Feb-04 1:46 
QuestionHow to Get property value if it returns BSTR Pin
Inam23-Feb-04 20:33
Inam23-Feb-04 20:33 
AnswerRe: How to Get property value if it returns BSTR Pin
safee ullah23-Feb-04 23:41
safee ullah23-Feb-04 23:41 
GeneralRe: How to Get property value if it returns BSTR Pin
Inam24-Feb-04 17:26
Inam24-Feb-04 17:26 
GeneralRe: How to Get property value if it returns BSTR Pin
Steve S25-Feb-04 5:52
Steve S25-Feb-04 5:52 

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.