Link to home
Start Free TrialLog in
Avatar of rajniyadav
rajniyadav

asked on

urgent help on api

how to call api in delphi

please help asap

rajni
Avatar of inthe
inthe

what api?
there are millions..

alot are defined already in the .pas/.dcu files in your delphi dir.

some are not for instance:
if you add shellapi to the uses section  you can call:
shellexecute(handle,'open',pchar('somefile'),nil,nil,sw_normal);
Avatar of rajniyadav

ASKER

inthe

i want to call window's api

do u know how to do that in delphi
i want to know the product id or some unique number
to identify a machine do you any other way of doing this.

>>i want to call window's api
>>do u know how to do that in delphi

you have to be new to delphi so im wondering did you get any book with your delphi version?
i think you need to read one on delphi or browse the help files a bit...

here is some very good sites to get you started:
http://delphi.about.com/cs/beginners/
http://www.delphi3000.com/
http://www.torry.net/

they do have answers to your particular problem but you should understand what your doing before doing it ..
 
running before walking can be dangerous ;-)
ASKER CERTIFIED SOLUTION
Avatar of Stuart_Johnson
Stuart_Johnson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
rajniyadav, is this by any chance this is a homework assignment?

Please answer my question.

Thank you,
Community Support Moderator
rajniyadav,

You appear to have two accounts here at Experts Exchange, although the site rules and guidelines permit you to have only one account. Please advise which account you wish to keep open and I will close the other.

Tech_Ed
Community Support Administrator
this is not my home assissment
and i have only one account
rajniyadav,

Are you going to tell us if any of the suggestions have helped at all?
I take it this question was autograded as there have been no comments posted for this question for months.