Hello all.
Im trying to convert a local path to a unc path, if the path specified is part of a share.
Eg.
Assuming
1. The computer name is COMP
2. The folder C:\dir1\dir2 is shared with share name ABC
The local path i have is C:\dir1\dir2\test.txt
I need to be able to work out that the unc path...
I have setup a splash scren for my appliaction as per http://delphi.about.com/od/formsdialogs/a/splashscreen.htm
My appliaction takes some time to draw its main form the first time, and the splash screen vanishes before this process is complete. Is it possible to free the splash from from the...
SELECT * FROM TBLCustomer WHERE NAME LIKE "*"
The above query works in Access2000. It finds all records with a * character as part of the name.
But if I try and use this query in an ADODataset there are no records returned. How can I make this work?
---------------------------------------...
Hello.
I am writing a little utility to backup some data files from a linux PC and copy them to a local Win PC.
I have worked out how to transfer the file using an FTP component and this is working well.
How can I execute a tar command on the linux PC to collect the backup files I need? Is...
I am doing a console application to compile with Delphi6 and Kylix3 and am considering using ncurses for the user interface. This is easy for Kylix ... not so easy for Delphi.
Does anyone know how I can use ncurses in Delphi? Maybe someone knows of a library that makes this work?
Thanks for...
Hello
I would like to draw some text on right side of the main menu bar at the top of my form. A bit like IE puts the Micro$oft flag up there in the top right corner.
Does anyone know how to draw there?
Thanks for your help.
Tim
The maggotts always win.
Hello
I have a system tray application that will run under 95 and XP. I wanted to use baloon tool tip displays when it is runnung in XP.
I am using D6 and the NOTIFYICONDATA structure surfaced by ShellAPI does not have the members szInfo, szInfoTitle, etc.
How can I make this work? Any ideas...
Hello.
Inside the OnCreate event of my main form I do a version upgrade, creating any new database fields my application needs. If this version upgrade fails I don't want my program to start.
I understand that it is not a good idea to close a form from within its own OnCreate procedure.
What...
Hello linux masters.
I am runnung linux 7.0 Kernel 2.2.16-22.
I can login via telnet and serial terminals but not directly on the console.
After the bootup is finished, the login does not come up on the console. Keys pressed echo onto the screen, including control codes for arrow keys etc...
Hello everyone.
I need to save some TFontStyles values to my database and thought the best way would be to convert this set datatype into an integer. I have found that this is harder to do than I thought. Any help please?
Thanks,
Tim
Hello
I have some formatted text in a rich text memo.
I need to find the height of this text in pixels so I can resize another component to the correct height before I copy the text over.
If the text was not formatted, I could have used TextExtent to find the height.
Does anyone know how to get...
Hello.
I am writing a fileneme to canvas using TextRect.
Does anyone have the function to cut down the filename to fit into the Rect, adding dots in the midddle as needed?
Thanks for you help.
Tim
Hello.
What is the best way to bring my application back up if it is sitting minimised on the start bar?
I have been doing this:
ShowWindow(Hwnd,SW_SHOWDEFAULT);
SetForegroundWindow(Hwnd);
When the above code runs, it does bring my application back up, but from that point on the...
Hello,
My appliaction needs to create some new text fields in an Access database table during a version upgrade.
I am using dbExpressADO.
The ALTER TABLE command works fine and adds the fields I need to the table.
The problem is that the AllowZeroLength property of each new field is set to NO...
[3eyes] Hello everyone.
Seeking your valuable advice again. I need to get a list of table names from my Access97 database. I am using dbExpress components to access the database from Delphi6.
I have the query:
SELECT Name FROM MSysObjects where Type = 1 AND NAME NOT IN...
Hello all.
When I use AddObject to add an item to a list (eg. ListBox, ComboBox) does Delphi free the object when the control containing the list is destroyed? Or should I include code of my own to free memory used by these objects?
Tim
Hi all,
Is it possible to get the date the application was compiled, from a variable at runtime.
I thought Delphi may have this tucked away in a system variable somewhere.
Tim
Hello.
Once again I consult the Oracle of Global Intelligence ...
I need to make sure that only one instance of my application is runnung on the desktop.
If the user doubble-clicks the icon to start my application and it is already running, I want to bring the instance that is already...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.