Hi ,

I resolve it my self when I pass hInstace in Loadresources.

HGLOBAL hbytes = LoadResource(NULL, hres); so it works when I pass

HGLOBAL hbytes = LoadResource(hInstance, hres);

Thanks

Ankit