15,885,914 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 SMD111 (Top 10 by date)
SMD111
23-Sep-14 17:18pm
View
>>It is not related to Windows API.
I use API function calls only, that is what I meant.
>>There is nothing supporting PDF in Windows.
I perfectly understand what you mean.
>>You need some 3rd-party code.
Exactly! I need 3-rd party code in the form of a DLL but cannot find one, only ActiveX...
SMD111
23-Sep-14 16:36pm
View
I just love it how you used the word "us"!
Anyway, in other words, if you know the answer, it would be nice to offer it. But if you don't know the answer (what is the clear case with you here), why bother to waste electricity and contaminate somebody's post with verbal garbage?
SMD111
23-Sep-14 16:12pm
View
I thought this forum existed for people to be able to get a useful advise, not useless smart-ass remarks.
I'll be patient.
All information I am seeing on the topic can be divided into the following categories:
1) Using .NET, C# and the likes... I specified pure WinAPI in my question.
2) Using separate PDF converter/creator applications and ShellExecute() calls to those applications from C code. Cheap.
3) Using ActiveX libraries. I have never used those with C projects and don't see reliable tools to extract their functionality into a DLL.
SMD111
23-Sep-14 15:12pm
View
I am doing that now.
SMD111
21-Mar-14 14:25pm
View
Good idea, thank you. I coded it today and it works.
In case it helps somebody, I am putting a snapshot of the code in the "solutions" section.
SMD111
19-Mar-14 13:15pm
View
It is not a good approach but the last resort. In my original post I indicated that the problem originates in the SDK that comes with the hardware device I am using. I have no control over that code. Instead, I have a very bad experience arguing with that company about undocumented behavior of their software in my previous projects.
SMD111
18-Mar-14 17:18pm
View
One must check the return value of GetModuleBaseName() function because it often returned zero in my case. I also found that the technique described above only retrieves a list of 32-bit processes (the ones that appear as "name.exe *32" in the Task Manager).
SMD111
18-Mar-14 14:22pm
View
Thanks, I do get a list of processes using calls to EnumProcesses(), OpenProcess() and GetModuleBaseName() functions.
However, using this method I get at least 50 processes named Ä, and then pairs like these:
75 notepad++.exe
76 Äotepad++.exe
77 firefox.exe
78 Äirefox.exe
Something is not working here.
SMD111
20-Oct-11 16:29pm
View
Thanks again, I've been reading a lot on MSDN. To clarify my question, I'll use two citations from there:
"A simple message loop consists of one function call to each of these three functions: GetMessage, TranslateMessage, and DispatchMessage."
"An application's main thread starts its message loop after initializing the application and creating at least one window. After it is started, the message loop continues to retrieve messages from the thread's message queue and to dispatch them to the appropriate windows."
So, what is retrieving and dispatching messages in the absence of the message loop, like in my example above?
SMD111
20-Oct-11 13:42pm
View
Thank you, Albert. I thus understand that in this case the GetMessage() -> DispatchMessage() loop is only a hook in the main thread used to catch WM_QUIT and make WinMain() return?
Show More