logo
down
shadow

DELPHI QUESTIONS

COM Exception "Bad Variable Type" Error in Delphi Call of Domino GetDocumentByKey Method
COM Exception "Bad Variable Type" Error in Delphi Call of Domino GetDocumentByKey Method
I wish this help you I can't test this, so I'm not sure this works.HELP: If this method is used under COM, with a keyArray parameter of an array, it must be defined as an array of type Variant
TAG : delphi
Date : November 25 2020, 09:00 AM , By : J C
Calculate timeleft
Calculate timeleft
I wish did fix the issue. You could simply check which time is greater. If CurrentTime > TimeExpired, then the expiration time is in the past, and the session has obviously expired.
TAG : delphi
Date : November 22 2020, 02:42 PM , By : Newbie
How can a generic interface refer to a pointer to its type parameter?
How can a generic interface refer to a pointer to its type parameter?
hop of those help? In an ideal world, you would be able to declare a generic pointer type directly:
TAG : delphi
Date : November 22 2020, 02:42 PM , By : Payam Shahidi
Compare Function result to multiple values
Compare Function result to multiple values
Hope that helps I'm redesigning some of my For-loops to run faster. Especially the ones that call functions to compare values with. I'm wondering if my basic Delphi knowledge is missing something really useful. , You need to extract this into a funct
TAG : delphi
Date : November 22 2020, 09:00 AM , By : loal
no kbmMW forms component in the Delphi IDE Tool Palette
no kbmMW forms component in the Delphi IDE Tool Palette
it fixes the issue Create a new project. For example a VCL forms project. Now you will see the wizards in File/New/Other/Components4Developers.Or take advantage of one of the many sample projects and adapt/alter it to your needs.
TAG : delphi
Date : November 21 2020, 07:38 AM , By : Abdelmalek Khalil
Install FastReport 5 trial
Install FastReport 5 trial
will be helpful for those in need Uninstall all instances of FR, remove all FR's files and folders (see system and hidden files too) and then run FR 5 Trial installer with "Run as administrator" option
TAG : delphi
Date : November 19 2020, 12:35 AM , By : A Finkle
Delphi DX Seattle FMX TListView HeaderItem - Hide white Shadow text on non white background
Delphi DX Seattle FMX TListView HeaderItem - Hide white Shadow text on non white background
around this issue There was a TextLabel.TextShadowColor setting On the List view OnUpdateObjects
TAG : delphi
Date : November 18 2020, 09:01 AM , By : Yulia Zavgorodyanska
TChart axis scaled by hours of the day
TChart axis scaled by hours of the day
it helps some times I've been trying for about an hour now fiddling with the TChart's Left Axis to make it show the hour of the day. , You may need to set series YValues to datetime, for example:
TAG : delphi
Date : November 17 2020, 09:01 AM , By : Sam123
Memory leak when utilizing the reference counting feature of Delphi
Memory leak when utilizing the reference counting feature of Delphi
Does that help The following code try to utilize the reference counting feature of Delphi.
TAG : delphi
Date : November 16 2020, 09:01 AM , By : Loren Robb
Execute code on Mouse Click and Keyboard node selection - Virtual Treeview
Execute code on Mouse Click and Keyboard node selection - Virtual Treeview
This might help you The main idea is use global selected Node for every VirtualTree. Here is the code :
TAG : delphi
Date : November 14 2020, 07:01 AM , By : Rubén
Delphi : How to use Format() with runtime-built array of TVarRec?
Delphi : How to use Format() with runtime-built array of TVarRec?
hope this fix your issue You are passing the address of the string variable rather than its value. Furthermore, you are assigning the VString field, which expects a ShortString. You are supplying a native String instead.Replace
TAG : delphi
Date : November 13 2020, 09:01 AM , By : jimmynavio
How to make this code re-usable
How to make this code re-usable
should help you out At the call to AddNode in Button2Click the pointer variable Data is still uninitialized and points to some arbitrary memory, which will be written to inside AddNode leading to that access violation. I am still not sure if I unders
TAG : delphi
Date : November 13 2020, 05:40 AM , By : Neil
Convert For loop to not use variables
Convert For loop to not use variables
I wish this helpful for you I don't think that there's any way to write that code in a cleaner way. Stepping back, there are variety of uses of for loops, but perhaps the two main ones are as follows: Perform an action on each member of a collection.
TAG : delphi
Date : November 10 2020, 09:01 AM , By : Sytze Visser
Delphi : dynamic variable names?
Delphi : dynamic variable names?
it should still fix some issue I would recommend having just one variable - a dictionary/hash table and then have the 'dynamic variable names' be keys in that dictionary and the values be what you would store in those 'dynamically named' variables.He
TAG : delphi
Date : November 09 2020, 08:00 AM , By : Franco
Delphi annotations + enumeration sets. Constant expression?
Delphi annotations + enumeration sets. Constant expression?
I wish did fix the issue. According to the rules of the language, a typed constant is not a constant expression, and attribute constructors must be passed constant expressions. You had declared a typed constant. Use a constant expression instead:
TAG : delphi
Date : November 07 2020, 01:33 PM , By : Shang
send string via SendMessage from inside dll
send string via SendMessage from inside dll
like below fixes the issue You are sending a private message between processes. The system does not marshal the data from one process to the other. That's needed because processes have private isolated virtual address spaces. You are sending a pointe
TAG : delphi
Date : November 06 2020, 09:01 AM , By : Dianna
Delphi Runtime Error 105 at 0040423F
Delphi Runtime Error 105 at 0040423F
seems to work fine I currently have a question for Delphi.Every time when i want to run the program it shows me this problem:Runtime error 105 at 0040423F. Here is the picture of it and the program behind it: , Edit your source code to add the line s
TAG : delphi
Date : November 05 2020, 06:58 PM , By : Jack Hale
Sending unicode command with TIdCmdTCPClient
Sending unicode command with TIdCmdTCPClient
fixed the issue. Will look into that further TIdCmdTCPServer and TIdCmdTCPClient are not designed to be used together. If you are using TIdCmdTCPServer, you should be using TIdTCPClient instead. If you want to use TIdCmdTCPClient, then at the very le
TAG : delphi
Date : November 04 2020, 04:02 PM , By : SPOTIK
How to get number of records of a table stored in an Access .MDB file?
How to get number of records of a table stored in an Access .MDB file?
this one helps. No, SELECT Count(*) is the only and the correct way to do it.But: almost 10s for this query is awfully slow, especially if this is on your local PC.
TAG : delphi
Date : November 04 2020, 09:01 AM , By : StephanV
How to prevent OutOfMemory exception when opening large Access .MDB files?
How to prevent OutOfMemory exception when opening large Access .MDB files?
Hope that helps I did some try and errors and improved performance of reading data, in both memory usage and elapsed time. My test case is a table with more than 5,000,000 records. Each record has 3 string fields and 8 doubles. No index, no primary k
TAG : delphi
Date : November 04 2020, 08:17 AM , By : Softline Azeez Agbon
How can I read PerfMon PhysicalDisk\Average Disk sec/Read counter from Delphi?
How can I read PerfMon PhysicalDisk\Average Disk sec/Read counter from Delphi?
will help you How can I read the PhysicalDisk\Average Disk sec/Read and other similar performance counters, from Delphi? , This should get you started:
TAG : delphi
Date : November 04 2020, 08:15 AM , By : Yabo Li
Connecting to i2p sites using Indy TIdHTTPProxyServer trouble
Connecting to i2p sites using Indy TIdHTTPProxyServer trouble
like below fixes the issue If the HTTP client that is connected to your TIdHTTPProxyServer requests a .i2p hostname (and presumably that is what SwitchProxy() looks for when it returns 3), then the OutboundClient.IOHandler will ask TIdConnectThroughH
TAG : delphi
Date : November 01 2020, 03:09 PM , By : Gerrie Reynolds
Selection box of composite component not drawn properly
Selection box of composite component not drawn properly
wish of those help As I said in the comments, the easiest thing I can think of is to paint the controls in the parent and "hide" them from the designer at design time. You can do this by calling SetDesignVisible(False) on each of the child controls.
TAG : delphi
Date : November 01 2020, 03:09 PM , By : Jose Luis Bernier Vi
Warning "Symbol TMemoryManager is deprecated" appears AFTER the compiler is done compiling
Warning "Symbol TMemoryManager is deprecated" appears AFTER the compiler is done compiling
Does that help Finally, I have an explanation. Here is some output from the build window of my IDE:
TAG : delphi
Date : October 31 2020, 10:01 AM , By : Barkley
Delphi 7 refcount error when copying a record to dynamically allocated memory
Delphi 7 refcount error when copying a record to dynamically allocated memory
it helps some times Your record is a managed record. As such, it needs to be initialized. Your code uses GetMem which does not initialize the record. Instead you should use New. Replace
TAG : delphi
Date : October 29 2020, 10:01 AM , By : maxakuru
Draw glyph and WordWrap text together
Draw glyph and WordWrap text together
With these it helps Your calculations for top and bottom are wrong. And you can draw directly on the bitmap canvas instead of the form canvas. Here is the fixed version:
TAG : delphi
Date : October 29 2020, 06:12 AM , By : Tyler Durden
Delphi : Char value for newline
Delphi : Char value for newline
Hope this helps You do not need to use DelimitedText for this. You can simply assign directly to Text and that will treat line breaks as delimiters.
TAG : delphi
Date : October 28 2020, 08:10 AM , By : Charne Fourie
Modal dialog does not return focus to application
Modal dialog does not return focus to application
To fix the issue you can do I have a custom control derived from TPanel named TTestCtrl. It holds a TImage32 (from Graphics32). , Try this :
TAG : delphi
Date : October 25 2020, 07:20 PM , By : Dev D Popper
dxgettext and Windows 10
dxgettext and Windows 10
I wish did fix the issue. The installer on the official home page is pretty old. Last time I looked it contained several outdated dlls and executables from the original gnugettext project that did not work correctly under recent Windows versions. You
TAG : delphi
Date : October 24 2020, 01:32 PM , By : Chaaaley
Delphi supported version
Delphi supported version
hope this fix your issue Delphi 7 is not supported. It has not been supported since 2008 according to the article you linked. De-supported in that table gives the date where support ended.
TAG : delphi
Date : October 24 2020, 01:32 PM , By : Awais Qurny
Delphi Indy TCP connection to RECON
Delphi Indy TCP connection to RECON
I wish did fix the issue. Your code is not implementing the Source RECON protocol that the Minecraft commands run on top of. You can't just send arbitrary data to the server, it has to be framed properly.Try something more like this instead:
TAG : delphi
Date : October 22 2020, 01:59 PM , By : B.Man
shadow
Privacy Policy - Terms - Contact Us © animezone.co