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

C / C++ / MFC

 
GeneralRe: How to use the struct in the VC.Net? Pin
Marc Soleda30-Aug-05 23:21
Marc Soleda30-Aug-05 23:21 
GeneralRe: How to use the struct in the VC.Net? Pin
greenwyx30-Aug-05 23:35
greenwyx30-Aug-05 23:35 
GeneralRe: How to use the struct in the VC.Net? Pin
Marc Soleda30-Aug-05 23:52
Marc Soleda30-Aug-05 23:52 
GeneralRe: How to use the struct in the VC.Net? Pin
toxcct31-Aug-05 0:01
toxcct31-Aug-05 0:01 
NewsWritng a VC++ Code to lock a windows File Pin
Its_Me_Shashank30-Aug-05 21:54
Its_Me_Shashank30-Aug-05 21:54 
QuestionHook expert needed : add event to JournalPlaybackProc -> i m lost ! Pin
etherny30-Aug-05 21:45
etherny30-Aug-05 21:45 
QuestionHow to dynamically load powerpoint into my MFC application? Pin
Amarelia30-Aug-05 20:30
Amarelia30-Aug-05 20:30 
AnswerRe: How to dynamically load powerpoint into my MFC application? Pin
sharpanil30-Aug-05 20:49
sharpanil30-Aug-05 20:49 
I am not sure what you mean by load PowerPoint into your app...but this will launch Powerpowerpoint....Note you may have to look into the Registry where Excel is installed.

try
{
STARTUPINFO start;
PROCESS_INFORMATION processinfo;
char temp[300];
CString strMessage = "Unable to launch the editor ",
strDefEditor,
strFileName;

pFrameWnd = dynamic_cast<cmainframe*> (AfxGetApp()->m_pMainWnd);
if (pFrameWnd)
{
//strEditor contains path to PowerPoint
strDefEditor = pFrameWnd->m_DlgOptions.m_strEditor;
}

strcpy (temp, strDefEditor);
strcat(temp, " \"");

strFileName = GetPathName();//ocument()->m_strL>GetPathName() ;//m_DlgDataSave.m_strFilePath + m_DlgDataSave.m_strFileName;
//SaveFile(&strFileName);
strcat(temp, strFileName);
strcat(temp,"\"");

start.cb = sizeof start;
start.lpReserved = NULL;
start.lpDesktop = NULL;
start.lpTitle = NULL;
start.cbReserved2 = 0;
start.lpReserved = NULL;
start.dwFlags = STARTF_USESHOWWINDOW;
start.wShowWindow = SW_SHOW;

if ( !::CreateProcess( NULL,
temp,
NULL,
NULL,
TRUE,
0,
NULL,
NULL,
&start,
&processinfo))
{
strMessage += "\"" + strDefEditor + "\".";
if (pFrameWnd)
pFrameWnd->MessageBox(strMessage, "Error launching editor", MB_OK);
}
else
{
// Close the data file to prevent access problems
//m_pDoc = (CESCDoc*) GetActiveDocument();
//m_pDoc->OnCloseDocument();
// OnCloseDocument();
}
}
catch(...)
{
pFrameWnd = dynamic_cast<cmainframe*> (AfxGetApp()->m_pActiveWnd);
if (pFrameWnd)
pFrameWnd->MessageBox( "Unable to open the file in Excel.",
MAIN_ERROR_MSG,
MB_ICONEXCLAMATION);
}




-Anil
AnswerRe: How to dynamically load powerpoint into my MFC application? Pin
Eytukan30-Aug-05 22:31
Eytukan30-Aug-05 22:31 
QuestionEvent watching Pin
Nishad S30-Aug-05 19:55
Nishad S30-Aug-05 19:55 
AnswerRe: Event watching Pin
prasad_som30-Aug-05 20:18
prasad_som30-Aug-05 20:18 
AnswerRe: Event watching Pin
John R. Shaw30-Aug-05 20:19
John R. Shaw30-Aug-05 20:19 
GeneralRe: Event watching Pin
Nishad S30-Aug-05 20:40
Nishad S30-Aug-05 20:40 
AnswerRe: Event watching Pin
ThatsAlok30-Aug-05 20:51
ThatsAlok30-Aug-05 20:51 
GeneralRe: Event watching Pin
Nishad S30-Aug-05 21:43
Nishad S30-Aug-05 21:43 
QuestionIShellFolder::ParseDisplayName and UNICODE Pin
Tcpip200530-Aug-05 19:43
Tcpip200530-Aug-05 19:43 
AnswerRe: IShellFolder::ParseDisplayName and UNICODE Pin
Jose Lamas Rios31-Aug-05 2:55
Jose Lamas Rios31-Aug-05 2:55 
Questionbugs when type-casting a float to double Pin
chris_mclean30-Aug-05 18:58
chris_mclean30-Aug-05 18:58 
AnswerRe: bugs when type-casting a float to double Pin
Christian Graus30-Aug-05 19:21
protectorChristian Graus30-Aug-05 19:21 
AnswerRe: bugs when type-casting a float to double Pin
John R. Shaw30-Aug-05 20:38
John R. Shaw30-Aug-05 20:38 
GeneralRe: bugs when type-casting a float to double - Resolved Thanks Pin
chris_mclean30-Aug-05 21:08
chris_mclean30-Aug-05 21:08 
GeneralRe: bugs when type-casting a float to double - Resolved Thanks Pin
John R. Shaw31-Aug-05 20:25
John R. Shaw31-Aug-05 20:25 
AnswerRe: bugs when type-casting a float to double Pin
cmk31-Aug-05 5:22
cmk31-Aug-05 5:22 
QuestionWhat can I do if I want the CEdit box only receive the numbers? Pin
pantao55130-Aug-05 18:02
pantao55130-Aug-05 18:02 
AnswerRe: What can I do if I want the CEdit box only receive the numbers? Pin
Barm30-Aug-05 18:14
Barm30-Aug-05 18:14 

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.