Please help me for creating a CDC object as follows.
I have a DrawGraphic(CDC* pDC) method in DLL, In which iam loading this one in a background process( executes sometimes before user logges in).
Can I build CDC object with my own values and passed to this function. This is works when I pass a compatible dc or printer dc or if create a dc like this
dispDC.CreateDC("DISPLAY", NULL, NULL, NULL);
but for some reason this doesnt work when iam in back ground mode. Friends please help me how to build a CDC object with all necessary values....
Thanks in advance