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...
aaronjme, have you actually tried this?
I tried to do it this way as well, it worked but there was a side effect. The main form would not close. I dont know how to get around this without using Application.Terminate to close the main form. Did you find this problem as well...
Thankyou for your suggestions. This is how i have solved the problem at the moment ...
I have an initial splash form that is displayed in the standard way as the link in my first post explains. This splash screen covers the first few seconds of initialization. Then I instantiate another...
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.
After you have loaded the rich text into the control try:
richedit1.SelStart := 0;
richedit1.SelectAll;
richedit1.SelAttributes.Protected := false;
Hope this may help.
Yes thankyou, I can do that ok.
I am trying to display a BALOON tool tip. A little baloon with a heading, some text and a close button.
Any ideas about that?
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...
WARNING: FileAge() does not get creation time but returns the last modification time. Functions below get CREATION time.
function SNL_FileTime2DateTime(FileTime: TFileTime): TDateTime;
var
LocalFileTime: TFileTime;
SystemTime: TSystemTime;
begin
FileTimeToLocalFileTime(FileTime...
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...
# cat /proc/cmdline
auto BOOT_IMAGE=Not-Windoze ro root=301 BOOT_FILE=/boot/vmlinuz-2.2.16-22
# /sbin/mingetty tty1
#
Nothing happened on the console when I typed /sbin/mingetty tty1
Still just echos the keyboard the same as before.
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.