Click here to Skip to main content
15,910,980 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Console app - how to "keep alive" ? Pin
David Crow24-Jun-03 3:58
David Crow24-Jun-03 3:58 
GeneralRe: Console app - how to "keep alive" ? Pin
MrBean24-Jun-03 22:57
MrBean24-Jun-03 22:57 
AnswerRe: Console app - how to "keep alive" ? Pin
peterchen24-Jun-03 9:35
peterchen24-Jun-03 9:35 
GeneralRe: Console app - how to "keep alive" ? Pin
MrBean24-Jun-03 22:56
MrBean24-Jun-03 22:56 
GeneralISO-8601 Date Format and COleDateTime Pin
Braulio Dez24-Jun-03 0:40
Braulio Dez24-Jun-03 0:40 
GeneralRe: ISO-8601 Date Format and COleDateTime Pin
Rage24-Jun-03 1:09
professionalRage24-Jun-03 1:09 
GeneralC# DLL and MFC app Pin
vikramlinux24-Jun-03 0:30
vikramlinux24-Jun-03 0:30 
GeneralRe: C# DLL and MFC app Pin
Kannan Kalyanaraman24-Jun-03 1:13
Kannan Kalyanaraman24-Jun-03 1:13 
Yes it is possible.
You can do this in two ways.

1. By adding the /CLR compiler option and after that you can use the "#using" keyword to get your dll into MFC. for ex. #using <mycsharpassembly.dll>
You can instantiate the class or type inside your c# dll and call the methods.
Also note that with this your application now compiles to IL instead of x86 code,so unless you intend to compile the entire app to .net, this is not required.

2. Through COM Interop.
By decorating the c# class with COM attributes(mostly GUID) and then using the regasm tool to register the C# dll. Now you got a proper COM component in .net and you can use this MFC like how you access normal COM components.

Cheers,
Kannan

GeneralRe: C# DLL and MFC app Pin
vikramlinux24-Jun-03 1:31
vikramlinux24-Jun-03 1:31 
GeneralRe: C# DLL and MFC app Pin
Kannan Kalyanaraman24-Jun-03 1:52
Kannan Kalyanaraman24-Jun-03 1:52 
GeneralRe: C# DLL and MFC app Pin
vikramlinux24-Jun-03 1:56
vikramlinux24-Jun-03 1:56 
GeneralRe: C# DLL and MFC app Pin
Kannan Kalyanaraman24-Jun-03 2:07
Kannan Kalyanaraman24-Jun-03 2:07 
GeneralThread Pin
BengCésar23-Jun-03 23:54
BengCésar23-Jun-03 23:54 
GeneralRe: Thread Pin
Rage24-Jun-03 1:06
professionalRage24-Jun-03 1:06 
GeneralRe: Thread Pin
Jonathan Craig24-Jun-03 5:15
Jonathan Craig24-Jun-03 5:15 
GeneralSerial Port Communication Pin
DeepakSharma23-Jun-03 23:44
DeepakSharma23-Jun-03 23:44 
GeneralRe: Serial Port Communication Pin
Ted Ferenc24-Jun-03 4:57
Ted Ferenc24-Jun-03 4:57 
GeneralRe: Serial Port Communication Pin
DeepakSharma24-Jun-03 19:22
DeepakSharma24-Jun-03 19:22 
Generalhttps authentication Pin
Tarundeep Singh Kalra23-Jun-03 23:43
Tarundeep Singh Kalra23-Jun-03 23:43 
GeneralRe: https authentication Pin
Ryan Binns24-Jun-03 1:09
Ryan Binns24-Jun-03 1:09 
GeneralRe: https authentication Pin
Tarundeep Singh Kalra24-Jun-03 3:03
Tarundeep Singh Kalra24-Jun-03 3:03 
GeneralRe: https authentication Pin
Ryan Binns24-Jun-03 3:06
Ryan Binns24-Jun-03 3:06 
Generaladding a list control to a string Pin
si_6923-Jun-03 23:40
si_6923-Jun-03 23:40 
GeneralRe: adding a list control to a string Pin
vikramlinux24-Jun-03 0:39
vikramlinux24-Jun-03 0:39 
GeneralRe: adding a list control to a string Pin
Rage24-Jun-03 1:28
professionalRage24-Jun-03 1:28 

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.