|
Thanks DavidCrow,
I studied the website you have given. But my problem is different.
I want to read the MPEG file. I don’t know the Header format of the MPEG file. What it contains exactly.
The MPEG I have is Encrypted by some unwanted data. I want to remove it
|
|
|
|
|
raghute_h wrote:
The MPEG I have is Encrypted by some unwanted data. I want to remove it
Then you'll first need to decrypt the file before you can even attempt to read the MPEG's header.
|
|
|
|
|
But do you Know how the MPEG file is read and play.
Actualy I want the part of MPEG file which can i play, not the hole file
I am new in this Multimedia world
I dont know the API used to play the video file or signal
Plz help me
|
|
|
|
|
Hi Friends,
I need your Help. I want to know How Video Streaming is done. I don't know the MPEG file format.
If any one Knows, Plz tell me
Thanks to all of you.
|
|
|
|
|
What is the easiest way to associate a program app w/an icon? I've seen the MSDN website explaination, but it didn't work and the steps seemed really complicated. Does anyone know of any other methods that work? Thanks.
|
|
|
|
|
If you are using the doc/view architecture, simply call CWinApp::RegisterShellFileTypes in your InitInstance method after you have added your doctemplates.
onwards and upwards...
|
|
|
|
|
Hi,
Does anyone know how i can draw text on the client area of a window with the help of directX8? I know how to do it through the GDI, but i want to do it with directX8.
Greets,
jason
|
|
|
|
|
If you're using Direct3D, you have two choices: the ID3DXFont interface or the CD3DFont class in the SDK framework classes.
ID3DXFont actually uses GDI behind the scenes to allow for Unicode characters, but is quite slow as a result.
CD3DFont prerenders a set of characters to a texture, which is much faster but limits you to the character set.
- Mike
|
|
|
|
|
Hi Mike,
thanx, that was exactly what i was looking for. One last question: Is it possible to define the font type and the font size in the ID3DXFont interface?
greets,
Jason
|
|
|
|
|
There doesn't appear to be a way to modify the font parameters in ID3DXFont ; you need to specify the initial font parameters when you create the font via D3DXCreateFont (when you pass the GDI font handle).
- Mike
|
|
|
|
|
Can anyone tell me how I can get the path to My Documents folder?
Thanks!
Best regards,
Alexandru Savescu
P.S. Interested in art? Visit this!
|
|
|
|
|
SHGetSpecialFolderPath(..., CSIDL_PERSONAL, FALSE);
|
|
|
|
|
Thanks!
Best regards,
Alexandru Savescu
P.S. Interested in art? Visit this!
|
|
|
|
|
Try the function SHGetSpecialFolderLocation with CSIDL_COMMON_DOCUMENTS for the CSIDL value.
Appstmd
http://www.appstmd.com
|
|
|
|
|
i want to control lan net connection : luanch/shutdown!
ZHANGYIFEI
|
|
|
|
|
Hi to everybody,
I am developing a HotKey for my application. The RegisterHotKey function has following parameters:
RegisterHotKey(
HWND hWnd, // handle to window
int id, // hot key identifier
UINT fsModifiers, // key-modifier options
UINT vk // virtual-key code
);
I have values of fsModifier and vk in CString data type
and I want to use those value in RegisterHotkey
I tried using
UINT fsModifier = atoi(ModifierKey);
//ModifierKey is CString type
but it didnot worked .
Can some body tell me how to convert CString to UINT ??
Waiting for the reply
Rohit
|
|
|
|
|
Rohit Divas wrote:
but it didnot worked .
You have to be more specific about the problem. I will have to guess. Is there a compile error?
Try this:
UINT fsModifier = atoi((LPTSTR)(LPCSTR)ModifierKey);
John
|
|
|
|
|
I mean to say that there were no errors in the program . Still it didnot worked.
I debugged the application. The value of fsModifier in
UINT fsModifier = atoi(ModifierKey);
is coming 0.
I tried your way also but the result is the same.
Is there any alternative way to convert CString to UINT ?
Rohit
|
|
|
|
|
What does 'ModifierKey' contain?
It does contain and begin with an integer doesn't it? Otherwise atoi will return 0.
n!
|
|
|
|
|
There are other ways but this is the best way. Like the other people asked are you sure that the value in the string is an integer? Any errors in the conversion will result in 0.
John
|
|
|
|
|
I use atoi() fine. Check that there are no leading spaces, that would make it fail. CString::TrimLeft() will do it.
Elaine
The tigress is here
|
|
|
|
|
I've posted this question to the tokenizer class itself.. but the article is pretty old and the author put an updated version on boost (i don't want to want any discussions on boost.. it is a great lib.. but i don't wanna use the whole shebang just for string tokenization).. but i want to use the version, which is downloadable on codeproject..
my problem:
i want to use the tokenizer in some classes in my project.. if i include the header a second time the linker says that the symbols:
const char* WT_Whitespace = " \t\n";
const char* WT_Punctuation1 = "/?.>,<\'\";:\\|]}[{=+-_)(*&^%$#@!`~";
const char* WT_Punctuation2 = "/?.>,<\";:\\|]}[{=+_)(*&^%$#@!`~";
are already defined in another obj file (the first file i've included the header.
(those are constants he put in his namespace.. the tokenizer is just one single header file)
any quick ideas (without using the whole boost stuff, otherwise i start using strtok again)?
bernhard
"I'm from the South Bronx, and I don't care what you say: those cows look dangerous." U.S. Secretary of State Colin Powell at George Bush's ranch in Texas
|
|
|
|
|
The problem is that all files that include this header will define space for these constants. I would make my own cpp file and put the constants in there as they are in the header and in the header put an extern before constant and remove the everything between the = and the ;
John
|
|
|
|
|
I am reading a text file using the ReadFile API into a char buffer.
I need to support ANSI and UNICODE (UTF, etc)
When the file is unicode it needs to be convered to ANSI.
I did not find any functions which I could use to detect if the file I am reading is an ANSI or UNICODE.
Are there any such functions? If not, what is the best way to detect this?
Thanks
Jeremy Pullicino
C++ Developer
Homepage
|
|
|
|
|
I've been looking for something like this too.
Notepad (on W2k) adds 0xFF, 0xFE to a UNICODE file, so if your files are created by it (or by something you can change to prepend that to the file) you can look for that.
Otherwise, the only good method I know is if you know that the codepage is ANSI, then you can check if the first 10 (or more) even bytes are 0 or not. That should give you an idea if its unicode or not.
Jonas
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|