|
|
oops, my fault.
It a long time ago I worked with ID3 tags
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I wrote something a while ago that uses filenames for song names and folder names for artist and album. ID3V1 is a doddle, it's just sitting on the end of the mp3 ( which is why if you're *ahem* downloading an mp3 and don't get it all, there's no id3 info ). ID3V2 is compressed though, I used a class I found on the net ( and fixed, as I recall ) to do it. If you have no joy and want ID3V2, just LMK and I'll send you the class. I can't post it to CP as I did not actually originally write it.
Christian
We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )
|
|
|
|
|
Hi Christian,
I would love to get that ID3V2 class you spoke of! I always use V2, so V1 won't work for me. I don't plan on selling (or widely distributing) this application.
Thanks!!!
JennyP
|
|
|
|
|
Could you please send me this class per mail?
E-Mail is foxhunter@hlla.net
thanks in advance
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hello,
When clicking on a CEdit box, I would like the entire contents of the box to be selected (so that the user can simply overwrite existing text instead of manually backspacing over the existing contents). I have searched and didn't find anything on MSDN help. When a user tabs to the CEdit box, the entire contents are selected--the exact behavior I want for a user mouse-click. Any suggestions?
Thanks!
JennyP
|
|
|
|
|
override OnSetFocus (handle EN_SETFOCUS) for your edit control, and then call m_myEdit.SetSel(0,-1);
-c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|
|
Hi Chris,
I've done just that, and no dice. I verified that it gets called with TRACE but the edit box still puts the insert cursor where the mouse was when I clicked on it. Do I need to call more items from the function? Here's the function....
void CDiagGoalSched::OnSetfocusEditDue() <br />
{<br />
TRACE0("SET FOCUS...");<br />
m_CtrlEditDue.SetSel(0, -1);<br />
}
Thanks!
JennyP
|
|
|
|
|
try this:
::PostMessage(m_edit.m_hWnd, EM_SETSEL, 0, -1);
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|
|
Bingo! Why does this work and not the first one? Is it the order of window messages in the queue? (I.e., the m_EditCtrl.SetSel() was before the Edit's translation from mouse position to cursor position?)
Thanks!
JennyP
|
|
|
|
|
yep, i think you explained it. by posting the message (instead of Sending as SetSel does), you give Windows a chance to finish the Focus Change message (which probably ends with the edit control clearing the selection) before you change the selection manually.
-c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|
|
Hi !!
I am designing a chat server these days. The server is designed in a manner to scale upto thousands of connections.
But i want one advice. The message from one client to another is protocol specific. Server decodes the message and find out information regarding target connection. Here lies the problem. What information i include in the message so that server easily find the target socket???
Infact whenever new connection established, i keep its pointer in std::vector data structure and send the position of that socket in vector to all other authorized buddies. But this is not a good approach. If one buddy disconnects, the position of others in vector is disturbed. So i want advice in this regard.
Kashif Mehmood
|
|
|
|
|
Kashif Mehmood wrote:
i keep its pointer in std::vector data structure and send the position of that socket in vector to all other authorized buddies.
std::map with GUID as a key?
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
Hi,
I'm trying to use MSFlexGrid On ATL Composite Control but it's giving me error. If I use this control in MFC based application it works fine but crashes in ATL. Do U've any idea how to use an ActiveX control on ATL Composite Control?
Regards;
Uttam Kumar
|
|
|
|
|
Which kind of error? Can you see your flex grid window if you test with ActiveX Control Test
container?
[edit]
I tried a simple project and didn't have any problem
[edit]
|
|
|
|
|
I have:
_variant_t *tempkeyValue = new _variant_t[60];
that executes fine on WinXP but crashes on Win2K. Any ideas why? And how to get around it?
Thanks,
ns
|
|
|
|
|
Somewhere earlier in your program you have trashed the memory and thus the allocation is failing.
Tim Smith
"Programmers are always surrounded by complexity; we can not avoid it... If our basic tool, the language in which we design and code our programs, is also complicated, the language itself becomes part of the problem rather that part of the solution."
Hoare - 1980 ACM Turing Award Lecture
|
|
|
|
|
Hello, the codegurus around the world.;)
I guess that you misunderstand how you get the vaule with VARIANT type.
Generally speaking, we have some helper function convering from VARIANT to
string.
Check DAO sample in MSDN to find the helper function.
Please, don't send me your email about your questions directly.
Have a nice day!
Sonork - 100.10571:vcdeveloper
-Masaaki Onishi-
|
|
|
|
|
Masaaki Onishi wrote:
Hello, the codegurus around the world
Hmmm...you mean CPians!
|
|
|
|
|
I'm writing an add-in for VC++ and i need to obtain the currently existing text in the editor (not selected) at a specified coordinate (line, column, size).
Do you know the easiest way?
rechi
|
|
|
|
|
hi all, do you know how to get one cell of Excel file?
I need to format exiting excel file such as pagesetup, margins, and set the print area.
sometime, the file contains 300 pages but 50 pages are empty. So how can i get rid of those 50 empty pages programmatically?
thanks.
|
|
|
|
|
You'll probably have to use Automation. Check the COMEXCEL sample (comes with VC++).
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
yes.. i'm using automation.. I got everything i needed except for deleting those empty pages...
I don't want to print all the empty pagess while i print the file. Normally (not programmatically) I just have to select the area that i want to be printed, then go to next area which contains information, select it again and right click add to print area.. but how can i do the same action promatically???
|
|
|
|
|
Well, try to record the VBA macro which does the thing you want. Conversion to VC should be quite easy - it should give you a good start.
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
huuu... but there is no way (that i know of) to write the macro that delete or get those empty 50 pages out from the 300 pages.
Is it clear to you? I have exiting excel file. I open with excel.application. get its worksheets, then sheets, and then sheet. for every single sheet I format it like its font size, page margins, set landscape, set print quality 300 dpi.. and so on.. then I printpreview, in programmatical way. The problem is when you print preview, you will see page number 34 is empty, 55 is empty, 78 - 90 is emtpy, 276-280 is emtpy. nothing to be printed, it's blank page.
How can i get rid off those empty pages???? Please help me.
|
|
|
|