Creating a thread from DllMain is actually the correct way to do it.
However, unless you created your device with D3DCREATE_MULTITHREADED there's a good chance it will crash when you load the texture as resource creation in dx9 is not threadsafe and should only done from the main thread (correct me if i'm wrong)
Are you trying to make some sort of plugin system for your game or a generic dll that you can plug into any dx9 game?
What error are you getting anyway?
MadrManMember Since 30 Oct 2009
Offline Last Active Mar 29 2012 03:35 AM
- Group Members
- Active Posts 14
- Profile Views 631
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
MadrMan hasn't added any contacts yet.