January 26, 2004 [Bug] Error message on unknown interface | ||||
---|---|---|---|---|
| ||||
Attachments: | I've found that the file and line number of the error are omitted if the parent interface is an unknown identifier.
class MyContainer : ComObject
identifier 'ComObject' is not defined
Obviously, std.c.windows.com should be imported to make the code valid, but it'd be better if the error message included the file and line number.
--
Justin
http://jcc_7.tripod.com/d/
|
January 26, 2004 Re: [Bug] Error message on unknown "class" | ||||
---|---|---|---|---|
| ||||
Posted in reply to J C Calvarese | J C Calvarese wrote: > I've found that the file and line number of the error are omitted if the parent interface is an unknown identifier. Actually, ComObject is an unknown class. (I guess I shouldn't post right before I go to bed.) > > class MyContainer : ComObject > > identifier 'ComObject' is not defined > > > Obviously, std.c.windows.com should be imported to make the code valid, but it'd be better if the error message included the file and line number. > > > ------------------------------------------------------------------------ > > //private import std.c.windows.com; > private import std.c.windows.windows; > > class MyContainer : ComObject > { > HWND mywnd; > IOleObject browserObject; > } > > > void main() > { > } -- Justin http://jcc_7.tripod.com/d/ |
Copyright © 1999-2021 by the D Language Foundation