|
Can't you keep a constant frame rate?
In your case one frame-per-second would work. So when you write the video stream you'd write
2 frames of the first image, 10 frames of the second image, and 3 of the third image.
Are you using a Video Image stream or a regular video stream for your wmv file?
|
|
|
|
|
What is difference between "Video Image stream" and "regular video stream"?
|
|
|
|
|
A video image stream is made up of still images. The stream is written differently than
regular "live" video when using the windows media sdk to write wmv files.
|
|
|
|
|
Hi,
I am creating a movie from some images it is not a real time video.
My important question is How I can write a metatdata >64 to wmv file?
Regards,
Hemant
|
|
|
|
|
Dear all
I need to know which DMA line is assigned to the parallel port of system in Visual C++ environment.
May you Please Help me.
Regards
Mahdi
|
|
|
|
|
I have added a menu item to the shellcontext menu using shell extensions(ATLCOM AppWizard).When i select the item some operation will be performed.Now i want to attach this feature to an SDI application i.e,when the SDI application is runned this menu item should be inserted to the shell context menu automatically .Any article based on the above problem will be of more help.So,how can i add these two applications into a single application.
Thanks.
|
|
|
|
|
hi,
i created a control then i want to navigate the url but i am getting this error
RECT rectClient;
GetClientRect(&rectClient);
// create the control window
// AFX_IDW_PANE_FIRST is a safe but arbitrary ID
if (!m_wndBrowser.CreateControl(CLSID_WebBrowser, L"Browser",
WS_VISIBLE | WS_CHILD,
rectClient, this,
AFX_IDW_PANE_FIRST))
{
DestroyWindow();
return FALSE;
}
// Get interface pointer
LPUNKNOWN lpUnk = m_wndBrowser.GetControlUnknown();
HRESULT hr = lpUnk->QueryInterface(IID_IWebBrowser2,
(void**) &m_pBrowserApp);
if (!SUCCEEDED(hr))
{
m_pBrowserApp = NULL;
m_wndBrowser.DestroyWindow();
DestroyWindow();
return FALSE;
}
Nav2URL(L"http://www.yahoo.com/");
}
application exist by giving following messages
Load module: browsres.96.dll
Persistence not supported on OLE control {F5AFC7EF-1571-48B6-A69C-F1833F4C3A44}.
>>> Result code: 0x00000000
Load module: webview.dll
Load module: shlwapi.dll
Load module: wininet.dll
Load module: urlmon.dll
Warning: constructing COleException, scode = DISP_E_MEMBERNOTFOUND ($80020003).
RaiseException: Thread=9663ba08 Proc=814c6f20 'TestPcBrowser.exe'
AKY=00004001 PC=03fa27d8(coredll.dll+0x000427d8) RA=800773f4(NK.EXE+0x000073f4) BVA=00000000 FSR=00000000
Warning: constructing COleException, scode = DISP_E_MEMBERNOTFOUND ($80020003).
RaiseException: Thread=9663ba08 Proc=814c6f20 'TestPcBrowser.exe'
AKY=00004001 PC=03fa27d8(coredll.dll+0x000427d8) RA=800773f4(NK.EXE+0x000073f4) BVA=00000000 FSR=00000000
Warning: constructing COleException, scode = DISP_E_MEMBERNOTFOUND ($80020003).
RaiseException: Thread=9663ba08 Proc=814c6f20 'TestPcBrowser.exe'
AKY=00004001 PC=03fa27d8(coredll.dll+0x000427d8) RA=800773f4(NK.EXE+0x000073f4) BVA=00000000 FSR=00000000
Warning: constructing COleException, scode = DISP_E_MEMBERNOTFOUND ($80020003).
RaiseException: Thread=9663ba08 Proc=814c6f20 'TestPcBrowser.exe'
AKY=00004001 PC=03fa27d8(coredll.dll+0x000427d8) RA=800773f4(NK.EXE+0x000073f4) BVA=00000000 FSR=00000000
The thread 0x3675a88a has exited with code 0 (0x0).
venu
|
|
|
|
|
what is .net framework
qwd
|
|
|
|
|
|
Just woke up from hibernation ? , welcome back.
:Gong: 歡迎光臨 吐 西批 :Gong:
|
|
|
|
|
Hi.
I need to pass parameters to sub fuction. it is surely easy. but,
when it comes to variable parameter.. how can I do that?
for example,
void MyPrintf(char * msg, ...)
{
printf(msg ,????); // <- here
// something extra
}
thanks in advance.
|
|
|
|
|
void MyPrintf(char * msg, ...)
{
va_list va;
va_start(msg, va);
vprintf(msg, va);
}
|
|
|
|
|
i have a titlebar less dialog application. i wouldlike to add system menu to my icon. any ideas?
|
|
|
|
|
I remember seeing something to that effect in the vc.mfc google group. Give it a search.
|
|
|
|
|
Dear all
I use AfxBeginThread in one dll program. this thread is responsible for logging data.
When I debug program, I trace until I reach the AfxBeginThread Line .
program dont continue and a suspend state begins.
When I debug the program into AfxBeginThread line, I find that When it reachs the
VERIFY(::WaitForSingleObject(startup.hEvent, INFINITE) == WAIT_OBJECT_0);
::CloseHandle(startup.hEvent);
in threadcore.cpp function, the ack of waitforsingleobject never comes and program suspends.
Do you have any idea about this problem.
Best regards
Mahdi
|
|
|
|
|
how are you creating the thread ?
|
|
|
|
|
I find the reason.
When I call the AfxBeginThread in MFC driven class constructores I see this problem.
but when I call it in another function, I dont see this problem.
|
|
|
|
|
I find the reason of this error.
When I call AfxbeginThread in MFC class constructures, I see this problem.
|
|
|
|
|
Hi all
i have developed a web server. Whenever a client connect to my web server, i create a thread and process the rquest. In my thread, each time i create one COM component(Script engine vbscript.dll)using CoCreateInstance. so i am facing a problem while calling the CoCreateInstance().
Is any good method to avoid frequent calls to the COM component. I mean
one time initializing my engine and using it whenever i need
thanks
g.shadrach
|
|
|
|
|
why not use this way
CoGetClassObject(rclsid, dwClsContext, NULL, IID_IClassFactory, &pCF);
hresult = pCF->CreateInstance(pUnkOuter, riid, ppvObj)
pCF->Release();
just to call
CoGetClassObject(rclsid, dwClsContext, NULL, IID_IClassFactory, &pCF);
first time it will ensure the dll loading.
then whenever you want to create an instance just call
hresult = pCF->CreateInstance(pUnkOuter, riid, ppvObj)
|
|
|
|
|
OK. i will change my code and let me see
|
|
|
|
|
Hi, i've created a droplist combo box, and listed a few item. Are there anyone who know how to link the clicked item to a certain file saved in text format. I'll then need to send the file to hardware after clicking on the ok button in the dialog box. This is some code that i found in this site. It just shows to get the selection from the droplist. In my dialog box i've created a function to open,browse and load the file. Now i need to figure out how to write the code to automatically link the clicked item in the droplist to a certain text file and also display it in the other function(open,browse and load the file). Also, each item listed in the droplist correspond to different text file. Is there any suggestion on what codes i should add? Is there any article or example that i can refer to? i'm a begineer here.
void CComboBoxTutorialDlg::OnDropListSelchange()
{
UpdateData();
if( m_nDropListIndex < 0 ) return;
CString str;
m_DropList.GetLBText( m_nDropListIndex, str );
CString Out;
Out.Format( "Drop List Selection => index %d\n%s", m_nDropListIndex, str );
AfxMessageBox( Out );
}
thanks in advance
|
|
|
|
|
it is better to divide your problem in parts.
1:get selection from combo box
for this you should handle the notification ON_CBN_SELCHANGE
in this handler get the selection with GetLBText()
2: how to relate data
For this purpose you can use GetItemData() and SetItemData()
or GetItemDataPtr() and SetItemDataPtr()
|
|
|
|
|
cyn8 wrote: UpdateData();
if( m_nDropListIndex < 0 ) return;
What is this supposed to do?
Try:
int nIndex = m_DropList.GetCurSel();
m_DropList.GetLBText(nIndex, str);
...
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
In MFC we can choose SDI, MDI or Dialog based application to create but in Win API I don't know how to create SDI application like NodePad. Please answers to me soon.
Thanks.
|
|
|
|