|
Jon Hulatt wrote:
Oh... If you've got a couple of spare minutes, I'd love it if you could explain to me what a class is.
Apparently something you should have attended more regularly if you went to Uni, otherwise something you should take up in the evening to help you understand how to program....
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
|
|
|
|
|
Wow. That helps. Now, tell me what is a pointer? how can i use them in my program?
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
Jon Hulatt wrote:
Wow. That helps. Now, tell me what is a pointer? how can i use them in my program?
Here's a pointer - move to VB.
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 need to forget about windows, forget about games and sit down and learn these total basics which you lack.
Thanks... "Writting games is the only thing i know how to do... so weather it is a small stupid game... which ive bean doing "Stupid text(Just text)((Only only, text)" "no graphics what so ever..." (i think you get it)
Im trying to learn the basics, thats why im working on text rpg instead of tetris clone. I want to know C++ to the fullest, so much that i can think of somthing to program and almost instintly think up the structure of that program. I am the most dedicated learner that "I" have ever seen. "I just dont know where to start."
"I do know what a pointer is... kindof... it points to the address of somthing, you use "&" with it...
I know of allot of things... but i dont know why they are used... or, what the can do to make my program run more efficiently.
I need a project, somthing that i can do and learn the things i need to...
so, till i find one, or till someone gives me one "learning purposes only" Im going to be cruising the books and taking note on whatever i can to program better.
Thanks, "It scares the hell out of me to "
~SilverShalkin
|
|
|
|
|
SilverShalkin wrote:
Writting games is the only thing i know how to do
Bull. You mean 'writing games is all I want to do'. Game programming is a superset of common programming skills. If you cannot write a calculator ( my suggested first C++ task ) then you cannot write a game. Period.
SilverShalkin wrote:
Im trying to learn the basics, thats why im working on text rpg instead of tetris clone.
An rpg is *not* the basics. This is what I'm trying to get you to understand.
SilverShalkin wrote:
I want to know C++ to the fullest, so much that i can think of somthing to program and almost instintly think up the structure of that program.
*grin* if you manage that you'll be beating everyone here, but I understand what you mean. Do you own 'the C++ programming language' by Bjarne Stroustrup ? You should get it if you don't.
SilverShalkin wrote:
I am the most dedicated learner that "I" have ever seen. "I just dont know where to start."
Write a calculator program. Make a base class called calculation that defines what a calculation does, then define derived classes that do individual calculations such as add. No program would ever do this for a calculator, but the simplicity of the task will let you focus on the details required to make the classes behave properly. Then have a pointer to the base class in your main app, so you can learn more about pointers and so on. Use dynamic_cast to find out if the pointer you have is the type you want or not. Again, this example is designed to teach you a lot of stuff, not to be practical. I'd be glad to help you.
SilverShalkin wrote:
I know of allot of things... but i dont know why they are used... or, what the can do to make my program run more efficiently.
Which gets back to me saying focus on the basics for a bit.
SilverShalkin wrote:
so, till i find one, or till someone gives me one "learning purposes only" Im going to be cruising the books and taking note on whatever i can to program better.
Stroustrups book is also full of examples and exercises.
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:
SilverShalkin wrote:
Writting games is the only thing i know how to do
Bull. You mean 'writing games is all I want to do'
"its all that i have the heart to program" (learning quickly though, calculater program may help more )
Christian Graus wrote:
Do you own 'the C++ programming language' by Bjarne Stroustrup ? You should get it if you don't.
this is a book right? or is it the actual programming language? "just wondering" ill go and check it out.
thanks for the help
~SilverShalkin
|
|
|
|
|
SilverShalkin wrote:
"its all that i have the heart to program" (learning quickly though, calculater program may help more )
Exactly. The point is not to love what you're doing, but to do things that will equip you to do what you love.
SilverShalkin wrote:
this is a book right? or is it the actual programming language? "just wondering" ill go and check it out.
It's a book - get the third edition, which is the current one.
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, I am not sure if you are aware but a text RPG is actually a console program not windows, usually in a text rpg they will give you a story then ask you a question and you reply by typing "turn east" or another sort of function.
|
|
|
|
|
Whoops just to let you know that was me... i thought was logged in
|
|
|
|
|
You should take a course in Object Oriented Analysis & Design (or at least read a book on the subject). This will give you the basics of OOP and will likely answer many of your current (and future!) questions.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
How can I copy selecting text from any application to my application by hotkey
|
|
|
|
|
Author
Addition info: my application store in system tray I want to copy selecting text from any application to Clipboard by hotkey
then I will get data from Clipboard later.
Thank you so much
|
|
|
|
|
meta wrote:
Author
Addition info: my application store in system tray I want to copy selecting text from any application to Clipboard by hotkey
then I will get data from Clipboard later.
I believe you'll need to use a global keyboard hook. I dont know much about doing that, but there are a few articles here on CP explaining how to do it.
Nish
The rumours that I am an AI bot are absolutely false. These rumours have been propogated by *them* to focus all the attention on to me, while *their* bots take over the planet. Thank y%%%% Divide by zero. Cannot proceed. Abort(y/y)?
|
|
|
|
|
Here's how:- Register yourself as a clipboard viewer by calling
SetClipboardViewer() .
- Handle the
ON_WM_DRAWCLIPBOARD message. Here, you can get at the clipboard's data by calling OpenClipboard() , GetClipboardData (CF_TEXT) (assuming you're interested in text content), and finally CloseClipboard() . Be sure to cascade this message to the next viewer.
- You should also handle
WM_CHANGECBCHAIN . See the various articles in the Clipboard section for more info.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Additon info: that hotkeys isn't ^C (control c) ,so I do registerhotkey and do myfunction to restore from system tray but after that what should I do for copy that selecting text to my app.
thank a lot
|
|
|
|
|
How can I copy selecting text from any application to my application by hotkey ?
Thank you so much
|
|
|
|
|
I'm sorry. I multiple send question. so Cancel this question and use http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=163440#xx163440xx instead.
Thank you
|
|
|
|
|
How can i add .cpp as a member of my project?
|
|
|
|
|
On the main menu, click Project->Add to Project->Files
Josh Knox
that-guy.net
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
Dennis Ritchie.
|
|
|
|
|
i'm working on an open source system according to the documentation->"If you get the following error message:
Link Error: CallSim.obj : error LNK2001: unresolved
external symbol "public: virtual __thiscall
SKC_UserTimer::~SKC_UserTimer(void)"
(??1SKC_UserTimer@@UAE@XZ)
• Make sure that include/BaseClasses.cpp and include/
CMessages.api.cpp are members of the project."
i already added this files to my project and still i got this->"Linking...
Switch1Dlg.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall XLC_AssignSpan::~XLC_AssignSpan(void)" (??1XLC_AssignSpan@@UAE@XZ)
Switch1Dlg.obj : error LNK2001: unresolved external symbol "public: __thiscall XLC_AssignSpan::XLC_AssignSpan(int)" (??0XLC_AssignSpan@@QAE@H@Z)
Debug/Switch1.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Creating browse info file...
Switch1.exe - 3 error(s), 0 warning(s)"
under the CMessages.api.cpp i have this->SK_DEFINE_CLASS(XLC_AssignSpan);
XLC_AssignSpan::XLC_AssignSpan(int sz)
: dynStorage((sz > sizeof(XL_AssignSpan)) ? malloc(sz) : NULL)
{
msgRep = (dynStorage ? (XL_AssignSpan *)dynStorage : &repStorage);
sk_initMsg(msgRep, TAG_AssignSpan);
}
XLC_AssignSpan::~XLC_AssignSpan()
{
if (dynStorage) {
free(dynStorage);
}
}"
what else am i missing here. thanks guys in advance.
|
|
|
|
|
Are the base classes all included in the project ? Are they being included in the files that call them ?
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
|
|
|
|
|
yes the base classes all of them are needed and included.
|
|
|
|
|
I do not fully understand what may be going on (what's SK_DEFINE_CLASS ), but:
Is XLC_AssginSpan defined in another DLL? Because if this is the case you must also link with the .lib file of that dll.
Best regards,
Alexandru Savescu
|
|
|
|
|
XLC_AssignSpan is defined in another header and i have included that header accordingly.
note:
#define SK_DEFINE_CLASS(cls) \
SKC_ClassDesc *cls::myDesc = NULL;
it is invoked in the implementation file of the class.
i really appreciate the help... thanks
|
|
|
|
|
In WorkSpace Window Click the FileView Tab
Then in Select your project and right click on it.
Then select Add Files to Project.
Then you can select your file from FileDialog.
This would suffice
|
|
|
|