Hello,
I am currently evaluating Visual Paradigm as a potential solution for building a model of a reasonably large and complex existing system built in Microsoft Visual C++.
As a first step, I had hoped to reverse engineer a model from the source code. However, I’m not having much luck. I tried working with just a basic subset of the code to start with, but got all kinds of errors. I think that VP was having troubles dealing with some of the macros that are defined in the code, so I went even more basic; I got Visual C++ to generate a pre-processed “.i” file based on one of the source files. Unfortunately, VP still couldn’t handle this. I got the following error:
Reason :
Error in parsing source file.
D:\Work\test\sample.cpp\sample.cpp:11881: Warning: no matching class member found for
com::sample::Id(UID::longlong nId)
Possible candidates:
com::sample::Id(const UID &)
com::sample::Id()
com::sample::Id(const Id &)
com::sample::Id(UID::FactoryId Factory, UID::InstanceId Instance)
com::sample::Id(UID::longlong nId)
I really don’t understand what the problem is here - there is an exact match in the ‘Possible candidates’ list, so why is it having problems?
Also, is there any way to tell VP to ignore any warnings that occur during Reverse Engineering, so that it still creates a model, even if it has a few problems? On one of the reverse engineering attempts that I made, it took over 3 hours to process, and then didn’t give me any model at all!
Thanks,
Michael.