Windows API problem with PB10 (need help)

Started by Martin Francom, May 11, 2011, 02:19:56 PM

Previous topic - Next topic

Martin Francom

I am trying to move some of my PB9/FF3 programs over to PB10 but I have
run into a problem I don't understand and don't know how to fix.  Here's the compiler error I am getting:

Compiling "E:\PBWin90\FireFly31\Projects\Project1\release\CODEGEN_PROJECT1_MAIN.bas"
Error 516 in E:\PBWIN90\FIREFLY31\PROJECTS\PROJECT1\RELEASE\CODEGEN_PROJECT1_FORMLABELPOPUP_FORM.INC(1225:005):  DefType, Type id (?%&!#$), or AS... required: GETDEFAULTPRINTER
  Line 1225:     GetDefaultPrinter zPrtDef, %MAX_PATH 



GetDefaultPrinter is a Windows API function.  What should I do to fix this problem?

I have attached the project file I am using to try an figure out the problem.  You can try to compile it and see if you can find a solution.  Your help will be most appreciated.  thank you

José Roca