quintoncoert 131 Posting Whiz in Training

I have three questions about MFC and their use in Visual C++ 2005.

Firstly. Can one actually use the MFC in C++? I have taken a look at the internet and almost all the information seems to indicate that it, along with win API, is for use with C. There has been many indications that it works with c++ as well but I thought it would be better to make sure.

Secondly. Is it possible to bypass the common language runtime and still end up with a graphical user interface? It seems as if the win32 console application does not use the common language runtime? I am going to get VC++ 2005 prof edition shortly and one tutorial said that one has to select win32 GUI and not win32 console in order to use MFC. The problem is that that tutorial had been aimed at C# but I am asuming that the prof. edition VC++ 2005 might also have an option for Win32 GUIs. If it has and I select it as a project then will I bypass the common language runtime? And if it does bypass the common language runtime can i still develop a GUI using the MFC or even win API?

Thirdly. Can anyone suggest some good books on MFC?

quintoncoert 131 Posting Whiz in Training

thanks. i shall check them all out.

quintoncoert 131 Posting Whiz in Training

i thank you for your answers but i am even more new to c++ than that. I am reasonably good at programming but i am still learning c++.

So I am actually looking for something easier. Anything which can render textboxes, command buttons and other things on-screen while C++ runs behind it.

My dll can only work with c++ otherwise I would probably have written my programs in Java or something. I am going to learn at least openGL but for now I am still battling to learn c++ itself.

quintoncoert 131 Posting Whiz in Training

Is the common language runtime the only way to develop
graphical user interfaces in c++? That had been what I thought
until I read a gaming thread( how to develop board games in c++ ).

A dll, which i have to use, refuses to work with the clr (i am using VC++ 2005 express). I have been building console apps with c++ to work with the dll and then I invoked them from the Visual Basic GUIs. It worked reasonably well but not perfectly.

After reading that thread however I realised that there
might be alternative ways to develop GUIs? Is it possible to build complete console applications in c++ and then attach screens to them? I am open to any suggestion which can give graphical user interfaces without forcing me to use the CLR of dot net.

quintoncoert 131 Posting Whiz in Training

I am a big proponent of letting ten guilty men go free than one innocent man go to jail. And it was an American who said that. The biggest failure of the O.J. case (as it was explained to me) was that they made him try to put on the glove he used to kill her (and the other guy) and it was leather. Since it was leather it shrunk because it got wet and it didn't fit him. That made the prosecution look bad and that was their biggest argument. Later he was found guilty in civil court where he was supposed to pay some millions of dollars to the family.

in that case i have to give in. but only in the oj case. if some court finds him guilty enough to the extend that he has to pay a fine then he probably should have had a death sentence(which i believe is legal in the USA. i wish it can be brought back in my country.). as i said before. a rich man pays a fine from his piggy bank.

quintoncoert 131 Posting Whiz in Training

Yes I think I am a little confused on the iteration. For each grade will I have to do the (i=0; i<5; i++:P WIll this add each grade?? So if a 2nd grader has gathered 5 cans and another 2nd grader collect 5 will this iteration add this two different inputs? Maybe I am not understanding what the iteration is actually doing. WIll I have to set the something like numberofcans = numberofcans + i??

I think that it would be better to use sentinel controlled looping here.

in it the while can receive one of two sets of numbers. one set of values is a sentinel. all other values are input.

//create input value which can be a sentinel
int inputGradeValue;
cout << "enter a grade from 1 to 5, but -1 to end program"

cin >> inputGradeValue;

while ( inputGradeValue != -1)
{
/* in here you create another integer and receive the number of cans in that integer. then depending on what value is in inputGradVale you know to add it in what element of the grade array. if inputGradeVale is -1 the program of course terminates. that should be in the case when there are no graders left to bring you any cans.

*/

/*receive now a new inputGradeValue which can of course be -1 in which case the while loop terminates or it can be another value from 1 to 5 which is another …

quintoncoert 131 Posting Whiz in Training

>Or it stands for something else.. World Wide Waste.

LOL! Now that really is a good one! It shows that irrationality can be countered by a fine sense of humor!

quintoncoert 131 Posting Whiz in Training

i think this is because all (or perhaps just most) great authors goes through this evolution of style.

style has to be crystal clear, concise as well as simple as its base only. some author once remarked that you have to write a million words before you begin to aquire true style.

perhaps the hobbit was part of his learning curve. another book of tolkien, the silmarion i think, has the exact same problem. some authors write their first works with no intention of ever publishing it.

i 've read many of k. a. applegate's books. her very earliest, before animorphs and everworld, are also rather boring.

Rashakil Fol commented: More on-topickitude... +6
quintoncoert 131 Posting Whiz in Training

in a previous thread you told me that the world has moved on to "forms of c++ that actually works with the standard language". is visual c++ 2005 one of these forms?

and by your comment about "standard language" i took it you meant that visual c++ 6.0 does not work with the standard language?

if you pick up a text book which just say C++ without any reference to microsoft or dot net or borland i asume that you have a ninety percent chance of reading aboout this standard c++. and also i take it that this standard language is the "only one form of c++" which you talked about earlier in this thread? if that is true then why did microsoft went through the trouble of creating its own form of c++ for 6.0?

quintoncoert 131 Posting Whiz in Training

I 've read Narue's answers in another game thread but there are still some things I would like to ask.

what kind of c++ works best for games? can one use any kind. the main reason for using c++ is, i assume, to take up as little space as possible in memory as well as to run at the highest possible speed. does a type of c++ such as visual C++ 2005 which uses dot net suffice or will it be too slow. i asume that dot net makes it slower since the c++ does not now run close enough to the hardware?

also what kind of education is needed. to simply be a programmer is obviously not enough. so what minimum level of study is sufficient? i also take it that it requires a lot of math and knowledge of advanced algorythms?

quintoncoert 131 Posting Whiz in Training

>hmm.. I'm not sure. Do a google search for those lyrics.

i asked earlier if anyone had the lyrics to a song. no need to respond. i tracked it down. the problem was that i had neither author nor lyrics. but its fine now. i have got them both. it is mississippi by pussycat.

quintoncoert 131 Posting Whiz in Training

Tell me. Does anyone knows ( or more correctly, remembers ) a song which contains the following lines:

Whenever you should go away, and nobody else is near, there's always a kiss to remember from you to me.

there is also this line but i dont know if it is in the same song but i do believe ( not 100% ) that it is from the same author:

Mississippi. All along it rolls.

It is a very old song. I think it is from the sixties or seventies. That is why i said remember is more correct. If anyone does can you send me the lyrics. Or even just the artist?

quintoncoert 131 Posting Whiz in Training

>i applied a few and for now i believe that it was sufficient.
Yea, I hope you don't mind that I won't hire you to add security to my software. :P

Sa! How easily a sentence shear a septum!

Just kidding! I know... The security is lousy. But all it does is protect a simple configuration file which remembers how some hardware devices connect to one another. If it had been up to me there would have been no password at all but my boss insists. Besides this is a demo only.(which demonstrates the behaviour of the hardware not the security!)

quintoncoert 131 Posting Whiz in Training

So this is your opportunity to learn.

i shall learn later. but i did do some sort of encryption. as a child i read puzzle as well as a few spy books so at least i knew secret codes. i applied a few and for now i believe that it was sufficient.

quintoncoert 131 Posting Whiz in Training

i have a form which i have to protect with a password. this form is called from a user form which does not have any passwords on it. which means anyone can access it. in order to accomplish the security i placed a password in an access database but the database itself cannot be password protected since the no-password calling form has to access this database. based on that there is a potential security issue since a person can just open the database and alter the password and then access the form which is supposed to be secure. but i cannot think up a better solution. does anyone have a suggestion?

i thought about encrypting the password before writing it to the database in such a form that if someone wants to change the password in the dbs he would have to first know and apply the encryption but i have little idea of how to do an encryption.

quintoncoert 131 Posting Whiz in Training

i am impressed too. but i too suspect a hoax.
it is probably possible if the bottle is big enough, but still.

quintoncoert 131 Posting Whiz in Training

1. e4 e5
2. Nf3 Qf6
3. Bc4 Bc5
4. o-o

quintoncoert 131 Posting Whiz in Training

Uh, we don't have any 'space stations' on earth as these are in space

sorry. bad semantics on my part. so the correct word is launch site.

quintoncoert 131 Posting Whiz in Training

I only make an assumption when there's an extremely high probability that the assumption is correct. In other words, an educated guess.

that is an extremely good philosophy but allow me to disagree. sometimes extrapolation is the only way to think. in the first question no assumption of the missing info could lead anyone with immaculate logic to a faulty assumption of the missing info since there is only one end result to reach when trying to deduce the missing info.

hey narue dont take me too serious. i am just kidding with you. i realise that i should have given more info in the first question of this thread.

quintoncoert 131 Posting Whiz in Training

Yet your question is illogical.

yes i can see the illogic when comparing the first question of this post with my reply to your first response.

but the first question was not illogical. more like i did not include every bit of info. but then again i have read some of the things you have written on daniweb and you appear to be intelligent with ordered thought so i would have thought that you would asume the missing info.

anyway thank you for your reply. it was most helpfull. now i know not to waste time learning what would be useless.

quintoncoert 131 Posting Whiz in Training

narue please dont take this the wrong way but i do know that. it is sort of logical.

what i meant was that at this point i have to learn c++ and i have little choice in what version.

but what i want to know is are there enough jobs available to justify learning it in detail or should i just learn enough to do the job i have right now.

quintoncoert 131 Posting Whiz in Training

i have taken a look around and it seems to me as if visual c++ is an outdated technology. I mean it appears as if no one is using it anymore. Even Deitel, which sells some good textbooks, list them as "old products". Is it worth the effort to learn visual c++ 6.0?

I know that Narue told me to stay away from 6.0 and rather go for 2005 but I have to write a program which controls certain hardware and the dll for it cannot work in 2005.

quintoncoert 131 Posting Whiz in Training

can anyone tell me if it is possible to connect to a database (for example an access database) from visual c ++ 6.0? And if one can how does one do it? Is it some wholy complicated thing or is it as easy as doing it in visual basic 6.0 or java?

quintoncoert 131 Posting Whiz in Training

Armageddon?

yes. that one.

by the way. in that movie. when those guys were training at the space station there was this monument with an inscription. i cant remember the inscription exactly but i think it went: ...this is in memory of all those who gave their lives so that others can reach the stars... I think that in the movie the space station was in florida(i know that USA has one space station in florida. Kenedy space station right? but do you have any others?). what i want to know is is it true? is such an inscription really written on a monument or did the movie people make it up? Because if it really does exist then i think it is really cool. Not the dying of course but the fact that humans can have that kind of attitude.

quintoncoert 131 Posting Whiz in Training

still to destroy the moon, a pretty huge blast is needed. remember that the moon is larger than Pluto!

yes. i for one would be really surprised if the moon could be blown up by a nuke. even an american one. Also i think that there is a reasonable amount of truth in that movie where that comet came for earth and they had to put the nuke on the inside.

quintoncoert 131 Posting Whiz in Training

1. e4 e5
2. Nf3 Qf6
3. Bc4

quintoncoert 131 Posting Whiz in Training

I'm confused. I thought a move had to be a pair of alphanumeric designators...starting position and ending position. Am I mistaken?

not really. you are right. but some of us use a shorter version. it is quicker to just specify the piece. usualy only one can move to the target square. it is also easier to play without a board if you specify the piece instead of a starting square.

quintoncoert 131 Posting Whiz in Training

2. Nf3

quintoncoert 131 Posting Whiz in Training

I know the moon doesn't really rotate relative to the earth (tidal lock and all that), but what other velocities would it have that could cause directional changes to a lunar explosion?

it travels around the earth at a speed which is not so fast for it to go off into space yet not slow enough to cause it to fall onto earth. If something causes it to explode then pieces of it will attempt to go into different directions(by exploding it will be flung in different directions). every piece which attempts to go backwards(i.e. the direction from which it had come in its traveling around the earth) will slow down and i suppose eventually will fall to the earth. Come to think of it i have take back even more words. as those pieces nears the earth their gravitational effect on earth's oceans will have some effect. those effects could be tidal waves.

quintoncoert 131 Posting Whiz in Training

We wouldn't all die bennet! , just the tides would go crazy, and screw with the sea patterns, and make low lying land masses flood.

I really hate to always go against the conventional wisdom of the pack but just how would tides go crazy? The moons gravity causes the tide. If it explodes the tides would gradually subside as the matter of the moon drifts apart.

Also fall down and hit earth? I am not all sure of that either. Asteroids are not hitting the sun? provided that the exploding moon pieces retain their velocity... OK it is possible that some pieces would slow down while others speed up.

quintoncoert 131 Posting Whiz in Training

selfish... you don't own this thread, you know... haha... kidding... i'll play you quintoncoert... wanna be white?

I dont know if this is going to work. I was stupid there for a second. We live to many time zones apart. (I live six hours before west indian time which i think is the same as new york time. sorry. i dont have an atlas close by.) But if you dont mind that then here goes...
1. e4

quintoncoert 131 Posting Whiz in Training

I use to like them and still do. But we no longer get the good ones like Hotstuff and TMNT. DC comics too are cool but they too are hard to find for me.

quintoncoert 131 Posting Whiz in Training

Ozone is highly unstable because oxygen is not supposed to form into tripatite molecules

if it breaks down it will break down into more stable O2 the same way that unstable O + O will bind into O2. The same way that highly unstable H and O will combine to form to form H2O. It all comes down to the stable outer orbital. All atoms wants to have the stable outer orbital of the noble gasses. The metals of group one and two and all atoms on the left will gladly give their electrons up while those on the right side of the periodic table will gladly accept them. Just as long as they end up stable.

Even if what you say is true the fact still remain that fuel is needed. No amount of oxygen in whatever form can start a fire on its own. As I explained before. It is a simple reduction oxidization reaction. And where is the fuel in the atmosphere?

Look at it this way. Energy can never be created or destroyed. It can only be altered from one form to another. The energy in wood is solar energy stored a long time ago. The same holds true for petrol, diesel, butane and even sugar. All that oxygen does is to oxidize them to various bindings of carbon and oxygen(e.g. the C6H12O6 of sugar oxidized to CO2) by forcing them to give up their hydrogen. Since their is no chemical in the …

quintoncoert 131 Posting Whiz in Training

I think I am going to stop my defense of the poor girl. Not because I think you guys are right but because it is a pointless argument. Each and every person on this planet is responsible for his or her own actions. Nobody should start blaming Paris if there is an increase in sex, drunken driving or anything else. Not only that but a community as a whole is far more likely to influence its youth (e.g. peer pressure and bad examples from parrents or teachers) than any single person. Even if that person is a star.

As far as getting away with murder. Did the court found O.J. guilty? Someone once said that it is better if ten guilty people go free rather than have one inocent person go to jail. Although I am not completely sure of that it does have some validity. And best of all I believe that it was an American who said that. But I could be wrong.

The point is that there was no irrefutable proof that OJ was guilty so they could very well have send an innocent man to death. I am not saying he is innocent but that the judge / jury thought he could have been.

It would seem that I have more faith in American justice than you guys but maybe it is because we in Africa have REAL micky mouse justice to compare yours with.

quintoncoert 131 Posting Whiz in Training

California has a mandatory sentencing law, this means that people guilty of DUI are required to serve a minimum of 48 hours or up to a maximum of 6 months for a first offense. I'm still curious why she was given probation and no jail time.

OK I get the part of her having to go to jail. I always have. No-one would have acted In fact I should probably add that fines dont work for super rich people since they pay them out of their piggy bank. My point has always been the overreact. Very few would have acted this way had it been the girl next door instead of Paris.

quintoncoert 131 Posting Whiz in Training

can i take on the winner? i am reasonably good at chess. or if there is someone else who would play me while they play?

quintoncoert 131 Posting Whiz in Training

Tell me guys. I see that you guys change your avatars. Can one change one's username as well? And if so how? and also how does one change the avatar?

quintoncoert 131 Posting Whiz in Training

I don't know that you're wrong, but I do have one question. Given that it ozone (O3) seems to have different properties than normal oxygen (O2), how would it react against such a high-energy strike, assuming even the slightest bit of fuel was available?

I must admit that I cannot say for sure but i think that it would be even less reactive than O2. Atoms bind in order to get stable outer orbitals. first the O3 bonds between the O atoms will have to be broken but then the bonds will probably reform quickly to give O2.

quintoncoert 131 Posting Whiz in Training

the judge send her back? too bad. she is too pretty for jail.

just kidding you guys. hahahaha. like i said jail would teach her some responsibility. But i still dont think it is reason enough to call her all those names.

quintoncoert 131 Posting Whiz in Training

lol. I am almost sorry I came to the girl's defence. Besides you guys are deliberately not hearing all of what I am saying. I admit fully that she should have finished her sentence. All I am saying is that apart from the fact that she is now going to try and get away with it again no real harm was done. As I said. It is not as if she killed the president or something. But just because she is a celeb you guys are acting as if she did kill the president.

Remember my first act of defending her? It was stating(or asking. cant temember) that perhaps you guys are overreacting just a little bit.:-)

As for her being a whore. Come on. How many people in the world are not. (the same question I asked my friend who also attacked her. And he could not answer that.)

quintoncoert 131 Posting Whiz in Training

um that would be a dumb idea. That would involve beaming high intensity light down to earth? = set fire to the atmosphere. Setting fire to the atmosphere is bad,

I am not sure if you are responding to my idea of space based power here. But if that is so then I must tell you that you are wrong. :-) The atmosphere will most certainly not burst into flames. In order for a fire to burn there must be fuel. What in the atmosphere is going to act as the fuel? Certainly not the oxygen.

Fire is energy released from where it is stored. Like for example wood, paper or fossil fuel. Oxygen is used to oxidize the energy rich chemicals. For example In the case of respiration in our bodies the oxygen forces the sugar to give up its hydrogen and so the sugar is reduced to CO2. The same in a space shuttle. Hydrogen is forced to give up a proton ( which is the entire hydrogen atom) which results in H2O or common water. Oxygen most certainly cannot start a fire without fuel.

Oxygen is twenty percent of the atmosphere and Nitrogen 80. Roughly. The remaining gasses(less than one percent) are too few to act as fuel and I in any case doubt if any of them can act as fuel. As I said fire is energy stored and now released.

If the athmosphere could really be made to burn it would …

quintoncoert 131 Posting Whiz in Training

I think it is really cool. I did not realise that it was possible.

While it might true that it could pose serious health risks for things like laptops and tooth brushes it would be great in other fields.

One thing that I can think of is the need for cheap and clean energy. We receive only a micro fraction of the sun's solar energy. If we build solar panels in space and then beam the energy down to earth we would have at least one answer against global warming.

Also it would offer an economic incentive which might spur private companies to invest in space research and equipment. That is something which I personnaly would like.

As for the danger of a misdirected beam, we can build the receivers in lowly inhabited areas like deserts or on top of mountains and from there transfer it over cables in the traditional way. Also If we can beam lasers onto a satelite for communication then I am pretty sure that our acuracy would be good enough.

quintoncoert 131 Posting Whiz in Training

I especially like the one about the sinking library. We computer programmers make that kind of oversight everyday(hence debugging) but the thought had simply never occured to me that civil engineers can make it too. Of course our mistakes are much cheaper to correct.

quintoncoert 131 Posting Whiz in Training

send to jail? landed on death-row? O come on. Let us put things into a propper perspective, shall we? All she did was drive without a licence. If all the people who had ever driven without a licence is send to deathrow then quite a lot of us are going to be there. I have to admit that I am going to be there myself. Let us ask around and hear just how many daniwebbers have ever driven without a licence. Chances are daniweb(along with the entire internet) is going to become a ghostsite if all of those who had ever driven without a licence gets sentenced to deathrow.

And what i meant with favour was that I am pretty sure that Paris is not the first person to get out of a seventy odd day sentence for some or other reason. Unless the media is way wrong which results in me being mistaken i do believe that something called community service is very much in in America.

So maybe her daddy pulled some strings to get her out but like I said. It is not as if she shot the president or something. She drove without a licence. Tell me something. In RSA you get fined for driving without licence. Did USA did away with fines for that offence or is it just that celebrities dont get fined but rather send to jail? If that is the case then are you guys not on a dual justice …

quintoncoert 131 Posting Whiz in Training

come on guys. are you not overreacting just a little bit? I have a friend here whom acted just as you guys are acting now. calling her a whore and a spoiled brat and he did it before she was even sent to jail. i really wonder what he is going to say now.

please dont take this the wrong way but i believe that americans are just a tad harsh on the celebrity world. I have the world of respect for your country and twice as much admiration but really....

Sure paris should have served her full sentence but it is not as if she killed the pope or something. personnally i think that had paris stayed in jail it would have done more good to her than anybody else.

and are you guys honestly going to tell me that no other teenager in USA has ever had the same favour extended to her? let of easy for some reason? just because paris is a celebrety and some other teen is not everybody wants to crucify paris. It really was not her fault that she was born as a millionare.

quintoncoert 131 Posting Whiz in Training

Is there any way that I can recast my vote? I am an atheist too so I have no "God's alone is right to create/alter life" but I do have a problem with embryonic stem cell research. I voted before I knew all the facts.

quintoncoert 131 Posting Whiz in Training

Sorry for only replying now. But our time zone is two hours before greenwhich meridian time, so do the math. RSA means Republic of South Africa. It is a country on the southern tip of Africa.

quintoncoert 131 Posting Whiz in Training

I am afraid that I dont know much about stem cells harvesting. How do they harvest it in adults? And does the adult actully have to die?

And why can't stem cells be cloned? Is there a scientific limit there akin to the speed of light or is it just beyond current human knowledge? Because if stem cells can be cloned then humans can create an unlimited supply without harming blastocysts or adults.

Dont get me wrong. I am all for stem cell research and I know all about how the immune system rejects what it does not consider its own. Not to mention the severe shortage of donnors. But like I said. Killing in order to save life? Many pilots and sailors in world war two had also been saved by the data from the Nazi icy cold water research...

quintoncoert 131 Posting Whiz in Training

If it wasn't scary it wouldn't be fun. It's starting to get to be not as much of a thrill for me as it used to be. Don't get me wrong, they're still fun, I just want something bigger, like skydiving or bunjee jumping where they tie your feet together and you jump off of something really high. Something like that would really get my adrenaline pumping.

lol. I am just reminded of this really cute radio advertisement we have here in RSA. If it could just be moved passed the proof of concept stage it would satisfy your wants greatly. Basically its about this guy who goes for his first bungee jump and the conversation goes something like this:

Three, Two, One... and BUNgeeeee....

NOOOO! Wait? Wait Wait wait Wait!!!(in a very scary voice) Isn't there supposed to be a cord around around my legs or something?!

(and then this guy replies in a very sure voice complete with Australian accent(more so since my country men thinks the Australians are too cocky!))
No mate, we're going wireless!

WolfPack commented: Good one. +8
quintoncoert 131 Posting Whiz in Training

I am all for stem cell research but only if the stem cells can be cloned.

I never realised that a blastocyst has to be destroyed in the case of embryonic stem cell research.

My biggest reason for supporting it has always been because it increases the human race's pool of knowledge but I most certainly dont want that knowledge at the expence of potential babies. Not even if those babies are created in a test tube.

The Nazi did similar experiments round about world war two. They tried to figure out how long humans can survive in frozen water by simply throwing a living human into it and recording how long it takes for him to die. Although the information so obtained has saved lives and will probably continue to do so it is wrong and destroying a blastocyst for its stem cell is no better I believe.

I am however all for splicing and otherwise altering human DNA. Even cloning. For example diseases like AIDS can be taken down a notch if we can splice our Inducer-T4 cells( cells which activates the res of the imune system and the only target of the HI virus).