Thread: StarUML reverse engineering

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001

    StarUML reverse engineering

    It appears this program does not support export/import declarations in classes. Anytime I put an export/import declaration before my class name it thinks the entire class name is the name of the export/import macro.


    #ifdef MYEXPORTS
        #define MYDECL __declspec(dllexport)
        #define MYDECL __declspec(dllimport)
    class MYDECL ISomeInterface
          virtual ~ISomeInterface() { }
          virtual void Foo() = 0;
    StarUML reverse engineers this as a class called MYDECL with a function called Foo() and this isn't even close to correct.

    Anyone else use this free tool and know how to get around this? Ideally I do not want to be forced to remove the import/export declarations from all my classes b/c I'm building a DLL which requires them or clients of my DLL will get all kinds of unresolved externals.

    Note that when I remove the declaration the reverse engineering works as expected.

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Newport, South Wales, UK

    Only thing I can suggest is to keep a copy of your code where everything has been preprocessed. I would hope that it could identify the __declspec, it just can't see it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 03-12-2010, 08:44 AM
  2. Reverse Engineering
    By fcommisso in forum C Programming
    Replies: 8
    Last Post: 12-14-2009, 12:58 AM
  3. Reverse Engineering on a Download file
    By c_geek in forum C Programming
    Replies: 1
    Last Post: 03-22-2008, 03:15 PM
  4. gethostbyaddr() reverse lookups failing (???)
    By Uncle Rico in forum C Programming
    Replies: 9
    Last Post: 08-19-2005, 09:22 AM
  5. Reverse Engineering Tools
    By Goldie in forum A Brief History of
    Replies: 1
    Last Post: 10-26-2004, 11:36 PM