Found a solution here:
http://www.codeproject.com/KB/COM/InteropEvents.aspx
Case closed :P...
User Profile
Collapse
-
Been doing a little work on this and I've found a method that works, but I'm unsure about:
a. How safe it is.
b. Is it the correct way to do it.
In my COM object I have:
Code:public delegate void MyEventHandler ( object sender, SomeEventArgs args );
...Code:public interface IEventLibrary { ... string DoSomething();Leave a comment:
-
Is it possible to handle a C# COM DLL's events in a VC++ 6 Application?
Hi all,
I've developed a small C# DLL to test COM Interop between .net and an older MFC C++ application (Visual Studio 6) - the end goal of which is to integrate an object into a legacy application.
I can import the DLL (.tlb), create an object and execute the object's methods.
I'm not sure, however, if it's possible to handle events triggered by the object; by means of a callback function or something... -
Looking for Reliable Dedicated/Managed Server In the UK
Hi all,
I'm doing a little research into Windows-based managed/dedicated servers.
There are a few companies that provide what I want with a reputation to back it up: rackspace.co.uk (recommended by a few people) and zen.co.uk (from personal experience of other products).
Both of these solutions are at the upper end of the price bracket (between £250 and £400 per month based on dedicated or managed).... -
sicarie,
Thanks for the response.
I don't really want to go down the route of setting up more hardware to monitor the problem.
As it is now, I've just set up Microsoft's network monitor on the individual PCs; interestingly it looks as if there are a few PCs on the network regularly talking to hosts that they shouldn't be (totally random and over UDP) - perhaps there's some kind of Trojan using up the network's...Leave a comment:
-
External Domain Access Monitor
Hi all,
I've got 4 servers running several instances (about 12) of an application. This application receives information from and external source and uploads it to a remote SQL Server database (the databases are then viewed by our customers through a web interface).
The problem is that recently, and as we've been adding more customers i.e. more application instances, our local area network and Internet connection appear... -
Sorry, maybe I should have made it more clear that each login has its own modem.
There is no resource sharing.
It seems as though something is interrupting the application between requesting the message's data from the modem and the actual read. I would have thought that there was some buffering that could deal with that but it seems not.
Again, any input is much appreciated.
Andrew....Leave a comment:
-
XP Context Switching Appears to Kill Serial Comms
Hi all,
I've got an application that's written in C++ making use of MFC (VS6). Its purpose is to process SMS messages received from a GSM modem connected via a serial port (USB connection). The serial communications are handled entirely in their own thread.
For the most part this works perfectly.Howev er, there appears to be a problem where multiple instances of the application are running in different Windows XP environments.... -
Thanks, Jim. Your query works well and gives the correct results
I think, however, that it may be faster to perform several smaller (simpler) queries and organise the results procedurally; I’ll do some tests.Leave a comment:
-
Thanks for the reply, Jim.
The tables are, more or less, those given above but I'll flesh them out a bit here.
...Code:data ( dataId [long PK autonumber] timestamp [datatime] unitId [long FK] data1 [single float] data2 [single float] data3 [single float] data4 [single float] ) unit (
Leave a comment:
-
Retreiving lateset information without running too many queries...
Hello,
I have two tables in a database:
data (dataId, timestamp, unitId, ... )
unit (id, ... )
The data table contains data received from units. Each "data report" consists of a timestamp, the unit it was received from and the unit's recorded data. Each data report received is auto-assigned an id - its primary key.
Before any data is added to the data table, its timestamp...
No activity results to display
Show More
Leave a comment: