• OpenDoors & InterBBS Toolkits

    From Jon Justvig@STEPPING to All on Fri Mar 5 18:19:44 2010
    Hi all,

    I'm using the OpenDoor toolkit to develop my door game, Legion. I just recently found OpenDoor InterBBS toolkit. When I compile, I get this error and was wondering if any C/C++ coders out there could help me get this compiled. The problem seems to be when I include the interbbs.c source file inside my code. I'm using Borland C++ v5.5 and here's the error log:


    C:\legion>comp.bat

    C:\legion>bcc32 -tW legion0017.cpp odoorw.lib
    Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
    legion0017.cpp:
    Compiling for Win32 DLL version of OpenDoors
    Warning W8059 OpenDoor.h 1098: Structure packing size has changed
    Error E2238 InterBBS.h 35: Multiple declaration for 'WORD'
    Error E2344 c:\Borland\Bcc55\include\windef.h 145: Earlier declaration of 'WORD'
    Error E2034 interbbs.c 236: Cannot convert 'void *' to 'char *' in function IBSend(tIBInfo *,char *,void *,int)
    Warning W8004 interbbs.c 266: 'nTextSize' is assigned a value that is never used in function IBSend(tIBInfo *,char *,void *,int)
    Error E2034 interbbs.c 288: Cannot convert 'const void *' to 'const char *' in function EncodeBuffer(char *,const void *,int)
    Warning W8057 interbbs.c 315: Parameter 'pBuffer' is never used in function EncodeBuffer(char *,const void *,int)
    Error E2034 interbbs.c 321: Cannot convert 'void *' to 'char *' in function DecodeBuffer(const char *,void *,int)
    Warning W8008 interbbs.c 339: Condition is always true in function DecodeBuffer(const char *,void *,int)
    Warning W8057 interbbs.c 365: Parameter 'pDestBuffer' is never used in function DecodeBuffer(const char *,void *,int)
    Warning W8012 interbbs.c 433: Comparing signed and unsigned values in function WriteMessage(char *,unsigned long,tMessageHeader *,char *)
    Error E2034 interbbs.c 470: Cannot convert 'void *' to 'char *' in function ReadMessage(char *,unsigned long,tMessageHeader *,char * *)
    Warning W8012 interbbs.c 487: Comparing signed and unsigned values in function ReadMessage(char *,unsigned long,tMessageHeader *,char * *)
    Error E2034 interbbs.c 774: Cannot convert 'void *' to 'tOtherNode *' in function ProcessConfigLine(int,char *,void *)
    Error E2034 interbbs.c 782: Cannot convert 'void *' to 'tOtherNode *' in function ProcessConfigLine(int,char *,void *)
    Warning W8012 scores.cpp 274: Comparing signed and unsigned values in function max_string_length(int)
    Warning W8057 legion0017.cpp 3540: Parameter 'hInstance' is never used in function __stdcall WinMain(HINSTANCE__ *,HINSTANCE__ *,char *,int)
    Warning W8057 legion0017.cpp 3540: Parameter 'hPrevInstance' is never used in function __stdcall WinMain(HINSTANCE__ *,HINSTANCE__ *,char *,int)
    Warning W8059 legion0017.cpp 3542: Structure packing size has changed
    *** 8 errors in Compile ***
    1 file(s) copied.
    1 file(s) copied.

    I know I'm using a C code source code inside CPP. Here is more information:

    USING THIS PACKAGE

    In order to use the functionality of this package in your
    programs, you must setup your C or C++ compiler to compile and
    link the interbbs.c module with your program. To do this, create
    a project file or makefile that lists the names of your program's
    .C/.CPP source file(s), along with the interbbs.c file. Also, you
    must include the interbbs.h file in any modules of your program
    that will use any of the Inter-BBS capabilities. To do this,
    simply include the following line at the beginning of your
    .C/.CPP source file:

    #include "interbbs.h"

    What would be the best way to approach this issue?

    -+-

    Jon Justvig
    Stepping Stone BBS
    Home of Legion & LegionNet
    http://www.steppingstonebbs.com
    telnet://stepping.synchro.net
    yahoo: justvig76@sbcglobal.net
    fidonet: 1:298/5

    ---
    ■ Synchronet ■ Stepping Stone BBS - stepping.synchro.net
  • From Nightfox to Jon Justvig on Fri Mar 5 18:50:40 2010
    Re: OpenDoors & InterBBS Toolkits
    By: Jon Justvig to All on Fri Mar 05 2010 18:19:44

    Error E2238 InterBBS.h 35: Multiple declaration for 'WORD'
    Error E2344 c:\Borland\Bcc55\include\windef.h 145: Earlier declaration of 'WORD'

    It sounds like WORD is declared in both InterBBS.h and windef.h, and thus, they're clashing (C/C++ compilers usually like things declared only once).

    Error E2034 interbbs.c 236: Cannot convert 'void *' to 'char *' in function IBSend(tIBInfo *,char *,void *,int)

    That's a littleworrisome. Usually, if programmers really know what they're doing, an explicit cast should solve those problems, and it looks like the InterBBS library has a bunch of those problems. It would probably take quite a bit of time to go through and fix the library..

    Nightfox
  • From Jon Justvig@STEPPING to Nightfox on Sat Mar 6 03:43:00 2010
    Nightfox scribbed to Jon Justvig <=-

    Re: OpenDoors & InterBBS Toolkits
    By: Jon Justvig to All on Fri Mar 05 2010 18:19:44

    It sounds like WORD is declared in both InterBBS.h and windef.h, and
    thus, they're clashing (C/C++ compilers usually like things declared
    only once).

    Yeah, the header seems just fine. I tried taking out the WORD definition statement and that seemed to fix that one.

    Error E2034 interbbs.c 236: Cannot convert 'void *' to 'char *' in function IBSend(tIBInfo *,char *,void *,int)

    That's a littleworrisome. Usually, if programmers really know what they're doing, an explicit cast should solve those problems, and it
    looks like the InterBBS library has a bunch of those problems. It
    would probably take quite a bit of time to go through and fix the library..

    That's what you were telling me. I'm wondering if it's worth the trouble
    and it's out-dated as it is, I'm not quite sure. I wonder if Digital Man
    might look at this and upgrade it like he did the actual OpenDoor SDK.
    That'd be nice. Just looking at that, I'm like, "What!?!!". So, TTYL.

    -- Jon

    ... Got my tie caught in the fax... Suddenly I was in L.A.
    --- MultiMail/Win32 v0.49
    ■ Synchronet ■ Stepping Stone BBS - stepping.synchro.net
  • From Jon Justvig@STEPPING to Nightfox on Sat Mar 6 03:43:00 2010
    Nightfox scribbed to Jon Justvig <=-

    Re: OpenDoors & InterBBS Toolkits
    By: Jon Justvig to All on Fri Mar 05 2010 18:19:44

    It sounds like WORD is declared in both InterBBS.h and windef.h, and
    thus, they're clashing (C/C++ compilers usually like things declared
    only once).

    Yeah, the header seems just fine. I tried taking out the WORD definition statement and that seemed to fix that one.

    Error E2034 interbbs.c 236: Cannot convert 'void *' to 'char *' in function IBSend(tIBInfo *,char *,void *,int)

    That's a littleworrisome. Usually, if programmers really know what they're doing, an explicit cast should solve those problems, and it
    looks like the InterBBS library has a bunch of those problems. It
    would probably take quite a bit of time to go through and fix the library..

    That's what you were telling me. I'm wondering if it's worth the trouble
    and it's out-dated as it is, I'm not quite sure. I wonder if Digital Man
    might look at this and upgrade it like he did the actual OpenDoor SDK.
    That'd be nice. Just looking at that, I'm like, "What!?!!". So, TTYL.

    -- Jon

    ... Got my tie caught in the fax... Suddenly I was in L.A.
    --- MultiMail/Win32 v0.49
    ■ Synchronet ■ Stepping Stone BBS - stepping.synchro.net