[gme-users] Trouble using BON Extension mechanism

Vijayaraghavan Kalyanapasupathy vijayaraghavan.k at isis.vanderbilt.edu
Mon May 3 22:17:07 CDT 2004


Hi Group,

The offending code from my previous post is attached in the files:

n.b

1. GME Version: 3.10.13
2. BON updated sources from isis.vanderbilt.ed/courses/mic2003 are used 
   (that's not a hyperlink; it refers to MIC 2003 under Courses menu.)
3. Events.cpp and Events.h were appropriately included in the BON2Component
   Project.

Thanx,
Vijai.

> -----Original Message-----
> From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-
> bounces at list.isis.vanderbilt.edu] On Behalf Of Peter Volgyesi
> Sent: Monday, May 03, 2004 4:54 AM
> To: 'A list for GME users to share thoughts and discuss bugs and fixes.'
> Subject: RE: [gme-users] Trouble using BON Extension mechanism
> 
> Hi,
> 
> Please, attach at least the relevant part of your source code. (extension
> class declaration and implementation of the methods/constructors)
> Folders are meant to be used in the Extension mechanism.
> 
> --
> Peter Volgyesi
> 
> > -----Original Message-----
> > From: gme-users-bounces at list.isis.vanderbilt.edu
> > [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf
> > Of Vijayaraghavan Kalyanapasupathy
> > Sent: Monday, May 03, 2004 5:14 AM
> > To: gme-users
> > Subject: [gme-users] Trouble using BON Extension mechanism
> >
> > Hi Group,
> >
> > I am new to this, so I am may be doing something wrong:
> >
> > Essentially, I tried to use the BON Extension mechanism
> > macros and got the foll. errors on compiling:
> >
> > --------------------
> >
> > Compiling...
> > BON2Component.cpp
> > c:\program files\gme\sdk\bon\extensions.h(134) : error C2039:
> > 'type' : is not a member of 'FolderImpl'
> >         c:\program files\gme\sdk\bon\bonimpl.h(362) : see
> > declaration of 'FolderImpl'
> >         c:\program files\gme\sdk\bon\extensions.h(133) :
> > while compiling class-template member function 'enum
> > BON::ExtensionType __cdecl BON::Extension<class
> > BON::FolderImpl,class BON::JGenProjectImpl>::castImpl(enum
> > BON::ObjectType,const class _STL ::basic_string<char,class
> > _STL::char_traits<char>,class _STL::allocator<char> > &,const
> > class _STL::basic_string<char,class
> > _STL::char_traits<char>,class _STL::allocator<char> > &)'
> > c:\program files\gme\sdk\bon\extensions.h(134) : error C2065:
> > 'type' : undeclared identifier
> >         c:\program files\gme\sdk\bon\extensions.h(133) :
> > while compiling class-template member function 'enum
> > BON::ExtensionType __cdecl BON::Extension<class
> > BON::FolderImpl,class BON::JGenProjectImpl>::castImpl(enum
> > BON::ObjectType,const class _STL ::basic_string<char,class
> > _STL::char_traits<char>,class _STL::allocator<char> > &,const
> > class _STL::basic_string<char,class
> > _STL::char_traits<char>,class _STL::allocator<char> > &)'
> > c:\program files\gme\sdk\bon\extensions.h(145) : error C2039:
> > 'string_type' : is not a member of 'FolderImpl'
> >         c:\program files\gme\sdk\bon\bonimpl.h(362) : see
> > declaration of 'FolderImpl'
> >         c:\program files\gme\sdk\bon\extensions.h(133) :
> > while compiling class-template member function 'enum
> > BON::ExtensionType __cdecl BON::Extension<class
> > BON::FolderImpl,class BON::JGenProjectImpl>::castImpl(enum
> > BON::ObjectType,const class _STL ::basic_string<char,class
> > _STL::char_traits<char>,class _STL::allocator<char> > &,const
> > class _STL::basic_string<char,class
> > _STL::char_traits<char>,class _STL::allocator<char> > &)'
> > c:\program files\gme\sdk\bon\extensions.h(145) : error C2065:
> > 'string_type' : undeclared identifier
> >         c:\program files\gme\sdk\bon\extensions.h(133) :
> > while compiling class-template member function 'enum
> > BON::ExtensionType __cdecl BON::Extension<class
> > BON::FolderImpl,class BON::JGenProjectImpl>::castImpl(enum
> > BON::ObjectType,const class _STL ::basic_string<char,class
> > _STL::char_traits<char>,class _STL::allocator<char> > &,const
> > class _STL::basic_string<char,class
> > _STL::char_traits<char>,class _STL::allocator<char> > &)'
> > c:\program files\gme\sdk\bon\extensions.h(145) : error C2678:
> > binary '==' : no operator defined which takes a left-hand
> > operand of type 'class _STL::basic_string<char,class
> > _STL::char_traits<char>,class _STL::allocator<char> >' (or
> > there is no accep table conversion)
> >         c:\program files\gme\sdk\bon\extensions.h(133) :
> > while compiling class-template member function 'enum
> > BON::ExtensionType __cdecl BON::Extension<class
> > BON::FolderImpl,class BON::JGenProjectImpl>::castImpl(enum
> > BON::ObjectType,const class _STL ::basic_string<char,class
> > _STL::char_traits<char>,class _STL::allocator<char> > &,const
> > class _STL::basic_string<char,class
> > _STL::char_traits<char>,class _STL::allocator<char> > &)'
> > Error executing cl.exe.
> >
> > JGenSourceGeneratorBON2Component.dll - 5 error(s), 0 warning(s)
> >
> > ------------------------
> >
> > There are two things I can possibly infer:
> >
> > 1. Folder's are not meant to be used in the Extension mechanism,
> >
> > or
> >
> > 2. It's a bug
> >
> > or
> >
> > 3. I am doing something wrong,
> >
> > Any comments?
> >
> > Thanx,
> > Vijai.
> >
> 
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BON2Component.h
Type: application/octet-stream
Size: 5687 bytes
Desc: not available
Url : http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20040503/70b580ed/BON2Component.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BON2Component.cpp
Type: application/octet-stream
Size: 7626 bytes
Desc: not available
Url : http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20040503/70b580ed/BON2Component-0001.obj


More information about the gme-users mailing list