LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unable to call external program/dll


Hoi,

I would like to call up another application from within Excel/VBA. The
simple use of 'Shell "prog"' does not work on one computer
(WinXP/Office Excel 2003(11)/VB6.3), but perfectly well on another
(Win2000/Excel2000(9)/VB6.0). The return value is always 0 on the WinXp
machine; no process is ever started there while I certainly have
permission to run that application from the command line.

This lead me to try ShellExecute by using a Declare statement. Same
problem: Always a 0 as return value. ShellExecute API claims a zero
means Out of memory. But.. It turns out I cannot call any external Dll.
Return value is always zero.

Butchering the Declare statement to include a bogus dll or function
name gives the same result. A silent zero return value. Never an error
53 (file not found) or 453 (function not found) as the Win2000 machine
pops up in such cases. It is as if external calls are disabled.. (can
it be disabled? is this a "security" fix in xp or office? how to turn
it off?)

Does anyone recognice these sympthoms? What would be the cause and how
can I fix it? Searching Google and a few VB forums didn't help me at
all. Everyone seems to use Declare and calling Dll functions for this
and that without ever mentioning any problems. I'm the only one? :)


--
pipo
------------------------------------------------------------------------
pipo's Profile: http://www.excelforum.com/member.php...o&userid=23750
View this thread: http://www.excelforum.com/showthread...hreadid=374121

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inadvertant Program Call Jim Berglund Excel Programming 2 November 20th 04 04:55 AM
Call a program from Save As dialog Gungmas Excel Programming 2 October 8th 04 08:57 AM
Call from a Main program Haim[_2_] Excel Programming 4 September 24th 04 08:09 PM
External function call Kevin Excel Programming 1 April 6th 04 06:35 AM
API call to check other program is idle Keith Willshaw Excel Programming 0 August 15th 03 01:41 PM


All times are GMT +1. The time now is 08:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"