Author: S J J
Date: 14:02:51 02/05/06
Go up one level in this thread
On February 05, 2006 at 16:16:08, Tony West wrote:
>What's your type declaration for AlphaBetaPly in main()?
Hi Tony,
I think the problem is fixed! Thanks for the help!
A little more backgroup first ... (once again, since I'm a novice, I cann't
clearly separate what IS important from what isn't).
By engine is a DLL. The function having a problem was in a function that was
being called from another function.
I have not used a "int main()" function. Instead, the function with my
engine is called from the code that interfaces to the GUI that calls my DLL.
My intention had been to make AlphaBetaPly global, so it was declared in the
DLL prior to going to the function that contains my engine. It was declared in
the "pre-engine" function as ...
int AlphaBetaPly;
The following line was added to the first line of my engine ....
int AlphaBetaPly;
After this was done, the AlphaBetaPly variable was being passed correctly!
Not only that, but, my engine (with updates) was able to execute to completion
for the first time.
Would you be able to give added clues about what happened? Why did adding
the line to a function fix the problem when (at least it was intened) it was
declared as a global variable.
Once again, I am an accomplished apprentice hack who has "made" my programs
work. Any additional information you can give me would be greatly appreciated!
Thanks once again, for the help.
Regards,
Steve
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.