Search found 1739 matches

by rlebeau
Wed Dec 02, 2020 4:06 pm
Forum: Technical
Topic: main form always on bottom
Replies: 2
Views: 62

Re: main form always on bottom

I'm upgrading from a 20 year old C++ builder 5 to 10.3.3. I find the main form is always on the bottom and moving around child forms can put them on top of each other, but main form is always on bottom. I created a simple test with main form and 2 child forms, 2 buttons on the main form execute For...
by rlebeau
Tue Dec 01, 2020 11:17 am
Forum: Technical
Topic: E2113 Virtual function XAudio2
Replies: 4
Views: 93

Re: E2113 Virtual function XAudio2

All of your callback methods are missing the __stdcall calling convention. That is why they are not overriding the IXAudio2VoiceCallback methods correctly. For example, this declaration: STDMETHOD_(void, OnStreamEnd) (THIS) PURE; Gets expanded to this: virtual void __stdcall OnStreamEnd() = 0; You c...
by rlebeau
Mon Nov 30, 2020 6:03 pm
Forum: Technical
Topic: E2113 Virtual function XAudio2
Replies: 4
Views: 93

Re: E2113 Virtual function XAudio2

hello, to manage XAudio I am implementing an interface following the Microsoft specifications. When I compile though, I get the following error message which I can't explain to myself. The error, and that descriptive webpage for it, are pretty self-explanatory on this matter. The declaration of you...
by rlebeau
Mon Nov 30, 2020 5:59 pm
Forum: Technical
Topic: Form not displaying correctly on Laptop
Replies: 10
Views: 750

Re: Form not displaying correctly on Laptop

I have found this code for Delphi. I have tried unsuccessfully to convert it to C++Builder. Can someone please help do this. Try this: const int ScreenWidth = 800; /* I designed my form in 800x600 mode.*/ const int ScreenHeight = 600; #pragma resource "*.DFM" // better: use the constructor's actual...
by rlebeau
Mon Nov 30, 2020 5:50 pm
Forum: Technical
Topic: Form not displaying correctly on Laptop
Replies: 10
Views: 750

Re: Form not displaying correctly on Laptop

The problem is it is another Delphi code example. It seams no one uses C++Builder. Plenty of people use C++Builder. It is just more common to see examples and components written in Pascal because C++Builder includes a Delphi compiler, so code can be written one time in Pascal and used in both Delph...
by rlebeau
Mon Nov 30, 2020 5:47 pm
Forum: Technical
Topic: linkage problems
Replies: 1
Views: 60

Re: linkage problems

void __fastcall TGraphe::Repere_cartesien(TObject *Sender) { TPaintBox *Graph; ... axe_ordonnees=Graph->Width/2; ... Graph->Canvas->Brush->Color=clBlack; ... } I see you declaring a local TPaintBox variable named Graph, but I don't see it being assigned to point at a valid TPaintBox object before y...
by rlebeau
Mon Nov 30, 2020 5:28 pm
Forum: Technical
Topic: Image Update
Replies: 8
Views: 291

Re: Image Update

The image is updated by Image_P1->Bitmap->LoadFromFile(file_name_d); Image_P1->Repaint(); I can cycle through, and put next image as Image_P1 ... This works well, until It develops an out of memory error ... Is there a way to clean / wipe any memory of the image before recycling it ? Are you sure t...
by rlebeau
Mon Nov 30, 2020 5:26 pm
Forum: Technical
Topic: Image Update
Replies: 8
Views: 291

Re: Image Update

Lena wrote: Wed Nov 25, 2020 4:40 am

Code: Select all

Image1->Picture->Bitmap->FreeImage();
Image1->Picture->Bitmap = NULL; 
That will only work in VCL, not in FMX. There is no Picture property in FMX's TImage, and FMX's TBitmap does not have a FreeImage() method (it does have a FreeHandle() method, though).
by rlebeau
Mon Nov 30, 2020 5:23 pm
Forum: Technical
Topic: Android 7 the application crashes
Replies: 2
Views: 173

Re: Android 7 the application crashes

In Android 7 the application crashes after a splash screen (I sent my apk). Crashes HOW exactly? Please be more specific. I don't have an Android 7 phone. Have you tried using Android 7 in any simulators? Does the crash happen in them, too? Where in your code does the crash happen exactly?
by rlebeau
Mon Nov 30, 2020 5:20 pm
Forum: Technical
Topic: Loading file
Replies: 2
Views: 172

Re: Loading file

Hello, i have to write a simple decoder and I don't know how to start in builder. What don't you know about it exactly? Can you be more specific? Should I use fopen to load txt or it's named differently in rad? fopen() will work fine, though that is how to handle files in C. In C++, prefer to use t...
by rlebeau
Mon Nov 30, 2020 5:17 pm
Forum: Technical
Topic: IDE must be run as administrator to work as expected
Replies: 1
Views: 168

Re: IDE must be run as administrator to work as expected

When starting RADStudio normally (without admin privs) the file, new menu options are very light on; only "other" and "customize ..." are displayed. However, if RADStudio is run as administrator it starts with a dialog stating that packages are being loaded, which takes a few seconds, then the file...
by rlebeau
Mon Nov 30, 2020 5:11 pm
Forum: General
Topic: community edition date extension
Replies: 1
Views: 256

Re: community edition date extension

You cannot extend the Community Edition license. You are expected to let it expire first, and then afterwards download and install the latest Community Edition to get a new license emailed to you. Since CE hasn't been updated to 10.4 yet, you can skip the reinstall for now. Initiate a download, but ...
by rlebeau
Mon Nov 30, 2020 5:07 pm
Forum: Technical
Topic: Installation
Replies: 1
Views: 250

Re: Installation

I have downloaded Builder C++ community edition two or three times, and every time, after the installation was completed, I started the program, wanted to create the new project and only Delphi options were possible. No option for C++ was visible, or possible to chose. I have explicitly downloaded ...
by rlebeau
Wed Nov 11, 2020 11:38 am
Forum: Technical
Topic: Update Progressbar
Replies: 14
Views: 2355

Re: Update Progressbar

Lena wrote: Wed Nov 11, 2020 1:02 am One feature is not very good in BASS. Sometimes when the Internet is bad and I press the Play button, the stream is loaded without errors, but there is no sound.
You are going to have to take that up with BASS's author, or the BASS community.