15,892,072 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by YassJD (Top 7 by date)
YassJD
10-May-13 6:01am
View
I just tried and the same...
Don't hesitate if any other ideas...
Thank you.
YassJD
10-May-13 6:01am
View
Yes it works with the CMD. I just copied/Paste from the log file to the CMD and it is launched in Adobe Reader.
Really strange...
YassJD
8-May-13 15:20pm
View
It still does not work on the target machine... I will do some deeper tests and let you know...
YassJD
8-May-13 14:45pm
View
Hi Richard,
Smart one.
True, the cast was not correct in the beginning. That's why I used the sprintf trick...
I used the Visual Studio debugger to stop and check if the cast is correctly done. It is ok. The PDF file name logged is also fine. The quotes are inserted to avoid the usual blank space issue but even without quotes the issue is not solved.
Thank you for suggestions ! :)
YassJD
8-May-13 14:41pm
View
Hi Jochen,
Yes the PDF file is correctly opened by Adobe Reader and also when just typing the full path of the PDF file in the usual run window.
Thanks !
YassJD
8-May-13 14:39pm
View
Hi,
Yes... I was actually using the ShellExecute in the beginning but I switched to ShellExecuteEx to get an accurate error code.
I did some tests and if the file name/path is not correct, the error code ERROR_FILE_NOT_FOUND or ERROR_PATH_NOT_FOUND is logged during the GetLastError call...
Thanks !
YassJD
8-May-13 14:35pm
View
True... But this will be imposed as a prerequisite. Thanks for the remark :)
Show More