Wed, 01/24/2007 - 07:45
hi everyone,
i have tried to integrate the following code in my applcation and the errors are get raised...when i compile and run the same code as a seperate application, it works perfectly... i dont know wats the problem....kindly help me out in this regard.... i have attached the following code over here.....
In my MFC main application....
IN HEADER FILE:
Handle(Graphic3d_WNTGraphicDevice) GetGraphicDevice() const
{
return myGraphicDevice;
}
Handle(Graphic3d_WNTGraphicDevice) myGraphicDevice;
IN .CPP FILE:
I have initialized the graphic device as follows,
myGraphicDevice = new Graphic3d_WNTGraphicDevice();
the Errors which i received are as follows....
error C2061: syntax error : identifier 'Graphic3d_WNTGraphicDevice'
D:\recode\Code\clear.h(61) : error C2146: syntax error : missing ';' before identifier 'GetGraphicDevice'
D:\recode\Code\clear.h(149) : error C2061: syntax error : identifier 'Graphic3d_WNTGraphicDevice'
D:\recode\Code\clear.h(149) : error C2146: syntax error : missing ';' before identifier 'myGraphicDevice'
D:\recode\Code\clear.h(149) : error C2535: 'int __thiscall CStanditApp::Handle(void)' : member function already defined or declared
D:\recode\Code\clear.h(61) : see declaration of 'Handle'
D:\recode\Code\clear.h(149) : error C2501: 'myGraphicDevice' : missing storage-class or type specifiers
Error executing cl.exe.
Wed, 01/24/2007 - 16:56
Looks very much like your missing a #include which the compiler can find in your test application, but not in your main.
Pete
Wed, 01/24/2007 - 17:03
Or possibly its #include you're missing.
Pete
Thu, 01/25/2007 - 07:04
hi pete,
thanks for your reply....ya as you have mentioned i have certainly missed the include directive....now i got it cleared....
Regards,
E.G.Arun Prasath...
Thu, 01/25/2007 - 07:07
hi pete,
thanks for your reply....ya as you have mentioned i have certainly missed the include directive....now i got it cleared....
Regards,
E.G.Arun Prasath...