|
SilverShalkin wrote:
I like to start projects i have no clue how to do, FOR THAT I CAN LEARN SOMTHING NEW!
Hell, most of my projects are like that. But a man why tries to learn the lambada but for some reason never learned to walk is bound to look silly. That's all I am trying to say.
SilverShalkin wrote:
you must except the fact that people may not be as advanced as you are. "take note, that they are trying" thank you.
Of course, it's to help people who are learning that I post here at all. ( in the forum I mean )
SilverShalkin wrote:
yes i am stupid for trying to learn
NO, NO, NO. You are BEING foolish to not take the time to learn some elementary skills before tackling this project. But kilowatt is right, if you don't have the dedication to do that, a couple of totally awful and badly designed games are better than no code because you can't be motivated to code anything else. BTW, I cringe when I look at my code from two years ago, so 'totally awful' is I suspect something we all have to look back and deal with
SilverShalkin wrote:
You are so lucky to be able to go and help the people on this forum,... and not like me "depend on them"
I started with comp.lang.c++, a totally BRUTAL place to make mistakes like asking about Windows specific functions by accident. I put up with the brutality because still today most of those guys run rings around me in C++. I learned what was appropriate, did the exercises that people recommended, and learned C++. Then I started programming for Windows and used forums like CP to learn. I'm not lucky, I've worked damn hard. There's no reason you can't aspire to do the same.
Just to recap.
1. I was very rude to you this morning and I apologise. kilowatts last post has made me realise that even if you're learning by a sub optimal path, if that's the only one you're capable of, at least you're learning and trying. And most important, asking questions, I've never wanted to discourage anyone from doing that, although I've been disappointed that you sometimes don't accept the answer.
2. I didn't mean you were stupid, rather that you're taking a stupid path. But if you choose that path I will continue to be happy to assist you
3. I am far from being an advanced programmer, nor am I gifted. I just work hard. There is nothing magic about it, and the fact that so many people helped me is another reason I am keen to be helpful now that I have some skills under my belt also.
So are we all friends again ?
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
We be always friends
I dont try to ask the questions that are to advanced... ill be at a point of understanding somthing then there will be one error in my program,... ill change somthing then i have 15 errors... completly confused ill jump on CP to try to understand what i was doing wrong "that somthing that doesnt feel advanced" and get chewed out because the question was iether really stupid... that somthig of the basics could teach me... or extreamly advanced.
But thats life... i progrssing through little wierd projects like you said to do... ask kilowatt if you dont believe me. and im just taking the things that i learn by doing that and aply them to a little game.. to further my understanding of them.
Also... i have programmed allot of things... i would list them... but ive got to go
See ya
Thanks for the help "always"
~SilverShalkin
for the help
|
|
|
|
|
simply redeclare your global variable in the header file with the extern keyword.
example:
You declare your variable in the cpp file, outside of a function like this:
// Declare this as a global variable in the cpp file.
Counters goblin = {...};
Then inside of your header file you declare the variable like this:
// You do not need to initialize this declaration of the variable, that is already
// taken care of in the cpp file.
extern Counters goblin;
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Can someone show me how to use this? No matter what I do it always returns 50 - "The request is not supported." This is on VC6 and Win2k sp2.
Thanks, Lac
|
|
|
|
|
Hi all.
I have a very large program the uses OpenGl . My problem is that when it is minimised it chews up a large amount of memory. About 1 Gig in 15 secs.
Is there anyway I can use the debugger to find out where this memory is being allocated rather than trace through thousands of lines of code????
Thanks
Coremn
|
|
|
|
|
there r many ways to it. u can use tools like purify/quantify to get it. simplest is, if u r using C++ and allocating memory using new, then overload the new operator and before and after assigning memory, puts some entris in the log file so that u will know where and what u r doing. u can write the overloaded operator in such a way that this overloads only during debug time.
if u r using malloc, bit tough, have ur own memory allocation funtion and call this function, and inside this function call malloc.
|
|
|
|
|
Hey,
I just saw a CHString class. It's a non-MFC class, too!
When did the PSDK start giving us utility classes? I am very much puzzled. It's not part of MFC too
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
|
Mike
It seems it's part of something called Microsoft WMI
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Nish [BusterBoy] wrote:
just saw a CHString class. It's a non-MFC class, too!
When did the PSDK start giving us utility classes? I am very much puzzled. It's not part of MFC too
It is not really a "General" utility class, it is part of the WMI (MS's version of WBEM) SDK. It is basically just a copy of CString .
Peace!
-=- James.
(Try Check Favorites Sometime!)
|
|
|
|
|
James R. Twine wrote:
It is not really a "General" utility class, it is part of the WMI (MS's version of WBEM) SDK. It is basically just a copy of CString
Thanks James.
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Was it dumped? Now seems as if we hava a CStringT which is a templated class!
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Yes, it is now gone. However, you will rarely even notice as you can still define things as CString and the CStringT will automatically be used. You can see this if you construct a CString and step into its construction. You'll find that you're in the CStringT constructor
Cheers,
Tom Archer
Author, Inside C#
Author, Visual C++.NET Bible
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the af
|
|
|
|
|
Thanks Tom.
So I guess old code won't break as I thought it will.
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
There's a couple of situations where you will have to change your code. However, you'll get compile-time errors and they're easy enough to figure out.
Cheers,
Tom Archer
Author - Inside C#, Visual C++.NET Bible
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the af
|
|
|
|
|
Tom Archer wrote:
There's a couple of situations where you will have to change your code. However, you'll get compile-time errors and they're easy enough to figure out.
Yeah, I expect it to be that way. I mean they wouldn't be able to maintain a 100% compatibility thing if they wanted to also really improve things.
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
|
theres VC++ 7.0 now?
that tells you how behind i am
~SilverShalkin
|
|
|
|
|
You've not heard of Visual Studio .NET, or you just don't know what it is ?
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
Christian Graus wrote:
You've not heard of Visual Studio .NET, or you just don't know what it is ?
It's amazing that despite all the marketing MS did, that he never heard of .NET
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
The good thing about having the CStringT template class, is that you can now use both the char and wchar_t type CStrings in your program. Previously the compiler would choose one or the other versions based on your __UNICODE definition.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
YES!!!
I ended up having to create my own CString class a couple of years ago since I needed both at once.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
I was looking through the help for " _lfind " function but having trouble using it. Could anyone help please?
This is my situation
I have three CString Variables:
m_strEnterData, m_strFindData, m_DisplayResult
m_strEnterData has the input string.
m_strFindData has the string I am searching in m_strEnterData.
m_DisplayResult is where I want to display the result
I saw the syntax for _lfind in the help but having trouble fitting it for my scenario. Can someone help ?
Thank you so much. This board has been a lifesaver.
M
|
|
|
|
|
i´m not a MFC guy so i might be wrong but try this...
int index = m_strEnterData.Find( m_strFindData ) ;
if( index != -1 ) // has it found it?
{
m_DisplayData = m_strEnterData.Mid( index, m_strFindData.Length() ) ;
}
Gabriel
Old C programmers never die. They just cast into void
|
|
|
|
|
Do you mean you want to search m_strEnterData for m_strFindData and then put the index of the location into m_DisplayResult? If so, why should m_DisplayResult be a CString? If not, what's supposed to be in m_DisplayResult ?
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|