Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GenericMDIApp.cc - Class does not exist dbase plus8

Status
Not open for further replies.

justfreakingout

Programmer
Jun 3, 2014
5
PT
Hi there!

I am trying to get an app I just finished working and I am getting some guidelines from some tutorials I found on the knowledge center.

I am using dBASE PLUS 8

The problem is: when I run the "start.prg" it will flag the error Class does not exist: EXMENU::EXMENU
and sends me the genericmdiapp.cc to the following set of code:

// set a reference to the menu
private c
// build the command (a 'macro'):
c = 'this.rootMenu = new '+this.MenuClassName+;
'(_app.framewin,"Root")'
// execute it:
&c.

I am positive I have this class set and I cannot find the error.


(The Start.prg contains:

local app, f
set talk off
set procedure to GenericMDIApp.cc additive
app = new ThisApp()
app.open()
f = new firstForm()
app.rootmenu.openForm(f)
return

class ManutencaoApp of GenericMDIApp()
this.FrameWinText = "New dbase database"
this.MenuClassName = "EXMENU"
endclass

)

If I "Fix" the problem by commenting the lines it rejects, the program will exit design mode and nothing will happen.



Regards,
a fellow almost programmer
 
Correction:

local app, f
set talk off
set procedure to GenericMDIApp.cc additive
app = new ThisApp()
app.open()
f = new firstForm()
app.rootmenu.openForm(f)
return

class ThisApp of GenericMDIApp()
this.FrameWinText = "New dbase database"
this.MenuClassName = "EXMENU"
endclass
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top