http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

TheGrumpyProgrammer



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Windows programming globals help



Hello GameProgrammers!

Access Violation...
I'm working with a program (it's not a game, but the knowledge derived
from your superior experience will help me in my next project, which is
a game) in school. It's supposed to draw fractals, like the Julia Set.
After hard struggling I've been able to get a fractal up, only the
visual thing is left. When I generate the fractal, I don't want the
user  staring right into an empty screen so I created a TProgressBar
component in the main window.
(BTW, I'm using Borland C++ Builder v.3)

So, when generating the fractal, I want the progress to be shown on the
component. The thing is: I can't access the component normally from
another unit!
The main form, 'FraktalForm', owns the progressbar 'Progress' so when I
access Progress i write:
  FraktalForm->Progress->Position++;
When I run the program I get an "Access Violation" Error. I have tried
to change the scope of the component and its form but, although the
compiler accepts without question, it all the same end up crashing.

I also get several "Linker Warning: global _algoritm is declared both in
ModuleX and ModuleY". I find the compilers help insufficent.
Also I've made some of the files #include each other, but I added the
lines  #ifndef MACRO  #define MACRO  ...  #endif, to make sure they had
access to each other.

Finally, I'm totally clueless about these problems. And, the program
*must* be finished before Monday next week...
Thankyou for any help in the matter!



David
=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html