I haven't tried it with the redistributable package, but both machines have VS2005 on them, the only difference is that I did not compile and install OSG on the laptop, which is where it isn't working.
This is my first DLL project, and one of the first few I am doing on VS2005, so I am not 100% up to speed with the IDE. I was able to get my DLL to register on the laptop after I copied a bunch of the OSG .DLL's onto it, but when i went to use it in my program, CoCreateInstance was returning an error of 8007007E. I am not sure what this means. Any help is appritiated. The project just going into OSG and retrieds all the z values it intersects with at a given X and Y location. Nothing fancy, just easier than trying to compile OSG with Borland C++Builder. Geoff On Wed, Nov 26, 2008 at 1:52 PM, Cole, Charles E. (LARC-B702)[GENEX SYSTEMS] <[EMAIL PROTECTED]> wrote: > Hi Geoff, > > Not sure of your particular use, but I have written COM components for > Windows that use the OSG components, and have deployed those on other > machines without issues. These were all developed using VS2005. > > There's no real magic as far as I know. I did have to install the > Visual C++ 2005 Redistributable Package that's available from Microsoft > (this installs the runtime libraries). I also had to register the > components (for DLL's using regsvr32.exe and for EXE's using the EXE > name with "/regserver" appended). > > Have you tried installing the redistributable package? > > Chuck > >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:osg-users- >> [EMAIL PROTECTED] On Behalf Of Geoff >> Sent: Wednesday, November 26, 2008 10:42 AM >> To: OpenSceneGraph Users >> Subject: [osg-users] Issue creating a stand alone DLL >> >> Ok, I am having a problem creating a stand alone DLL that wraps some >> functionality of OpenSceneGraph so that I can use it via COM in my >> CodeGear C++ Builder app. >> >> I have created the dll, and have been successful in using it on my >> development machine, but only in debug mode and only on that machine. >> >> My question is, is there a proper way to create a DLL in Visual Studio >> 2005, using C++, and encapsulating it so that it can be deployed onto >> other machines? Any help would be greatly appretiated as I have >> exhausted my knowledge and the deadline is fast approaching. >> _______________________________________________ >> osg-users mailing list >> [email protected] >> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or > g > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

