Make sure you close the doc before quitting. The C++ code for this would look like:
objDoc.Close(COleVariant((short)FALSE), VOptional, VOptional);
objApp.Quit(COleVariant((short)FALSE), VOptional, VOptional);
BTW, if you want a free Win32 web server that supports transcoding of Word (and Excel) into HTML on-the-fly, check here:
http://badblue.com/helpdoc.htm
Dave