Hello. I want to call the DrawGLScene() function inside an opengl window found on one of my dialog boxes. The fucntion is supposed to draw a terrain inside the window but all im getting is a black screen. when i integrate a simple opengl code, like one for drawing a triangle, it works (i.e. the triangle is displayed in the window). if we create a separate opengl window for diaplaying the terrain, it works perfectly. my problem is to integrate the terrain code inside a window found inside my dialog box. please help!!
How I copy a file from my local machine to a webserver. How can i create a new folder in the web server on a particular Virtual directory? Please share code to copy/write file in web directory using a URL as destination folder?
the target location to copy file is like "http://www.abc.com/DestFolder/" n Some cases i need to create new folder in the DestFolder also..
Within my WM_INITIDIALOG I initialize a class and open several files which causes a 3-5 second delay with opening my exe. There is nothing I can do about this. At the moment I display a splash screen while the files are being processed. I want to do away with the splash and display a progress bar on the main exe window instead.
The problem is, the main window does not get shown until after WM_INITDIALOG has been finished with. If I try forcing it to display using a ShowWindow() The window is shown but without any of the contols. I'm not really sure what I should do here? I guess initialing the file-parsing-class in another place would be the best solution, but where exactly should I do this?
I still don't really understand the meaning of "worker thread", if anybody would like to enlighten me I would be grateful.
I managed to solve my problem with a little help from my best buddy 'Google'. So for anybody with a similar problem here is what I did. (I hate it when people ask but don't update with their result. We wouldn't need to keep asking the same questions if people just posted the solution to their question)
In WM_INITDIALOG Post a message back to your dialog box in the form of a WM_USER i.e. Postmessage(dlghwnd,WM_USER+0x0100,0,0). Initdialog will proceed with loading the dialog and there will be a new message waiting on the que.
process the WM_USER+0x0100: and initialize your class, or do any of those lengthy operations you wanted to do within Initdialog.
I had copied a **.exe file in a pen disk,and I wish that everytime I attach this pen disk
to pc the **.exe file can auto run.
I know that system can auto run this **.exe file if I create a autorun.inf in the pen disk.
But now I wanna my pen disk driver program can run this **.exe file instead of system.
So my question is:
If it has the possibility to create a user model process in a WDM driver program,that's to
say,if the wdm driver can invoke a user model API?
All the blesses we are enjoy are the fruits of labor,toil,study and self-denial.