do your updated functions compile cleanly?
Code: Select all
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
TDPrev2PDF.c
HB_FUNC_STATIC( PDFBEGIN ) // ( cPDF )
m:\bisys\allprg\TDPrev2PDF.prg(469): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt\stdio.h(207): note: see declaration of 'fopen'
HB_FUNC_STATIC( PGJPEG1 ) // ( nImageAt, nPage, nJpegWidth, nJpegHeight, cJpegBuf )
m:\bisys\allprg\TDPrev2PDF.prg(532): warning C4267: '+=': conversion from 'size_t' to 'LONG', possible loss of data
m:\bisys\allprg\TDPrev2PDF.prg(526): warning C4244: 'initializing': conversion from 'HB_SIZE' to 'LONG', possible loss of data
m:\bisys\allprg\TDPrev2PDF.prg(573): warning C4244: '=': conversion from 'HB_SIZE' to 'long', possible loss of data
HB_FUNC( GDIP_EMFTOJPG )
m:\bisys\allprg\TDPrev2PDF.prg(619): error C2065: 'Metafile': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(619): error C2065: 'original': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(619): error C2065: 'new': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(619): error C2106: '=': left operand must be l-value
m:\bisys\allprg\TDPrev2PDF.prg(619): error C2146: syntax error: missing ';' before identifier 'Metafile'
m:\bisys\allprg\TDPrev2PDF.prg(619): warning C4013: 'Metafile' undefined; assuming extern returning int
m:\bisys\allprg\TDPrev2PDF.prg(621): warning C4013: 'AnsiToWide' undefined; assuming extern returning int
m:\bisys\allprg\TDPrev2PDF.prg(626): error C2065: 'original': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(626): error C2223: left of '->GetWidth' must point to struct/union
m:\bisys\allprg\TDPrev2PDF.prg(627): error C2065: 'original': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(627): error C2223: left of '->GetHeight' must point to struct/union
m:\bisys\allprg\TDPrev2PDF.prg(649): error C2065: 'Bitmap': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(649): error C2065: 'newImage': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(649): error C2065: 'new': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(649): error C2106: '=': left operand must be l-value
m:\bisys\allprg\TDPrev2PDF.prg(649): error C2146: syntax error: missing ';' before identifier 'Bitmap'
m:\bisys\allprg\TDPrev2PDF.prg(649): warning C4013: 'Bitmap' undefined; assuming extern returning int
m:\bisys\allprg\TDPrev2PDF.prg(650): error C2065: 'newImage': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(650): error C2223: left of '->SetResolution' must point to struct/union
m:\bisys\allprg\TDPrev2PDF.prg(652): error C2065: 'Graphics': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(652): error C2065: 'g': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(652): error C2065: 'new': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(652): error C2106: '=': left operand must be l-value
m:\bisys\allprg\TDPrev2PDF.prg(652): error C2146: syntax error: missing ';' before identifier 'Graphics'
m:\bisys\allprg\TDPrev2PDF.prg(652): warning C4013: 'Graphics' undefined; assuming extern returning int
m:\bisys\allprg\TDPrev2PDF.prg(652): error C2065: 'newImage': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(653): error C2065: 'g': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(653): error C2223: left of '->Clear' must point to struct/union
m:\bisys\allprg\TDPrev2PDF.prg(653): error C2065: 'Color': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(653): error C2143: syntax error: missing ')' before ':'
m:\bisys\allprg\TDPrev2PDF.prg(653): error C2059: syntax error: ')'
m:\bisys\allprg\TDPrev2PDF.prg(654): error C2065: 'g': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(654): error C2223: left of '->SetSmoothingMode' must point to struct/union
m:\bisys\allprg\TDPrev2PDF.prg(654): error C2065: 'SmoothingModeAntiAlias': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(656): error C2065: 'g': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(656): error C2223: left of '->DrawImage' must point to struct/union
m:\bisys\allprg\TDPrev2PDF.prg(656): error C2065: 'original': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(659): error C2065: 'EncoderParameters': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(659): error C2146: syntax error: missing ';' before identifier 'encoderParameters'
m:\bisys\allprg\TDPrev2PDF.prg(659): error C2065: 'encoderParameters': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(661): error C2065: 'encoderParameters': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(661): error C2224: left of '.Count' must have struct/union type
m:\bisys\allprg\TDPrev2PDF.prg(662): error C2065: 'encoderParameters': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(662): error C2224: left of '.Parameter' must have struct/union type
m:\bisys\allprg\TDPrev2PDF.prg(663): error C2065: 'encoderParameters': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(663): error C2224: left of '.Parameter' must have struct/union type
m:\bisys\allprg\TDPrev2PDF.prg(663): error C2065: 'EncoderParameterValueTypeLong': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(664): error C2065: 'encoderParameters': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(664): error C2224: left of '.Parameter' must have struct/union type
m:\bisys\allprg\TDPrev2PDF.prg(666): error C2065: 'encoderParameters': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(666): error C2224: left of '.Parameter' must have struct/union type
m:\bisys\allprg\TDPrev2PDF.prg(672): error C2065: 'newImage': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(672): error C2223: left of '->Save' must point to struct/union
m:\bisys\allprg\TDPrev2PDF.prg(672): error C2065: 'encoderParameters': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(674): error C2065: 'delete': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(674): error C2146: syntax error: missing ';' before identifier 'newImage'
m:\bisys\allprg\TDPrev2PDF.prg(674): error C2065: 'newImage': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(675): error C2065: 'delete': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(675): error C2146: syntax error: missing ';' before identifier 'g'
m:\bisys\allprg\TDPrev2PDF.prg(675): error C2065: 'g': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(676): error C2065: 'delete': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(676): error C2146: syntax error: missing ';' before identifier 'original'
m:\bisys\allprg\TDPrev2PDF.prg(676): error C2065: 'original': undeclared identifier
m:\bisys\allprg\TDPrev2PDF.prg(677): error C2039: 'Release': is not a member of 'IStream'
C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um\objidlbase.h(2394): note: see declaration of 'IStream'
m:\bisys\allprg\TDPrev2PDF.prg(598): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt\stdio.h(207): note: see declaration of 'fopen'
m:\bisys\allprg\TDPrev2PDF.prg(606): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
m:\bisys\allprg\TDPrev2PDF.prg(621): warning C4047: 'initializing': 'LPWSTR' differs in levels of indirection from 'int'