Posts by EProgrammerNotFound • 520 points
14 posts
-
2
votes4
answers802
viewsA: Incompatible types: Pwidechar and Tcaption
According to the documentation, the correct way to do this is as follows: LoadLibrary(PChar(Edit5.Text + 'teste.dll'));…
delphianswered EProgrammerNotFound 520 -
5
votes3
answers7876
viewsA: Read XML with Xmldocument in Delphi
Delphi, since older versions, offers two Units: Xmlintf.pas and Xmldoc.pas To use just declare an Ixmldocument variable and use its methods, are very intuitive: var XML: IXMLDocument; begin XML:=…
-
2
votes1
answer1477
viewsA: Delphi x DLL x Resources
Some steps are required to perform the desired procedure. First, we will embed the dll inside a file .res: First create your dll and export it somewhere easy to access, so you can use the path more…
delphianswered EProgrammerNotFound 520 -
0
votes3
answers2790
viewsA: Convert Pointer to string
Let the compiler help you. Use PChar, is the safest and easiest way to do. int WINAPI MessageBox( _In_opt_ HWND hWnd, _In_opt_ LPCTSTR lpText, _In_opt_ LPCTSTR lpCaption, _In_ UINT uType );…
delphianswered EProgrammerNotFound 520 -
1
votes2
answers16357
viewsA: How to create composite primary key in SQL?
The purpose of a weak entity is to represent an entity that needs another entity to exist (Generally cardinality is One-To-Many), so the weak entity will always be composed key: Create Table…
sqlanswered EProgrammerNotFound 520 -
0
votes1
answer583
viewsA: How to convert json array to an object in Angularjs?
You are returning an Array. So you should do so: $http.get("https://www.sabeonde.pt/api/api_noticias_home.php").success(function (data) { $scope.noticias_home = data[0];…
-
3
votes1
answer294
viewsA: Is it possible to identify which open programs use BDE for connection? How do I?
One way to do this is to list the dll's that the process is using, but if the process has not yet loaded the dll that you are looking for, this process will not appear in the list, follows function…
-
1
votes1
answer77
viewsA: index of Bounds and timer problems
You said in the comments that when it came to the end, you should stop the timer. In that case it’s simple: var pega : string; begin if I = Listaimportados.Count then begin timer1.Enabled:= False;…
-
2
votes1
answer988
viewsA: Java - Edit Windows Registry
A java program should not need to write in the windows registry, since the main reason to use java should be platform independence, in my opinion. However, theory is theory and practice is practice.…
javaanswered EProgrammerNotFound 520 -
1
votes1
answer1191
viewsA: Sort a double array (array) based on the chosen column
Using the Quicksort sorting algorithm, I modified only to accept the array instead of the array: First set the type: TMatrixType = array of array of Double; The Algorithm receives 4 parameters, the…
-
6
votes4
answers3097
viewsA: Path is file or directory (folder)
A safe way to check if it is directory is as follows: function IsDirectory(const Path: String): Boolean; var F: TSearchRec; NormPath: String; begin NormPath:= ExcludeTrailingPathDelimiter(Path); if…
delphianswered EProgrammerNotFound 520 -
2
votes1
answer343
viewsA: Magnifying glass for the keyboard cursor
To capture the Rect wrapped around the object with focus use the function: GetWindowRect(GetFocus, Srect); If you replace in your code the part: Srect:=Rect(Kursor.x,Kursor.y,Kursor.x,Kursor.y); by…
-
3
votes1
answer269
viewsA: Coloring text within "tag"
[UPDATING] To apply the style to an already filled Richedit the following algorithm could be used: procedure ApplyStyleWhenMatchPattern(Edit: TRichEdit; const TokenStart, TokenEnd: string;…
-
2
votes2
answers2519
viewsA: Thread containing connection components to the database generates an exception when they are released from memory
As reported by Tiago Silva, if instantiated, IB**** objects within the scope of the Execute method do not occur. The logical explanation for this is that the components need to be created and…