On Mon, 16 Jan 2012 22:49:17 +1100, Lloyd Etheridge
<
llo...@lretheridge.com> wrote:
>thanks,
>
>sorry guys I should have posted the sample script online that they gave
>me so you could see what I was referring to however I have posted one
>there now and yes if I can get it to work its supposed to do all that I
>need and more ...
>I have uploaded a copy on the web for the C++ sample to view.
>
http://www.eziaccounts.com.au/software/c++.zip where you can download
>and view all the sample code supplied as well as my error file, I hope
>this helps anyone else out there trying to write pdfs on a web server.
OK, and by opening and actually examining VPEdemo I can see that the
effect of not defining _Windows is to compile for Linux. Have you
tried using -d_Windows with the compiler? Or rather, since you are
using the IDE, by putting _Windows in the "Macro definitions" box on
page 3 of the Compiler switches? Note that case matters here: the
macro is _Windows, not _WINDOWS.
That may or may not work. The problem is that your first error
references a file that is not in the ZIP file. But perhaps that is
only needed when compiling for LINUX.
>One of the main reasons I havent updated my compiler as my motto is "if
>its not broken dont fix it." as one time I have upgraded only to find
>more bugs than I had before and I really dont need the stuffaround at
>the moment.
One of the reasons others will encourage you to update is that any
actual compiler bugs you find may have already been dealt with.
OTOH, OW 1.8 introduced a new C++ compiler. So far as I know, it works
(and we are in OW 1.10 so there has been time to smooth out any major
problems), but I haven't done any C++ programming for quite a while
and so I can understand if you are a bit cautious.
One of the advantages of the new compiler is that (IIRC) it only
instantiates template functions and template member functions (except
at least one constructor and the desctructor) if they are /used/. This
mostly affects 16-bit programming, since the former compiler (the one
you are using) instantiates /everything/ at the earliest opportunity,
such as a typedef, and that results in <string> generating nearly 64K
in code, ie, nearly filling an entire 16-bit code segment. For 32-bit
programming this is less critical, but the new compiler might well
produce smaller executables, unless, of course, you actually reference
every single template member function of every single template class.