|
Michael P Butler wrote:
Of course keeping their apps looking better than anybody elses gives them a good competitive edge
Is it just me that finds it wierd that people actually will invest in an IDE because of how it looks?
Now taking suggestionsfor a new sig. please email me all suggestions.
|
|
|
|
|
Is it just me that finds it wierd that people actually will invest in an IDE because of how it looks?
To a point, no. If the IDE looks like crap, it probably works like crap. But also, if it looks great, that don't mean it works great.
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?
|
|
|
|
|
Are there any algorithms or source codes could transforms formulas like these:
from: a=b*(c-d)
to: c=a/b-d or b=a/(c-d)
|
|
|
|
|
Hi !
Well, the usual way is to parse the string to create a tree, with parameters as leaves (* + / =) and standard operations as nodes, such as :
*
/ \
b - which is equal to a
/ \
c d
and with some recursive operations, reverse the tree to get c. That´s less complicated that it seems, but requires a little bit time for debugging =)
RaGe
|
|
|
|
|
Are there any examples in source code?
|
|
|
|
|
I actually coded such a thing a couple of years ago, but i do not have the source anymore (that was a project at school), sorry.
RaGe
Unfortunately, brute-force solutions tend to be slow
even when performed by modern-day microcomputers,
which are capable of several MIPS except when I'm late
for an appointment and want to finish a compile and
run just one more test before I leave, in which case
the crystal in my computer is apparently designed to
automatically revert to 1 Hz.
-- Michael Abrash
|
|
|
|
|
Hi,
I encounter such a problem as the usage of backslash '\' , follows are details
syntax
textline\
For example,
#define DECLARE_DYNAMIC(class_name)\
public: \
static CRuntimeClass class##class_name; \
virtual CRuntimeClass *GetRuntimeClass() const;
What does '\' mean here?
Thank you in advance.
Best regard.
One concrete prolem is worth a thousand unapplied abstractions.
|
|
|
|
|
A macro is a horrible construct left over from C. It basically means that where-ever MFC puts DECLARE_DYNAMIC(class_name), the code given is expanded out 'in place' by the preprocessor, with class_name replaced by whatever was passed in. To see why this is bad, consider a macro that takes a variable, x, and uses it three times in the expanded function, and what would happen if ++i was passed in as the value....
But in answer to your question, it allows the macro to be defined over multiple lines.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"But there isn't a whole lot out there that pisses me off more than someone leaving my code looking like they leaned on the keyboard and prayed that it would compile.
- Jamie Hale, 17/4/2002
|
|
|
|
|
It basically allows the statement from the previous line to continue to the next line. Mainly they are used in macros like Christian Graus has explained above. There are not very many other useful uses for this operator.
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!
|
|
|
|
|
Ok,... for those who want to know... this is SilverShalkin... Dont think it matters but "oh well" im feeling light headed with all the information i have bean recieving through studying C++ 6.0. The more i study the more i feel as if i do not know anything. Mostly, all i want to do is learn all "all" the basics for that if i want to learn how to program somthing like DirectX I can learn it quicker because of my previous.
My question is.. What is the learning Curve of programming VC++ 6.0, "and only the basics"?
Second question... What are the easiest ways, "through experience" to learn all the basics of programming? "your story"
Thanks all for your help, hope to see some replies!
~SilverShalkin
|
|
|
|
|
Anonymous wrote:
Ok,... for those who want to know... this is SilverShalkin...
Hiya
Anonymous wrote:
studying C++ 6.0
Nitpick - VC 6.0 is the development environment for writing programs in C++, which has no version number, except maybe C++98 ( and VC is a long way from supporting it ).
Anonymous wrote:
What is the learning Curve of programming VC++ 6.0, "and only the basics"?
Depends on how you define the basics, and how fast you learn. IMO the 'basics' are (in order)
1/ standard C++, which would include std::stream, basic iostream and vector usage, creating classes that derive from one another and use get/set methods to protect their data members. It would not have to include use of namespaces, templates, or other 'advanced' features.
2/ Dialog based programming with MFC, including use of different controls and interaction using DDX as well as control variables
3/ Some understanding of GDI, enough to load an image from resources or a bmp file ( using LoadImage ), draw some lines on it and put it on the screen.
Intermediate would include understanding how Doc/View works, some more standard C++, including namespaces at least, if not templates and maybe some ATL as well, how to create a COM server and use it in MFC.
DirectX is a whole different API, and I'd suggest you should be at intermediate level before learning it, so that you can focus on learning DX, in the same way you should write console programs until you know as much C++ as I've mentioned, so you can focus on the specifics of MFC without worrying about how to write a class, etc. I'd recommend learning OpenGL before Dx because it's easier to set up and there are some brilliant tutorials on the web. nehe.gamedev.org I believe is the best one, but I might have the URL slightly wrong....
Anonymous wrote:
What are the easiest ways, "through experience" to learn all the basics of C++programming? "your story"
Set yourself projects. I'm learning a ton of C# because of the screen saver contest, and every time I've learned a lot it's been because I've been able to find an excuse to start a project on something I know next to nothing about. Finish every one you start, and try to learn as much as you can when doing it. Don't be scared to ask questions, but don't be scared to look for answers yourself first.
And most important, take it step by step, don't sit down and try to write Quake 4 as your first ever C++ program. I can't emphasise enough the need to learn standard C++ before diving into MFC, or even win32 programming (which is harder, but less abstracted).
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"But there isn't a whole lot out there that pisses me off more than someone leaving my code looking like they leaned on the keyboard and prayed that it would compile.
- Jamie Hale, 17/4/2002
|
|
|
|
|
Christian Graus wrote:
Hiya
hey, thanks for anwering my thread with such detail "and hi again"
As everyone can see, i logged on. "i was just lazy before "
At this moment, i can pretty much do every thing, game relative with text. I even can learn more off of examples then a while ago "which is what ive bean trying to do the entire time "
Ill go check out OpenGL and see what i can do. "Im just overwhelmed; after climbing the first Vary Large mountain of info... I noticed that it was really a hill compared to all the other things i should get to know (The mass of peaks)"
What i really want to know "by memory" is all the little details of all of every thing: Like int, the amount of bits used up by them, how fast it is to declare them, how fast it is to change them or recall them, everything. and beable to do this down to the organization of a project so that it runs faster by organization, than different code, and code lines. I want to teach someone and be able to say... "If you move that line of code out of that for loop, your program wll run so n so faster"
I feel like ive put on a ring of flying and flew over all the info that i shouldof looked over allot more closly. Now im looking at a fairly large prgramming book "which im 400 pages exactly into" wondering if i should just start over.
That is why i wanted to know the learning curve.. when will i feal like i have a little bit of knowledge into somthing that i have spent every day after school to study till my bedtime?
Thanks agian for the responses...
Ill start some little projects... "I was on makeing a tetris game, then go to a block out game, pacman, and then mario bro's" But i think ill start slightly below all that, and make some text games, and try to bring some image's into it.
Thanks!
~SilverShalkin
~and still on opinion... what is your story on learning...
|
|
|
|
|
SilverShalkin wrote:
Like int, the amount of bits used up by them, how fast it is to declare them, how fast it is to change them or recall them, everything.
The size of int is implimentation specific, but most of what you're after here is pretty useless. The time it takes your computer to initialise an int is NEVER going to be where you need to optimise your game.
SilverShalkin wrote:
If you move that line of code out of that for loop, your program wll run so n so faster"
The truth is that while I recognise that, for example, ++i is faster than i++, in the end, it's not a difference a human could notice in pretty much every case.
SilverShalkin wrote:
when will i feal like i have a little bit of knowledge into somthing that i have spent every day after school to study till my bedtime?
I've been going for years, and I'm still not there yet
SilverShalkin wrote:
Thanks agian for the responses...
Ill start some little projects... "I was on makeing a tetris game, then go to a block out game, pacman, and then mario bro's" But i think ill start slightly below all that, and make some text games, and try to bring some image's into it.
So long as you know all the stuff I mentioned, and for games, especially the std library stuff. You'll find the STL invaluable for game programming. I'd also suggest that you learn DirectDraw maybe, and do these 2D games in 2D ( maybe with DirectDraw ?). I'd suggest the jump to 3D programming will be the hardest learning curve of the lot for you.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"But there isn't a whole lot out there that pisses me off more than someone leaving my code looking like they leaned on the keyboard and prayed that it would compile.
- Jamie Hale, 17/4/2002
|
|
|
|
|
Hi there,
I have to dig into the pleasent toppic of establishing connection between computer and some external device of the industrial automation area.
Problem: an adapter from 4-20mA to RS232 would be needed.
Do you know where to get them (or at least where to get info on them)?
Thanks for your kind help.
Bunburry
The well-bred contradict other people, the wise contradict themselves.
|
|
|
|
|
RaGe, thankx for your reply.
Example:
a remote pressure sensor, which has an output current signal 4-20 mA (4mA refers to 0 pressure, 20 mA refers to maximum pressure, 10 barg).
I have have to display the pressure as a function of time.
4-20mA is a 2-wire cable which I cannot connect to the serial port, as a result of which I will need an adapter which would convert a 2-wire current output of pressure sensor to an understandable signal for the serial port.
I am interested in any kind of equipment which can directly be connected to the computer over serial port.
Thankx
Bunburry
|
|
|
|
|
just wondering if anybody could help me with a little project I'm at.
Basically I'm trying to extract text [and info] from a pdf file. Anybody have any ideas? [in general C++, not MFC]
Can't seem to find any articals on this.
<centre>
Now taking suggestions for a new sig. please email me all suggestions.
|
|
|
|
|
Have you looked here yet?
http://partners.adobe.com/asn/developer/acrosdk/docs.html
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
You might want to check out CLIBPDF from www.fastio.com.
|
|
|
|
|
In my program I need to test if the Selected Item in a tree control is at the end of a root. I'm guessing that I can get the info out of an HTREEITEM but I dont konw how to get the info. How can I get it?
Thanks in advance.
-Raffi
|
|
|
|
|
Hi Raffi,
Do you mean testing if an item is at the end of a branch ? In that case, you
could simply test to see if it has any child items with GetChildItem(hItemSelected),
which will return NULL if no children exist.
Alwin
|
|
|
|
|
Thanks alot
-Raffi
|
|
|
|
|
Dear all,
Anybody knows a fastest file read/write method?
It is because i am doing a program and need to read/write a same file many many times, using CFile to read/write is very very slow.
Any suggest method?
Andy
|
|
|
|
|
There is also FILE structure for doing that but I don't know if it is faster than CFile.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
An alternative is to use memory-mapped files, for which
some examples can be found on the Microsoft knowledge base. There
also exists a sample called ProcessWalker.
The downside is that it only works on NT or higher (I believe).
Alwin
|
|
|
|
|
Memory mapped files work for all Win32 operating systems.
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!
|
|
|
|
|