Click here to Skip to main content
15,921,279 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC SDI App Pin
l a u r e n13-Jan-04 15:32
l a u r e n13-Jan-04 15:32 
GeneralRe: MFC SDI App Pin
Robert A. T. Káldy14-Jan-04 0:44
Robert A. T. Káldy14-Jan-04 0:44 
GeneralCPU usage per process. Pin
ham744613-Jan-04 13:43
ham744613-Jan-04 13:43 
QuestionHow to get the default size of i/o com buffers? Pin
twing13-Jan-04 13:39
twing13-Jan-04 13:39 
QuestionGrouping ctrls in a group box...? Pin
Tommy Svensson13-Jan-04 13:36
Tommy Svensson13-Jan-04 13:36 
AnswerRe: Grouping ctrls in a group box...? Pin
Ryan Binns13-Jan-04 17:40
Ryan Binns13-Jan-04 17:40 
GeneralEdit paste copy problem Pin
Chernobog113-Jan-04 13:11
Chernobog113-Jan-04 13:11 
Generaldll linkage madness Pin
bryce13-Jan-04 12:17
bryce13-Jan-04 12:17 
GeneralRe: dll linkage madness Pin
twing13-Jan-04 14:06
twing13-Jan-04 14:06 
GeneralRe: dll linkage madness Pin
bryce13-Jan-04 14:16
bryce13-Jan-04 14:16 
GeneralRe: dll linkage madness Pin
rpins13-Jan-04 17:17
rpins13-Jan-04 17:17 
GeneralRe: dll linkage madness Pin
PJ Arends13-Jan-04 17:31
professionalPJ Arends13-Jan-04 17:31 
GeneralRe: dll linkage madness - fixed now Pin
bryce13-Jan-04 19:12
bryce13-Jan-04 19:12 
GeneralEvent handling problem - unmanaged C++ COM and VB .NET interop Pin
rpins13-Jan-04 11:24
rpins13-Jan-04 11:24 
I'm having all kinds of fun trying to iron out this problem, and im SURE there's an easy solution out there...

I need to use COM interop between unmanaged C++ and VB .NET to have my C++ client catch and respond to events raised in VB .NET. More specifically, I've got a VB .NET custom user ActiveX control with a valid COM interface that I've imported and used in my C++ client. I can make function calls from the COM client to the .NET server, but I cannot seem to handle events from the control.

I'm certainly no expert on COM interop, but I've browsed around and read bits of literature here and there on how to do this to no avail. The control doesn't seem to have any connection points to which I can connect to (which might be the problem), but trying to use ATL SINK_ENTRY with IDispEventImpl hasn't worked, nor has an MFC DECLARE_EVENTSINK_MAP with ON_EVENTs. I'm at a total loss and any help would be greatly appreciated.

P.S. if none of this works, would it be feasible to pass VB a C++ function pointer via its COM interface and then have VB "call" the C++ function using this pointer? They're in the same address space so it should work, but can VB call a function given only an address as a long?
GeneralPointers and the adresse bus Pin
Ralf Friedrich Hain13-Jan-04 11:11
Ralf Friedrich Hain13-Jan-04 11:11 
GeneralRe: Pointers and the adresse bus Pin
Joaquín M López Muñoz13-Jan-04 11:26
Joaquín M López Muñoz13-Jan-04 11:26 
GeneralRe: Pointers and the adresse bus Pin
markkuk13-Jan-04 11:58
markkuk13-Jan-04 11:58 
QuestionAnyone know of any good memory pool classes or templates for VC6? Pin
prcarp13-Jan-04 9:27
prcarp13-Jan-04 9:27 
AnswerRe: Anyone know of any good memory pool classes or templates for VC6? Pin
Joaquín M López Muñoz13-Jan-04 10:56
Joaquín M López Muñoz13-Jan-04 10:56 
GeneralRe: Anyone know of any good memory pool classes or templates for VC6? Pin
prcarp13-Jan-04 11:20
prcarp13-Jan-04 11:20 
GeneralRe: Anyone know of any good memory pool classes or templates for VC6? Pin
Joaquín M López Muñoz13-Jan-04 11:40
Joaquín M López Muñoz13-Jan-04 11:40 
Questionprofile in VC 6 ? Pin
Maximilien13-Jan-04 7:46
Maximilien13-Jan-04 7:46 
Generaledit or list box color change Pin
act_x13-Jan-04 6:25
act_x13-Jan-04 6:25 
GeneralRe: edit or list box color change Pin
valikac13-Jan-04 6:30
valikac13-Jan-04 6:30 
GeneralRe: edit or list box color change Pin
act_x13-Jan-04 6:41
act_x13-Jan-04 6:41 

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.