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

C / C++ / MFC

 
GeneralRe: about hook some windows Pin
Naveen2-Mar-06 21:43
Naveen2-Mar-06 21:43 
GeneralRe: about hook some windows Pin
FlyWithYou3-Mar-06 0:02
FlyWithYou3-Mar-06 0:02 
QuestionSilent Code Signing? Pin
Peter Weyzen2-Mar-06 19:38
Peter Weyzen2-Mar-06 19:38 
AnswerRe: Silent Code Signing? Pin
Michael Dunn2-Mar-06 20:21
sitebuilderMichael Dunn2-Mar-06 20:21 
GeneralRe: Silent Code Signing? Pin
Peter Weyzen2-Mar-06 20:46
Peter Weyzen2-Mar-06 20:46 
GeneralRe: Silent Code Signing? Pin
Peter Weyzen2-Mar-06 21:52
Peter Weyzen2-Mar-06 21:52 
GeneralRe: Silent Code Signing? Pin
DoctorEd5-Mar-06 9:46
DoctorEd5-Mar-06 9:46 
QuestionFail to set profile on Windows Media Video Image Pin
Kin Tutnik2-Mar-06 19:33
Kin Tutnik2-Mar-06 19:33 
Hi all,
I have created an application that described in this link http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmform95/htm/writingvideoimagesamples.asp[^]

and my code is like below :


int _tmain(int argc, _TCHAR* argv[])
{
IWMWriter *writer = NULL;
IWMProfileManager *manager = NULL;
IWMProfile *profile = NULL;
IWMStreamConfig *stream = NULL;
IWMCodecInfo2 *codecInfo = NULL;
IWMMediaProps *mediaProps = NULL;
WM_MEDIA_TYPE *mediaType = NULL;
HRESULT hr = S_OK;

CoInitialize(NULL);

hr = WMCreateProfileManager(&manager);

hr = manager->QueryInterface(IID_IWMCodecInfo2, (void**)&codecInfo);
hr = manager->LoadProfileByID(WMProfile_V80_256Video, &profile);


//searching for codec that support WMMEDIASUBTYPE_WVP2
DWORD infoCount = 0;
hr = codecInfo->GetCodecInfoCount(WMMEDIATYPE_Video, &infoCount);
for(DWORD i = 0; i < infoCount; i++)
{
hr = codecInfo->GetCodecFormat(WMMEDIATYPE_Video, i, 0, &stream);
hr = stream->QueryInterface<iwmmediaprops>(&mediaProps);

DWORD mediaSize = 0;
hr = mediaProps->GetMediaType(NULL, &mediaSize);
mediaType = (WM_MEDIA_TYPE*) new BYTE[mediaSize];
hr = mediaProps->GetMediaType(mediaType, &mediaSize);

if(mediaType->subtype == WMMEDIASUBTYPE_WVP2)
{
break;
}
else
{
mediaProps->Release();
mediaProps = NULL;

stream->Release();
stream = NULL;

delete [] mediaType;
mediaType = NULL;
}
}

hr = manager->CreateEmptyProfile(WMT_VER_9_0, &profile);
stream->SetStreamNumber(1);
hr = profile->AddStream(stream);

CoInitialize(NULL);
hr = WMCreateWriter(NULL, &writer);
/*error appears below, code : NS_E_INVALIDPROFILE (0xC00D0BC6L)*/
hr = writer->SetProfile(profile);

return 0;
}
QuestionColor to Static Control (Urgent pls) Pin
RockyJames2-Mar-06 19:30
RockyJames2-Mar-06 19:30 
AnswerRe: Color to Static Control (Urgent pls) Pin
Ryan Binns2-Mar-06 19:33
Ryan Binns2-Mar-06 19:33 
GeneralRe: Color to Static Control (Urgent pls) Pin
RockyJames2-Mar-06 19:38
RockyJames2-Mar-06 19:38 
GeneralRe: Color to Static Control (Urgent pls) Pin
Naveen2-Mar-06 19:48
Naveen2-Mar-06 19:48 
GeneralRe: Color to Static Control (Urgent pls) Pin
RockyJames2-Mar-06 19:53
RockyJames2-Mar-06 19:53 
GeneralRe: Color to Static Control (Urgent pls) Pin
Naveen2-Mar-06 20:34
Naveen2-Mar-06 20:34 
AnswerRe: Color to Static Control (Urgent pls) Pin
Malli_S2-Mar-06 19:56
Malli_S2-Mar-06 19:56 
GeneralRe: Color to Static Control (Urgent pls) Pin
RockyJames2-Mar-06 20:05
RockyJames2-Mar-06 20:05 
GeneralRe: Color to Static Control (Urgent pls) Pin
Malli_S2-Mar-06 20:18
Malli_S2-Mar-06 20:18 
AnswerRe: Color to Static Control (Urgent pls) Pin
Cool Ju2-Mar-06 20:21
Cool Ju2-Mar-06 20:21 
GeneralRe: Color to Static Control (Urgent pls) Pin
RockyJames2-Mar-06 20:53
RockyJames2-Mar-06 20:53 
GeneralRe: Color to Static Control (Urgent pls) Pin
RockyJames2-Mar-06 21:31
RockyJames2-Mar-06 21:31 
AnswerRe: Color to Static Control (Urgent pls) Pin
David Crow3-Mar-06 4:43
David Crow3-Mar-06 4:43 
AnswerRe: Color to Static Control (Urgent pls) Pin
DoctorEd5-Mar-06 10:12
DoctorEd5-Mar-06 10:12 
QuestionC2491 Error Pin
subramanyeswari2-Mar-06 19:04
subramanyeswari2-Mar-06 19:04 
AnswerRe: C2491 Error Pin
Nibu babu thomas2-Mar-06 19:20
Nibu babu thomas2-Mar-06 19:20 
GeneralRe: C2491 Error Pin
subramanyeswari2-Mar-06 19:50
subramanyeswari2-Mar-06 19:50 

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.