ubuntu+opengl程式設計(3)--lihn1987(轉載請著名作者,謝謝)先再上代碼#include <GL/glut.h> #include <stdlib.h> #include <stdio.h> /////////////////////////////////////////////////////////// // Called to draw scene void RenderScene(void) { // Clear the
Yesterday , there occurs a error that some application's Icon cann't show normally when Our project install in a long derectory(nearly 256).we find its root cause is that the way by which we test a file's existence 's not correct, that is to
昨天在兩個Application之間使用Event之間使用Event,在Windows 7和 Vista下面會出現接收不到Event的現象。在網路上面尋找了一下發現,必須在建立的Event名字前面加關鍵字“Global” 。在winXP以後的系統中,服務都運行在section之中,但到了vista之後,對服務之間的許可權管理更加嚴格。所以出現了上面的問題。下面是NSDN中的解釋:Kernel Object Name SpacesA Terminal Services server
In our daily work,we sometimes need a window or diaog which have a fixed size.Now i give the way to fullfill this target. If you project is based on SDI or MDI, that is to say you want fix you window size. you can refer to following code: BOOL
I want to cry when i see the latest news from earthquake which occured on 5 ,12. it is also a black day to every chinese people. i believe many people fell obviously shaking ,but we didn't unstand the earthquake is occuring suddenly , when our mean