|
|
You need to give host exe's path to debug your add-in. And put break point in connecting function of your add-in. i.e. function through which add-in and host application communicate. And follow usual debugging technique.
|
|
|
|
|
Hi all,
I am not too sure where to post my question, so I'll just put it here and hope that somebody will help me. Honestly, I've reached a deadend after searching ALOT. I'll greatly appreciate any help or indication.
The problem:
In Internet Explorer you can right-click on a page and hit "Export to Microsoft Excel". This command is set in the registry (HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Export to Microsoft Excel) to call Excel with "EXCEL.EXE/3000".
The purpose:
I would like to develop a executable with simular functionality: the ability to be called from the internet explorer.
The question:
What is the technology that excel is using? Is it a COM object implementing an interface? How do I do that in .NET? And what on earth is that "/3000" parameter?!?
I've been looking for an answer for quite some time now. Please help.
Rgds,
G.
-- modified at 5:36 Thursday 14th December, 2006
|
|
|
|
|
Did you browse through
http://msdn.microsoft.com/workshop/browser/ext/extensions.asp
_________________________
"When the superior man refrains from acting, his force is felt for a thousand li." Sun Tzu
|
|
|
|
|
Yeap! There is an article there called "Adding Entries to the Standard Context Menu", which is relevant with the case, but unfortunately it doesn't mention anything about how the executable should be made (i.e. what interfaces should implement, how they are exposed etc).
Note that the whole thing works if I set the right-click to call a javascript htm page, but not if I call an executable.
..and I am very curious to find what this "\3000" param is..
|
|
|
|
|
Given the big red text that says "Do not post programming questions (use the programming forums for that)" why did you think posting it here would be a good idea?
Your post in the C# forum was a better choice.
|
|
|
|
|
And if you look here and then in the C# forum, the lounge has given him more feedback than the C# forum
He who laughs last is a bit on the slow side
|
|
|
|
|
I apologize for this. I saw the text only after I hit the "send" button (too overwhelmed with the issue I guess )
Strange enough, though, I got an answer from this thread instead of the "C#" one!
|
|
|
|
|
ghost1207 wrote: Strange enough, though, I got an answer from this thread instead of the "C#" one!
Maybe, but you've irritated people in the process.
|
|
|
|
|
Hallo,
I want to export the objects on a powerpoint-slide via office automation.
I use Visual Studio .NET 2005 an Office 2003. When I try the funktion
Shape.Export(filename, PowerPoint.PpShapeFormat.ppShapeFormatGIF, width, height, PowerPoint.PpExportMode.ppClipRelativeToSlide);
i get the images, cliparts, etc.. But they don´t have the specified width and height.
The Dimension of the Shapes differs in horizontal and vertical dpi. How can I set correct DPI-sizes and Pixel-sizes?
Thx,
Tobias
|
|
|
|
|
Hi all,
I am wondering if it is possible to determine the size (or number of valid function entries) of a virtual function table using the queried interface pointer.
Say I obtained an interface pointer pIMy via QueryInterface:
pIBase->QueryInterface(&IID_MYINTERFACE, (void**)&pIMy, hr);
I was able to cast the pIMy to vtable pointer pVTable and access each each function's address value with pVTable[0], pVTable[1]..etc. And obviously sizeof(pVTable) returns 4 instead of size of the vtable.
Any ideas how it is possible to determine the size virtual function table?
Thanks in advance,
J.B.
|
|
|
|
|
Perhaps there's a trick that I'm not aware of, but I don't think you can get the size of the vtable in runtime.
If you create an interface that inherits from IUnknown, the first 12 bytes of the vtable will be the addresses of QueryInterface(), AddRef() and Release(). The next four bytes will contain the address of the first method for the new (child) interface and so on until the vtable is complete. The bytes following the vtable will contain data for the member variables, there's no "padding" or "termination" of the vtable, hence I don't think you can tell the size of it in runtime. Perhaps there's a trick when building for 'Debug', but I don't think so.
On the other hand: why do you want to know the size of the vtable?
Perhaps there's another solution for your problem.
--
Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"No one remembers a coward!" - Jan Elfström 1998 "...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above
|
|
|
|
|
Hi,
Can some one redirect me to some link where I can find what a DLL problem is.
Thanks:
Rakesh
|
|
|
|
|
|
|
I work as a trader I have been programming some matlab functions in order to use them within my excel woorksheets. I am working with Matlab 7 and Excel 2003 SP2 professional edition.
The problem comes when creating the matlab generated object in VBasic
.....
If proyJuanclass Is Nothing Then
Set proyJuanclass = CreateObject("proyJuan.proyJuanclass.1_0")
End If
.....
Then a fatal error ocurs and excel launches a dialog
Microsoft Visual C++ Runtime Library
Runtime Error!
Program: C:\ARCHIV-1\MICROS-2\OFFICE11\EXCEL.EXE
abnormal program termination
when clicking the "OK" button excel closes
I have used the "mxltool" that comes with the Matlab Excel Builder
I have executed the MCRInstaller
I have registered the dll generated by the mxltool
|
|
|
|
|
Hi,
Am a Intermediete C# programmer,
can you please guide me which will be the best book to buy?
thanks and regards
Karam C Bose
Thanks in advance
|
|
|
|
|
sorry!
i should have posted this in C# forum.!!!
|
|
|
|
|
In additional you can see articles that are on the codeproject about C#
|
|
|
|
|
Hi All,
Description of Problem:-
I have a interface pointer to some custom dual interface. I am creating a object of _variant_t class like "_variant_t vtSample(pICustom);".
vtSample is created and assigned value as 'TRUE' and its vt as VT_BOOL.
It should have been VT_DISPATCH instead of VT_BOOL and value as some memory address.
Can anyone explain the above behavior?
Thanks...
Suraj Gupta
|
|
|
|
|
Can you show some code ?
Gupta Suraj wrote: I am creating a object of _variant_t class like "_variant_t vtSample(pICustom);".
vtSample is created and assigned value as 'TRUE' and its vt as VT_BOOL.
Why you are assigning its vt as VT_BOOL .
Gupta Suraj wrote: It should have been VT_DISPATCH instead of VT_BOOL and value as some memory address.
Can anyone explain the above behavior?
I'm confused here to understand your problem. Can you explain in detail.
|
|
|
|
|
Hi Prasad,
Thanks for the reply...
I am not explicitly assigning vt to VT_BOOL.
"_variant_t vtSample(pICustom);"
The above statement is causing vtSample object to be instantiated and initialized with vt= VT_BOOL and its value as 'TRUE'.
As pICustom is dual interface pointer so value of vtSample should be pointer to v-table and its vt should be VT_DISPATCH not VT_BOOL.
I don't know why it so?
Am I able to make you understand the problem?
Thanks...
Suraj Gupta
|
|
|
|
|
Gupta Suraj wrote: "_variant_t vtSample(pICustom);"
Can you show code snippet, how you are using this interface? There is no way it should assign vt as VT_BOOL , unless pICustom is BOOL .
While debugging, you can step through the contructor of _variant_t , see which contructor is been called.
|
|
|
|
|
Thanks Prasad...
Actually,pICustom is a smart pointer. So when "vtSample(pICustom)" is executed, bool operator of _com_ptr template class is called. What I think is that the best matching constructor of _variant_t class is that which takes a bool as its paramter.So first bool operator of _com_ptr is called to convert the parameter to bool.
We don't have a overloaded constructor of _variant_t class which takes smart pointer as its parameter.
Please send your comment on this. Am i thinking in right direction?
Suraj.
Suraj Gupta
|
|
|
|
|
Try explicitly casting your object to an IDispatch pointer, for example (IDispatch *)pICustom. That should eliminate falling through to bool.
|
|
|
|