|
You may be missing the working folder of that exe.
- ns ami -
|
|
|
|
|
i am not running .swf file directly.
I have an exe file that will run .swf
when i click the button it will call .exe file .
|
|
|
|
|
Yes. I am talking about the same. I doubt that your exe is missing its correct working folder so that the swf file would not be available for the exe. You can use ShellExecute or CreateProcess to specify the working folder also.
- ns ami -
|
|
|
|
|
sFilePath.Format(("C:\\app\\FULock.exe");
ShellExecute(NULL,"open", sFilePath,NULL,NULL, SW_SHOWNORMAL);
The APP Folder contains .swf file.
then what i do.
it wont display the .swf
|
|
|
|
|
Try this...
ShellExecute(NULL,"open", sFilePath,NULL,_T("C:\\app\\"), SW_SHOWNORMAL);
- ns ami -
|
|
|
|
|
thanks you,that working now
|
|
|
|
|
Welcome...
- ns ami -
|
|
|
|
|
hello,
can anybody help me to knw that who mainapp, doc and view handles ID_FILE_CLOSE i want to override this as i m using AFXPrintPreview(this) where this is ponter to view. in that case my main ribbon button contains a close buttton. On which i want to just close my preview nt application. my application is an SDI application. plz help
thnakz
|
|
|
|
|
It's handled by the document. You may explain it better.
Some notes from MSDN:
ID_FILE_CLOSE Closes the currently open document.
CDocument::OnFileClose calls CDocument::SaveModified to prompt the user to save the document if it has been modified and then calls OnCloseDocument. All the closing logic, including destroying the document, is done in the OnCloseDocument routine.
ID_FILE_CLOSE acts differently from a WM_CLOSE message or an SC_CLOSE system command sent to the documents frame window. Closing a window will close the document only if that is the last frame window showing the document. Closing the document with ID_FILE_CLOSE will not only close the document but will close down all frame windows showing the document.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
thanks for the reply... i could get it earlier but will it be ok from design point of view to call CmainFrame method from doc. i kindda need that.
|
|
|
|
|
I have created resource dll in english and french language.
Now I want to link these resource dlls to my MFC dialog based application.
In my application,I am chosing language from a combo box.I need to call the particular resource dll on the selection of language in combo box.
Can anyone help me? It's URGENT.
Thanks in advance.
|
|
|
|
|
Clikt[^]
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
here are some extra files which i don't have in my application. So I am not getting where to include these files.
Like CMainFrame class, I don't have .So i am not getting that where to include the handler..
Can u help me?
|
|
|
|
|
Hey you don't need to use the demo application. It's a Doc/view application. As you said yours is a Dialog application. You don't need to copy all those View,Doc files. Just search for CLanguageSupport usage in his demo application and try to implement it in your dialog.Helper[^]
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
I am trying to open a exe file through my application. I am using CreateProcess() for the same
But before the application lauches the next line starts executing.
I added Sleep(10000). But that does not help everytime
Please suggest how can I wait till application is up and then proceed with other calls.
|
|
|
|
|
What does the next line do? What kind of problem does the next line make to be execute? tell a little more about your problem...
|
|
|
|
|
Here when I open a application which is a server, the mounted file systesm should create a corresponding directory.So next line is to Check for the folder in fs.
This command executes imeediately and returns no folder.
|
|
|
|
|
Is'nt ShellExeute helping you?
|
|
|
|
|
WaitForInputIdle or GetExitCodeProcess may help?
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
I am using below function and its working fine for now.
DWORD dwExit = WaitForSingleObject(piProcessInfo.hProcess,5 * 10000);
This is incorporating required delay.
|
|
|
|
|
I think that's the only way. (up to my knowledge) because GetExitCodes just get the termination status. May be after waiting , you can check for STILL_ACTIVE status. But your design sounds little bad. What is that you are trying to do? May be you could synchronize your processes with kernel objects like Events. That would be a better solution.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Hello all,
One of my works requirement is customizing the context menu in inspector window of a MS outlook.
Details regarding it are as follows:
when we right click on a email-id(the one that is in front of a From: or To: ),
a context-menu pops-up.I want to add some items in it.
How this can be done? and what events should be handled?
i am writing a component in vc++ & working with outlook 2003.
reply me on n.chudekar.31@gmail.com
thanks in advance.
|
|
|
|
|
at last i got the solution...
anyone facing the same problem, you can visit following two sites everything will be
cleared then.
http://www.outlookcode.com/news.aspx?id=41[^]
http://www.crmreports.com/index.php/additional-actions-when-right-clicking-a-from-or-to-address.html[^]
cheers,
|
|
|
|
|
Hi,
I just saw a example of something I was trying to do on MSDN doing tcp sockets methods in its own thread
the exmpale head Csockets as derived Class With CWinThread as the Base
class CSockThread : public CWinThread my questions where would the code start executing I know Cwinthread has a
CreateThread method but that doesn't specfy where the code starts executing
thankx
|
|
|
|
|
The code starts execution in CWinThread::InitInstance[^]. YOu can override this in your derived class.
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|