c++builder-2006

Builder C++ calling VC++ class

坚强是说给别人听的谎言 提交于 2019-12-31 05:15:47
问题 I have compiled a Hunspell DLL with VC++ which contains a class... Now I want to call that DLL in Builder C++ 2006 to use its functions...how I can do that? I tried with: typedef Hunspell * (CALLBACK *fpoint)(char *aff_file, char *dict_file); fp pHunspell = (fp)GetProcAddress(handle_Hunspell, "hunspell_initialize"); if (pHunspell) { Hunspell* obj = (Hunspell *)pHunspell("..\hunspelldic\en_US.aff", "..\hunspelldic\en_US.dic"); obj->add_dic("..\hunspelldic\it_IT.aff", "..\hunspelldic\it_IT.dic"

Builder C++ calling VC++ class

女生的网名这么多〃 提交于 2019-12-31 05:15:08
问题 I have compiled a Hunspell DLL with VC++ which contains a class... Now I want to call that DLL in Builder C++ 2006 to use its functions...how I can do that? I tried with: typedef Hunspell * (CALLBACK *fpoint)(char *aff_file, char *dict_file); fp pHunspell = (fp)GetProcAddress(handle_Hunspell, "hunspell_initialize"); if (pHunspell) { Hunspell* obj = (Hunspell *)pHunspell("..\hunspelldic\en_US.aff", "..\hunspelldic\en_US.dic"); obj->add_dic("..\hunspelldic\it_IT.aff", "..\hunspelldic\it_IT.dic"

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,