[Closed] [SDK] HELP – Creaing an Exporter Modeless Dialog ProgressBar…
I don’t think it’s a very good idea doing it this way at all, it would be entirely possible to delete a node from the scene while it’s being exported.
if ( GetAsyncKeyState(VK_ESCAPE) )
works but not very quickly the export would probably finish before the keypress is registered.
Well, in my case… the export process happens so fast that it’s not practical to think the user could press ESC to abort and the ProgressBar simply flashes briefly before reaching my temporary “end-of-code” MessageBox.
So the inherent progress bar in the status bar or the ProgressDialog class will suit my exporter purposes… and I should be able to use & modify the ProgressDialog class to work with the other exporter’s batch export process (which does take a long time) and the cancel button should be sufficient.
But out of curiosity… I don’t think I set up my Hook Procedure properly according to this article:
http://www.codeproject.com/Articles/1037/Hooks-and-DLLs
…which indicates I should be adding some code to the DllEntry.cpp file the wizard automatically generates in order to handle the Hook procedure I posted. (See his code section on his DllMain).
Thanks Klunk! I will try and implement the class ProgressDialog for my purposes.