09-25-2009 10:35 AM
SO are you saying recompile that function "DLLEXPORT" in my dll in c++ with that function, and then call the function without "DLLEXPORT".
im a lil confuse on what you are telling me, i have three different people tell me three different things about this one function "DLLEXPORT".
now can some one break this down on what to do with this function.
09-25-2009 10:54 AM
09-28-2009 03:25 PM
09-28-2009 03:42 PM
09-28-2009 04:26 PM
let me start a new forum, basically dealing with Com objects, so basically im interfacing with another file which is a .lib file. and its not in the path directory.
now dont get me wrong to fix all i have to do put everything in the path . I know that way very well, but my question is instead of doing that way, how can i
just point to the directory that its in. is there a way? if so? can you show me.
09-28-2009 05:21 PM
09-28-2009 06:42 PM
09-29-2009 01:34 AM
i assume you are talking about loading a dll when launching an application.
if the dll is linked statically into your software you just can't: it is the job of the OS to load the dll, and the only way for it to do so is when the dll is in the path or in the current directory.
now, you can load the dll dynamically using the LoadLibrary() function. this way you can tell the software where it should look to find the dll, but it is at least twice the work. this is usefull when writing a plug-in system.
also, please use the right wording: a COM object do never need to be in the path. when installing a COM object on a system, you have to register it (using regsvr32 for example): this writes its path into the registry, and since you access the COM object by GUID, the system takes care of finding the object from the path in the registry.
09-29-2009 06:38 AM
I found out how to do it, I pass the regsiter part along time ago. what was i had to go to my computer and right click and go to preference, and then go to advanced
and then go to environment variables andthe path or directory, that way the path i want to open up or get to it will automatically go to, without me copy and pasting and
putting it in the directory