Thank you, Kim! THX a lot!
Was it those that you deleted? Yes, I just delet thems, because I found that these two "inline " functions had not been used in anywhere. And now my project just goes right, the same with the "oceanExample". Sorry , I did not know the meaning of "the trunk update" clearly. And I just put the ocean code in MFC+OSG project's function:"InitSceanGraph()". Cheers, mt Kim Bale wrote: > Hi MT, > > > > > > > I found that: the two lines of error code in "oceanscean.h" had not been > > > used in anywhere, so I just delete them. > > > > > > > If the problem relates to lines 213 and 223 in the OceanScene header > then those member variables are used to set and store the depth of > field parameters.. > > Was it those that you deleted? If the trunk update didn't solve it I'd > be keen to find out what the real cause is. > > Cheers, > > Kim. > > > > 2009/10/30 Tian Ma <>: > > > > > Kim Bale wrote: > > > > > Hi Tian, > > > > > > Try using the version in the trunk, there was a header conflict with > > > <windows.h> in 1.0 that has since been resolved. > > > > > > Cheers. > > > > > > Kim. > > > > > > > > > > > > 2009/10/30 Tian Ma <>: > > > > > > > > > > Hi, > > > > > > > > I'am a new osgOcean user in China, My name is Tian Ma. > > > > > > > > First,I established an empty osg+MFC project. NO ERROR! > > > > > > > > Then, I add oceanScene example files to the project, and delete > > > > the "main()" function > > > > in the "application.cpp" file. Then errors emerge: > > > > > > > > c:\...\osgocean\oceanScene(213) : error C2059 : syntax error : ";" > > > > c:\...\osgocean\oceanScene(223) : error C2059 : syntax error : ";" > > > > > > > > In order to find the problems, I delete all the oceanScene example > > > > files, > > > > and just add code "#include <oceanScene>" head file to "stdafx.h". But > > > > the > > > > same errors. > > > > > > > > Have you guys used osgOcean in MFC project? What may caused the > > > > problem? > > > > > > > > > > > > Thank you! > > > > > > > > THX a lot! > > > > > > > > I have solve the porblems, by note off two lines of code in error. > > > > > > > > I found that: the two lines of error code in "oceanscean.h" had not > > > > been used in anywhere, so I just delete them. > > > > > > > > > > > > Cheers, > > > > mt > > > > > > > > ------------------ > > > > Read this topic online here: > > > > http://forum.openscenegraph.org/viewtopic.php?p=18916#18916 > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > osg-users mailing list > > > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > > > > > > > > > > _______________________________________________ > > > osg-users mailing list > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > ------------------ > > > Post generated by Mail2Forum > > > > > > > > > ------------------ > > Read this topic online here: > > http://forum.openscenegraph.org/viewtopic.php?p=18927#18927 > > > > > > > > > > > > _______________________________________________ > > osg-users mailing list > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ------------------ > Post generated by Mail2Forum ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18977#18977 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org