Hi Geoff,

The error code that you're getting indicates that it can't find
something ("specified module could not be found").  Unfortunately, it's
a clue, but doesn't provide much more help (gotta love the informative
error messages).  In these cases, I'd make sure that all of the
dependent DLLs are loaded and placed in a path where the COM module or
calling program can find them.  For me, I usually place all of the
dependency libraries (aside from Microsoft's) in a common directory and
then add that location to the PATH environment variable.

The easiest way to make sure everything is found is to put all of the
executables and DLLs in the same directory. You can use the Dependency
Walker program (DependencyWalker.com) to see all of the dependencies to
make sure that you've grabbed them all.  If that fixes the issue, then
you at least know what the problem is, and then you can place files
where it's most desired and just modify the system paths.

Hope that helps.

Chuck 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:osg-users-
> [EMAIL PROTECTED] On Behalf Of Geoff
> Sent: Wednesday, November 26, 2008 2:40 PM
> To: OpenSceneGraph Users
> Subject: Re: [osg-users] Issue creating a stand alone DLL
> 
> 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.or
g
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to