Click here to Skip to main content
15,914,379 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do i change the internet explorer settings programatically Pin
Hamid_RT18-Apr-07 7:27
Hamid_RT18-Apr-07 7:27 
AnswerRe: How do i change the internet explorer settings programatically Pin
David Crow18-Apr-07 3:54
David Crow18-Apr-07 3:54 
GeneralRe: How do i change the internet explorer settings programatically Pin
vishnuteja18-Apr-07 19:54
vishnuteja18-Apr-07 19:54 
GeneralRe: How do i change the internet explorer settings programatically Pin
David Crow19-Apr-07 2:42
David Crow19-Apr-07 2:42 
QuestionRegarding returning values from a DLL Pin
Nikhil Trivedi17-Apr-07 21:09
Nikhil Trivedi17-Apr-07 21:09 
QuestionApplication.DoEvents () = WIN32 API ? Pin
amitmistry_petlad 17-Apr-07 21:04
amitmistry_petlad 17-Apr-07 21:04 
AnswerRe: Application.DoEvents () = WIN32 API ? Pin
Hamid_RT17-Apr-07 21:11
Hamid_RT17-Apr-07 21:11 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
amitmistry_petlad 17-Apr-07 21:30
amitmistry_petlad 17-Apr-07 21:30 
yes,

well I have one application for converting any format to .wmv from the ENCODER SDK 9 SERIES. I think you might asked me before for this!. is it ?
Now the file is converted sucessfully but due to this application is console they used
the following thing.

I am using win32 in .Net(vs2005) using unicode.
how can i handle the event or message pumping in my application.

<br />
 // Start the encoding process.<br />
    if ( SUCCEEDED( hr ) )<br />
    {<br />
        hr = pEncoder->PrepareToEncode(VARIANT_TRUE);<br />
    }<br />
    if ( SUCCEEDED( hr ) )<br />
    {<br />
        hr = pEncoder->Start();<br />
        // Keep the console window open.<br />
        printf("When encoding stops, press a key to close the console window.");<br />
<br />
        // Stop the encoding process.<br />
        if ( SUCCEEDED( hr ) )<br />
        {<br />
           <pre> // Wait for a key press.<br />
            while(!kbhit())  //this is due to console application<br />
               _asm nop;<br />
          </pre><br />
<br />
            hr = pEncoder->Stop();<br />
        }<br />
    }<br />
<br />
<br />


The same thing for conversion. I had see in here.But it is in C#.
here is the link and sample code .
http://www.codeproject.com/Purgatory/ConvertVideoFileFormats.asp[^]

The window handle the console.
The link having the following code.
<br />
<br />
public void EncodeFromConsole()<br />
		{<br />
			glbEncoder.OnStateChange+=new _IWMEncoderEvents_OnStateChangeEventHandler(this.Encoder_OnStateChange); <br />
			bool boolEncodeStart = sEncodeFile(movie_source ,movie_dest );<br />
			if(boolEncodeStart)<br />
				Console.WriteLine("Encoding successfully started ");<br />
			glbboolStartNext= !boolEncodeStart;<br />
			FileInfo f = new FileInfo(movie_dest );<br />
			<br />
                      <pre><br />
                      while (!glbboolStartNext) <br />
			{<br />
				Application.DoEvents ();				<br />
					<br />
			}<br />
                      </pre>    <br />
				<br />
			Console.WriteLine  ("Finished - File " + movie_source + " is converted to " + movie_dest );<br />
			Application.Exit ();<br />
		}<br />


What should i do ? should i do the shellexe or something else .
in sdk they write the following

Instead of including the wmencode.h and mspropshell.h header files, you can import the corresponding type libraries to generate wrapper classes that simplify implementation of the related COM interfaces:

#import "WMEnc.exe"
#import "MSPShell.dll"




"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India

AnswerRe: Application.DoEvents () = WIN32 API ? Pin
kakan17-Apr-07 22:36
professionalkakan17-Apr-07 22:36 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
amitmistry_petlad 17-Apr-07 22:58
amitmistry_petlad 17-Apr-07 22:58 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
kakan17-Apr-07 23:33
professionalkakan17-Apr-07 23:33 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
amitmistry_petlad 17-Apr-07 23:39
amitmistry_petlad 17-Apr-07 23:39 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
kakan17-Apr-07 23:49
professionalkakan17-Apr-07 23:49 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
amitmistry_petlad 17-Apr-07 23:50
amitmistry_petlad 17-Apr-07 23:50 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
kakan18-Apr-07 0:32
professionalkakan18-Apr-07 0:32 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
amitmistry_petlad 18-Apr-07 1:01
amitmistry_petlad 18-Apr-07 1:01 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
kakan18-Apr-07 1:15
professionalkakan18-Apr-07 1:15 
GeneralRe: Application.DoEvents () = WIN32 API ? Pin
amitmistry_petlad 18-Apr-07 1:21
amitmistry_petlad 18-Apr-07 1:21 
QuestionCSemaphore Question Pin
softwaremonkey17-Apr-07 20:57
softwaremonkey17-Apr-07 20:57 
AnswerRe: CSemaphore Question Pin
Roger Stoltz17-Apr-07 21:30
Roger Stoltz17-Apr-07 21:30 
AnswerRe: CSemaphore Question Pin
Mark Salsbery18-Apr-07 6:58
Mark Salsbery18-Apr-07 6:58 
GeneralRe: CSemaphore Question Pin
softwaremonkey18-Apr-07 7:58
softwaremonkey18-Apr-07 7:58 
GeneralRe: CSemaphore Question Pin
Roger Stoltz18-Apr-07 9:02
Roger Stoltz18-Apr-07 9:02 
GeneralRe: CSemaphore Question Pin
softwaremonkey18-Apr-07 12:52
softwaremonkey18-Apr-07 12:52 
GeneralRe: CSemaphore Question Pin
Roger Stoltz18-Apr-07 23:00
Roger Stoltz18-Apr-07 23:00 

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.