C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-25-2008, 02:51 PM   #1
Registered User
 
Join Date: Sep 2006
Posts: 7
Open windows file

Here's a problem that has me vexed. I have a xdp file which, when clicked in Windows Explorer opens Acrobat reader automatically and then loads the xml data in the XDP file filling an Acrobat form for me. I tried using exec to load acrord32.exe with the xdp file as a command-line input (which works if I do it manually in the command-line), but when I call it with an exec, it fails (no response of any kind).

Even worse, it works on some machines and not others. Since directly calling the executable doesn't work and requires that I have the path for acrord32.exe on each machine anyway, is there a way to launch the XDP file itself to simulate clicking it?

If that makes sense and you have some idea, please let me know
woofer is offline   Reply With Quote
Old 11-25-2008, 02:57 PM   #2
Banned
 
master5001's Avatar
 
Join Date: Aug 2001
Location: Visalia, CA, USA
Posts: 3,699
ShellExecute(). And perhaps this could be moved to the windows forum, Salem (or whoever else holds that particular power).
master5001 is offline   Reply With Quote
Old 11-25-2008, 09:37 PM   #3
Registered User
 
valaris's Avatar
 
Join Date: Jun 2008
Location: RING 0
Posts: 462
CreateProcess() should work too as it accepts command line arguments.
valaris is offline   Reply With Quote
Reply

Tags
exec, pdf, windows, xdp, xml

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A development process Noir C Programming 30 10-28-2009 04:24 AM
File transfer- the file sometimes not full transferred shu_fei86 C# Programming 13 03-13-2009 12:44 PM
help with text input Alphawaves C Programming 8 04-08-2007 04:54 PM
Batch file programming year2038bug Tech Board 10 09-05-2005 03:30 PM
simulate Grep command in Unix using C laxmi C Programming 6 05-10-2002 04:10 PM


All times are GMT -6. The time now is 10:15 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22