Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: post thread message() Pin
shakumar_2230-Jul-07 4:38
shakumar_2230-Jul-07 4:38 
GeneralRe: post thread message() Pin
Iain Clarke, Warrior Programmer30-Jul-07 5:06
Iain Clarke, Warrior Programmer30-Jul-07 5:06 
QuestionHow to put an MFC Dialog box project into another existing project Pin
vladimir7230-Jul-07 2:29
vladimir7230-Jul-07 2:29 
AnswerRe: How to put an MFC Dialog box project into another existing project Pin
Nelek30-Jul-07 2:40
protectorNelek30-Jul-07 2:40 
GeneralRe: How to put an MFC Dialog box project into another existing project Pin
vladimir7230-Jul-07 2:51
vladimir7230-Jul-07 2:51 
GeneralRe: How to put an MFC Dialog box project into another existing project Pin
Hans Dietrich30-Jul-07 3:12
mentorHans Dietrich30-Jul-07 3:12 
AnswerRe: How to put an MFC Dialog box project into another existing project Pin
vladimir7230-Jul-07 3:58
vladimir7230-Jul-07 3:58 
GeneralRe: How to put an MFC Dialog box project into another existing project Pin
Nelek30-Jul-07 20:23
protectorNelek30-Jul-07 20:23 
Ok, First of all take a look on the link Hans Dietrich gave you.

Anyways... what I told you should work, I have added classes to my project and I had no problems. The only thing you have to take care is to create a resource to fit your DialogBox. I mean, you create an empty DialogBox, close it, goes to the file *.rc in the *.cpp path and edit it.

A trick to do this is to look for the name of a resource into all the files of the project, I mean... just added a DialogBox had the IDD_DIALOG1 name, just use this in the search, the results will come where below in "Search in files1" (1st option is the compiler errors, 2nd debug, 3rd "search in files1", 4th search...) Open the ApplicationName.rc file with a doble click there. Then you will see a file with ALL your resources of the active project in code, not in grafics.

Look for your IDD_DIALOG1 (or the name you wanna give to it), erase the contents and replace it with the code of the dialog you wanna import. That will let you to have the new dialog with all the references/names of the old one.

After this, reboot your VC++ and you should have the Dialog in your resources as it is. Doubleclick to create an associated class, remove the new files and add the *.cpp and *.h of the dialog.


The only problem with it is that a DialogBox-based application can have some code that collisionate with the intialisation of a DOC-View app. But is nothing that you can't deal.


Anyways, I have taken a look to Hans Dietrich article and it will work very good, and its "cleaner". What I told you is a "bruto"'s way.

Good luck and have fun Smile | :)

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Questionre: Fast Searching... Pin
Bryster30-Jul-07 1:54
Bryster30-Jul-07 1:54 
AnswerRe: re: Fast Searching... Pin
Randor 30-Jul-07 1:58
professional Randor 30-Jul-07 1:58 
GeneralRe: re: Fast Searching... Pin
Bryster30-Jul-07 2:25
Bryster30-Jul-07 2:25 
AnswerRe: re: Fast Searching... Pin
Hans Dietrich30-Jul-07 3:17
mentorHans Dietrich30-Jul-07 3:17 
GeneralRe: re: Fast Searching... Pin
Bryster30-Jul-07 4:12
Bryster30-Jul-07 4:12 
Questionre: Problems with Progress Bar Pin
Bryster30-Jul-07 1:25
Bryster30-Jul-07 1:25 
AnswerRe: re: Problems with Progress Bar Pin
Hans Dietrich30-Jul-07 3:21
mentorHans Dietrich30-Jul-07 3:21 
GeneralRe: re: Problems with Progress Bar Pin
Bryster30-Jul-07 4:24
Bryster30-Jul-07 4:24 
AnswerRe: re: Problems with Progress Bar Pin
krmed30-Jul-07 4:53
krmed30-Jul-07 4:53 
QuestionRe: re: Problems with Progress Bar Pin
Mark Salsbery30-Jul-07 6:20
Mark Salsbery30-Jul-07 6:20 
Questioncan not delete a file Pin
George_George30-Jul-07 0:13
George_George30-Jul-07 0:13 
AnswerRe: can not delete a file Pin
Jonathan [Darka]30-Jul-07 0:18
professionalJonathan [Darka]30-Jul-07 0:18 
GeneralRe: can not delete a file Pin
George_George30-Jul-07 0:23
George_George30-Jul-07 0:23 
GeneralRe: can not delete a file [modified] Pin
Jonathan [Darka]30-Jul-07 0:57
professionalJonathan [Darka]30-Jul-07 0:57 
GeneralRe: can not delete a file Pin
George_George30-Jul-07 1:23
George_George30-Jul-07 1:23 
GeneralRe: can not delete a file Pin
Jonathan [Darka]30-Jul-07 2:06
professionalJonathan [Darka]30-Jul-07 2:06 
GeneralRe: can not delete a file Pin
George_George30-Jul-07 2:37
George_George30-Jul-07 2: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.