Click here to Skip to main content
15,923,910 members
Home / Discussions / COM
   

COM

 
GeneralRe: CString and COM Pin
monrobot1326-May-04 6:14
monrobot1326-May-04 6:14 
GeneralRe: CString and COM Pin
f6427-May-04 8:08
f6427-May-04 8:08 
QuestionDownload my .ocx that depends on 2 other dll’s ? Pin
anderslundsgard25-May-04 1:48
anderslundsgard25-May-04 1:48 
GeneralNeed help with COM+ application Pin
ori74925-May-04 0:58
ori74925-May-04 0:58 
GeneralHELP!!! How to use GoToDate in C++ for Outlook View Control Pin
Kingwulf24-May-04 12:18
Kingwulf24-May-04 12:18 
Generalhelp! for ATL COM server methods Pin
reddys24-May-04 0:02
reddys24-May-04 0:02 
GeneralNo move or size notification Pin
mrw22-May-04 18:06
mrw22-May-04 18:06 
GeneralConnectable objects and threads Pin
Janagn21-May-04 0:13
Janagn21-May-04 0:13 
Dear all,
I have been trying to create COM object using ATL and VStudio 6.00 that will implement a TCP/IP client. The idea is as follows:

A COM object that Implements connectable interface is creating a thread that monitors the TCP/IP port. The thread has a pointer to the COM object so when it receives something from the TCP/IP port it "calls back" the Notify(BSTR msg) method of the COM object. The Notify method of the COM object performs a Fire_MessageReceived call to the event proxy class. Eventually the registered for events clients receive the message.

This mechanism works perfect till the point that the proxy class calls the Invoke method for each client. I get an Access violation on the Client.exe error 0xC0000005 ( I may have missed a 0 ). Stepping in the proxy class I can see that the connection counter is correct and that also the messages have been correctly assigned to VARIANTS. No out-of scope case... The funny thing is that this problem happens ALWAYS when the Clinet application is a VB programm and seldom when the client application is a C++ application.

Any help will be really appreciated
Kind regards
Giannis
GeneralRe: Connectable objects and threads Pin
Roger Stoltz22-May-04 7:37
Roger Stoltz22-May-04 7:37 
GeneralRe: Connectable objects and threads Pin
Janagn25-May-04 3:26
Janagn25-May-04 3:26 
GeneralRe: Connectable objects and threads Pin
Roger Stoltz25-May-04 6:39
Roger Stoltz25-May-04 6:39 
GeneralMore info.. Pin
Janagn26-May-04 5:07
Janagn26-May-04 5:07 
QuestionHow to send union structures thru rpc in DCOm Pin
Benny M Kurian20-May-04 2:36
Benny M Kurian20-May-04 2:36 
Generalamazon upload need help.... Pin
Sumit Kapoor19-May-04 19:56
Sumit Kapoor19-May-04 19:56 
GeneralUsing a flash ActiveX control in Win32 Pin
Pablo Hernandez Valdes18-May-04 16:58
Pablo Hernandez Valdes18-May-04 16:58 
GeneralRe: Using a flash ActiveX control in Win32 Pin
Andrew Quinn AUS19-May-04 0:54
Andrew Quinn AUS19-May-04 0:54 
GeneralRegistering a COM server dll Pin
Robertcoder18-May-04 7:50
Robertcoder18-May-04 7:50 
GeneralRe: Registering a COM server dll Pin
Giles18-May-04 8:15
Giles18-May-04 8:15 
GeneralRe: Registering a COM server dll Pin
Robertcoder18-May-04 8:23
Robertcoder18-May-04 8:23 
GeneralRe: Registering a COM server dll Pin
Bob Wood19-May-04 1:13
Bob Wood19-May-04 1:13 
GeneralRe: Registering a COM server dll Pin
Robertcoder19-May-04 4:15
Robertcoder19-May-04 4:15 
Generalcall a managed COM object from an unmanaged c++ Pin
SamDav18-May-04 0:14
sussSamDav18-May-04 0:14 
Generali cannot register activeX control on registry. Pin
ekklesia14-May-04 20:01
ekklesia14-May-04 20:01 
GeneralRe: i cannot register activeX control on registry. Pin
Andrew Quinn AUS17-May-04 5:48
Andrew Quinn AUS17-May-04 5:48 
GeneralQueryInterface() Pin
skruss14-May-04 13:40
skruss14-May-04 13:40 

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.