11

Can I monitor the COM calls to my VisualBasic 6 ActiveX control?

 3 years ago
source link: https://www.codesd.com/item/can-i-monitor-the-com-calls-to-my-visualbasic-6-activex-control.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Can I monitor the COM calls to my VisualBasic 6 ActiveX control?

advertisements

I wrote a little ActiveX control in VisualBasic 6 which is going to be used as a plugin for some 3rd party framework. The framework expects that my control exposes a few properties and methods. It all seems to work well except that one of my properties seems to be ignored.

In C++, I could put debug statement into the reimplementations of IDispatch::GetIDsOfNames and IDispatch::Invoke to see which members the framework attempts to access - maybe the documentation is wrong, and it's expecting a different property name or something.

Is it possible to monitor the accesses to COM properties/methods in Visual Basic 6, too?


The easiest way is to add logging of some form in the methods/properties in question. I don't think you can hook the lower level COM calls though. For the logging, you can use OutputDebugString().

Related Articles

How can I monitor the Perl call stack?

I'm using ActivePerl 5.8 on Windows XP. use strict; use warnings; use Data::Dumper; There are three subroutines used in my script. To detect the call stack, I can only insert some print "some location"; and check the print result from console Wi

How can I monitor the bandwidth of an object in the Amazon S3 service?

How can programmatically monitor the bandwidth of an object in AWS S3 service? I would like to do this to prevent excessive bandwidth usage by clients who are using our services and costing us more than we can afford. We like to limit 1TB bandwidth f

How can I monitor the NIC (up / down) status in a C program without querying the kernel?

Now I need to get the status of the NIC(up or down) in the real time. That means I have to catch the kernel interrupt when the NIC up or down in a blocked loop. The first stupid method from mine is that check on the /sys/class/net/eth0/operstate or u

Can you monitor the SQL server to indicate exactly which queries have been executed?

Can you monitor SQL server to tell exactly what queries it is running? We have an application that is exhausting the application pool. A server administrator has sent us a report from Debug Diag [http://www.microsoft.com/downloads/details.aspx?Family

How can I monitor the memory used by a specific process in AWS cloudwatch?

I want to monitor memory used by particular process under cloudwatch in AWS. Do I have to use script to do so? If yes, let me know the steps or some guideline or Can I use cloudwatch logs to report memory utilized by particular process in real time?

Can you monitor the execution of an SSIS package in BIDS as it runs on the server?

Although my title states my current goal, I am open to alternative solutions. In short, I have a series of SSIS packages that are scheduled to run on a nightly basis, on our SQL Server machine. Due to various updates that happen in the ether of my co

You can not return the AJAX call details to the Google Maps API?

I'm building a weather app where the first step is to retrieve the longitude and latitude for a city name. I'm using Google Maps get the info. However my code only works when I return the value inside the call. I might be a little fuzzy on scopes, bu

How can I make the HTTP.call meteorite server through the proxy?

My meteor server will fetch data from another source on Internet. The request has to go via a proxy. How can I specify the proxy server for server-side HTTP.call's?You could easily make all HTTP.* calls through a proxy if only Meteor developers accep

Struts2: How can I monitor the progress of a SERVER SIDE action flow?

I have a Struts 2 Action, and Struts 2 is at SERVER SIDE, to allow user to download files from my application. The files are stored inside a database (I know... but keep the focus). The user access the action, I get the file from database and send to

C # Generic Overload - The compiler can not determine the correct call

I don't understand why the compiler can't resolve the correct overload to use here. (code below) There is only one version of Add() that is appropriate- BigFoo is an IFoo, and does not implement IEnumerable where T is an IFoo. But it insists on repor

How can I monitor the return value changes of the objective-c method?

I'm using Sparkle http://sparkle-project.org/ framework for autoupdates in my application. I have a UI item which enables/disables automatic updates downloads, but I can use neither Interface Builder bindings as stated in documentation for Sparkle, n

How to get an IHTMLElement pointer to the & lt; object & gt; tag hosting an ActiveX control

I have an ActiveX control generated by the FireBreath framework (http://firebreath.org). I need to get a reference to the <object> tag in the page that hosts the plugin from C++. If I were using NPAPI, I would use the NPNVPluginElementNPObject const

Can I monitor the Pid mailbox that represents a Java mailbox via JInterface?

I have a Java process that sends my erlang gen_server messages via JInterface. The message being sent to me includes the Pid of the mailbox created on the Java side. That Pid is valid in the sense that I can send messages back to that Pid, and those

How can I stop the RestTemplate call when my thread is interrupted?

I need to make a library in which I will have synchronous and asynchronous feature. executeSynchronous() - waits until I have a result, returns the result. executeAsynchronous() - returns a Future immediately which can be processed after other things

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK