i think you'd be better off using the c++ code you have in a dll...
especially because you can do object-oriented programming, which is much better and easier for doing neural nets and genetic algorithms...

Filipe