Click here to Skip to main content
15,914,391 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionATL Component with C++ class Pin
yang__lee23-Apr-07 23:54
yang__lee23-Apr-07 23:54 
AnswerRe: ATL Component with C++ class Pin
prasad_som24-Apr-07 0:16
prasad_som24-Apr-07 0:16 
QuestionCListBox Flickering Pin
Orochi23-Apr-07 18:50
Orochi23-Apr-07 18:50 
AnswerRe: CListBox Flickering Pin
Ernest Laurentin7-May-07 9:18
Ernest Laurentin7-May-07 9:18 
GeneralRe: CListBox Flickering Pin
Orochi7-May-07 18:41
Orochi7-May-07 18:41 
QuestionGetting computer name and local time Pin
RohitRajPokhrel23-Apr-07 9:06
RohitRajPokhrel23-Apr-07 9:06 
QuestionGenerating Event from a COM exe server Pin
Kavita seth23-Apr-07 4:54
Kavita seth23-Apr-07 4:54 
AnswerRe: Generating Event from a COM exe server Pin
Christopher Duncan24-Apr-07 3:46
Christopher Duncan24-Apr-07 3:46 
Hi, Kavita.

If your exe is operating as an out of proc server (i.e., your client code is not in the exe), then that would probably explain the different results. In a DLL / in proc scenario your client and server are operating within the same address space, and of course with an out of proc exe they're not. When you pass in a normal pointer (of any kind) from one program to another, it's going to be in foreign address space.

In general, I don't think that's your best way to go. Instead, consider doing a slight tweak to your code so that instead of passing back an interface pointer to the client, you instead just pass a param value back that tells the client, "now query for this interface on me and call it." Either way, the client calls the appropriate function, but this approach is more in keeping with the COM / QueryInterface way of doing things.

Hope this helps,

Chris


GeneralRe: Generating Event from a COM exe server Pin
Kavita seth30-Jul-07 21:50
Kavita seth30-Jul-07 21:50 
AnswerRe: Generating Event from a COM exe server Pin
Lim Bio Liong2-May-07 23:25
Lim Bio Liong2-May-07 23:25 
AnswerRe: Generating Event from a COM exe server Pin
Lim Bio Liong3-May-07 12:39
Lim Bio Liong3-May-07 12:39 
QuestionFindFirstFile Pin
LCI20-Apr-07 2:51
LCI20-Apr-07 2:51 
AnswerRe: FindFirstFile Pin
Michael Dunn20-Apr-07 7:29
sitebuilderMichael Dunn20-Apr-07 7:29 
AnswerRe: FindFirstFile Pin
sthotakura20-Apr-07 8:50
sthotakura20-Apr-07 8:50 
QuestionATL COM Service Pin
Janma20-Apr-07 1:21
Janma20-Apr-07 1:21 
AnswerRe: ATL COM Service Pin
sthotakura20-Apr-07 8:46
sthotakura20-Apr-07 8:46 
GeneralRe: ATL COM Service Pin
Janma22-Apr-07 19:31
Janma22-Apr-07 19:31 
GeneralRe: ATL COM Service Pin
Janma22-Apr-07 22:03
Janma22-Apr-07 22:03 
GeneralAdding ATL Dialog to WTL application from VS2005 Pin
Ernest Laurentin19-Apr-07 7:33
Ernest Laurentin19-Apr-07 7:33 
Questionusing map Pin
NorGUI18-Apr-07 10:54
NorGUI18-Apr-07 10:54 
AnswerRe: using map Pin
Roger Stoltz18-Apr-07 11:33
Roger Stoltz18-Apr-07 11:33 
Questiontemplate class c2995 operator<< overloading [modified] Pin
ky_rerun17-Apr-07 11:11
ky_rerun17-Apr-07 11:11 
AnswerRe: template class c2995 operator<< overloading Pin
ky_rerun17-Apr-07 19:10
ky_rerun17-Apr-07 19:10 
Questionlinker error in VC6 while linking to VC8 MSXML exports [modified] Pin
chervu17-Apr-07 7:24
chervu17-Apr-07 7:24 
AnswerRe: linker error in VC6 while linking to VC8 MSXML exports Pin
Michael Dunn17-Apr-07 18:00
sitebuilderMichael Dunn17-Apr-07 18:00 

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.