May 18, 2005 20:29
Problems with Brain Coding
Hello.
I've been coding my own brain based off of the brain template but I cannot get my dll file to work. The problem is it compiles fine, but when i change the extension to .brn and move it to the brains folder and select it under the brains menu, it gives me the message 'Error launching brain - does not contain "Brain Main"'.
I basically copied and pasted the template file into a Visual C++ .NET Win32 project and included all the right resources and stuff that came with the example project. My project does contain a "BrainMain" function that takes one parameter of a pointer to a BrainInfo structure, but it still doesn't think my dll file has it. I even chose to "export symbols" in my VC++ project because I think that means the names of the functions are exported to a table of contents or something. Anyways, anyone know what to do?
I've been coding my own brain based off of the brain template but I cannot get my dll file to work. The problem is it compiles fine, but when i change the extension to .brn and move it to the brains folder and select it under the brains menu, it gives me the message 'Error launching brain - does not contain "Brain Main"'.
I basically copied and pasted the template file into a Visual C++ .NET Win32 project and included all the right resources and stuff that came with the example project. My project does contain a "BrainMain" function that takes one parameter of a pointer to a BrainInfo structure, but it still doesn't think my dll file has it. I even chose to "export symbols" in my VC++ project because I think that means the names of the functions are exported to a table of contents or something. Anyways, anyone know what to do?