how do u verify the hBmp? if(hBmp) ?
thanks
Type: Posts; User: w384life
how do u verify the hBmp? if(hBmp) ?
thanks
yeah originally it was a CPaintDC i was playing around with differnt ones to see if it made a differance......yes i am loading the bitmap every time i paint simply becasue i want to make it work...
void CTexPropDlg::OnPaint()
{
CClientDC dc(this);
CBitmap bmp;
HBITMAP hBmp = (HBITMAP)::LoadImage(
NULL,
"test.bmp",
IMAGE_BITMAP,
...
Ok I have a Dialog Box that a need to display a Bitmap in that has to be loaded from a .bmp file. I'm Using MFC....i can loaded the BMP to a Cbitmap....but when i i try to draw it to the dialog i...
why doest the following function only fail when in fullscreen mode? if im in windowed mode im fine.
HRESULT hr = D3DXCreateTextureFromFileEx (d3dDevice, fileName, 0, 0, 0, 0,
...
thanks. Didnt even thing of using a string class.
another question. I was messing around with malloc and it wasnt allocationg what i wanted. explain what im doing wrong here please.
...
ok how would i do that then if i dont know what the size of the "message" is going to be?
Now to the best of my knowlege the following code should work. but it casues an "Access violation" every time i try to run it.
int main(int argc, char* argv[])
{
char *message;
int...