|
rajeshkumarrajput wrote: char *sCmdLin = "C:\\wmvcopy.exe -i 'C:\\Documents and Settings\\Equinox\\Desktop\\videos\\system.wmv' -o 'c:\\test.wmv' -p 20 -d 30";
Why are you giving the C:\\wmvcopy.exe int the cmdline again? I think you need to give only from -i ...
- ns ami -
|
|
|
|
|
now i m give the parameter
char *sCmdLin = "-i C:\\Documents and Settings\\Equinox\\Desktop\\videos\\system.wmv -o c:\\test.wmv -p 20 -d 30";
but it also not work.
|
|
|
|
|
rajeshkumarrajput wrote: char *sCmdLin = "-i C:\\Documents and Settings\\Equinox\\Desktop\\videos\\system.wmv -o c:\\test.wmv -p 20 -d 30";
Try to group the strings
"-i \"C:\\Documents and Settings\\Equinox\\Desktop\\videos\\system.wmv\" -o c:\\test.wmv -p 20 -d 30"
Btw, could you run the same in command prompt?
- ns ami -
|
|
|
|
|
Now I use
"-i \"C:\\Documents and Settings\\Equinox\\Desktop\\videos\\system.wmv\" -o c:\\test.wmv -p 20 -d 30"
and
"-i \"C:\\Documents and Settings\\Equinox\\Desktop\\videos\\system.wmv\" -o \"c:\\test.wmv\" -p 20 -d 30"
But it can not take the parameters now what is the problem?
This is my command line parameter which i run the application through cmd prompt
C:\Documents and Settings\Equinox>C:\wmvcopy.exe -i "C:\\Documents and Settings\
\Equinox\\Desktop\\videos\\system.wmv" -o c:\\cut.wmv -p 50 -d 20
|
|
|
|
|
Give both the executable and the command line as the second parameter of CreateProcess and leave the first parameter as NULL .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
Hi,
I am new in developing web service.I don't about the web service development.Can any one help to me? how to connect web service(asp.net/c#) with vc++6.0(especially). i want to create web client in vc++6.0.Is there any possible? i know that possible available in VS 2005.But i wanna connect through VC++6.0.
Thanks a lot.
|
|
|
|
|
See Web Services[^].
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
hi,
Thanks lot for replay.
ya,It is useful.But I wanna connect Web Service through VC++6.0 only.how to connect the SOAP Web Service via vc++6.0 MFC (without use ATL and COM)?Is it possible?
can you help me?
Thanks a lot once again.
|
|
|
|
|
I dont think its possible of VC++ 6.0 or no but I think its better you use of C++.NET
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Thanks lot.
|
|
|
|
|
Is there any software that can Generate Documented file from Vc++ code means in Code Functionality of Each function is Commented algong with every function now i want to create Seperate Document that is Containing the Function's functionality only not the Code part. plz Suggest ......
|
|
|
|
|
www.doxygen.org[^]
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 second VuNic's recomendation of doxygen. I'm going through my code with it now, and I'm ending up doing loads of refactoring to make my software more robust as a result.. And the documentation it comes out with is very nice.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Hi to all
I am trying to run the ms word using create process. But not able to. Could anyone please help me out with the same? Following is the code
PROCESS_INFORMATION processInfo = {0};
STARTUPINFO startupInfo = {0};
BOOL bSuccess = CreateProcess(NULL,
"winword", //it works for "notepad"
NULL, NULL, FALSE, 0, NULL, NULL,
&startupInfo, &processInfo);
Thanks in advance
I am a beginner
|
|
|
|
|
Try giving the full path of winword like "C:\\Program Files\\Microsoft Office\\Bin\Winword.exe"
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
thanks a lot,...its working....
But now I am not able to run a word doc in another drive
char* szCmdline = "D:\\docs\\main.doc";
Could you please tell me what is the problem?
Thanks
I am a beginner
|
|
|
|
|
Give the second parameter of CreateProcess something like this
"\"C:\\Program Files\\Microsoft Office\\Bin\\Winword.exe\" \"D:\\docs\\main.doc\""
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I did that,
char* szCmdline = "\"C:\\Program Files\\Microsoft Office\\Office\\winword.exe\" \"D:\\docs\\main.doc"";
but its giving syntax error...
:\Program Files\Microsoft Visual Studio\MyProjects\processTry\processTry.cpp(12) : error C2001: newline in constant
C:\Program Files\Microsoft Visual Studio\MyProjects\processTry\processTry.cpp(15) : error C2146: syntax error : missing ';' before identifier 'BOOL'
C:\Program Files\Microsoft Visual Studio\MyProjects\processTry\processTry.cpp(15) : error C2146: syntax error : missing ';' before identifier 'bSuccess'
C:\Program Files\Microsoft Visual Studio\MyProjects\processTry\processTry.cpp(15) : error C2275: 'BOOL' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\windef.h(142) : see declaration of 'BOOL'
C:\Program Files\Microsoft Visual Studio\MyProjects\processTry\processTry.cpp(15) : error C2065: 'bSuccess' : undeclared identifier
I am a beginner
|
|
|
|
|
You missed a back slash after .doc and before "
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
thanks
its working...
Could you please explain me the syntax
char* szCmdline = "\"C:\\Program Files\\Microsoft Office\\Office\\winword.exe\" \"D:\\docs\\main.doc\"";
I didn't get it actually..I thought that whenever compiler finds the second " it identifies the end of the string.
Also please tell me why the notepad works directly
char* szCmdline = "notepad" ;
but winword doesnot work for the same syntax
I am a beginner
|
|
|
|
|
himangshuS wrote: "\"
You are writing out a '"' with your path. You cannot include it between two " " " simply because the compiler would think that you are ending the string with your " in the middle. So you should add a "\" to it to say "Don't consider it as the end of the string".
instead of
C:\Program Files\Microsoft Office\Office\winword.exe
You are now saying
"C:\Program Files\Microsoft Office\Office\winword.exe"
btw, isn't that how we open a file from command prompt?
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
|
|
|
|
|
This is the actual string that the function needs including double quotes.
"C:\Program Files\Microsoft Office\Office\winword.exe" "D:\docs\main.doc"
So all the special characters here need to be escaped or negated using a back slash.
The special characters in the string are double quotes and back slash.
So the string becomes.
\"C:\\Program Files\\Microsoft Office\\Office\\winword.exe\" \"D:\\docs\\main.doc\"
Now since this is a string we put a final set of double quotes at the ends. So it becomes
"\"C:\\Program Files\\Microsoft Office\\Office\\winword.exe\" \"D:\\docs\\main.doc\""
The path where Notepad.exe resides is in your search path, whereas the path where winword.exe resides is not in your search path. That is the reason why notepad works and not winword.
Check the PATH environment variable by typing path at the command prompt.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
You can directly open the doc file as follows
ShellExecute( 0, _T( "open" ), _T( "D:\\docs\\main.doc" ), 0, 0, SW_SHOWNORMAL ); so that you dont need to think about the installation path of winword.
- ns ami -
|
|
|
|
|
ShellExecute is working fine. But I have to check what is wrong with CreateProcess
ShellExecute( 0, _T( "open" ), _T( "winword" ), 0, 0, SW_SHOWNORMAL );
- ns ami -
|
|
|
|