|
Thanks for your reply!
Now I know that I CAN write usual Win32 API apps and MFC apps with the new enviroment!
But I can't open my old VC6 projects into Vc.NET? That can't be allowed!?
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
Yes, but you must allow VC to convert them to the new format.
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
|
|
|
|
|
If you know C++ you know Managed C++, in my modest opinion is just C++ with more classes and garbage collection. Its awesome.
Next time you create a class just do this experiment and let me know
__gc class whatever
{
};
instead of
class whatever
{
};
Cheers
Al
|
|
|
|
|
Does anyone here know how many page table entries can be cached by a Pentium III TLB (translation look-aside buffer)?
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
|
Could anyone help me in generating a visibly distinct color from a set of existing COLORREFs? I have tried bitwise transformations in conjunction with GetRValue(), GetGValue(), GetBValue()... functions... but sometimes end of with dark colors of the Blue, Red or Green range which are not visible distinct.
|
|
|
|
|
Order the R values of the COLORREF s given, so that the segment [0,255] becomes divided into several subsegments. Choose the largest one and:- if there's no value among those given to the left of this interval, pick 0.
- if there's no value to the right, choose 255.
- Otherwise, select the midpoint of the interval.
Do the same with G and B values and you're done.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Despite how this message sounds, I have nothing against microsoft. Its just that why is it they have released another development environment, but not included updated controls.
.Net has been released, but has no classes for the controls used in its own IDE. Already people are racing to mimic the new 'cool' look and feel. They always talk about how important it is for consistency among applications, then they change the look and dont even provide you with the classes.
Its getten rather old. How long has windows been around, yet thier is still no 'native' support for docking windows. Even if you fallback on MFC, the look is still different. You must yet again, customize to remain consistent.
perhaps i am just loosing my mind?
|
|
|
|
|
Microsoft achieve two things with this.
1. They get apps that look cool and sell for that reason alone
2. They create industries for people who create add in libraries to provide these 'look and feel's.
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
|
|
|
|
|
The problem is, if Microsoft bundled everything with Visual Studio then somebody would sue them for monopolistic behaviour
Of course keeping their apps looking better than anybody elses gives them a good competitive edge.
It always used to annoy me in the past that I had to write all my own controls to achieve a Microsoftie interface - luckily we now have Code Project which saves me lots of time.
Michael
|
|
|
|
|
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
|
|
|
|
|