Skip to content

Delphi

Delphi discussions

This category can be followed from the open social web via the handle delphi-435921b0@forum.codeproject.com

160 Topics 516 Posts
  • F:=(50 div 3)

    question delphi help
    6
    0 Votes
    6 Posts
    18 Views
    R
    The operators div and mod are complimentary. Use div when you want the integer part of the division to be returned, and mod to get the remainder: 10 div 3 = 3 10 mod 3 = 1 Will Rogers never met me.
  • Looking for Interbase 6.0 (download, install, client)

    question
    8
    0 Votes
    8 Posts
    9 Views
    M
    Firebird will fine but if doing this i do suggest firebird 2.5 problems: 0) be aware you can't go back, 1) watch out for UDF changes 2) test on a VM like "Oracle VM VirtualBox" first 3) read about the Meta_data tag in the Documentation for restoring the database. i do suggest using classic server as well as its better suited to multi processor boxes.
  • return of Delphi

    delphi com
    3
    0 Votes
    3 Posts
    12 Views
    A
    It seems that they are working on it yet and its not ready now : http://blog.analogmachine.org/2011/09/02/bugs-and-issues-in-delphi-xe2-firemonkey/[^]
  • Invalid Number of parameters in CreateMutex

    delphi help tutorial question
    2
    0 Votes
    2 Posts
    8 Views
    S
    What version of Delphi are you using? It looks fine to me. Try Mutex:= Windows.CreateMutex(Nil, False, 'MyMutexName'); And see what happens
  • How do you pronounce Delphi?

    c++ csharp delphi com question
    17
    0 Votes
    17 Posts
    43 Views
    C
    I realize this thread is quite old, but I stumbled across this misleading post. In Greek, the vowel combination "oi" is pronounced "ee". I realize this seems weird, but it is correct.
  • html path in .lnk file

    question html help
    23
    0 Votes
    23 Posts
    97 Views
    S
    Oh !! My mistake .. Its a discussion between you and me and I was confused that why you down vote me... sorry for that :) "Every Little Smile can touch Somebody's Heart... May we find Hundreds of Reasons to Smile Everyday... and May WE be the Reason for someone else to smile always!" (ICAN) "Your thoughts are the architects of your destiny."
  • Is Delphi still alive?

    delphi question
    3
    0 Votes
    3 Posts
    11 Views
    U
    http://www.isdelphidead.com/[^]
  • FreePascal and Delphi

    delphi c++ php visual-studio sysadmin
    13
    0 Votes
    13 Posts
    39 Views
    M
    :laugh: :laugh: :laugh: Mladen Bruck
  • delphi openGL

    delphi graphics game-dev help question
    2
    0 Votes
    2 Posts
    8 Views
    L
    use GLScene
  • Connect to another pc

    csharp delphi question
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • How to customize Delphi's existing controls

    delphi tutorial question
    3
    0 Votes
    3 Posts
    12 Views
    D
    Just like the previous post indicated. You can start by adding a control you wish to modify to a form. Get the control the way you want it, then right-click on it and select Add to Repository. Find an appropriate place, etc. Then use this control from this point forward. Note, this is only for modifying the controls properties. A little, but not much, more complicated if you wish to alter the behavior behind the events.
  • What is the equivalent code in vb or c#?

    question csharp delphi html com
    4
    0 Votes
    4 Posts
    13 Views
    H
    He didn't write the code, c'mon be generous. Some else has written it and he's been hired to convert it to VB / C#. :laugh:
  • 0 Votes
    5 Posts
    14 Views
    G
    To: 1102043058@qq.com To: Mr. #6352956 at CodeProject: I was wondering if you're still doing anything with that .DLL code you had up on the Delphi forum at CodeProject. I looked at it, and was trying to figure out whether there might be a thread-access problem (even a security block) that kept the hook from being set. I would have called GetLastError to find out why SetWindowsHookEx returned null. Did you ever do that? I'm curious to know what you found out if you did. In case you didn't get around to it, you can look up the parameter info on MSDN, which will tell you the same thing Delphi's documentation should have. (I haven't looked at it yet to see what it says about SetWindowsHookEx.) Here are the links: GetLastError function: http://msdn.microsoft.com/en-us/library/ms679360 SetWindowsHookEx function: http://msdn.microsoft.com/en-us/library/ms644990 GAMerritt 01-18-11
  • The Community?

    delphi csharp question
    7
    0 Votes
    7 Posts
    18 Views
    N
    Hey hey, I personally know a lot of Delphi developers where I am. I guess it's just a matter of location and demand for a particular language :). I've played around with oxygene a little, but I've found Hydra to be quite cool as well :D Cheers, Glen Vlotman "You cannot code for stupidity"
  • computer name, motherboard sn, harddisk sn

    question
    2
    0 Votes
    2 Posts
    8 Views
    N
    Hi, You can rename the computer using windows API calls (I can't remember them offhand, but I'll see if I can dig them up somewhere). I stand to be corrected on this, but as far as I know you cannot change the serial numbers of motherboards and/or hard disk drives. Cheers, Glen Vlotman "You cannot code for stupidity"
  • delphi book

    csharp delphi html database learning
    4
    0 Votes
    4 Posts
    12 Views
    N
    http://delphi.about.com/[^] Cheers, Glen Vlotman "You cannot code for stupidity"
  • Performance of visual components

    performance question discussion
    4
    0 Votes
    4 Posts
    13 Views
    N
    Hi Corina, Corinna John wrote: when I place a TQuery component, on a form, it consumes memory until the application quits. The amount of memory that your query will consume is directly related to the amount of data which you are retrieving from the database, and as such cannot be helped. What you could do is look at how many fields are being returned and reducing that amount to only those fields that you need. Corinna John wrote: When I create/free the TQuery everytime I actually need it, the construction/destruction consumes time. I've found that creating/destroying the components dynamically isn't time consuming. What will take time is establishing the connection to the database and the subsequent retrieval of the data from the query. Since I hardly every use data-aware controls, most of the time I dynamically load the data to the screen(s) by creating a data controller which will provide the functionality for retrieving/updating the data from the database. Ideally this controller will have some database connection object within it, and a query/command object to query the database with. These data objects should be created and destroyed in the controller's constructor/destructor respectively. Then, by using events, you can perform some kind of action on the resulting query which you executed. So a controller would look something like this (I see you are using the TQuery component, and although I am using ADO, the theory is still basically the same): unit uDataController; interface uses ADODB; type // my uber-super user defined event :P TOnRetrieveData = procedure (ASender : TObject; AResultData : TADOQuery) of object; TDataController = class(object) private FOnRetrieveData : TOnRetrieveData; FDBConnection : TADOConnection; FADOCommand : TADOCommand; procedure InitialiseDBStuff; public constructor Create(AOnRetrieveDataEvent : TOnRetrieveData); procedure ExecuteSQL(const ASQLString : string); end; implementation constructor TDataController.Create(AOnRetrieveDataEvent : TOnRetrieveData); begin inherited Create; InitialiseDBStuff; // Assign the event... FOnRetrieveData := AOnRetrieveDataEvent; end; procedure TDataController.InitialiseDBStuff; begin // Initialise the connection and command components FDBConnection := TADOConnection.Create(nil); FADOCommand := TADOCommand
  • Unicode parameter in Select Query

    database delphi help question
    2
    0 Votes
    2 Posts
    8 Views
    N
    Hi, Have you check that your application is set to Unicode/UCS4 encoding? Cheers, Glen Vlotman "You cannot code for stupidity"
  • Decrypt, validate and read large XML files

    xml delphi database question
    3
    0 Votes
    3 Posts
    11 Views
    N
    You can try NativeXML[^]. abeaumont wrote: Decrypt specific encrypted nodes in an XML file to a stream. There is no real way of getting around this, however if I am not mistaken this class allows for events to fire when reading a node/attribute. abeaumont wrote: Validate specific nodes against specific schemas (typically this will be the decrypted nodes, which will have their contents described in a encrypted schema) I haven't needed to use this feature for the component in question, but I suppose fiddling around with that shouldn't be too much of a problem, even if you have to do your manipulation via the component, then use the XML DOM to load the schema. abeaumont wrote: Parse large XML files (several hundreds MB's). This would probably be more a case of the machine that the application will be running on and the efficiency of the XML traversal algorithm that the component uses. However, you must remember that traversing XML documents in itself tends to take longer based on the depth of the nodes. Expect delays in the region of something like: TimeToLoad = ((XMLFileSize)^NodeDepth)/TraversalEfficiencyOfComponent ... or something to that effect. NOTE: This is a thumbsuck at best, but you will see what I basically mean when you load large XML files. A plus of this component/class is the fact that it does not use the XML DOM at all... AND it is free... which to me is always a bonus :D. Hope this helps :) Cheers, Glen Vlotman QFTD: "You cannot code for stupidity."
  • Exposing C# COM server Events to Delphi client

    csharp delphi com design sysadmin
    2
    0 Votes
    2 Posts
    7 Views
    D
    First you need to create a procedure to handle the event, with the same signature as the delegate e.g. procedure CallArrivedHandler(Sender TObject, Message string) begin //Your event handling code end Then you need to point your CallArrived member at the procedure... CallArrived := CallArivedHandler; And that should do it. (Apologies for syntax errors - from memory, and I haven't Delphi'd for a few years)