Thanks Chris, it really helped me out, now the DLL is up and working. There
is only one problem left: I want to have the abilit to have more than 1 of
the DLL file on 1 computer, but since it is hooked up to 1 GUID, there can
only be one working, so I want to have that each dll file has it's own GUID,
but the only way I know is (for VC 6.0) to go to the .idl file, change the
GUID manually and compile the DLL again; Isn't there a more dynamic method
for this?
2006/3/10, Chris Little <[EMAIL PROTECTED]>:
>
> on 3/10/06 3:25 AM, Kristof Coene at [EMAIL PROTECTED] wrote:
>
> > Hi guys,
> >
> > I'm pretty new to the RealBasicPlugin-scene, working on my first plug-in
> for
> > windows and Mac.
> > But I have a problem: for windows, I made a DLL in C++ that the plugin
> can
> > copy to a specific location,
> > and I also need a .txt file in the same directory as the DLL. Now, my
> DLL
> > needs the information of the
> > .txt file to work properly, but it seems that I cannot get the path
> where
> > the DLL is in.
> > Is there any way to let the DLL know in wich path it is in?
> > I used
> >
> > CreateFile("test.txt", GENERIC_READ, 0, NULL, OPEN_EXISTING,
> > FILE_ATTRIBUTE_NORMAL, NULL);
> >
> > but that directs me to C:\documents and settings\Administrator\test.txt
> > while my DLL is in another drectory.
> > Can you guys help me?
>
> In the DllMain method you can call GetModuleFileName to get the path to
> the
> DLL.
>
> Chris
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>