Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with PrintDesktop() using DibApi32.DLL
Message
From
09/02/2000 01:52:30
Dennis Schuette
Customized Business Services, Llc
Yuma, Arizona, United States
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00327060
Message ID:
00329293
Views:
26
As always, thanks for your help.

Denis

>Denis,
>One other person had this problem when pulling the method out of the class and running it as a seperate procedure. The problem is caused by the fact I mistakenly named the PrintWindow routine with the same name as the PrintWindow API call. Fox gets confused as to which one it is calling. This is the reason for the 'Too Few Arguments' error. The solution is to change the name of one of the PrintWindow's. The lastest version of my ScrnPrnt class File#94706 has this fix incorporated. If I remember correctly I used an alias in declaring the PrintWindow API call as the solution.
>
>The CLEAR DLLS is fixing the problem by removing the ambiguous PrintWindow. It could affect other parts of your code by clearing DLL's unexpectedly.
>
>
>>The fix was to add
>>
>>clear dlls
>>
>>just before the 'return' at the bottom of the PrintWindow procedure. I can now call this procedure as often as I need.
>>
>>Will this affect anything else I am doing?
>>
>>Denis Schuette
>>McElhaney Cattle Co.
>>
Dennis Schuette
Previous
Reply
Map
View

Click here to load this message in the networking platform