daniel,
thanks for your input. i'm guessing that when you build the dll the first time, you did not have the target settings set to export the functions.
this is definitely not the case on my machine. actually, i've been able to get the application to run properly under windows xp; however, the app bombs under windows nt, again on the second call.
as far as the freelibrary call, this is something that i do in my real application, but wanted to pare this down in the example.
the output that i get on my machine is as follows:
open call succeeded for PS1
and then program execution halts. as i said earlier, in the debugger, it's clear that some sort of access violation occurs on the second call.
thanks again! any additional information is defi
nitely appreciated.