I have some C code that, when compiled under Linux, works perfectly as a CGI. This same source compiles perfectly with Visual C++ producing an exe.
My question is how do I use this as a CGI in a Windows, Apache environment.
Can I just place the exe in the correct folder, under Apache usually cgi-bin, or do I need to do more to get it to act as a CGI?

Yes I guess , also you might need to change name of the executable in html file.

If I had placed the exe into the correct folder, cgi-bin, in the 1st place I would not have needed to bother you guys as it would have worked as expected.

Once I moved it to cgi-bin folder, where it should have been in the 1st place, it worked perfectly as an exe.