c++builder

Linking fails [ilink32 Error] Fatal: Unable to open file 'TYPES.OBJ'

匆匆过客 提交于 2019-12-04 22:11:42
I have been updating code fomr an old legacy project build using C++ Builder 2010 to compile with C++ Builder 10 Seattle . I have mostly had to change paths, a lot of dupIgnore to TDuplicates::dupIgnore , reimport some components like MSXML and MSMQ etc. First for a bunch of subprojects that the main project uses in the form of bpl's and dll's and finally the code of the main project compiles. But... it fails a linking :P [ilink32 Error] Fatal: Unable to open file 'TYPES.OBJ' I have tried to find info about potential issues and many mention making sure System is supplied in the Unit Scope

Is Embarcadero C++ Builder a good choice as an IDE? [closed]

笑着哭i 提交于 2019-12-04 18:05:32
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . As we are (me and people I work with) more and more frustrated while working with C++ projects 250 000+ LOC in VS2010 sp1 (the slowness of this IDE is just unbelievable), in my company we were talking about migrating our code to some different IDE. We did some research, and a

Convert the Linux open, read, write, close functions to work on Windows

不羁的心 提交于 2019-12-04 17:14:12
The code below was written for Linux and uses open, read, write and close. I am working on a Windows computer where I normally use fopen, fgets, fputs, fclose. Right now I get a no prototype error for open, read, write and close. Is there a header file I can include to make this work on a Windows computer or do I need to convert the code? Can you show how to convert it so it works the same on Windows or at least point me to an online document which shows how to convert it? #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h>

Is the TTimer.OnTimer event handler reentrant?

北慕城南 提交于 2019-12-04 16:56:29
问题 I have a TTimer in my application that fires every 2 seconds and calls my event handler, HandleTimerEvent(). The HandleTimerEvent() function modifies shared resources and can take 10's of seconds to execute before returning. Furthermore, I call Sleep() in the event handler to relinquish the processor at times. I'm not sure how C++ builder's TTimer object works when it comes to calling events, so the scenario I just explained has got me thinking, particularly, whether HandleTimerEvent() gets

How do I solve an unresolved external when using C++ Builder packages?

允我心安 提交于 2019-12-04 12:02:52
问题 I'm experimenting with reconfiguring my application to make heaving use of packages. Both I and another developer running a similar experiment are running into a bit of trouble when linking using several different packages. We're probably both doing something wrong, but goodness knows what :) The situation is this: The first package, PackageA.bpl , contains C++ class FooA . The class is declared with the PACKAGE directive. The second package, PackageB.bpl , contains a class inheriting from

Delphi compiler error E2064 left side cannot be assigned to

老子叫甜甜 提交于 2019-12-04 11:17:43
I inherited a Delphi application and I know nothing about object pascal. It's a BPL that I need to compile into the new version of C++ Builder XE . When I run a make I get the error: E2064 left side cannot be assigned to. I've learned enough obj pascal to know I have a constant that is trying to be assigned a value. But, apparently, you can over ride this behanvior; essentially turning constants into vars by going into Build options under the Delphi compiler and turning on "Assignable Typed constants". I did that and I continue to get the same error. I tried surrounding my code with {$J+} and

Use #pragma pack with #define on Borland C++

无人久伴 提交于 2019-12-04 08:25:13
I am trying to pack some structs with Borland C++Builder (XE6) (in the future: bcc). I am using a library which uses the following construct to create structs: #ifdef _MSC_VER #define PACKED_BEGIN __pragma(pack(push, 1)) #define PACKED #define PACKED_END __pragma(pack(pop)) #elif defined(__GNUC__) #define PACKED_BEGIN #define PACKED __attribute__((__packed__)) #define PACKED_END #endif PACKED_BEGIN struct PACKED { short someSampleShort; char sampleByte; int sampleInteger; } structType_t; PACKED_END The bcc compiler does not like the MSC __pragma , and does not like preprocessor directives

Tag editor component for Delphi/C++Builder

妖精的绣舞 提交于 2019-12-04 07:48:37
问题 I need a VCL tag editor component for Delphi or C++Builder, similar to what's available for JavaScript: e.g. this one, or this one or StackOverflow's own tags editor. Is there something like this available or do I need to make it from scratch? Some specific things that I need are: Editor should allow either scrolling or become multi-line if more tags are present than the editor's width allows. If multi-line, there should be an option to define some maximum height however, preventing it from

Advice for converting a large monolithic singlethreaded application to a multithreaded architecture?

家住魔仙堡 提交于 2019-12-04 07:46:14
问题 My company's main product is a large monolithic C++ application, used for scientific data processing and visualisation. Its codebase goes back maybe 12 or 13 years, and while we have put work into upgrading and maintaining it (use of STL and Boost - when I joined most containers were custom, for example - fully upgraded to Unicode and the 2010 VCL, etc) there's one remaining, very significant problem: it's fully singlethreaded. Given it's a data processing and visualisation program, this is

Border around a form with rounded corner in c++ builder XE

冷暖自知 提交于 2019-12-04 07:45:33
I have made a C++ Builder XE form with rounded corner with the help of the following code BorderStyle = bsNone; void __fastcall TForm1::FormCreate(TObject *Sender) { HRGN frmrgn; frmrgn = CreateRoundRectRgn (0, 0, ClientWidth, ClientHeight,12,12); SetWindowRgn(Handle,frmrgn,true); } It looks cool but the border is missing, I tried many thing but not get good result so please help me to draw border of color RGB(96,96,96) And I want to make whole form dragable. 1. Painting a dark grey border This one's easy, depending on how complex you want the border to look. If you just want an outline in