-
Content Count
1200 -
Joined
-
Last visited
-
Days Won
16
Everything posted by FPiette
-
Delphi Community Edition Debugger vs Windows 10 Pr o
FPiette replied to Egil's topic in General Help
Not an issue with Windows 10 Pro: I use it (64 bits) all the time with all updates installed. Is your Windows up-to-date (Verify optional updates, latest release is Version 20H2). Did you had any issue while installing Delphi? Try running "as administrator". Try disabling any security product (Anti-virus or other. Do'nt forget to re-enable it quickly after test and before connecting to the Internet). -
Several F2084 Internal Error on Delphi 10.4.2
FPiette replied to Davide Angeli's topic in Delphi IDE and APIs
I suspect someone did those "invisible" (Spaces) changes inadvertently and put it in version control making it to appears in the patch. -
Several F2084 Internal Error on Delphi 10.4.2
FPiette replied to Davide Angeli's topic in Delphi IDE and APIs
I would add patches in the order of publication date. -
I have no "documentation.htm" file anywhere in C:\Program Files (x86)\Embarcadero\Studio\21.0 and subfolders.
-
You want to check if the modification has been done using TMemIniFile properties or methods, or do you want to check for modification done outside of your application, for example when someone change the associated file using NotePad.
-
Which kind of file? For which purpose? You can consider using FindFirstChangeNotification to get notified when the file changes.
-
Help Understanding SQL Parameters Utilization
FPiette replied to Gary Mugford's topic in General Help
@Gary MugfordI was talking about the string constant "ZZ" and not the Checkbox named xZZ. I tried to say that yoyr SQL request built with Delphi code is OK and DO NOT suffer of SQL injection risk. I was trying to say that if instead of the constant "ZZ" you want to use a value from a TEdit, then suddenly your code becomes at SQL injection risk and to avoid it you have to use a parametrized SQL request. -
Help Understanding SQL Parameters Utilization
FPiette replied to Gary Mugford's topic in General Help
This website is in English. Please translate to English before posting. -
Help Understanding SQL Parameters Utilization
FPiette replied to Gary Mugford's topic in General Help
SQL injection is not something you - as programmer - do, it is something you prevent. It comes from having a SQL query constructed using strings entered by the user. The query you show which is built by code doesn't seems to use data entered by the user. So no problem. If - as an example - the constant "ZZ" must be changed by something coming from the user interface, then use a parameter. You'll have to make the same condition where you'll give a value to the parameter to avoid giving a parameter if the parameter doesn't exists because it is not part of the query because of the condition evaluated to FALSE. Using the same condition around parameter value assignment will solve your problem. -
IMO it is not a good idea to start learning FMX by a project mixing VCL and FMX! If you need to run on Windows and mobile, the choice with Delphi and native application is FMX framework. Another possibility is to create a frontend web application (UI) and a backend application. In that architecture, you can write the backend with VCL and the frontend (UI written in HTML, CSS and JavaScript) will run in a browser on both Windows and Mobile. This will require a lot of effort to port your current application to that architecture. Embarcadero RadServer is designed for that kind of architecture.
-
@dkounalAll I can says is that my code works for what I am doing with it. In the link @Remy Lebeaugave, it is stated that it is legal but full of traps. What I do is very simple in the relationship between the VCL exe and the FMX dll but probably doing more complex things require more code. The question you have to ask yourself is "Why in the first place do I need FMX?". In my case, FMX offer 3D model rendering and animation incredibly easy. I did a quick test and it worked fine. The VCL part was required because I already had huge VCL code for the everything else in the application.
-
@dkounalI have done this kind of code: In a DLL, a single FMX form showing and animating a 3D model. The DLL is loaded by a VCL application and parented to a TPanel. Everything works nice and easy except one thing: When the VCL application closes, it hangs if the FMX DLL is unloaded (FreeLibrary). I simple didn't unload the DLL which is not a problem since the DLL is an Add-on that has the same life time as the main VCL application. Anyway Window unload the DLL by itself.
-
Installing ICS v8.58 on CBuilder 10.1
FPiette replied to Anubis_68's topic in ICS - Internet Component Suite
According to the error message, you have not compiled package IcsVclCB102Design.dpk package or if you compiled it, there is an error in path somewhere and the IDE doesn't find it. -
Several F2084 Internal Error on Delphi 10.4.2
FPiette replied to Davide Angeli's topic in Delphi IDE and APIs
Are you volunteering to rework my application architecture if it's that easy - I have 100+ package projects in a project group Unless you are doing unusual coding with packages such as explicit dynamic loading of package, compiling an application to use run time package or not is a matter of a project option (Link with runtime packages). -
Several F2084 Internal Error on Delphi 10.4.2
FPiette replied to Davide Angeli's topic in Delphi IDE and APIs
I never use run time packages. And if you suspect this is your problem, it is easy to suppress the use of run time packages and compile everything in a single executable. OK, executable will be bigger but will not require more memory at run time. -
Several F2084 Internal Error on Delphi 10.4.2
FPiette replied to Davide Angeli's topic in Delphi IDE and APIs
I use D10.4.2 every single days without any problem. -
Do you mean something to find all DPR files on your disk? Try this on the command line: DIR /B /S C:\*.DPR To get the list in a text file, proceed like this; DIR /B /S C:\*.DPR >MyTextFile
-
What is your actual skills with Delphi? What kind of application do you want to write? Which platforms are you using?
-
What is the best way to precisely time/trigger threaded events
FPiette replied to Yaron's topic in Windows API
I don't know but it is easy to know: call GetCurrentThreadId (Windows api) from hte main thread and from the callback. -
What is the best way to precisely time/trigger threaded events
FPiette replied to Yaron's topic in Windows API
I don't know what you draw on screen, but have you considered off-loading everything to the GPU? Much like a game. -
Rearrange implementation modifies empty lines at end of method
FPiette posted a topic in MMX Code Explorer
When I use the implementation section rearrange feature, MMX remove empty lines which separate each method. Before rearrangement, my code looks like: {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} // Some Comment procedure TForm1.Method1; begin // Some code end; {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} // Some more comment procedure TForm1.Method2; begin // Some code end; {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} There are TWO empty lines after the "end;" at the end of each method. After rearrangement, there is only one left. Is there and option to avoid this empty line removal? Thanks. -
Rearrange implementation modifies empty lines at end of method
FPiette replied to FPiette's topic in MMX Code Explorer
Thanks. Merci. -
What is the best way to precisely time/trigger threaded events
FPiette replied to Yaron's topic in Windows API
Use a multimedia timer via the Win32 API timeSetEvent() or CreateTimerQueueTimer() function. -
Rearrange implementation modifies empty lines at end of method
FPiette replied to FPiette's topic in MMX Code Explorer
Thanks Uwe. Maybe a future option? Either (best) specify the number of empty lines after the "end;", or to leave the lines as is in the source code. -
compiling DCU without creating EXE
FPiette replied to Dave Novo's topic in RTL and Delphi Object Pascal
Probably, if you move the code to one or more run time packages, it will be faster. You can use run time package just for development. Then if you like, you can disable it for your release to keep one single executable file.