library/WIN32API
DLL내에서 윈도우 생성 시 thread, hInstance, GetModuleHandle
란마12
2009. 12. 31. 11:03
DLL안에서 thread로 윈도우를 생성할 때
CreateWindow에 인자로 쓰이는 hInstance를 GetModuleHandle(NULL)로 사용하면 안됨.
DLL이 로드될 때 생성되는 hInstance를 사용해야 함.