|
this problem is in all projects or this project
whitesky
|
|
|
|
|
i try it but it still have same problem
plz tel me something else
Ashish Dogra
MCA
Noida
|
|
|
|
|
|
no sir problem is still there
Ashish Dogra
MCA
Noida
|
|
|
|
|
Not sure if that will help: in your project directory, delete (or rename) the .clw file (which contains the information for ClassWizard). Then reopen your project and open Class Wizard. IT will prompt you that the file is not found and if it should reconstruct it with the source files. Say yes.
Check if that works.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
Hello,
Long time reader, first time poster.
I have created a simple .txt parser. I am wondering if it is possible to drag and drop a .txt file into the parser.exe and have it execute automatically. At the moment when I drag and drop a file it opens the program, so I would assume that Windows must handle the event in some way or another. Anybody wanna point me in the right direction?
P.S. I work in Visual C++ but really mostly with Windows Code and C.
Thanks,
Joe the Noob :->
-- modified at 8:36 Wednesday 21st June, 2006
|
|
|
|
|
TheDelChop wrote: At the moment when I drag and drop a file it opens the program...
Isn't that the same thing as executing it?
Otherwise, when your application receives the WM_DROPFILES message, start processing the files.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Depends what you want to do.
Suppose you have Windows explorer open with a VC console application MYPROGRAM.EXE visible in the list of files, and you drag some other file FILE.TXT onto MYPROGRAM.EXE and drop it, then windows behaves as if you entered "MYPROGRAM FILE.TXT" at the command line. So what you have to look for is how to use command line parameters. ARGV springs to mind, but it's been a while since I used that stuff.
If you want to drag a file and drop it onto an application which is already running, I have no idea!
|
|
|
|
|
|
After weeks of trying to program using the dlls and/or libs, i finally considered building my own gui i.e. Console Programming in vc++
Now all i get is
<br />
CString csExecute;<br />
csExecute="C://msys//home//ffmpeg4//ffmpeg.exe";
csExecute+= " ";<br />
csExecute+="-i Rahul.avi -s qcif -o fort1.mpeg";<br />
SECURITY_ATTRIBUTES secattr; <br />
ZeroMemory(&secattr,sizeof(secattr));<br />
secattr.nLength = sizeof(secattr);<br />
secattr.bInheritHandle = TRUE;<br />
<br />
HANDLE rPipe, wPipe;<br />
<br />
CreatePipe(&rPipe,&wPipe,&secattr,0);<br />
STARTUPINFO sInfo; <br />
ZeroMemory(&sInfo,sizeof(sInfo));<br />
PROCESS_INFORMATION pInfo; <br />
ZeroMemory(&pInfo,sizeof(pInfo));<br />
sInfo.cb=sizeof(sInfo);<br />
sInfo.dwFlags=STARTF_USESTDHANDLES;<br />
sInfo.hStdInput=NULL; <br />
sInfo.hStdOutput=wPipe; <br />
sInfo.hStdError=wPipe;<br />
char command[1024]; <br />
strcpy(command,csExecute.GetBuffer(csExecute.GetLength()));<br />
<br />
CreateProcess(0, command,0,0,TRUE,<br />
NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW,0,0,&sInfo,&pInfo);<br />
CloseHandle(wPipe);<br />
<br />
char buf[100];<br />
DWORD reDword; <br />
CString m_csOutput,csTemp;<br />
BOOL res;<br />
do<br />
{<br />
res=::ReadFile(rPipe,buf,100,&reDword,0);<br />
csTemp=buf;<br />
m_csOutput+=csTemp.Left(reDword);<br />
}while(res);<br />
AfxMessageBox(m_csOutput);<br />
which does a nifty little trick of displaying output from the console
Now all i get is
<br />
"Rahul.avi I/O Error<br />
Usually that means that input file is truncated and/or corrupted "<br /> which is strange since if i try the same from the command line it encodes fine.
So what am I doing wrong?
|
|
|
|
|
Try using ShellExecuteEx
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
I am trying shellexecute as well
ShellExecute(NULL,_T("Open"),_T("C://msys//home//ffmpeg4//ffmpeg.exe"),_T(" -i Rahul.avi -s qcif fort.mpeg"),NULL,SW_SHOWMAXIMIZED);
DOesnt seem to work though
|
|
|
|
|
Try specifying the full path to your avi. Also GUI means Graphical User Interface, and calling a console application as a GUI is a bit of a stretch.
|
|
|
|
|
Well I intend to extend my dialog to give the user options and all that jazz.
SOrry for the confusion.
|
|
|
|
|
RahulOP wrote: ="C://msys//home//ffmpeg4//ffmpeg.exe"
Try replacing "//" with "\\"
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
That line is fine because when I give the option to display license it works.Thanks anyway
|
|
|
|
|
Maybe you are closing the write handle for pipe too early, while the ffmpeg.exe process is still running?
Perhaps you have to wait for process termination before closing the handle, like this:
::WaitForSingleObject(pInfo.hProcess, INFINITE);
::CloseHandle(wPipe);
|
|
|
|
|
Nope doesnt work.
it works fine when I give the option as " -L" which is to show the GNU license.
So this has me a li'l confused.
Thanks for the tip though.
|
|
|
|
|
HI,
I'm new to the MFC scene and Windows Messaging. What I’d like to know is if it is possible to send messages between dialogs. Say for instance I have a Tab control with two tabs. And each has its own Dialog resource. Say on Tab 1 Dialog 1 there is a button. How can I send a Message to the Main app to notify it that the button was clicked? I type of OnDialog1Button1Clecked() function...
Thanks guys and gals
|
|
|
|
|
|
See my suggestion here.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi
My question:
I have created my custom file format. And i set “Summary information” stream and “Document information” stream to my file. Then in Microsoft Explorer on File Properties/Summary tab shows only Title, Subject, Category, Keywords, Comments, Source, author, Revision Number property. But if i change file extension (for instance) to “.doc” or “.ppt”, File Properties/Summary tab shows all properities such as word count and pages.
How it should be made, so File Properties/Summary tab to show all propeties for my file extensions?
|
|
|
|
|
tarikata wrote: But if i change file extension (for instance) to “.doc” or “.ppt”, File Properties/Summary tab shows all properities such as word count and pages.
Does your file support word and page count?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
What mean support? I saved this properties in summary information stream and document information stream. When i change file extension (.doc, or other microsoft office extension) word count and pages are showing in Summary Tab.
|
|
|
|
|
I mean does your file type have word and page count? If it doesn't, then what difference does it make whether the Summary tab contains that information or not? Is there property-type information about your file that is not being shown on the Properties dialog?
tarikata wrote: When i change file extension (.doc, or other microsoft office extension) word count and pages are showing in Summary Tab.
That's because those file types have word and page count. Why wouldn't that information be shown?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|