samaru 145 a.k.a inscissor Team Colleague

I've just started learning c++,so i want to take any challenge concerning c++.My question is where do i start when drafting a game program.Please ppl help me out.

What type of game? The more complex your game is, the more you'll need to organize your code, so I highly recommend learning object oriented techniques. Please be a little more speficic on what you have in mind. The simplest game I can think of that you can create is a "Guess The Magic Number" Game where you generate a random number, go into an infinite loop, and break out of the loop when the user guesses the generated random number.

samaru 145 a.k.a inscissor Team Colleague

I'm still wondering why they named it "mono." I know "mono" means monkey in Spanish, but in English, one of its meanings is mononucleosis. That's like saying Microsoft came out with a new framework called Cancer.NET. (Microsoft haters will have a ball with this pun. LOL.)

samaru 145 a.k.a inscissor Team Colleague
samaru 145 a.k.a inscissor Team Colleague

Yes, unfortunately ColdFusion does not seem to be popular in this community. I'm very disappointed because it's my favorite web language! Doh! Anyways, as far as a Delphi forum, I actually think it could get more posts than ColdFusion. The language Delphi/Pascal has been around longer and has a greater community. Not compared to the other ones we have though. I think if we see more of a demand, then yes, Dani should create the forum.

samaru 145 a.k.a inscissor Team Colleague

about strawberry bubblegum

samaru 145 a.k.a inscissor Team Colleague

gag --> cough

samaru 145 a.k.a inscissor Team Colleague

I suggested a contest involving magazine covers but not too many people seemed interested. I think we would get more people to participate if the forum covered computer graphics as well. Ah, c'est la vie.

samaru 145 a.k.a inscissor Team Colleague

Hi! I just registered yesterday, so I want to greet all members and moderators. :cool: I also have a question, how do I write a small, simple HTML script for a coupon (I can use a jpeg image and link it to the script if it would be easier) that will redirect a person to a particular page in my website where they could ask for a free offer? I want to post that coupon on freebie sites and other websites. I have ACE HTML 5, am a total novice and I'm trying to learn. Have put together two things and they worked out, but out of that, nothing.
Thank you for any advice!

I think what you have in mind is called a banner ad. Where in the banner you have info about your site and when they click on it, it takes you to your site. Is that what you have in mind? Similar to what this forum has on the upper right side?


[img]http://www.daniweb.com/ads/adview.php?what=zone:3&n=a9f4413a[/img]


If this is the case, you'd have to create your own image (jpg or gif) that looks like that, and wrap it in the code cscgal provided.

samaru 145 a.k.a inscissor Team Colleague

gigantic thermonuclear suppository

samaru 145 a.k.a inscissor Team Colleague

AIDS --> Yucky

samaru 145 a.k.a inscissor Team Colleague

I'm curious to know what else Microsoft will do if they know you're using a pirated copy. It have to be millions of people running illegal versions, so I'm sure they won't track them down. Anyone have any leads on this?

samaru 145 a.k.a inscissor Team Colleague

the site must be down for the moment.
Geocities does that, and some people complain, but then I say 'geocities or nothing' and I think they agree.:lol:

Try using 1asphost.com. They have more bandwidth.

samaru 145 a.k.a inscissor Team Colleague

who --> what?

samaru 145 a.k.a inscissor Team Colleague

chocolate covered pitchfork

samaru 145 a.k.a inscissor Team Colleague

Vegeta --> Super-Saiyan

samaru 145 a.k.a inscissor Team Colleague

jumped in lava

samaru 145 a.k.a inscissor Team Colleague

affirmative --> Okee-Dokey

samaru 145 a.k.a inscissor Team Colleague

That's to escape apostrophe signs usually in query strings. If you have a query string, let's say something like this:

name = "Lori"
sql = "select * from customers where name = ' " & name & " ' "

There won't be a problem. The sql statement, after it's been merged with the variable name will look like this:

select * from customers where name = ' Lori '

Which is a perfectly legit SQL statement. BUT if you had something like this:

name = "O'Neil"
sql = "select * from customers where name = ' " & name & " ' "

It would crap out because of that apostrophe sign in O'Neil. So the SQL statement will look like this:

select * from customers where name = ' O'Neil '

Which the database will think the apostrophe after the O is the end of the SQL statement and will wonder about the trailing "Neil" - how do you fix this? You escape the apostrophe sign by double it. So it would look like this:

select * from customers where name = ' O''Neil '

And that's why that replace function replaces single apostrophes with doubles.

samaru 145 a.k.a inscissor Team Colleague

Like Drew just said, it's impossible to do. If you want security, protect each page by creating sessions based on id/password.

samaru 145 a.k.a inscissor Team Colleague

So you want a query that returns zero results? If so, does that SQL statement have to remain unmodified? Please be a tad clearer. Thanks!

samaru 145 a.k.a inscissor Team Colleague

I have the following checkbox on my site but it dosen't work, tried to solve it before but still having trouble.

this is the code from my first page

<P>Do you want to take pets with you?
<INPUT type=CHECKBOX name = "PETS" value = "Y">Yes<br>

This is the code from my second page

IF strPETS = "Y" THEN strSQLLOC = strSQLLOC & " AND fldPETS = 'Y' " ELSE strSQLLOC = strSQLLOC

Please help!!!

You're not capturing the value from the HTML form's checkbox. If you have a form with a checkbox name "PETS" then in your ASP script, you have to use Response.Form("PETS") to capture the value "Y" - this is only if the method of the form is "POST" - anyways, try this:

<%
 
IF request.form("PETS") = "Y" THEN 
strSQLLOC = strSQLLOC & " AND fldPETS = 'Y' " 
response.write("YOU CHECKED THE BOX")
ELSE 
strSQLLOC = strSQLLOC
response.write("BOX NOT CHECKED")
end if
 
%>
samaru 145 a.k.a inscissor Team Colleague

No problem buds. Glad I could help. Now I have to get to work on a new avatar and sig. My account here is currently digitally naked.

samaru 145 a.k.a inscissor Team Colleague

Depends what mood I'm in or what I'm doing. So when I'm...

Programming.....Techno/Dance/Trance/Eurobeat
Doing Graphics...........Jazz/Blues
Doing Analytical Stuff (like HW)...... Classical
Working Out....... Rock/Pop

samaru 145 a.k.a inscissor Team Colleague

As you're writing your post, and your message is getting bigger and bigger, select all (CTRL+A) then copy (CTR+C). This will copy your message into the clipboard. This is in case you've typed a long post, then accidently close the window, or go to a different web site accidently before you hit submit. It's happened to me many times!

samaru 145 a.k.a inscissor Team Colleague

Too Many Acronyms --> Networking

samaru 145 a.k.a inscissor Team Colleague

It's not fully done yet give me another week or so exactly just computers haha I am a geek man. I will be posting more and more pictures as the time flys. Stay tuned.

Sounds good. So...umm... are you a c++ expert yet? ;)

samaru 145 a.k.a inscissor Team Colleague

May I ask, what is more powerful. A colleague or a moderator? And what other levels are there? I've seen a marsupial moderator as well.

A moderator is more powerful. Colleagues have access to a forum called "Community Helpers" where they can contribute ideas to make the forum better. They can share thoughts and talk among other colleagues, all levels of moderators, and the Admin (Dani). A Colleague can't modify posts though. Moderators can. Also, this colleague forum is invisible to regular users.

Moderators have control over certain forums. Super Moderators can control any forum. By "controlling" I mean deleting, moving, editing posts, banning, warning, etc. Their power is still controlled by the Admin though. The Admin, of course, has ultimate control of managing the entire forum, its options, users, database information, etc.

These were the rules before I left the forum I don't know if they have changed since I came back.

samaru 145 a.k.a inscissor Team Colleague

Naruto drags as much as other Animes in my opinion. Every episode is a cliffhanger, AH!! I just saw 84 and it was awesome! Damn, I really love this Anime way too much!

samaru 145 a.k.a inscissor Team Colleague

Where are you? Where are your friends? All I see are computers and a few sigs. :cool:

samaru 145 a.k.a inscissor Team Colleague

Err, sorry guys, I think I've figured it out already.
Is it possible for me to do the data validation in home.html after the user presses SUBMIT

Yes, but you'd have to use JavaScript to read the values of the text field. Even if you did this, it would not be secure enough because I could create my own form and view it from my home computer, submitting directly to your process.asp, which leads to my next answer...

any errors must be corrected before submitting the form again to process.asp?
P.s: process.asp is another pop-up window.

Why don't you validate within process.asp? It's safer.

Error Type:
Microsoft JScript runtime (0x800A1391)
'service' is undefined
/chm/Calculator/process.asp, line 39

This error is strange. Are you using VBScript for your ASP page? If so, why does it give you a JScript runtime error? Do you have JScript running by default rather than ASP? Just curious.

samaru 145 a.k.a inscissor Team Colleague

Yeah, I DBGT was a stinker to me. DBZ rules. Right now the only two Animes I'm following are Naruto and Initial D Forth Stage.

samaru 145 a.k.a inscissor Team Colleague

Comics --> Marvel

samaru 145 a.k.a inscissor Team Colleague

Do kids even play tag or hide-and-go-seek anymore? I remember playing those when I was younger. Now it seems like it's all PS2 this, Gamecube that.

samaru 145 a.k.a inscissor Team Colleague

What's up all you people. Welcome aboard! Feel my wrath, bwuah hahaha!

samaru 145 a.k.a inscissor Team Colleague

Infamous, you have better things to do than waste your time doing someone else's homework.

samaru 145 a.k.a inscissor Team Colleague

wow. 2 bytes....post code for us? :)

or at least me. i have no idea how you did that. lol

All it was was a call to int 19h (I think it was 19h). There was no need to put code to exit the program because it rebooted the computer, thus no exit code needed. I did it using debug.exe creating a COM file. I don't know if would work in W2K though. Never tried it.

samaru 145 a.k.a inscissor Team Colleague

losers --> winners

samaru 145 a.k.a inscissor Team Colleague

came --> gone

samaru 145 a.k.a inscissor Team Colleague

Try to do as much as you can, and post code here. Someone will try to help you. You asking someone to write a whole program for you for $25, is not enough, no matter how compelling your story might be. If you're really desperate, try going to http://www.rentacoder.com/

samaru 145 a.k.a inscissor Team Colleague

I am trying to learn the .net framework and I am stuck on the issue of connecting via Webmatrix to an Win Access database. :cry:
Basically I want the user's input to be entered automatically into the according column in the database.
Furthermore I would like to create some form of restricted administration of the database (by password) and I would like to know how and if this must be done within the webmatrix environment or if Win Access enables that function.
Please help me!!:rolleyes:

chika100, please be more descriptive when you name a thread. Here are the rules when posting: http://www.daniweb.com/techtalkforums/announcement.php?f=18&announcementid=2

Please obey the rules. You'll get better responses that way. You don't want to be warned or banned by not obeying them. Thanks!

On that note, enjoy your stay! I'm sure someone will be able to help you.

samaru 145 a.k.a inscissor Team Colleague

Dani, I can't believe you did chem. You should've join me in physics.

samaru 145 a.k.a inscissor Team Colleague

www.cplusplus.com but nothing is better than a book. SAMS teach yourself c++ in 24 hours is awesome. but go through the lessons really slow. also, nothing compares to a class when learning a language... staring at code wont help you because even if you know a command like "cout" you still wont know what it means. (standard outputting that refers to the computer screen ;) )

I agree. It was a kick ass book. I like Liberty's explanation of things up until complex abstract data types.

samaru 145 a.k.a inscissor Team Colleague

It's not a maintream language. If we were to go with another language, I would go with Python, Pascal, or even heck, Assembly. No Ada though. This is the second time I actually hear it of it. Sorry!

samaru 145 a.k.a inscissor Team Colleague

Is there any possibility of getting the best of both worlds? (geeky and emotional) Hell at this point I'll for either as long as she can put up with a passion for all things Star Trek. (among my other obsessions) :cheesy:

Ok I admit I'm way off topic here.

In all honesty, I wouldn't want a geeky, techie girl. I deal enough with computers during the day, that I don't want it to be the topic of conversation when I'm not near them. I guess I don't have the passion for computers as much as some of you guys.

samaru 145 a.k.a inscissor Team Colleague

No offense to all you guys but I think people should really know their stuff about religion before commenting on it. I've heard so many people say, "oh there's no God" or "the Bible is all fake." To me it's pretty ignorant. That's like me saying "laws regarding relativity are nonsense and Einstein was full of it" without EVER taking at least 2 years of physics. Not enough people know about religion enough to comment on it.

samaru 145 a.k.a inscissor Team Colleague

Thought --> Idea

samaru 145 a.k.a inscissor Team Colleague

that smelled stinky

samaru 145 a.k.a inscissor Team Colleague

But ,always a but.......I was taking a look at your home page, I read the following,

Linux still beats it as a server OS though. For recreational or Windows development, Windows wins.

You were joking right?

Nope. Prove me wrong. I'm 101% confident that if we took a wordly poll, they would agree with me. You might throw every reason in the world at me why you disagree, but you're just one person. However, I know you're probably as eager to "let me have it," so why don't you start with the second sentence, which was:

For recreational or Windows development, Windows wins.

samaru 145 a.k.a inscissor Team Colleague

I'm glad you noticed that too. I'm never surprised how much you can get a person to do something for you by making it appear that they're greater than you.

samaru 145 a.k.a inscissor Team Colleague

My definition of geek is me in my worn down striped shirt, greasy hair from no shower in three days, and eyes sunken 3 inches into your head from hours of frustration trying to learn the GTK API for C.

Sounds just like me during my third year of computer science.