www.digitalmars.com         C & C++   DMDScript  

D - [Bug] Error message on unknown interface

reply J C Calvarese <jcc7 cox.net> writes:
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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/
Jan 25 2004
parent J C Calvarese <jcc7 cox.net> writes:
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.

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/
Jan 26 2004