|
*sigh*
if you had taken the time to read all of my posts you would find i helped a few people ... maybe more than a few ... and i don't remember pissing anybody off ... if i could be bothered i would point you at them but seeing as this kind of discussion is definately NOT THE POINT OF THIS SITE i won't
please get a life and do something useful with the air you breathe
oh yah ... this isnt a flame either so take it cool, as you say
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Which one have you fully done INDEPENDENTLY yourself? So here again, it does not matter how big or small, just post the related reply, nothing ZIGZAG is what I mean!
But the point is not what I have done. I do not always follow the rules, I do not always do things the way I should. I didn't say that 'I' didn't use code from this site, but rather that I’d learnt far more from finding out for myself than I did by reading through others’ code. And If you’ve read through the code with those articles, you will find I have modified large sections of the code I didn’t originally write, which I had to do to understand what was going on. This is even the case with my own code, when I look back on code I wrote 16 months ago, I generally have a hard time figuring out “Why did I do this like that?”.
And those ‘projects’ in themselves were purely learning examples for me anyway. The feedback I’ve received from the readers of the articles has enabled me to improve the code to a level not possible otherwise.
NOTE: This is not FLAME post, please take it easy
I didn’t take it as one.
|
|
|
|
|
Well, for all we know your website has pictures of your pet goat, as you don't even have the courage to put your name to your posts. I don't know who does and does not have a web site, ( I certainly don't ), but I think that irrelevant in the grand scheme of things. If people offer help, then they offer help. The quality of their help speaks for itself, and I don't think I've seen lauren give bad advice yet ( and I read most of the C++ column, to offer advice and see what advice is offered ).
>> Rest assured you'd be appreciated much more than what you think you would rather than get flamed for usuall unwanted posts, as you already admitted!
What the hell does this mean ?
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Two comments:
1/ I nearly replied to the anonymous post you're replying this morning, but did not only in the hope it would be the end of it. I log in tonight and it seems to have become a major issue. I second lauren on this: enough already !! Help was offered, a sig was misunderstood, the parties involved have sorted it out, why the hel are we talking about this still ?
2/ I'm glad to see you've kept the sig
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
you're right
i shouldn't have taken the bait
end of thread
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Dave, I presume from the fact your name appears twice in this post that you know what a sig block is. Please note that the comment regarding recursion in this post is not directed at you, and that anyone who remotely uses this site knows ( and I presume smiles when they see ) lauren's sig block.
You might also want to wake up to the fact that unless you're speaking to your employees, and they are poor enough at their job to put up with it, that speaking to people as you have done is not a way to encourage them to offer you advice. If you spoke to me like that, I'd be keen to pursue what I like to call the 'get stuffed' option next time I saw you post a question.
I hope we've all learned something. Advice given here is free. Appreciate it, and consider if you get the wrong answer, you may have asked the question wrong. Either way, if people try to help, then they have done you a favour for free - they have not given you anything that is due to you.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Sig blocks usually have your name before the quote though, so it wasn't immediately obvious that the quote wasn't directed at the questioner, even though it was quoted "".
|
|
|
|
|
Chill...
That's lauren's default signature used for everything. It's a statement about the world, not about you. You shouldn't jump to conclusions so quickly.
Second, not everyone speaks english as a first language, so ease up on criticizing their spelling or grammar.
|
|
|
|
|
... how can it be done?
I'm using MFC.
any help would be greatly appreciated
Steffen
|
|
|
|
|
I'm using the MCIWnd...-macros now. Retrieving the cds' length in milliseconds works out fine. Still I don't know how to get the number of tracks.
thanks in advance
Steffen
|
|
|
|
|
Hi,
There is a very good sample of Audio CD Loader and Player on codeguru.com's Multimedia link.
Good Luck!
|
|
|
|
|
How can I get complete physical access to a floppy disk drive in Windows 9x as in DOS using absread()/abswrite() functions?
|
|
|
|
|
I think you have to write a device driver. From that level, you should be able to access the int 13 bios extensions as outined in the ddk. (Note, this is not the wise advice of someone whose actually done it )
|
|
|
|
|
As you probably know, MFC windows can be bandied about quite easily using the Attach() and Detach() functions. Let's say you have a window in view #1, and you want it to move into view 2. Just attach your window, set the parent, redraw and voila.
pView2->m_Window.Attach( pView1->m_Window.Detach() );
pView2->m_Window.SetParent( pView2 );
My problem occurs when I use the CWnd:CreateControl() function to create an OCX activeX control. I try to move it as described above, but something gets goofed up and the control doesn't see view 2 as it's new parent.
I've looked into the Microsoft code a bit and the control feature seems to be controlled by a couple of undocumented, CCmdTarget drived, classes: COleControlSite and COleControlContainer. I have no clue how to poke these classes so that they start drawing the control into the new parent window.
HELP!
Thanks,
Aaron
|
|
|
|
|
hmmmm
i wonder ... do you have to get the handle to the underlying control object as well or instead of before you can attach it to another view?
and does the view you want to attch it to have to be derived from the same base class as the view your detaching it from?
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Well I'm a little unsure what object in the COLEControlSite controls where the activeX draws. The class contains a CWnd* member, but attaching it to the new window didn't seem to make a difference.
As for the views having the same base class, they do. I am running a very simple wizard generated MDI app, and I'm simply swapping the window from one view to another. Remember, when I switch to using a dialog instead of the activeX window everything works fine.
I hope I don't have to go through all the hassle of sending a question to MSDN. Last time I spent a day writing up the problem and making a test app only to get the response "Yup, that's a bug. Sorry."
I have a date with destiny and it looks like she's ordered the lobster
|
|
|
|
|
hmmmmm
the cwnd derived control windows are special windows as far as i know that allow the embedded object to access their dc's basically and reflect messages both ways ... if you need to attach and detach them it seems you must also initialise the control site to wire up the plumbing for the control to talk via the view
thats as far as i can tell from skwizzing thru the msdn ... sorry i cant be of more help
i guess we'll just have to wait for the activex guru to step up and explain all ... 'cos i'll be interested to hear this one too
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
COleControlSite and COleControlContainer provide an implementation of the OLE interfaces for ActiveX control containers (IOleClientSite, IOleInPlaceSite, IOleControlSite...)
I haven't used MFC for awhile. You might want to try using CWnd::AttachControlSite on the new view. It's protected so you'll have to derive and hack (you'll probably be seeing the ASSERT dialog in your sleep). This is the kind of stuff that sent me to WTL.
|
|
|
|
|
If i've got a cstring variable that holds for example:
"cat\r\nmouse\r\ndog"
how can i split them into 3 separate cstring variables that contain just cat, mouse and dog respectively. Do i need GetBuffer to do this? If so, how do you specify the right size?
Thanks.
|
|
|
|
|
Pretty easily, actually.
CString1 s1 = "cat\r\nmouse\r\ndog";
CString sCat, sMouse, sDog;
sCat = s1.Left(3);
sMouse = s1.Mid(5,5);
sDog = s1.Right(3); Of course this relies on the fact that you know where the texts are within the string. if you want to just seperate them into three strings based on cr/nl:
CString1 s1 = "cat\r\nmouse\r\ndog";
CString s2, s3, s4;
s2 = s1.SpanExcluding("\r\n");
s1 = s1.Right(s1.GetLength() - (s2.GetLength() + 2));
s3 = s1.SpanExcluding("\r\n");
s4 = s1.Right(s1.GetLength() - (s3.GetLength() + 2)); Again, this assumes many things, but I think you get the idea that there are lots of ways to attack this problem.
|
|
|
|
|
It's useful sometimes to use internal function AfxExtractSubString (which is defined in afxwin.h and implemented in winstr.cpp).
It's prototype is:
BOOL AFXAPI AfxExtractSubString(CString& rString, LPCTSTR lpszFullString, int iSubString, TCHAR chSep = '\n');
so it works only with one-character separators.
With the best regards, Vitaly.
|
|
|
|
|
or copy the cstring into a char array (standard string) and use strtok()
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Hi there All,
Changing Text in Statics and controls at run time ?
Well i'm trying to do something which i'm sure its possible and i dont know how.
Actually i want to make a loop (which loop ??)through all the Controls and Windows
under an SDI project and change all the labels of the controls\windows
(including the static ones).
How can this be done,
I'll apritiate any help,
Ariel.
|
|
|
|
|
When you say all the controls, what controls ? An SDI app has toolbar(s), a menu, but do you have controls embedded into your view, or in your toolbars ? Do you want to change YOUR items, or those provided by MFC ? The way to change the text is SetWindowText, the way to get ahold of an item you don't own ( for example if you subclass a common dialog ), is GetDlgItem, but I'm not sure how you would iterate through a dialog in a loop, unless you called GetDlgItem for ALL possible ID's and check for a valid return before calling SetWindowText.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
How can I execute a SQL command using the OLE DB Consumer Templates? I don't want anything complicated like returning data, I just want to do a bunch of INSERT and UPDATE statments at once.
|
|
|
|