PixelFormat=SetPixelFormat(hDC,pixelFormat,&pfd) MUST BE EXPANDED TO INCLUDE ANTI-ALIASING!! If (PeekMessage(&message,hWin,0,0,PM_REMOVE)) Void TOGLWindow::setFullscreen(int w,int h,int d)ĭm.dmFields=DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL ĬhangeDisplaySettings(&dm,CDS_FULLSCREEN) LoadCursor(NULL,IDC_ARROW), // Cursor handle GlFrustum(-aspect,aspect,-1.0f,1.0f,0.1f,200.0f) īool TOGLWindow::registerWindow(HINSTANCE hInst) **** IF I COMMENT OUT THIS BLOCK, IT COMPILES ****/ Return DefWindowProc(hWin,uMsg,wParam,lParam) Window->setFullscreen(window->width,window->height,window->depth) SetWindowLong(hWin,GWL_USERDATA,(DWORD)window) Window=(TOGLWindow *)(((LPCREATESTRUCT)lParam)->lpCreateParams) TOGLWindow *window=(TOGLWindow *)GetWindowLong(hWin,GWL_USERDATA) LRESULT APIENTRY winProc(HWND hWin,UINT uMsg,WPARAM wParam,LPARAM lParam) Throw "TOGLWindow::exception(66): Unable to create TOGLWindow" TOGLWindow::TOGLWindow(const char *title,bool fs,int w,int h,int d)ĭwStyleEx=WS_EX_APPWINDOW | WS_EX_WINDOWEDGE ĪdjustWindowRectEx(&windowRect,dwStyle,FALSE,dwStyleEx) ĭwStyle | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, Static bool registerWindow(HINSTANCE hInst) TOGLWindow(const char *title,bool fs,int w,int h,int d) #define TOGLWINDOW_CLASS_NAME "TOGLWindow"įriend LRESULT APIENTRY winProc(HWND hWin,UINT uMsg,WPARAM wParam, I'd like to keep using my Borland compilers. I didn't see a "C++ compiler" newsgroup though, so help is still invited.
![borland c ide borland c ide](https://www.softwaretestinghelp.com/wp-content/qa/uploads/2020/09/3.Codeblocks.jpg)
I tried to compile my project by hand, through the command line, and it crashed my system the same as within the IDE. Oh, I just tested a theory (and had to reboot), and it's not a problem with the IDE.but the compiler.
BORLAND C IDE CODE
The code is given below, but I'd just like to ask if anyone knows a way to get around this? I'm sure I can rewrite the code to make it work, but this is ridiculous. Well, I can crash my system reliably, reproducably with the following project of 3 files, and furthermore, can even fix the code by commenting just a few lines. :)īut the reports all say the freezes are random, and with heavy projects.20 or more files. So already, I'll probably be laughed off this newsgroup.
![borland c ide borland c ide](https://sangams.com.np/wp-content/uploads/2018/03/turbo-c.png)
BORLAND C IDE WINDOWS
I happen to be running Borland C++ Builder 6 on an AMD 64 laptop running Windows XP.
![borland c ide borland c ide](https://1.bp.blogspot.com/-idRrjGCQEJY/VCsdsGN0d0I/AAAAAAAAAsA/BylmvJbiA4A/w1200-h630-p-k-no-nu/Turbo%2BC%2B%2B%2B3.0.jpg)
Secondly, I have read the reports about the Borland C++ Builder 6 (and 2006) having random freezes under Windows XP on AMD 64 chips. First, let me apologize for the length of this post.