I have designed a nice program that utilizes a dll for sending email. I have it working great, and then ran into the following problem. Listed below is the code:
+++++++++++++++++++++++++++++++++++++++++++++++++
* Define events using built in classes of the dll.
* Each event procedure can have custom user code for it.
DEFINE CLASS myClass as Session OLEPUBLIC
IMPLEMENTS __SMTPSession IN "c:\windows\system\OSSMTP.dll"
++++++++++++++++++++++++++++++++++++++++++++++++++++++
I installed the program on a computer where the hard drive was partitioned, and the operating system was located on drive F instead of C.
So when I ran the program, everything worked fine except for this. Of course the IMPLEMENTS_ line craps because of the call to the C drive.
How does one code this, so it does not matter which "drive" the windows\system folder is located the call will find it?
My installer (inno setup) put the dll in the windows\system folder on the F drive....that part was easy.
+++++++++++++++++++++++++++++++++++++++++++++++++
* Define events using built in classes of the dll.
* Each event procedure can have custom user code for it.
DEFINE CLASS myClass as Session OLEPUBLIC
IMPLEMENTS __SMTPSession IN "c:\windows\system\OSSMTP.dll"
++++++++++++++++++++++++++++++++++++++++++++++++++++++
I installed the program on a computer where the hard drive was partitioned, and the operating system was located on drive F instead of C.
So when I ran the program, everything worked fine except for this. Of course the IMPLEMENTS_ line craps because of the call to the C drive.
How does one code this, so it does not matter which "drive" the windows\system folder is located the call will find it?
My installer (inno setup) put the dll in the windows\system folder on the F drive....that part was easy.