Recent

Author Topic: can't find ShellAPI  (Read 10852 times)

Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
can't find ShellAPI
« on: June 18, 2010, 04:14:28 pm »
Hello,
I just installed Ubuntu and Lazarus, but while compiling a project, I receive a message telling me the following: unit1.pas(8,4) Fatal: Can't find unit shellapi used by Unit1.
Please tell me how to fix that
Thanks.
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
Re: can't find ShellAPI
« Reply #1 on: June 18, 2010, 04:29:49 pm »
ShellApi is wrapping a windows DLL shell32.dll.
It does not exist on Linux.

Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
Re: can't find ShellAPI
« Reply #2 on: June 18, 2010, 04:46:46 pm »
is there a similar one that is multi-platform ?
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: can't find ShellAPI
« Reply #3 on: June 18, 2010, 11:16:49 pm »
is there a similar one that is multi-platform ?
No, there's none.

if you're using ShellExecute for opening files, then there are 2 replacements for them in Lazarus.
1) if you need to open URLs, you can use OpenURL()
2) if you need to open a document by OS default application: OpenDocument()
both functions are declared at LCLIntf

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: can't find ShellAPI
« Reply #4 on: June 20, 2010, 11:06:40 pm »
Note: OpenURL and OpenDocument are only available on version 0.9.30 (yet unreleased). You can download the SVN version to use them.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

mirce.vladimirov

  • Sr. Member
  • ****
  • Posts: 256
Re: can't find ShellAPI
« Reply #5 on: June 21, 2010, 12:23:58 am »
I believe TProcess can do the job.

Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
Re: can't find ShellAPI
« Reply #6 on: June 28, 2010, 12:54:24 pm »
yeah, exactly, it does  8)
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

 

TinyPortal © 2005-2018