Search found 5 matches

by jstahl
Tue Aug 26 2008
Forum: Amyuni PDF Converter (PDF Printer Driver)
Topic: Dynamically using cdintf.dll
Replies: 7
Views: 11360

Re: Dynamically using cdintf.dll

Hello, After some reading of MSDN documentation on processes, threads, load library etc. I found the following: At the time you call LoadLibrary, windows calls the DllMain function of the loaded library with DLL_PROCESS_ATTACH. But DllMain is not called with DLL_THREAD_ATTACH for any other already c...
by jstahl
Tue Aug 26 2008
Forum: Amyuni PDF Converter (PDF Printer Driver)
Topic: Dynamically using cdintf.dll
Replies: 7
Views: 11360

Re: Dynamically using cdintf.dll

Hello, I'm back to this problem again. I created a DLL now that binds to cdintf.dll at link time (statically). This DLL exports a couple of own functions for Initializing the PDF printer, creating a device context etc.). From my program I load this DLL dynamically now, getting the address of the my ...
by jstahl
Fri Jul 04 2008
Forum: Amyuni PDF Converter (PDF Printer Driver)
Topic: Dynamically using cdintf.dll
Replies: 7
Views: 11360

Re: Dynamically using cdintf.dll

Dear Joan, to clarify: - The system where I am testing has the printer pre-installed. Therefore I do not try to install the printer again. - I am using Lock(hPrinter, szLockName) - When statically linked, all works well - When dynamically linked (calling function pointers that have been setup using ...
by jstahl
Tue Jul 01 2008
Forum: Amyuni PDF Converter (PDF Printer Driver)
Topic: Dynamically using cdintf.dll
Replies: 7
Views: 11360

Re: Dynamically using cdintf.dll

Hello, I don't believe this to be a timing problem. I'm doing the exact same sequence of function calls statically and dynamically. (without debugger). The static version works, the dynamic not. Can this be a threading problem? I'm calling from a diffrent thread than the UI is running in. I read som...
by jstahl
Tue Jun 24 2008
Forum: Amyuni PDF Converter (PDF Printer Driver)
Topic: Dynamically using cdintf.dll
Replies: 7
Views: 11360

Dynamically using cdintf.dll

We are using successfully using the developer edition version 3.02 to print PDF files from our app via the C/C++ API. However, with some clients it is not possible to install a printer driver. For this, we tried to dynamically load the cdintf300.dll and call its functions. This is necessary because ...