In C++Builder, I wrote the following code (in Button1Click handler), When I run in debug mode, I get the "Int3 DbgBreakPoint" (Stack corrupted?). This doesn't happen for AnsiSting (Maybe reference counting).
WideString boshluq;
boshluq=L" ";
Is this normal? What do you suggest me to fix this code?
...
I need to find basic WYSIWYG HTML editor component for C++Builder 5 to let users to create some simple text that I will paste into existing HTML page template.
Just a simple support to create links, add images, use headers/bold/italic.
...
In my application (Main form is TTntForm, C++Builder 2006):
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Caption=L"1st caption"; // This works.
Form1->Caption=L"2nd caption"; // But this doesn't work,
// Caption of the form remains "1st caption".
}
What might be the cause of this ...
I've decided I want to get more into native code development with C++. I'm trying to decide if I would be better served using CodeGear C++ Builder 2009 or Visual Studio 2008. I currently use Delphi 2007, so I'm very comfortable with C++ Builder's IDE (its the same as Delphi), as well as the VCL and RTL.
I've never been a big fan of MFC ...
Is there any documentation on cross thread communication in Delphi? How can I send message to the thread that doesn't have a window?
...
I'm trying to automate a build, but the instructions require openning an OCX in Borland C++ Builder and saving it as a TLB. How can I reproduce this process through the command line?
...
How do I build Borland C++ project files (bpr) and package files (bpk) from the command line? Project groups (bpg) are apparently make files and can be compile with make. But bpks and bprs are xml based and the Export to Makefile won't compile with make.
If I put a project in a bpg, make can't seem to find any of the files specified in...
I'm trying to build a makefile and after about 5 seconds, I get this error: "No files names given". what does it mean and how do I fix it?
[exec] Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
[exec] Error E2266: No file names given
[exec] ** error 1 ** deleting paslib.lib
This is being run from a BPG file with the opti...
This seems to be the hardest thing to get help with - there are no books, no useful google results, and borland's own help facilities are far to complicated for me to isolate the answers I need.
I want to make a connection to an already existing microsoft access database using builder.
I want to be able add/delete/read the records. t...
I was given this code a while back. I finally got around to testing it (with some changes to put the files in a different place)...
void AddFiles(AnsiString path/*, TDataSet *DataSet*/)
{
TSearchRec sr;
int f;
f = FindFirst(path+"\\*.*", faAnyFile, sr);
while( !f )
{
if(sr.Attr & faDirectory)
{
if(sr.Name !...
I think you can guess the problem I'm having. I'm inserting filenames in to an sql database in C++ Builder. Some files have an apostrophe in their name. This breaks the sql insert query. the usual way to fix this is to double up and apostrophes you want to be part of the field value.
For example if I want to add 'george's' to field ...
Final question for the night. And apologies for the complete noobness of this.
I have, with help from stackoverflow and google achieved the following...
void __fastcall TForm1::Button1Click(TObject *Sender)
{
ADOCommand1->CommandText = "drop table pictures purge";
ADOCommand1->Execute();
ADOCommand1->CommandText = "create table pic...
What are the required flags for tlibimp.exe to properly mimic choosing
'Component -> Import ActiveX Control -> Install'
in the Borland C++ Builder 5 IDE? I currently pass tlibimp an ocx and -L-, but there is a loss in funcionality when compared with results of importing it manually.
...
The following code demonstrates a weird problem I have in a Turbo C++ Explorer project. One of the three stack objects in D::D() is not destroyed after going out of scope.
This only happens if compiled in release mode, the auto_ptrs a_ and b_ are of different types and the exception thrown doesn't inherit from std::exception. It appear...
I have a bcb5 project group that I am trying to compile with make.exe. Make seems to run fine and generates a call to bcc32.exe, but that fails. Here is the call to bcc32.exe followed by the error.
M:\projects\Project>"D:\Program Files\Borland\CBuilder5\Bin\bcc32.exe" -Od
-H=.\obj_files\vcl50.csm -Hc -Vx -Ve -X- -a8 -5 -b- -k- -vi -c ...
I can import a type library via tlibimp.exe, but when I open up the IDE, the libraries are not in the activex pallete. I can't seem to figure how to get it to install to a particular package either. In the IDE there is an install button in the Import Type Library dialog. How do I do this in the command line?
When I look in at the OCX....
When compiling a makefile with the BCB5 commandline tools, the linker gives me this error:
[exec] D:\PROGRA~1\Borland\CBUILD~1\Bin\..\BIN\ilink32 @MAKE0000.@@@
[exec] Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
[exec] Fatal: Unable to open file 'CONSTS.OBJ'
[exec] ** error 2 ** deleting lib\paslib.lib
I've checke...
I've been trying to build some huge projects in BCB5 for some time now. I want to use the command line tools because it would cut build time by more than 50% (it already takes 4 hours in the IDE). Often, projects will build just fine in the IDE but fail miserably in the command line. I did some digging and discovered this nice little ...
Hi all,
I know this may sound strange, but yes, it's 2009 and I need to write small application using BCB5 :)
The problem is that DynamicArray throws OutOfBound exception when trying to expand it from within worker thread.
I have global variable, let's say
DynamicArray<double> X;
In main thread I check the length of array and I g...
I apologise in advance if this question isn't very specific.
Would it be possible to do the following.
when the application loads
read the contents of a CSV file into a dataset.
while the application is running
operate on that dataset exactly as if it were a mysql or mssql or bde database (run queries. insert records. delete reco...