Click here to Skip to main content
15,919,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: mystery or stupid? Pin
Philippe Mori15-Aug-02 9:43
Philippe Mori15-Aug-02 9:43 
GeneralMemory Allocation :: C/C++ Pin
valikac14-Aug-02 13:27
valikac14-Aug-02 13:27 
GeneralRe: Memory Allocation :: C/C++ Pin
Bill Wilson14-Aug-02 13:36
Bill Wilson14-Aug-02 13:36 
GeneralRe: Memory Allocation :: C/C++ Pin
jmkhael14-Aug-02 13:41
jmkhael14-Aug-02 13:41 
GeneralRe: Memory Allocation :: C/C++ Pin
valikac14-Aug-02 13:50
valikac14-Aug-02 13:50 
GeneralRe: Memory Allocation :: C/C++ Pin
Stuart Dootson14-Aug-02 20:44
professionalStuart Dootson14-Aug-02 20:44 
GeneralRe: Memory Allocation :: C/C++ Pin
Rutger Ellen14-Aug-02 22:07
Rutger Ellen14-Aug-02 22:07 
GeneralRe: Memory Allocation :: C/C++ Pin
valikac15-Aug-02 5:43
valikac15-Aug-02 5:43 
GeneralCHTMLView Pin
Wolfram Steinke14-Aug-02 13:16
Wolfram Steinke14-Aug-02 13:16 
GeneralChanging Font Color Pin
slackboy14-Aug-02 12:57
slackboy14-Aug-02 12:57 
GeneralRe: Changing Font Color Pin
PJ Arends14-Aug-02 13:06
professionalPJ Arends14-Aug-02 13:06 
GeneralDouble Byte Characters in win32 controls. Pin
djrisc14-Aug-02 10:38
djrisc14-Aug-02 10:38 
GeneralDouble Byte Characters in win32 controls. Pin
djrisc14-Aug-02 13:21
djrisc14-Aug-02 13:21 
GeneralRe: Double Byte Characters in win32 controls. Pin
Michael Dunn14-Aug-02 14:57
sitebuilderMichael Dunn14-Aug-02 14:57 
GeneralRe: Double Byte Characters in win32 controls. Pin
djrisc14-Aug-02 20:22
djrisc14-Aug-02 20:22 
GeneralWrapping windows dialogues around old DOS programs Pin
Malcolm Crawford14-Aug-02 10:24
Malcolm Crawford14-Aug-02 10:24 
GeneralLoadLibrary Error Pin
Michael_Petrov14-Aug-02 10:02
sussMichael_Petrov14-Aug-02 10:02 
GeneralRe: LoadLibrary Error Pin
Stephane Rodriguez.14-Aug-02 10:17
Stephane Rodriguez.14-Aug-02 10:17 
GeneralGet COM interface from other process Pin
Aaron Schaefer14-Aug-02 9:54
Aaron Schaefer14-Aug-02 9:54 
GeneralRe: (option1) Get COM interface from other process Pin
Stephane Rodriguez.14-Aug-02 10:07
Stephane Rodriguez.14-Aug-02 10:07 
GeneralRe: (option2) Get COM interface from other process Pin
Stephane Rodriguez.14-Aug-02 10:11
Stephane Rodriguez.14-Aug-02 10:11 
GeneralRe: (option2) Get COM interface from other process Pin
Aaron Schaefer14-Aug-02 10:22
Aaron Schaefer14-Aug-02 10:22 
GeneralRe: (option2) Get COM interface from other process Pin
Bill Wilson14-Aug-02 10:45
Bill Wilson14-Aug-02 10:45 
GeneralRe: (option2) Get COM interface from other process Pin
Aaron Schaefer14-Aug-02 10:48
Aaron Schaefer14-Aug-02 10:48 
GeneralRe: (option2) Get COM interface from other process Pin
Bill Wilson14-Aug-02 13:25
Bill Wilson14-Aug-02 13:25 
Using the app wizard:

Create a new MFC exe project.

On the 3rd page select the Automation checkbox.

Complete the wizard.

Use the class wizard, automation tab to add a new COM interface to the project. You can base the new class on COleServerDoc or COleServerItem. From there it gets a little complicated.

1. My recommendation is to build the .exe as an ATL app.
2. d MFC support to the project.
3. Add a COM interface using the Insert New object menu item.
4. Port your existing code into the new object.

If you are clever enough, you can skip step 3 and simply add your existing COM object classes to the ATL project.

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.