|
|
Use an STL collection such as vector , and you won't have to worry about the memory allocation.
|
|
|
|
|
Hi
I need a program that convert date to shamsi
thank you
|
|
|
|
|
|
is it possible to get file size if it is opened with fopen_s function?
|
|
|
|
|
You may use fseek() to go the end of the file, and use ftell() to get file current position, which is now also the file size.
|
|
|
|
|
Once you have opened your file:
long size;
fseek(file,0,SEEK_END);
size = ftell(file);
rewind(file);
|
|
|
|
|
Hi,
In my application I created a wmv movie form 3 images. It also have the audio for 15 seconds. Audio per frame is variable means that we can have audiofor first frame for 2 sec , for second frame 10 sec and for 3rd frame 3 sec.
How can I achive this?
one solution can be variable frame rate for each frame. CAn we do this in wmv ? How can we do this? Is there any other alternative available to achive this
All help and guidelines are welcome
Thanks in advance
Regards,
Hemant.
|
|
|
|
|
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.
|
|
|
|