c++builder

How can I “unuse” a namespace?

喜你入骨 提交于 2019-11-27 00:59:42
One of the vagaries of my development system (Codegear C++Builder) is that some of the auto-generated headers insist on having... using namespace xyzzy ...statements in them, which impact on my code when I least want or expect it. Is there a way I can somehow cancel/override a previous "using" statement to avoid this. Maybe... unusing namespace xyzzy; Nope. But there's a potential solution: if you enclose your include directive in a namespace of its own, like this... namespace codegear { #include "codegear_header.h" } // namespace codegear ...then the effects of any using directives within

'cannot find or open the pdb file' Visual Studio C++ 2013

被刻印的时光 ゝ 提交于 2019-11-27 00:03:21
问题 I just downloaded VS 2013 Community Edition and I wrote my first app. When I run it it shows in the output section: 'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\Toshiba\Documents\Visual Studio 2013\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe'. Symbols loaded. 'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file. 'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB

How can I “unuse” a namespace?

北城余情 提交于 2019-11-26 09:31:23
问题 One of the vagaries of my development system (Codegear C++Builder) is that some of the auto-generated headers insist on having... using namespace xyzzy ...statements in them, which impact on my code when I least want or expect it. Is there a way I can somehow cancel/override a previous \"using\" statement to avoid this. Maybe... unusing namespace xyzzy; 回答1: Nope. But there's a potential solution: if you enclose your include directive in a namespace of its own, like this... namespace codegear

How to render an openGL frame in C++ builder?

旧城冷巷雨未停 提交于 2019-11-26 06:49:16
问题 I want to initialize an openGL frame inside a form in C++ builder. I tried copying the contents of this given openGL startup code provided here: http://edn.embarcadero.com/article/10528 I tried replacing TForm1 with TFrame1 and then put it in the form design, but it didn\'t work. How to do this properly, any experience with this? 回答1: easy, just use TForm::Handle as window handle ... Here some ancient example of mine in BCB5 ported to BDS2006 : //----------------------------------------------

bds 2006 C hidden memory manager conflicts (class new / delete[] vs. AnsiString)

瘦欲@ 提交于 2019-11-26 00:38:39
问题 I am using BDS 2006 Turbo C++ for a long time now and some of my bigger projects ( CAD/CAM,3D gfx engines and Astronomic computations) occasionally throw an exception (for example once in 3-12 months of 24/7 heavy duty usage). After extensive debugging I found this: //code1: struct _s { int i; } // any struct _s *s=new _s[1024]; // dynamic allocation delete[] s; // free up memory this code is usually inside template where _s can be also class therefore delete[] this code should work properly,