How to create new M class in VC 6

Login to reply to this topic.
Sun, 2004-06-13 17:36
Joined: 2004-06-13
Forum posts: 21
Hy

From Visual Studio I tried creating a new interface (M class) using the Epoc Class Wizard. The problem is that such a class doesn't have an .cpp implementation file, and thus no entry is added in the project .mmp file. When I later do "bldmake bldfiles" and "abld makefile vc6" the new vc6 workspace doesn't see the new class (not even the header file, although I created it in the project's inc directory). Should I edit another file other than .mmp? What's the trick here? Thanks a lot in advance.

Sun, 2004-06-13 22:42
Joined: 2003-12-05
Forum posts: 683
How to create new M class in VC 6
Just #include the file where you need it, then compile.
Thu, 2004-06-17 15:36
Forum Nokia Champion
Joined: 2004-05-26
Forum posts: 732
Re: How to create new M class in VC 6
Quote from: johnny
Hy

From Visual Studio I tried creating a new interface (M class) using the Epoc Class Wizard. The problem is that such a class doesn't have an .cpp implementation file, and thus no entry is added in the project .mmp file. When I later do "bldmake bldfiles" and "abld makefile vc6" the new vc6 workspace doesn't see the new class (not even the header file, although I created it in the project's inc directory). Should I edit another file other than .mmp? What's the trick here? Thanks a lot in advance.

The tool comes with EPOC is a stupid one. It will create the file in other location... not in src or inc folder. So you create the C++ Source file and C++ Header file using File->New->Files. But make sure that its creating in correct path by sepecifying the location.

Then you mannually edit the mmp file and add a new line
SOURCE <newlycreatedcppfilename>

  • Login to reply to this topic.