I have a mfc application which I have linked to the engine using the first example. So I added:

ENGINE_VARS *ev = engine_open(NULL);
if (!ev) return 1; // acknex.dll not found
level_load("testlevel.wmb");
while (engine_frame())
{
}
engine_close();

The app runs and I get a blank window. However, the level does not appear. After about 5 seconds the app exits without error or any error messages. The testlevel.wmb is just a cube. I have tried placing the .wmb file in various folders. I have the commercial 6.4 version.

I do already have an mfc dll that works fine under 6.22.

Any ideas? If the engine might be generating an error message like "file not found", is there something more I need to do to get the message displayed? Also, so far I cannot find any log file that was produced.

Thanks...

Any ideas.

I added the log file option to the open_engine() function call. The log file shows no errors. It ends stating that the startup window was opened. It behaves the same whether I put the level name in the open call or if I do not but add a level_load(). I put copies of my testlevel.wmb in a number of different folders surrounding the app folder in case it is a path issue.
I did add a -black to the open_engine and it does work to change the startup window background to black.

During the 5 seconds, or so, that the window is up, the esc key does nothing and the cursor shows as a hourglass when over the window. So perhaps the engine is doing something and times out.

Last edited by Game Wizard; 01/08/06 16:15.