|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++.windows.32-bits - Error: voids have no value...
Hi, I get this error here:
//
// The Engine will call this function in the viewer to pass in
// setup information
//
extern "C" {
void DllExport dtsSetupViewer(
^
d:\develop\dtsearch\include\dtsviewr.h(410) : Error: voids have no value;
ctors, dtors and invariants have no return value
void DllExport dtsSetupViewer(dtsViewerSetupInfo& info);
}
Here is the declaration of "dtsViewerSetupInfo":
struct dtsViewerSetupInfo {
void (*logMessage)(const char *str); // adds a string to the dtSearch
debug log
long lzwEnableCode;
dtsEngineFunctions *engineFunctions;
long flags;
long engineBuild;
long reserved[15];
void setFlag(long f, int fOn) {
if (fOn)
flags |= f;
else
flags &= (~f);
}
int checkFlag(long f) {
return flags & f;
}
// Reserved for internal use
dtsAlphabet *alphabet;
dtsViewerSetupInfo();
};
Does anybody know what the problem is? To which void is the compiler
referring? To the return value? Somehow I have the feeling that this doesn't
has to do with the struct at all...
--
Robert M. Münch
IT & Management Freelancer
Mobile: +49 (0)177 2452 802
Fax : +49 (0)721 8408 9112
Web : http://www.robertmuench.de
Nov 11 2002
It could be that the "DllExport" is not defined anywhere. -Walter "Robert M. Münch" <robert.muench robertmuench.de> wrote in message news:aqop50$uaq$1 digitaldaemon.com... Nov 11 2002
"Walter" <walter digitalmars.com> schrieb im Newsbeitrag news:aqotl8$134f$2 digitaldaemon.com...It could be that the "DllExport" is not defined anywhere. -Walter Nov 12 2002
|