Click here to Skip to main content
15,917,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Chnaging Window Title Pin
JudyL_MD28-Jun-07 2:27
JudyL_MD28-Jun-07 2:27 
GeneralRe: Chnaging Window Title Pin
Abhijeet Pathak28-Jun-07 3:34
Abhijeet Pathak28-Jun-07 3:34 
QuestionWindow created by focusing some text Pin
GBag28-Jun-07 1:07
GBag28-Jun-07 1:07 
QuestionFile drag operation Pin
Jhony george28-Jun-07 1:05
Jhony george28-Jun-07 1:05 
QuestionBorland C++ Builder to MS VS 2005 Pin
Tony Teveris28-Jun-07 1:05
Tony Teveris28-Jun-07 1:05 
AnswerRe: Borland C++ Builder to MS VS 2005 Pin
spsharma28-Jun-07 2:25
spsharma28-Jun-07 2:25 
AnswerRe: Borland C++ Builder to MS VS 2005 Pin
led mike28-Jun-07 4:28
led mike28-Jun-07 4:28 
AnswerRe: Borland C++ Builder to MS VS 2005 Pin
StevenS_Dev28-Jun-07 10:39
StevenS_Dev28-Jun-07 10:39 
This is exactly what I have been doing for the last 4.5 months. I was hired on to port an application from Borland to VS 2005 with some C# sprinkled in there. To be more specific, I am porting from Borland OWL.

Are you using OWL? Sorry, I am not familiar with Borland C++ Builder or the Borland tools. I'm just porting code and we use a makefile to compile the Borland code.

I can give you some pointers if you are using OWL. A lot of the classes and methods transfer quite easily to MFC. Things like TDC is a CDC, TPen is a CPen. There are other portions of Borland which are nice and make you wish MFC had the same thing. For example, Borland has an actual color class (TColor). There is no equivalent in MFC so I had to use a COLORREF and the RGB macros in place of TColor.

There are other helpful Borland classes which you just need to figure out how to do the equivalent in MFC.

Since you will be working with MDI, you should be aware of Borland's window structure. Do you have a background in MFC and how the window classes relate? In MFC, a window contains a MainFrame which itself controls the MDIClient window. These are one-in-the-same when it comes to MFC classes. In Borland, you actually have two separate classes. A TMDIClient class and TMDIFrame/TDecoratedMDIFrame. You will need to convert the two classes into the one CMDIFrameWnd.

Does the project use STL? The STL is different between the two and requires some minor name changes. A compile error will point this out and you can usually figure out the equivalent just looking it up on MSDN.

Unfortunately, there is really no information on-line for Borland information. I use their OWL help documentation if I ever get stuck.

This should at least give you a heads up. Let me know if you have any more questions or concerns. We can take this to e-mail if necessary.
QuestionHow to use C++ member function from a dll Pin
sawerr28-Jun-07 0:23
sawerr28-Jun-07 0:23 
AnswerRe: How to use C++ member function from a dll Pin
Cedric Moonen28-Jun-07 0:56
Cedric Moonen28-Jun-07 0:56 
GeneralRe: How to use C++ member function from a dll Pin
toxcct28-Jun-07 1:49
toxcct28-Jun-07 1:49 
GeneralRe: How to use C++ member function from a dll Pin
Roger Stoltz28-Jun-07 1:58
Roger Stoltz28-Jun-07 1:58 
GeneralRe: How to use C++ member function from a dll Pin
toxcct28-Jun-07 2:02
toxcct28-Jun-07 2:02 
GeneralRe: How to use C++ member function from a dll Pin
Cedric Moonen28-Jun-07 2:12
Cedric Moonen28-Jun-07 2:12 
GeneralRe: How to use C++ member function from a dll Pin
sawerr28-Jun-07 2:19
sawerr28-Jun-07 2:19 
GeneralRe: How to use C++ member function from a dll Pin
Cedric Moonen28-Jun-07 2:25
Cedric Moonen28-Jun-07 2:25 
GeneralRe: How to use C++ member function from a dll Pin
toxcct28-Jun-07 2:31
toxcct28-Jun-07 2:31 
GeneralRe: How to use C++ member function from a dll Pin
toxcct28-Jun-07 2:28
toxcct28-Jun-07 2:28 
QuestionInitModalIndirect() for dialog without resorces Pin
prithaa28-Jun-07 0:11
prithaa28-Jun-07 0:11 
AnswerRe: InitModalIndirect() for dialog without resorces Pin
Jhony george28-Jun-07 1:11
Jhony george28-Jun-07 1:11 
GeneralRe: InitModalIndirect() for dialog without resorces Pin
prithaa28-Jun-07 17:19
prithaa28-Jun-07 17:19 
AnswerRe: InitModalIndirect() for dialog without resorces Pin
Nibu babu thomas28-Jun-07 1:28
Nibu babu thomas28-Jun-07 1:28 
AnswerRe: InitModalIndirect() for dialog without resorces Pin
Hamid_RT28-Jun-07 4:11
Hamid_RT28-Jun-07 4:11 
GeneralRe: InitModalIndirect() for dialog without resorces Pin
prithaa28-Jun-07 21:07
prithaa28-Jun-07 21:07 
QuestionGetting transparent icons out of CImageList ? Pin
Electronic7528-Jun-07 0:09
Electronic7528-Jun-07 0:09 

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.