realbasic-plugins
[Top] [All Lists]

Path of DLL

To: realbasic-plugins at lists dot realsoftware dot com
Subject: Path of DLL
From: "Kristof Coene" <kristofcoene at gmail dot com>
Date: Fri, 10 Mar 2006 09:25:44 +0100
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=fxJ02Liq2an5pGlg8++ZaAIEc4PafdZuAD53YXQVIiNBLewpeWLFZhXMYvrPzQliuABHolz79NPbXdEu2Y8lhiMDfTwD065c3e8uzQJKLB3QsdT4b+ZWO2zs0XMSWXchNiewSQNt9J6D0nEJGGd20mFunIQWjPksyx1S2gCPtr4=
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?

Kristof
_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>