Search found 138 matches

by smd
Sun Jun 28, 2020 3:50 pm
Forum: Technical
Topic: Linking all dependencies into a single executable file
Replies: 3
Views: 5860

Linking all dependencies into a single executable file

RAD Studio 10.1 I have a program that I will be distributing around work for use by others. Currently I have to collect the various libraries and put everything into a folder which is then distributed. The program is a windows gui program written in C and C++ using Firemonkey. How do I get the linke...
by smd
Wed Jun 10, 2020 2:05 pm
Forum: Technical
Topic: Saving a TPaintBox
Replies: 9
Views: 8959

Re: Saving a TPaintBox

OMG, The Horror, An error in the well crafted (auto-crafted?) Rad Documentation. Unheard of, never happens! /sarc I decided to use the TImage instead of the straight TBitmap declaration since it simplifies position and sizing. I changed in the CreateForm to using the resize Scope2->Bitmap->Resize(50...
by smd
Tue Jun 09, 2020 2:36 pm
Forum: Technical
Topic: Saving a TPaintBox
Replies: 9
Views: 8959

Re: Saving a TPaintBox

The TImage documentation example code uses at OnFormCreate Scope2->Bitmap = new TBitmap(500, 150); (with different width and height of course). I tried commenting out that code. did not work. I tried just removing the width/height numbers. did not work. Seems that the TImage Bitmap is just a pointer...
by smd
Tue Jun 09, 2020 2:15 am
Forum: Technical
Topic: Saving a TPaintBox
Replies: 9
Views: 8959

Re: Saving a TPaintBox

Got it to work. Use a TImage instead of the TPaintBox. Place a TImage. I named it Scope2 In the OnFormCreate Scope2->Bitmap = new TBitmap(500, 150); In the body of the button click function, or wherever: TBitmapCodecSaveParams *t; TRect r; r.left = 10; r.top = 10; r.right = 30; r.bottom = 30; t->Qua...
by smd
Tue Jun 09, 2020 1:03 am
Forum: Technical
Topic: Saving a TPaintBox
Replies: 9
Views: 8959

Re: Saving a TPaintBox

- do all of your rendering to a persistent TBitmap that exists for the lifetime of your TForm. Whenever the contents of the TBitmap changes, invalidate the TPaintBox via its InvalidateRect() method to trigger a repaint. Whenever the TPaintBox::OnPaint event is fired, draw the current TBitmap onto t...
by smd
Sat Jun 06, 2020 6:13 pm
Forum: Technical
Topic: Saving a TPaintBox
Replies: 9
Views: 8959

Saving a TPaintBox

FMX CPP Using Rad Studio 10.2.2 I am having trouble figuring out how to save the contents of a TPaintBox. I wrote a simple test program to make my base image. This is the first time I am using bitmaps and canvases directly so I made a clunky test program to figure out how to do this. After working t...
by smd
Fri Apr 05, 2019 2:27 am
Forum: Technical
Topic: Project conversion
Replies: 5
Views: 15622

Re: Project conversion

rajesh wrote:I had Simply C++ Builder 6 Form Project , Even it is not loading in the version 10,3
I suggest copying your source files to a new directory then re-create the project file from scratch by adding those files into it and setting the various options.
by smd
Tue Apr 02, 2019 2:33 pm
Forum: Technical
Topic: XE7 deploy 64-bit missing rtl210.bpl
Replies: 2
Views: 10053

Re: XE7 deploy 64-bit missing rtl210.bpl

You have to copy those files to the folder you have the executable in on the new computer. Probably also need several other bpl library files. Just find them on your development computer (windows search works) then copy them. I put them all into an empty folder with the executable then zip it, then ...
by smd
Tue Jan 31, 2017 6:38 pm
Forum: Technical
Topic: unexplained sluggish performance inside the IDE
Replies: 3
Views: 17521

Re: unexplained sluggish performance inside the IDE

I recently had that happen. it was Windows 10 applying a cumulative update in the background hogging 80 perent of the cpu time. Try clicking settings->windows update->Check for Updates to force it to finish. It actually took about a half hour with it applying the update in the foreground, then when ...
by smd
Sat Jan 28, 2017 10:26 am
Forum: Technical
Topic: application waiting on splwow64.exe - but why?
Replies: 3
Views: 17920

Re: application waiting on splwow64.exe - but why?

Try this https://support.microsoft.com/en-us/help/2815716/splwow64.exe-process-doesn-t-end-after-a-print-job-finishes-in-the-64-bit-version-of-windows-7-or-windows-server-2008-r2 basically you need to edit the registry to adjust the timeout. The windows cumulative update probably changed the timeout...
by smd
Sun Nov 27, 2016 10:51 pm
Forum: Technical
Topic: Link all the bpl files into exe
Replies: 1
Views: 11165

Link all the bpl files into exe

Using RAD Berlin Update 2 I have a program written in Firemonkey C++. Kind of big, fully tested, works fine. I compiled as a release, it works fine. To use the compiled program on another computer requires copying a dozen bpl files with the exe file. I poked through the documentation about the linke...
by smd
Thu Nov 24, 2016 3:07 pm
Forum: Technical
Topic: TIDEEditorServices dangling reference error at exit
Replies: 1
Views: 12312

TIDEEditorServices dangling reference error at exit

RAD Berlin Update 2 I did a full uninstall of rad studio update 1 then installed update 2. Everything seems to work properly, except when I exit the IDE. When the program closes, I get an error message Instance of Class TIDEEditorServices has dangling reference count of 1 If I launch RAD, then selec...
by smd
Wed Aug 17, 2016 8:01 pm
Forum: Technical
Topic: Indy and Android
Replies: 33
Views: 152051

Re: Indy and Android

A little sideways question sort of along lines of this topic. Is Indy source code only in Pascal or is there a C version of the Indy source?
by smd
Tue Jul 12, 2016 3:34 pm
Forum: Technical
Topic: $#%@@ Berlin - Access Violation
Replies: 12
Views: 57007

Re: $#%@@ Berlin - Access Violation

Try this: Copy your source and header files into a new folder. Not your project files, just your source and header files. Create a New Project from scratch adding your source and header files. Compile with all optimizations turned off. Execute with the debugger. If you do not get the error, then you...
by smd
Mon Jul 04, 2016 12:30 pm
Forum: Technical
Topic: Cannot find erf()
Replies: 1
Views: 11971

Cannot find erf()

I am trying to compile the NIST statistical test suite which is available as a set of standard C source files. The statistical test call the erf() (Gaussian error function). the library routine is supposed to be available by including <math.h>. It is not referenced at all in the header file. Does RA...