182 Posted Topics

Member Avatar for redZERO

use regular expressions Look here: [url]http://ca3.php.net/preg-match-all[/url]

Member Avatar for digital-ether
0
127
Member Avatar for mjmythili

You can render it as text. The following link shows how to render text in glut: [url]http://www.lighthouse3d.com/opengl/glut/index.php?bmpfont[/url] You can use sprintf to convert numbers into strings: [url]http://www.cplusplus.com/reference/clibrary/cstdio/sprintf.html[/url] Should be all you need to start displaying any text you want ^^

Member Avatar for FireNet
0
143
Member Avatar for Mouche

You could try factory methods: [url]http://en.wikipedia.org/wiki/Abstract_factory[/url] For a game you could have an array/vector like std::vector<bcAbility> hero_ability; The base ability class [code] class bcAbility { string AbilityName() void Do() } [/code] Having a factory class would allow addition/removal/modification of any number of abilities. Actual abilities would be derivatives of the …

Member Avatar for Grenwood
0
448
Member Avatar for djcritch

If you need multiple comments, use 2 tables. One for the program details, and one for the comments. Use an id tag (preferably the unique key from the program details) [code] CREATE TABLE tvprograms ( p_id int(11) NOT NULL UNIQUE AUTO INCREMENT, p_name char(40), p_desc tinytext, p_misc tinytext ); CREATE …

Member Avatar for jyshr
0
108
Member Avatar for scottholmes

use the function mysql_escape_string(); It will make sure all the characters are escaped and safe to use in a mysql query escaping a character is adding a \ in front of a character. Eg: ' Hope that fixes your problem.

Member Avatar for scottholmes
0
131
Member Avatar for web_master

If you have a domain on a web host goto your control panel in your hosting account and look for a button/link/panel titled subdomains. Most control panels would just have you enter the name of the subdomain and click ok to set one up.

Member Avatar for FireNet
0
140
Member Avatar for terminator7879

O.o The balance , profile etc can be part of a member table, and the sign up/upgrade areas can be scripts that modify the table when signup/payment is received. If you are looking to make a pay to click site like bux or adbux then it's probably best you hire …

Member Avatar for FireNet
0
102
Member Avatar for eranga262154

[QUOTE=eranga262154;490768]Thanks, How about this way... [B]string MyStr( (const char*)MyCStringObject );[/B][/QUOTE] Old style cast. Read: [url]http://msdn2.microsoft.com/en-us/library/ms174288(VS.80).aspx[/url] [url]http://msdn2.microsoft.com/en-us/library/awkwbzyc(VS.80).aspx[/url]

Member Avatar for eranga262154
0
273
Member Avatar for Taffd

Simple. Take the text of the article as a string, crop the string to a certain size, append "......" to the string and display it. [code] <?php /*################################################################ # # # You pass the script a string, a length you want the string # # to be and the trailing …

Member Avatar for Taffd
0
100
Member Avatar for emmanueloladele
Member Avatar for Caldrifter

8800GTS HAHA.... you dont need to worry about frame rates in the near future. Just make sure v-sync is off in the games and they should run fine. If you are playing multi player games, dont run p2p software in the background. Keep your computer clean, dont have a ton …

Member Avatar for FireNet
0
126
Member Avatar for vardhani

Oh, Are you asking how to set custom error pages? Well, .htaccess or by using the control panel. Look in you CP for custom page or custom error pages.

Member Avatar for FireNet
0
189
Member Avatar for emmanueloladele

Hi, You should always look on the net for tutorials first. Then there's the php documentation pages. Also checkout these: [url]http://curl.haxx.se/docs/[/url] [url]http://www.php.net/curl[/url] However if you do have to get a book checkout the following places: [url]http://www.blueportal.org/[/url] - Tons of IT books [url]http://www.ebookshare.net/[/url] - Wide selection of ebooks [url]http://avaxsphere.com/[/url] - books, …

Member Avatar for FireNet
0
158
Member Avatar for scru

C++,Java Math GFX - (OGL,DX) 3D - (basics, rendering, lighting) Physics - (basics, some API) Shaders - (GLSL,HSL, CG) Engines - (pick one or 2) Networking - (some APIs) Basically you should know a bit about everything.And concentrate on 2 or 3 areas. Also try making a game yourself. That's …

Member Avatar for FireNet
1
150
Member Avatar for Roebuc

Let me warn you .... modding is not the way to go if you have no previous experiance with game programming. Sure, you will be able to get some fancy effects to the screen, but mostly you would be just twiddling with settings... and that's not really making a game. …

Member Avatar for FireNet
0
87
Member Avatar for Ruzhyo2000

[url]http://tvision.sourceforge.net/[/url] [url]http://www.trumphurst.com/toolkit.phtml[/url] [url]http://www.usinglinux.org/devel/rhtvision.html[/url] O.o I would think learning a GUI API would be easier (lots of choices, lots of documentation etc).... and look better. You will be able to accept text input via a GUI too ;)

Member Avatar for FireNet
0
75
Member Avatar for mugenoid

I agree with Duoas. If you want delays used timed functions like delay() or sleep() or whatever else. If you are doing a txt game ... the screen can be cleared using clrscr() (conio.h) If you want a proper screen under DOS, look up Mode13h on the net . You …

Member Avatar for FireNet
0
749
Member Avatar for FireNet

Example: Navigate: PHP Code Library > PHP > Sub1 > Title V Any ideas, tutorials no how to do that using php & mysql ? each category should be able to have items and more categories under it. It should use a single table to store all the category titles. …

0
87
Member Avatar for dev.cplusplus

First get a C++ book, preferably one that covers the C++ standard ... not a tutorial book .... more like one which covers the ISO C++, with all the details on various aspects of the language. C++ Primer might be a good book if you just got you programming skills …

Member Avatar for Ancient Dragon
0
101
Member Avatar for FireNet

I am trying to a page load an external website's page within a div, but it's just not working.... Anyone got any ideas? I do know it's possible: [url]http://orangoo.com/labs/GreyBox/[/url] -- loads google.com in a popup Here's my code [code] <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="s1/style.css" …

Member Avatar for FireNet
0
205
Member Avatar for lhay

Oh common now,that's simple stuff.Try what you can and post your code here,we will help you out in your problem area.(No homework solving handed out :D)

Member Avatar for preeti madan
0
109
Member Avatar for Fromethius

I am not sure if you are using TestCooperativeLevel() correctly .... [URL]http://msdn2.microsoft.com/en-us/library/microsoft.windowsmobile.directx.direct3d.device.testcooperativelevel.aspx[/URL] [quote] If the device is lost and cannot be restored at the current time, [B]TestCooperativeLevel[/B] throws a [B]DeviceLostException[/B]. This is the case, for example, when a full-screen device loses focus. If an application detects a lost device, it …

Member Avatar for FireNet
0
157
Member Avatar for Fromethius

Dont have any code atm .... But you could look to catch the window's minimize message and skip your render & update parts of your game. Then catch the restore message, reset/reload any resources you need (images, timmer, models ect). ... that's how I used to do it. I use …

Member Avatar for FireNet
0
86
Member Avatar for vista11

[url]http://www.ea.com/official/moh/pacificassault/us/diary.jsp[/url] [url]http://www.gamesmodding.com/?game=42&type=2[/url] The SDK [url]http://www.3dgamers.com/news/more/1096480363/[/url] If you really want to mod a game try HL2.... there's a lot more info and tutorials available on the net for it

Member Avatar for ahnonamis
0
89
Member Avatar for freddypyther

Well if you are going to use C++ and OGL/DX then there is going to be a bit of code to write. OpenGL would be easier as it's less confusing and has a cleaner api. If you just want to show off molecules and not really interested in making a …

Member Avatar for jwenting
0
115
Member Avatar for Braveheart

Also it you are going to be a 3D artist show off high res models when ever you can. Also have a portfolio site or something which shows image previews first before linking to the full images. Looks a whole lot more professional. It is also a good idea to …

Member Avatar for FireNet
0
70
Member Avatar for BaD-AiM

Game programming requires you to have nice base in whatever language you choose. Even if you dont know everything, if you know the basic concepts and a working knowlwdge of various APIs then things will be much easier for you. If you are just beggining to program, you will soon …

Member Avatar for PirateTUX
0
267
Member Avatar for TJW

Oh, my poor child :-), [just kidding]. If you have an array like array[3] you can use only 3 elements i.e 1. array[0] 2. array[1] 3. array[2] If you go beyound that you will get errors as you would be writing over memory used by some other program. so array[3] …

Member Avatar for Dave Sinkula
0
194
Member Avatar for FireNet

K, It's fairly easy to use a ostringstream object or a derived class to output text like a normal stream class like cout. Eg. [code] class console: public ostringstream { public: void Render() { std::string buff = ostringstream::str(); //Some code to put it to screen //Write it to a file …

Member Avatar for FireNet
0
539
Member Avatar for fitfool

Use the Package Dowload utility to get FMod. Goto Tools->Check for Updates/Packages.. You can find a package for FMOD on one of the download sites. Look under the Audio category. You can the goto File->New->Project Choose the Multimedia and select the FMod sample project. Look at the code, it's pretty …

Member Avatar for fitfool
0
125
Member Avatar for mina1984

hmm.. if the date is in the month of Jan or before/on Feb 29 it will not matter whether the year is leap or not. Now we know that Jan,March,May,July,Aug,Oct,Dec has 31 days and the rest 30 days with the exception of Feb which can have 28 or 29 days. …

Member Avatar for mina1984
0
110
Member Avatar for tyczj

Try using the std::vector template class. [code] std::vector<int> my_int_array; //Add elements my_int_array.push_back(10): my_int_array.push_back(2): //Display all the numbers for(int i=0;i<my_int_array.size();i++) { cout<<my_int_array[i]; } //Deletion of position i :P my_int_array.erase(&my_int_array[i-1],&my_int_array[i]); [/code] If you can only use pure arrays, then you will have to learn about dynamic memory allocation to modify the size …

Member Avatar for tyczj
0
145
Member Avatar for jenyin84

Yea,we aint answering machines nor auto homework doers.We help out solving difficulties. :),Have fun(Btw by welcome)

Member Avatar for Dave Sinkula
0
774
Member Avatar for cluna

How am I supposed to know what you can do?(Just kidding) Yes you can in C, C++ and ASM.(ok some other languages also).Do a few searches on [url]http://www.google.com/[/url] You will find something.

Member Avatar for chiwawa10
0
188
Member Avatar for Dani

Borland free C++ compiler i.e version 5.x does not come with and editor or and IDE. But I heard they did release version 3.x compleately free along with the IDE.Go get that one if you can. [url]http://www.borland.com/[/url]

Member Avatar for tamilblast
0
732
Member Avatar for Merrissey

char chr = 'a'; cout<<chr; //will show the char cout<<(int)chr; //will show the ancii code chr = 232; cout<<chr; //will show what ever 232 repesents cout<<(int)chr; //will show the ancii code i.e 232

Member Avatar for Dave Sinkula
0
242
Member Avatar for apurva agarwal

Hurry up?,where ?? To get plenty of that stuff got to [url]www.google.com[/url] or search the C++ fourm and you will find one.

Member Avatar for Narue
0
338
Member Avatar for MaxC

Choice ( A ) is the most accurate.There are more funtions getline can peform.

Member Avatar for azeembutt
0
283
Member Avatar for FireNet

[code] Mode13h The Beginning of 3D/2D Graphics [/code] [B]Intro[/B] Lots of people want to know how to do graphics but find most APIs like OpenGL, DirectX etc too complex for a beginner, especially as they involve GUI code which follows a different approach from the simple dos programming Here, I …

Member Avatar for 1o0oBhP
0
2K
Member Avatar for freesoft_2000

*Yawn*, me too.Who cares ???.We will have to use what ever the policy making companies shove at us.Yup it's quite too the OpenSource is only open before money comes in.It's like water,can dissolve anything given enough time.Brrr <b>Resistance is futile.</b> Nah......,You can do that till you are dead :D,and even …

Member Avatar for alc6379
2
2K
Member Avatar for blackhawk

Are you including stdlib.h in your source? or you could try using the delay() function... win16 version? what sort of comp are you using?

Member Avatar for vegaseat
0
298
Member Avatar for FireNet

[code] Graphics In Pixel Part II B 'Realization of an Enigma' [/code] Introduction ------------ Life's unfair, writing good tutorials take a lot of time, not typing it, but thinking up the content does. Life's fun too, I had quite a good time learning new stuff. My hobby at present is …

Member Avatar for FireNet
1
252
Member Avatar for hexonflux
Member Avatar for alc6379
0
494
Member Avatar for mendrif

No way.You will go crazy if you process on char at a time.Just read a whole line into a char array and then encode it.I will give you a very simple encryption algorithm called XOR. [code] void XOR(char *message,char *pass) { int p=0; for(int i=0;message[i]!=0;i++) { message[i] ^= pass[p++]; if(pass[p]==0)p=0; …

Member Avatar for mendrif
0
168
Member Avatar for Robin Low

yea,change you nick.It's hard to think of a number as a human you know. New to the internet?I agree with kc0arf it is a very bad idea to let your details float around.People can/will put it to misuse(especially on the internet[Take it from a guy who has gone real deep …

Member Avatar for Narue
0
150
Member Avatar for hfick

&val means address of the varialble var *p (if is a pointer (int *p;)) means value at address pointed at by p.Changes this will change the variable it points to. int val = 1; p=&val; val+=10 cout<<val<<" *p="<<*p; //output is the same for both (*p) += 4; //changes the value …

Member Avatar for Narue
0
164
Member Avatar for manos

Try [url]http://www.google.com[/url] and search for writing compilers.You will find loads of solid info on that.Also search for Lexical Analisis.

Member Avatar for Waskar
0
156
Member Avatar for msbopape

Did you check the C++ tutorial forum here? Link:[url]http://www.daniweb.com/tutorials/6811.html[/url]

Member Avatar for FireNet
0
93
Member Avatar for mishu1516
Member Avatar for dooda man

Search the forum,I remmember typing out an entire function to get passwords while displaying *'s and supporting backspace too. [i]In a hurry gota go...[/i]

Member Avatar for FireNet
0
134

The End.