|
Hi:
As you know whenever you right-click on the Sound Files for example .MP3 files and click on "Properties" item
from
context menu,Windows extract some information about .MP3 file such as Title,Artist,Album,Year,Comment,Genre,...
and show them in the "Summary" property sheet. Now i want to know where do this information store?
I know that this info store in the portion of file called "Header",But Which offset ? In general how can i find this info
for any file? for example you know .MDB files(database in access),the name of it's fields,number of fields,.....where
do they store? is there any catalog or Webpage,URL,html help such as MSDN or...... to achieve this purpose?
Please help me.
my english isn't very well because it isn't my native language,Please excuse me for bad comments.
Thanks a lot.
|
|
|
|
|
Well, MP3 files store their information (title, track, etc) a bit different.
This is for the ID3V1 tag: http://home.swipnet.se/grd/mp3info/tag/index.html
And there's also a ID3V2 track which uses a "real" header, i.e. at the beginning of the file.
Files in generals may have all a different header, so it is hard to say what a header looks like and where it begins.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi everyone,
I was wondering, is it possible to open a doc file by just using WIN32 APIs and not using any GUIs stuff.
Thanks in advance,
Ken
|
|
|
|
|
Sure - using the Office object model and COM.
Phil Boyd
MCP
CPT, AR
You may be gone, but we will never forget your sacrifice.
"Proud to be an American..." Lee Greenwood
|
|
|
|
|
Hi, thanks for the response.
I looked up the Office Object Model references on the MSDN site but all I can find is stuff for VB, I’m looking for C++ code.
Thanks again,
Ken
|
|
|
|
|
In VC++ - if you do a #import on mso9.dll (I think that's it) - you will get ATL wrappers for the COM objects. The VB code samples can be converted to C++ somewhat (I won't say fairly) easily.
Phil Boyd
MCP
CPT, AR
You may be gone, but we will never forget your sacrifice.
"Proud to be an American..." Lee Greenwood
|
|
|
|
|
As part of my continuing quest to stress-test my app...
.. I'd like to find an app that can force page faults to occur on a regular basis, or barring that, code to do the same.
yes, I could figure it out, but time is tight, and it's quicker to get things off the shelf if they're already there.
Any suggestions?
Thankee-sai
|
|
|
|
|
How can I add 3 header files to my precompiled header (.PCH)?
Tanks.
|
|
|
|
|
Just a guess...
Include'em into stdafx.h or stdafx.cpp?
Brian
|
|
|
|
|
stdafx.h is the right one.
It took me a while to sort this out but the best way to set up the PCH stuff is for stdafx.cpp to have just one include file - stdafx.h and set it to Create precompiled header using stdafx.h. All other source modules should be set to Use precompiled header through stdafx.h. This can make a large difference in compilation times.
The Ten Commandments For C Programmers
|
|
|
|
|
How do I send a message from the CMainFrame to CView?
This seems like a simple question but I just can't find it in my books.
Any help appreciated, thanks
Ali
|
|
|
|
|
Read FAQ.
SDI: CView *pView = AfxGetMainWnd()->GetActiveView();
MDI: CView *pView = AfxGetMainWnd()->MDIGetActive()->GetActiveView();
pView->PostMessage(WM_MESSAGE);
|
|
|
|
|
Hello,
in our company Linux programming is growing, but Windows is also required.
We now examine WxWindows (www.wxwindows.org) which seems a little bit similar to MFC (i.e. event handling).
Are here any experiences with wxwindows in this Forum ?
regards
Frank
|
|
|
|
|
Hello,
I'd like to experiment a bit with using IE to do my dialogs, so that making dialogs would be as easy as editing html. For that I'd have to somehow 'trap' eg clicks on a button in a form, and handle them furter in my application. I know this sort of stuff is possible, but I can't find any documentation on it; I've been looking through msdn but all I get there are some vague descriptions of the various ISomething interfaces. I was more looking for an overview of what is possible and how hard it is. Thanks.
cheers,
roel
|
|
|
|
|
|
These links were exactly what I was looking for, thanks a lot!
cheers,
roel
|
|
|
|
|
Hello,
I'd like to ask you a question about the links that you've given to Roel:
I also use the Paul DiLascia's HTMLCtrl, but I've noticed that each time I navigate to somewhere and then destroy the parent dialog (of the HTMLCtrl) the app leaks some handles.
Have you noticed it too?
I've posted a question to Mr. DiLascia, but meanwhile I'm searching for possible answers...
NOTE:
I've noticed this using perfmon.
Thank you in advance.
|
|
|
|
|
How can I convert an int variable to string? The following code outputs "Yesb" instead of "Yes98":
string s = "Yes" ;<br />
int a = 98 ;<br />
s += a ;<br />
<br />
cout << s << endl ;
Is there a way to do it without using CString?
-----------------------
But what did I do?
|
|
|
|
|
One word :
sprintf
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
you could just do this:
cout << s << a << endl;
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
I forgot to mention:
The new string has to be stored (as a string) in a vector of strings. So printing it immediately was not my original pupose, just an example.
-----------------------
But what did I do?
|
|
|
|
|
Use a stringstream, then extract the string out of it.
Also, look at boost::lexical_cast
HTH
--
Ian Darling
|
|
|
|
|
int i = 98;
char* c;
itoa(i, c, 10);
c now has "98"
|
|
|
|
|
Actually, c now contains nothing because your program just went BOOM.
int i = 98;
char s [64];
itoa (i, s, 10);
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Yes it helps. Thank You.
Another Q:
When I create an object, string for example, with the syntax:
string s ;
s now is on the heap or on the stack? is s a pointer or is it a synonym of the address of the first block of memory where the object string is defined (kind of a reference)? do I have to delete s after usage? I'm confused
Thank you for all your previous answers
-----------------------
But what did I do?
|
|
|
|