Click here to Skip to main content
15,904,934 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: edit or list box color change Pin
Jeremy Falcon13-Jan-04 6:55
professionalJeremy Falcon13-Jan-04 6:55 
GeneralPrint with MFC Pin
nikoladsp13-Jan-04 6:21
nikoladsp13-Jan-04 6:21 
GeneralMAC address Pin
Jeremy Falcon13-Jan-04 6:07
professionalJeremy Falcon13-Jan-04 6:07 
GeneralRe: MAC address Pin
Joaquín M López Muñoz13-Jan-04 11:15
Joaquín M López Muñoz13-Jan-04 11:15 
GeneralRe: MAC address Pin
Jeremy Falcon13-Jan-04 12:50
professionalJeremy Falcon13-Jan-04 12:50 
QuestionHow to show dialog in a CTabCtrl Pin
AnTri13-Jan-04 5:05
AnTri13-Jan-04 5:05 

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.