Click here to Skip to main content
15,903,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to convert a string to char Pin
ashokbngr17-Sep-06 20:11
ashokbngr17-Sep-06 20:11 
AnswerRe: How to convert a string to char Pin
Christian Graus17-Sep-06 20:11
protectorChristian Graus17-Sep-06 20:11 
GeneralRe: How to convert a string to char Pin
Stephen Hewitt17-Sep-06 20:37
Stephen Hewitt17-Sep-06 20:37 
GeneralRe: How to convert a string to char Pin
cpp_prgmer17-Sep-06 21:03
cpp_prgmer17-Sep-06 21:03 
GeneralRe: How to convert a string to char Pin
Stephen Hewitt17-Sep-06 22:24
Stephen Hewitt17-Sep-06 22:24 
GeneralRe: How to convert a string to char Pin
cpp_prgmer17-Sep-06 23:04
cpp_prgmer17-Sep-06 23:04 
GeneralRe: How to convert a string to char Pin
Zac Howland18-Sep-06 3:26
Zac Howland18-Sep-06 3:26 
QuestionDoc-View to be called from a dialog based MFC program? Pin
Rajeswari, T.17-Sep-06 19:58
Rajeswari, T.17-Sep-06 19:58 
We create a dialog box from a Document View Application, it's fairly easy. But it should also be possible to do 'invert' this operation, i.e., using dialog based application as 'main window', a doc view program must start, for example, on clicking a button on the dialog box. I tried to make it using two three ways but I was only partly successful.

Suppose you have created a new dialog based MFC application. Add a button, call it 'Start Doc View'. On clicking this button, a Doc View application should pop up. I implemented something like this:

void C...Dlg::OnDocView( ) // click event for the button
{
ShellExecute(...); // Supply the name of Doc View EXE and path...
}

But this has a disadvantage that, if the dialog application is closed, the Doc View still remains on the screen. I don't want this disadvantage. What is desired is, if the dialog based app closes, the Doc View should also 'die'.

I tried to use Doc View as DLL (I saw one or two articles at CodeGuru). Built and copied the DLL (also .h and .lib files of Doc View) into the dialog-based project, but could not make much headway. Could also be my mistake.

I am also thinking of initiating a user interface thread (when the start Doc View button is clicked) and that thread, instead of showing its own window, calls ShellExecute(...) or calls the DLL for Doc View. Would it be correct?

Can you kindly provide a solution. Also, (if possible), a line by e-mail (rajeswarit@rediffmail.com) about your posting of article and/or your views would be my fortune.

With many thanks,
Yours sincerely,
Rajeswari
Questionthreads to save in compound document. Pin
cpp_prgmer17-Sep-06 19:55
cpp_prgmer17-Sep-06 19:55 
AnswerRe: threads to save in compound document. Pin
Stephen Hewitt17-Sep-06 20:55
Stephen Hewitt17-Sep-06 20:55 
GeneralRe: threads to save in compound document. Pin
cpp_prgmer17-Sep-06 20:59
cpp_prgmer17-Sep-06 20:59 
GeneralRe: threads to save in compound document. Pin
Stephen Hewitt17-Sep-06 21:09
Stephen Hewitt17-Sep-06 21:09 
GeneralRe: threads to save in compound document. Pin
cpp_prgmer17-Sep-06 21:13
cpp_prgmer17-Sep-06 21:13 
GeneralRe: threads to save in compound document. Pin
Stephen Hewitt18-Sep-06 14:08
Stephen Hewitt18-Sep-06 14:08 
QuestionHow can i set caption for SDI? Pin
kiranin17-Sep-06 19:48
kiranin17-Sep-06 19:48 
AnswerRe: How can i set caption for SDI? Pin
Hamid_RT17-Sep-06 19:53
Hamid_RT17-Sep-06 19:53 
GeneralRe: How can i set caption for SDI? Pin
Christian Graus17-Sep-06 20:12
protectorChristian Graus17-Sep-06 20:12 
GeneralRe: How can i set caption for SDI? Pin
Hamid_RT17-Sep-06 20:38
Hamid_RT17-Sep-06 20:38 
GeneralRe: How can i set caption for SDI? Pin
kiranin17-Sep-06 20:31
kiranin17-Sep-06 20:31 
GeneralRe: How can i set caption for SDI? Pin
Hamid_RT17-Sep-06 20:40
Hamid_RT17-Sep-06 20:40 
GeneralRe: How can i set caption for SDI? Pin
kiranin17-Sep-06 20:43
kiranin17-Sep-06 20:43 
GeneralRe: How can i set caption for SDI? Pin
Hamid_RT18-Sep-06 9:50
Hamid_RT18-Sep-06 9:50 
Questionrenaming and deleting the folder Pin
radhika2817-Sep-06 19:06
radhika2817-Sep-06 19:06 
AnswerRe: renaming and deleting the folder Pin
_AnsHUMAN_ 17-Sep-06 19:11
_AnsHUMAN_ 17-Sep-06 19:11 
AnswerRe: renaming and deleting the folder Pin
Naveen17-Sep-06 19:12
Naveen17-Sep-06 19:12 

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.