[No off site links allowed, auto quoted for you below]

//Resources.rc
P_MENUBG PNG "Resources\\menubg.png"
//Resources.h
#define P_MENUBG 100
//main.cpp
hResInfo = FindResource(NULL, MAKEINTRESOURCE(P_MENUBG), "PNG");



this fails, well
its for my d3dhook i inject in a game...
i want to store png's for sprites in the dll

got my fail

//false: D3DXCreateTextureFromResource(pDevice,GetModuleHan dle(NULL), MAKEINTRESOURCE(P_MENUBG), &BGMENU);

//right: D3DXCreateTextureFromResource(pDevice,GetModuleHan dle("mydll.dll"), MAKEINTRESOURCE(P_MENUBG), &BGMENU);