I'm trying to implement the IProvideClassInfo on a C# COM object so it's events can be used from Windows Script Host (WSH). I've managed to implement the interface and trace a call in to my GetClassInfo method. However, hooking up the events fails with "Cannot connect object".
Has anyone managed to do this?
This is my script code (JSc...
I have a 32 bit in-proc STA VB6 dll. I sadly cannot do anything about this. My C# component greatly benefits from being 64 bit. Is there anyway to call/interface with this 32-bit dll from my 64 bit process? Any sort of wrapper or anything?
...
I just started a new job that involves lots of COM programming. I'm doing ok so far, by going on my COM fundamentals that I've picked up along my journey as a dev, but I'm the kind of guy that needs to know everything. And working with COM all day irks me since I don't know how this stuff works.
Is there a simple walk through to cre...
I've waited a long time for concensus on moving from IIS to the built in web server for debugging our web application, one of the main reasons being that I don't always have to run VS as admin.
We now have a COM dll included (exported by) in the solution, and on build it, VS tries to register this and complains because my regular user d...
Hi,
It is my understanding that for a VB6 COM object when it goes out of scope Class_Terminate is immediately called on the object to allow it to clean up.
Is it possible to have that same functionality for a .NET object that is being called by COM?
The background to the question is based on the MSDN article: http://msdn.microsoft.com...
We have some dynamic HTML pages which include an <OBJECT> tag that instantiates an ActiveX control. The user may then navigate to another page, which contains an <OBJECT> tag that points to a newer version of the ActiveX control.
IE will download and install the new ActiveX on the second page, which is what that page is there for. The ...
Until recently, we were happily using registration-free COM for our native and .NET COM components. However, we ran into a weird issue where our application started crashing randomly on windows XP SP3 (but not on vista) after we only changed the version number of a .NET assembly to move from release candidate to release. (Don't you just ...
We are using a COM Object automation model to make our application available to our customers.
They are using for the most part python to access our applicaton interface.
As we want to be able to install (not yet run, that's another issue) different versions of the application, we are changing our COM components to be regfree.
But tha...
I know how to register dlls but I've never really been sure why I'm doing it or under what conditions a dll must be registered. Could somebody explain or point me to some documentation?
...
How to read an XML file in a Visual C++ application?
I need to read an XML file in a Visual Studio 2003 C++ COM ATL application - unmanaged code. What library should I use: msxml, xmllite, other?
I need to check that the xml satisfies its xsd I've defined and then read it.
Sample code welcomed ;)
Thanks in advance.
...
Using Visual Studio 2008 I first encountered this when trying to open a standard save file dialog box in visual basic. So far I've worked around it after fruitless searching. Now I find that any action which would cause a save/open dialog (eg. ctrl-O) also fails. I've searched more and still don't know how to fix it.
Stuff I do know:
It...
I have a _bstr_t string which contains Japanese text. I want to convert this string to a UTF-8 string which is defined as a char *.
Can I convert the _bstr_t string to char * (UTF-8) string without loosing the Japanese characters?
...
My automatic test-framework tests a bunch of Excel sheets required by our customers with the excel plugins that my team provides. In order to test the sheet I need to call some macros, this in turn requires macro security to be set to lowest on the testing servers. (In production macro security will be on). In particular I need to supres...
After much help from all my StackOverFlow brethren, I managed to create a C++ DLL that calls my C# classes via COM and passes data back and forth to an external application. There was much celebration in the kingdom after that code started working.
Now I have a new problem. I'm expanding the DLL so that it can call different classes (al...
I've been trying to find some information about getting access to the raw code in MS Access (I use v2007 but should probably apply to all versions).
Say for instance that I'd like to list all functions in every code-behind form and module in the application and list their parameters.
How would you achieve this?
Note: I'm of course ass...
Can anybody translate the following code to C++? Is this possible at all or are there vital information missing?
Dim Laser As Object
Sub EnableLaser
‘ Create a laser object if it hasn’t been done yet
If Laser Is Nothing Then
Set Laser = CreateObject("NWLaserXControl.NWLaserX")
End If
If Laser.Initialize Then
...
Hi everyone,
I need an out of process C# COM component to host a 32 bit VB6 COM object. I can't seem to figure out how to do this in C#. The closest analogue I can think of is an activex exe, but it doesn't appear that C# can do this. Due to client restrictions, I cannot use com+ or dllhost.exe. Does anyone have any ideas?
...
I'm trying to send a COM object over a MSMQ message in C++. This is my object :
class ATL_NO_VTABLE CAnalisis :
public CComObjectRootEx,
public CComCoClass,
public ISupportErrorInfo,
public IDispatchImpl,
public IPersistStreamInit
{
private:
typedef struct {
DOUBLE size;
float color;
float light;
...
I'm working with the Skype4COM.dll COM API using C# and it works very well for all of the communication functionality we need. We are trying to put an easier to use interface on top of Skype that is baked into our application.
My trouble lies in controlling or disabling which Skype windows to use and not use. The only Skype window I be...
I have an ASP.Net page that has a button that when clicked I would like to take a screenshot of the user's PC and send it to a server.
I'm ok with writing some sort of listener program to run on the server to accept requests to receive these images. Where I'm a bit hazy is the best way to get the user's PC to send the screenshot. Would ...