?
Solved

Strange problem - Delphi 7, ShellShock and Windows 2k

Posted on 2003-03-03
4
Medium Priority
?
322 Views
Last Modified: 2010-04-04
Greetings,

I am using Delphi 7 ENterprise, the TurboPPower ShellShock component suite (now availble at www.sourceforge.net) running under Windows 2000. If I execute the following line of code:

ShellExecute(Handle, 'open', 'c:\files\somefile.pdf', '', '', SW_NORMAL);

Nothing happens !!! You see the splash screen for Acrobat Reader and then nothing. Does anyone have any ideas ?

Thanks,

Robert
0
Comment
Question by:zaroblan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 21

Expert Comment

by:ziolko
ID: 8062665
try
ShellExecute(Handle,'open','c:\files\somefile.pdf',nil,nil, SW_NORMAL);

or
ShellExecute(Handle,'open','c:\files\somefile.pdf','','c:\files\', SW_NORMAL);

ziolko.



0
 
LVL 12

Expert Comment

by:andrewjb
ID: 8063516
There seems to be a bug, which we've only seen using Acrobat 5 under XP, but haven't tried Win2k much..

Nobody came up with a proper solution ... we used a workaround.

See:

http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20416357.html
0
 
LVL 1

Accepted Solution

by:
grolschisgood earned 150 total points
ID: 8217056
i had this problem after importing the PDF.OCX file as a component into delphi.  It died after loading the splash screen with no error messages.  the simple fix for me was to download the latest Acrobat reader and re-install it.
0
 

Author Comment

by:zaroblan
ID: 8217287
Did this and it worked.
Enough said.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question