|
Hi
Can any one please help me on this issue?
i am trying to transfering a file TSclint to local machine in Windows 7 32bit OS, for that i am using WtsApi32.pas ,but the same thing is not happining in Windows 7 64bit OS
|
|
|
|
|
Hi
Can any one please help me on this issue?
i am trying to transfering a file TSclint to local machine in Windows 7 32bit OS, for that i am using WtsApi32.pas ,but the same thing is not happining in Windows 7 64bit OS
|
|
|
|
|
Hi,
This is not the forum for asking programming related questions. Please use the "Ask A Question" option from the website. Please also ensure that your question is (relatively) clear as well so we can best ascertain what your particular issue/problem is.
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
|
^5
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
Last October, I posted 2 Delphi related articles. I was sort of surprised when I noticed that there was not even an option to select Delphi as the programming language. I have no idea if things have changed since then. I know lots of developers have abandonned Delphi programming in favour of C#, but that was unfortunate, they must reconsider and come back. 
|
|
|
|
|
m8,
I work with both Delphi and C# now... C# is great, but I still stick to my roots... My motto is: use the tool that best suites the job... People will always go through phases and the same goes for dev languages I guess ... Still... let's get the Delphi chaps up and running here!!!
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
Because if, we even exist and we are here.
I work with Delphi 2007 vs PostgreSQL Server, and everything is solved very well.
Charmed I will read the articles and I will respond in those that he can and have knowledge to make it
good bye
|
|
|
|
|
hello i'am new in write programs in delphi. my problem is how can i get 16,66 in a variable?
variable F:=(50 div 3) result must be 16,66 but integer is 16
sorry my english is not so good.
thank you
|
|
|
|
|
try
var f : double;
..
f := (50 / 3)
|
|
|
|
|
thank you but i forgot to write, the result must be in a label als Caption and this is a string. I get the error string and double not compatible. when i use integer then wiht the InToStr i get the Caption 16 and not 16,66
if you now how i hafe to do pleas
thank you
|
|
|
|
|
There is a function named FloatToStr which should fit your need.
|
|
|
|
|
thank you smags13 its work. 
|
|
|
|
|
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.
|
|
|
|
|
|
just being curious. anybody uses the XE 64bit compiler right now? 
|
|
|
|
|
|
Hi!
I'm trying to restrict my exe to only one at any time. I've used the following code:
var
Mutex : THandle;
Mutex := CreateMutex(nil,False,'MyMutexName');
I got the following error in CreateMutex:
'Invalid Number of Parameters". How to create a Mutex in Delphi?
|
|
|
|
|
What version of Delphi are you using? It looks fine to me.
Try Mutex:= Windows.CreateMutex(Nil, False, 'MyMutexName');
And see what happens
|
|
|
|
|
If i have a .lnk file
that point to a link of http://.... type
HOW do i get the string http://.....
using IShellLink
GetPath or GetDescription or any thing else
do not give me a solution.
the GetWorkingDirectory give me system32 as path
but i want the string http://.....
any help???
|
|
|
|
|
well, .lnk is used to point to an object inside Shell namespace. I suppose you meant .url file.
.url file is actually an INI file, so you can try to use TIniFile class to parse your file, regardless of the extension it suggests.
|
|
|
|
|
Unfortunately i can not post a file here but
goto my discussion here
http://forums.about.com/n/pfx/forum.aspx?msg=19194.8&nav=messages&webtag=ab-delphi
Download project zip and inside you will find
the .lnk file i have problems with
If you can help it will be great.
PlZ also see all communication on this forum
as i explain now 100 time it is not a text (url) file but a .lnk file!!!
see also
http://www.codeproject.com/Messages/3904379/Re-html-string-in-lnk-file.aspx
modified on Thursday, May 26, 2011 1:42 AM
|
|
|
|
|
limelect wrote: as i explain now 100 time it is not a text (url) file but a .lnk file!!!
You have not explained this 100 times. And despite repeated requests you still have not clarified what the content of the file looks like. The extension of the file (.lnk or .url) is irrelevant, it is the content that we have asked you to look at.
The best things in life are not things.
|
|
|
|
|
Hi Richard,
I view his file and it is not giving me any option of "Open with" as a normal shortcut files did. If i drag and drop that file in notepad than it give only garbage character not like you mentioned in your answer.
The problem is that
1) if problematically we create a shortcut using IShellLink and set the target name a URL than a shortcut of URL is created. Manually I don't think it is possible. But it is not correct shortcut. I did it by mistake in one of my project so I know this issue. This guy also create the link with installer and that's why he face this issue.
2) I will give him a suggestion that try to create a shortcut of URL using IUniformResourceLocator.
If he create a proper shortcut than only he will get the proper name of URL using GetURL.
"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."
|
|
|
|
|
That seems like the right way to go.
The best things in life are not things.
|
|
|
|