The constant
HKEY_CURRENT_USER is defined in the include file
WCONNECT.H. See the first line of wwPdf.prg
#INCLUDE WCONNECT.H
Make sure that the file
WCONNECT.H is included in your project.
>I was using the wwPDF class to print to a PDF with Windows 98 and Acrobat Reader 4.0 and it worked beautifully. My code is:
>
> SET PROCEDURE TO WWAPI ADDITIVE
> SET PROCEDURE TO WWPDF ADDITIVE
> oPDF=CREATE("wwPDF40")
> oPDF.PrintReport("MyReport.frx","F:\TEMP\MYFILE.PDF","")
>
>Now I got a new computer with Windows 2000 and I'm getting an error. The error is "Variable HKEY_CURRENT_USER is not found" coming from the Init of wwPDF40. How can I get this to work with Windows 2000?
>
>Thanks,
>Elyse
--sb--