|
Hi,
I'd like to know if there's a way to play AVI files from memory using the AVIFile functions?
All I found from Net was a Win32 SDK document Q155360:
"HOWTO: Use MCI to Play AVI/WAVE Files from Memory"
(can be found from online MSDN) which explains how to play AVI files from mem using the MCI (media control interface).
I'm more interested to get the actual bytes of each frame of the AI files. Using the AVIFile functions I can do that, but the MCI wont do that.
I tried to use the method decribed in the document Q155360, but all I got was a Access Violation in avifil32.dll.
I know how to make a custom AVIStream, but I would not like to parse the AVI file myself. Instead I'd prefer similar trick as the forementioned document suggests. Saving the AVI to a temporary file is out of question. Any ideas?
Thanks...
--memon
|
|
|
|
|
Hi there,
I have an activeX control and in it, I do handle the VK-BACK on KeyUp. However, even when I am clicking on an item on the ActiveX, when I click backspace, IE switches to the previous page.
How do I completely and fully suppress the backspace, so my pages don't change on me?
thanks!
|
|
|
|
|
Folks,
I have an urgent need to add a 32-bit ActiveX control (OCX) to a VC++ DLL,then instantiate and access this OCX only from the DLL. The current DLL doesn't contain any visible Windows or CWnd objects in which to host the component.
However, it does contain a main application object (CWinApp). Is this possible or do I have to provide a form and then hide it from the user.
If possible, I would like to avoid the later scenario. Can someone provide me with an example of this or point me to a source explaining this concept. It seems that any events fired by the control wouldn't be available to my app, and this is fine.
Thanks in advance for any consideration and help in solving this problem.
|
|
|
|
|
Any idea or tutorial on how to create a NetDDE Client and Server in Visual C++.
|
|
|
|
|
Any idea or tutorial on how to create a NetDDE Client and Server in Visual C++.
|
|
|
|
|
Problem with using Microsoft G.723.1 codec in Graph Builder: can't build working graph with this codec. While building graph in Graph Builder this codec reports in WaveFormatEx 0 bits on output pin all the time
|
|
|
|
|
* In the ame of god *
Question 1:
If it's possible please write a program included a main window and in this window two buttons .
First button open the window in MDI case
and second button open the window in SDI case.
Please try with App Wizard.
Question 2:
I saw a program that in it a window is runed in Document case. But it has used CWnd class . How is it possible ?
This program had been written with App Wizard.
Question 3:
What is different between DirectX and OpenGL
and Which is best ?
Iran - Tehran - Hadi Rezaie
My E-mail : Hadi_Rezaie@hotmail.com
Thank You ...
|
|
|
|
|
I have a query releated to obtaining license number for executables on Windows platform.
On Windows, most of the applications will have a licence number associated with them. (for ex: if we go to explorer and obtain properties for an .exe, it might have the license number listed out).
I want to determine this license number programmatically.
This information is not available even in the program header of the .exes. Please let me know if there is any other source of retrieving this information (either registry or some API or some other way out....)
Thanking you in anticipation
Raj
|
|
|
|
|
You need to look at the VerQueryValue() API.
Its documented on MSDN. Complete with a trivial code
sample. You'll need to tweak it slightly to get what
you want
Stephen Kellett
|
|
|
|
|
I have always thought that a static library was just like collection of .obj files.
However, I recently tryed to seperate a bit of functionality from my app by, moving the files out and building them into a static .lib.
My problem when I do that is I now get all sorts of library conflicts when the main app links.
Is there more to static librarys than I realise?
|
|
|
|
|
Did you delete the .obj files of the files that were put into the static lib project?
Could you be a little more specific as to what library conflicts you are getting.
|
|
|
|
|
The conflicts were all standard librarys, like libcd.lib and libcmtd.lib, and some of the afx ones. I can't remember the exact names.
Thinking about it some more I think a possibility maybe is that it could have to do with some of the afx includes explicitly linking. Do they do that? If thats the case, then how do I get the static library to link with the same librarys as the main app, and if not ...
|
|
|
|
|
Ok, I've just learnt something new about VC. You can set the library type you want to link under C++/Code Generation.
Changed all my dependant libraries to the same as the main app and it works perfectly...
|
|
|
|
|
I have to build a small database that will be used by a VC++ application and I don't know a lot about creating a DB under Windows and interacting with it. I also need to use SQL Server and not Access. Does anybody know a good tutorial for this kind of situation because MSDN is really poor on the subject (only uses those crapy .mdb)
Thank you for your attention.
|
|
|
|
|
I have tried RegSaveKey to export HKCU and all its subkeys. In regedit, I export and got a text file. But in RegSaveKey, I got a binary file. Can I get the text file programmatically?
Thanks all!!!!!
|
|
|
|
|
I'd like to get some feedback from you guys about the best/proper way to use bitmasks.
I've seen them used in several ways, the most common I think is to do something like
#define BLAH 0x0001
So I was wondering what is the proper way to use them.
I've seen people use decimal number, hex numbers, ascending, decending, short, long and the list goes on and on.
So let me know what you guys think is a good strong coding practice to get into the habit of.
Thanks!
|
|
|
|
|
Whatever representation you use, they should be const variables rather than preprocessor macros.
Dave
|
|
|
|
|
Hi,
I want OpenDlg with out using any MFC ( like CFileDlg etc)
OPENFILENAME ofn;
memset(&ofn, 0, sizeof(OPENFILENAME));
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = hwnd;
ofn.hInstance = AfxGetInstanceHandle();
ofn.lpstrFilter = NULL;
ofn.lpstrCustomFilter = NULL ;
ofn.nMaxCustFilter = 0 ;
ofn.nFilterIndex = 0 ;
ofn.lpstrFile = lpcszFile ;
ofn.nMaxFile = MAX_PATH ;
ofn.lpstrFileTitle = lpcszFileTitle ;
ofn.nMaxFileTitle = MAX_PATH ;
ofn.lpstrInitialDir = NULL ;
ofn.lpstrTitle = NULL ;
ofn.Flags = OFN_EXPLORER|OFN_FILEMUSTEXIST|OFN_HIDEREADONLY ;
ofn.nFileOffset = 0 ;
ofn.nFileExtension = 0 ;
ofn.lpstrDefExt = NULL ;
ofn.lCustData = NULL ;
ofn.lpfnHook = NULL ;
if( !GetOpenFileName(&ofn) )
I did not the openDialog.
can any body tell me where was the wrong?
Thanks,
-- Koteswara
|
|
|
|
|
i have a problem with the FlexGrid .
it causes the rc file to double each time i make the tiniest change in the size or even position of the grid on the Dlg.
help help help
adi peer
|
|
|
|
|
Can I have a CListCtrl in report view, and prevent the user from resizing the columns?
|
|
|
|
|
Hi everybody!
Situation: using a browser control to display html-pages hosting activeX controls.
Problem: tooltips doesn't work for all controls hosted in the html page.
Does anybody know how to enable/display tooltips for activeX - controls inside the html?
What I know is that every object inside the html has the IHTMLElement interface which has the property "title". This works fine for windowless controls but it seems to fail for "windowed" controls.
Any idea?
Thanks in advance!
Michael
|
|
|
|
|
i will be writing a client program for a VOIP product.
it requires me to enhance my Visual C++ GUI through skins.
My base GUI will be written in VC++ but the main dialog
will be skinned to enhance the appearance.
my colleague recommended ActiveSkin.
i have problems integrating it with my VC++ programs
any advice for VC++ with skin.
any other issue is that i may have to provide changeable
in the future.
|
|
|
|
|
Is it possibl to initiate a graphics mode in a standard C++ console application? If it is and you have before, i would praise you if you took a moment to copy\paste the source in a response to this message. I have Visual C++ 6.0 Standard Edition.
|
|
|
|
|
No, you can't initate graphics mode in a console application (which is what 32 bit VC creates). You can do so in a DOS application, but you would need a DOS targeting compiler.
You'll need to use standard Windows GDI, WinG, or DirectX.
|
|
|
|
|
Its been a while since I've used it, but I remember Allegro was a pretty good graphics library.
|
|
|
|