Menu

common c++ win32 - bad_cast exception

Anonymous
2001-09-10
2001-09-10
  • Anonymous

    Anonymous - 2001-09-10

    Hi
    I'm having problems confirming my installation of the 'common c++' environment. I'm using visual C++ 6.0 (no patches) and I am interested in the win32 variant.

    The problem I'm having is with the apesock demo. The lines -
        tcp >> i;
    and
             tcp << "user entered " << i  << endl;

    both generate a bad_cast exception - both exceptions are related to the integer i. My guess is that I'm missing a library patch, but I can't find any clues as to what that might be - the 'Dinkum' upgrade perhaps.

    Any suggestion would be appreciated.

    MikeS

     
    • Adam Fanello

      Adam Fanello - 2001-09-10

      I'm not sure if this is being caused by the lack of the Dinkum fixes or not. However, if you don't have the fixes then you will likely run into other problems eventually. Go get them at:

      http://www.dinkumware.com/vc_fixes.html

      As for the demos... once you get past the compile-time error you will run into run-time errors. I'm trying to find someone here who can actually tell us just what does and does not work in this library (particularly win32).

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.