Nope. MTDLLs are apartment threaded. Not multithreaded. There is a difference. IMO, it was a mistake for the Fox team to call them Multithreaded.
Using the WinAPI is, IMO, resort to tricks. You may be able to get it to work, but there are some hoops you have to jump through and it may not be stable.
>Yes VFP supports multithreading with .vfp. mutlithreaded dlls (mtdlls). Of course, you have to have a multithreaded client (like IIS) to take advantage of it. You could probably also look at the Win API CreateProcess and use it in this way. Finally, there is a tool someplace that claims to allow regular VFP to multithread...
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer