View Single Post
  #4 (permalink)  
Old 7th August, 2006, 02:41 AM
MrSeanKon's Avatar
MrSeanKon MrSeanKon is offline
OcBible Creator
 
Join Date: June 2005
Location: Where the streets have no name
Posts: 766

Let's add a button in interface:
You must click on toolbox icon:

http://www.aoaforums.com/forum/attac...1&d=1154936407

Then move your mouse in form area and click again:

http://www.aoaforums.com/forum/attac...1&d=1154936412

You will see a button in interface.
Double click on button so the Visual Studio recognizes an event and add this code for example:

http://www.aoaforums.com/forum/attac...1&d=1154936624

---> SOS WARNING!!!! <---
In C when you create an array the index starts from zero and stops up to n-1.
GKR I hate this issue cos I started programming with Pascal and FORTRAN 14 years ago.
Therefore I follow this idea in my routines I mean when I create an array e.g. OcBible[101] I store data in OcBible[1], OcBible[2],.......,OcBible[100] instead of OcBible[0], OcBible[1], OcBible[2],.......,OcBible[100]
The zero index element is always BANNED!!!

P.S.
Don't ask me anything about Pascal (OK is dead now Delphi is the new generation) or FORTRAN....
I am not a student anymore so I do not remember anything about these programming languages LOL!
Attached Thumbnails
Guide: Use the internals of OcBible!-photo4_2.png   Guide: Use the internals of OcBible!-photo4_3.png  
Attached Images
 
__________________
Reply With Quote