Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. GreenKnight

    c# wizard

    Try http://www.codeproject.com/csharp/BarrysCSharpWizard.asp?target=wizard. If this is not exactly what you want, then perhaps do a search on the the same website. Cheers, GreenKnight.
  2. GreenKnight

    How do I make TSplitter an ActiveX control?

    I have a TSplitter on a panel, which I then make into an ActiveX control (using Delphi 5's wizard). When I click on the Splitter at runtime, I get a "Component 'mySplitter' has no parent window. Does anyone know of a fix/workaround for this? or do I have to write my own splitter control?
  3. GreenKnight

    Delphi 6.0 Runtime TImage

    If you wanted to be a little more object oriented, you might want to create classes instread of records. Something like: interface type enCardSuit = ( csClubs, csSpades, csDiamonds, csHearts); enCardStatus = (cstSolved, cstHand, cstTable); TCard = class( TObject) private fValue...
  4. GreenKnight

    sharing Units from EXE to DLL

    Can you place the units into a package, and share the package between the DLL and EXE?
  5. GreenKnight

    TreeView problem

    I always use "FindFirst", and related functions from the SysUtils unit. Have a look in the help file for details on how to use it. Just a note: When you get a list of files, I think you will always get back '.' and '..' as well (the current and parent directories), so check that...
  6. GreenKnight

    TreeView problem

    I always use "FindFirst", and related functions from the SysUtils unit. Have a look in the help file for details on how to use it. Just a note: When you get a list of files, I think you will always get back '.' and '..' as well (the current and parent directories), so check that...
  7. GreenKnight

    Access violation II

    It may also just be a bug in the dll (SQLMSS32.DLL). Have a look on the microsoft site to see if there's any known bugs.
  8. GreenKnight

    String grid as buffer?

    I see no reason why you can't use the StringGrid to store and edit the data. You can access each entry seperately (Cells[i, j]) or use the TStringList for each row or column.
  9. GreenKnight

    starttimer exception

    Please post the code (or a snippet) so we can have a look.
  10. GreenKnight

    Create a TGraphicControl with transparent sections

    To create a graphic component with transparent sections, add a message handler for CM_HITTEST. This passes a point to the control, and expects an 'HT' constant return value (see the Windows unit). Return HTNOWHERE if the point is in an invisible section, or HTCLIENT if it's in the other bit...
  11. GreenKnight

    Pointer to record

    I think anything passed to a COM dll must be a pointer. Thus you would want to pass a PSafeArray into the dll, and also define it as a PSafeArray. Are you writing this DLL, and defining the interface?
  12. GreenKnight

    Pointer to record

    A pointer (which is essentially the address) of a record can be found using the '@' operator. So if you have the following: type TMyFirstRecord = record Field1 : integer; end; var lMyRecord : TMyFirstRecord; you should pass something like "@lMyrecord" as the parameter...
  13. GreenKnight

    Is the "with" statement dangerous?

    The "with statement" is not dangerous on its own, but it does redefine the scope for the block of code. For code that is easier to read, I tend to avoid "with statements", and explicit prefix method and property calls with the name of the object I'm using.
  14. GreenKnight

    How to Show Desktop

    I'm guessing that you are sending the "Windows+M" message to your application, but not giving it time to process the message before calling Application.Restore. Try putting an Application.ProcessMessages after the PostMessage statements, and before the Application.Restore.
  15. GreenKnight

    Automatically update VersionInfo in packages AND projects?

    Hi, I currently have a system with about 7 packages, and 20-ish projects. Each time I release a new version, I'd like to be able to update some of the VersionInfo (eg. product version, Copyright, File version) to be consistant. I am using Delphi 5. Currently, we have a DOS batch file which...
  16. GreenKnight

    How do I change data DataSet read from a file?

    It am using a TADODataSet object. Sorry if I didn't mention that. GK.
  17. GreenKnight

    How do I change data DataSet read from a file?

    Hi, I am trying to transport specific data from one (Oracle) database to another. At the moment I am exporting a series of datasets to XML files (using TADODataSet.SaveToFile(<filename>, pfXML);). I want to load the tables into new datasets, and manipulate the fields in the dataset prior to...

Part and Inventory Search

Back
Top