> Can anyone show me a sample source (project) write in c++
> how to install codec for video (audio) to system.
Do you mean the C++ source code of the installer or of the
codec?
What kind of codec: ACM, ICM/VCM, DirectShow filter, DMO,
something else?
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// a dot angeli at psynet dot net
"Alessandro Angeli [MVP::DS/MF]" <nob...@nowhere.in.the.net> wrote in
message news:eucdkIug...@TK2MSFTNGP04.phx.gbl...
Probably you need some dll or maybe the .ax file.
I'm using regsvr32 to register the codecs. Or maybe you could use the .exe
file which comes with the codec.
Use:
sprintf(CommandLine,"/s \"%s%s\"",pbDir,"SrcFilter.ax");
ShellExecute(this->GetSafeHwnd(),"open","regsvr32.exe",(LPCSTR)CommandLine,NULL,0);
where pbDir is the path for the filter.
If you're using some filter which needs a dll the dll should be located in
the same directory as the .ax file.
Note this is not the best way to register the filters. Some of them fail but
the most are working.
Hope this helps.
Jose.
"Paul" <toanph...@yahoo.com> escribió en el mensaje
news:er%23AM7tg...@TK2MSFTNGP05.phx.gbl...