On Wed, 16 Jan 2008 14:33:03 -0800 (PST), "michael.goossens@gmail.com"
<michael.goossens@gmail.comwrote in comp.lang.c++:
Quote:
I'm a beginning c++ user, pretty handy at java already but I want to
transfer to c++. Particullary because c++ is way better in processing
graphical processes and mathematical calculations fast. So I was
looking at some code of a graphic tool and stumbled on this:
>
COREDLL void pbrtCleanup() {
StatsCleanup();
// API Cleanup
if (currentApiState == STATE_UNINITIALIZED)
Error("pbrtCleanup() called without pbrtInit().");
else if (currentApiState == STATE_WORLD_BLOCK)
Error("pbrtCleanup() called while inside world block.");
currentApiState = STATE_UNINITIALIZED;
delete renderOptions;
renderOptions = NULL;
}
>
Which is a function and I always thought it was <output type>
fct_name(<input types) by syntax. But now there is an extra feature in
front of the output type, the COREDLL thing in this case. Can someone
explain this to me?
Well, not in detail, because it is not something defined by C++.
"COREDLL" is either one of two things:
1. Some sort of non-standard, compiler/platform specific macro that
tells the compiler to do something out of the ordinary, such as use a
particular calling or parameter passing interface.
2. Even more likely, a macro that expands to something equivalent to
number 1.
A quick Google for "COREDLL" turns up links that seem to indicate that
is an extension used particularly for Windows CE, and not.
For more information:
http://www.google.com/search?hl=en&q...=Google+Search Quote:
Also on top of the page there is something defined like:
COREDLL ParamSet NullParams;
>
I'm not sure if I saw it before a class definition too or not but if
so I would like to know about it too :).
>
Thanks alot already
If you don't program for Windows CE, or even better, never heard of
Windows CE, you cannot use this code, at least as it is written.
If you do program for Windows CE, and want more information, try
Microsoft's MSDN web site or Windows CE specific newsgroups. It is a
Windows thing, not a C++ one.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://c-faq.com/
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html