Invalid cast type error
From: Glenn Robinson (Glenn_at_Flying-Fields.co.uk)
Date: 08/26/04
- Next message: Andrew Thompson: "Re: Invalid cast type error"
- Previous message: Larry Barowski: "Re: GridBagLayout confusion"
- Next in thread: Andrew Thompson: "Re: Invalid cast type error"
- Reply: Andrew Thompson: "Re: Invalid cast type error"
- Reply: Michael Borgwardt: "Re: Invalid cast type error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 26 Aug 2004 06:21:26 +0100
Hello,
I create a new class object at runtime using:
Class dmClass = Class.forName(dmClassName);
I want to be able to use the Class object, dmClass, to cast new objects but
I can't seem to get this to work. I've tried:
(dmClass) .......
(dmClass.getName()).....
But I get an Invalid Cast type expression error.
How can I use dmClass as the cast type in a statement?
Thanks
-- Glenn
- Next message: Andrew Thompson: "Re: Invalid cast type error"
- Previous message: Larry Barowski: "Re: GridBagLayout confusion"
- Next in thread: Andrew Thompson: "Re: Invalid cast type error"
- Reply: Andrew Thompson: "Re: Invalid cast type error"
- Reply: Michael Borgwardt: "Re: Invalid cast type error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|