Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTreeCtrl - GetSelectedItem Pin
Vaclav_31-May-07 15:55
Vaclav_31-May-07 15:55 
GeneralRe: CTreeCtrl - GetSelectedItem Pin
Naveen31-May-07 16:01
Naveen31-May-07 16:01 
GeneralRe: CTreeCtrl - GetSelectedItem Pin
Vaclav_31-May-07 16:28
Vaclav_31-May-07 16:28 
QuestionErrors? C++, play with reference Pin
C_Zealot31-May-07 11:55
C_Zealot31-May-07 11:55 
AnswerRe: Errors? C++, play with reference Pin
Mark Salsbery31-May-07 12:13
Mark Salsbery31-May-07 12:13 
GeneralRe: Errors? C++, play with reference Pin
C_Zealot31-May-07 12:16
C_Zealot31-May-07 12:16 
QuestionVC++ 6 -warpper Pin
Tal S.31-May-07 9:54
Tal S.31-May-07 9:54 
AnswerRe: VC++ 6 -warpper Pin
Matthew Faithfull31-May-07 10:06
Matthew Faithfull31-May-07 10:06 
I guess this is a pretty well trodden route.

First port your VC6 C++ to VC8. The project will auto convert but you still need to tidy up all the Safe CRT change consequences to get rid of W4 Warnings. Make sure it all works with the new MFC/ATL etc.

Second if the substance of your C++ is not in COM objects, you may be in a deal of trouble. Fortunately it's not usually hard to start chunking your C++ into COM objects, depending on how big it is.

Third, once you've got the code you want to use in one or more C++ COM objects take a look at articles on C# COM Interop. It works really well once you get over the inital strangeness, doesn't require you to write a lot of code or even any PInvokes or proxy/stub nastiness.

Step four is probably to move this post to the C# Managed and mixed development forum before somebody moans;)

Nothing is exactly what it seems but everything with seems can be unpicked.

AnswerRe: VC++ 6 -warpper Pin
Chris Losinger31-May-07 10:43
professionalChris Losinger31-May-07 10:43 
AnswerRe: VC++ 6 -warpper Pin
Hamid_RT31-May-07 18:27
Hamid_RT31-May-07 18:27 
Questionconverting from const char [] to 'LPWSTR' Pin
maizhiming31-May-07 9:28
maizhiming31-May-07 9:28 
AnswerRe: converting from const char [] to 'LPWSTR' Pin
Matthew Faithfull31-May-07 9:43
Matthew Faithfull31-May-07 9:43 
AnswerRe: converting from const char [] to 'LPWSTR' Pin
Xing Chen31-May-07 15:18
Xing Chen31-May-07 15:18 
QuestionGetDIBits() function call fails Pin
TheDelChop31-May-07 8:50
TheDelChop31-May-07 8:50 
AnswerRe: GetDIBits() function call fails Pin
John R. Shaw31-May-07 9:17
John R. Shaw31-May-07 9:17 
AnswerRe: GetDIBits() function call fails Pin
Mark Salsbery31-May-07 9:30
Mark Salsbery31-May-07 9:30 
QuestionNewbie Question Pin
joshp121731-May-07 8:45
joshp121731-May-07 8:45 
AnswerRe: Newbie Question Pin
David Crow31-May-07 10:31
David Crow31-May-07 10:31 
AnswerRe: Newbie Question Pin
Matthew Faithfull31-May-07 11:10
Matthew Faithfull31-May-07 11:10 
GeneralRe: Newbie Question Pin
joshp121731-May-07 11:15
joshp121731-May-07 11:15 
GeneralRe: Newbie Question Pin
Matthew Faithfull31-May-07 11:37
Matthew Faithfull31-May-07 11:37 
Question64 bit XP Pin
Monty231-May-07 7:40
Monty231-May-07 7:40 
AnswerSolution for those interested Pin
Monty231-May-07 22:41
Monty231-May-07 22:41 
GeneralRe: Solution for those interested Pin
Mark Salsbery1-Jun-07 6:22
Mark Salsbery1-Jun-07 6:22 
QuestionRegistry vs .Ini files. Pin
Anurag Gandhi31-May-07 7:37
professionalAnurag Gandhi31-May-07 7:37 

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.