Click here to Skip to main content
15,881,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionusing activeX in win32 project! Pin
zon_cpp23-Nov-09 19:41
zon_cpp23-Nov-09 19:41 
AnswerRe: using activeX in win32 project! Pin
Richard MacCutchan23-Nov-09 21:40
mveRichard MacCutchan23-Nov-09 21:40 
GeneralRe: using activeX in win32 project! Pin
zon_cpp24-Nov-09 19:05
zon_cpp24-Nov-09 19:05 
GeneralRe: using activeX in win32 project! Pin
Richard MacCutchan24-Nov-09 22:45
mveRichard MacCutchan24-Nov-09 22:45 
GeneralRe: using activeX in win32 project! Pin
zon_cpp25-Nov-09 0:09
zon_cpp25-Nov-09 0:09 
GeneralRe: using activeX in win32 project! Pin
Richard MacCutchan25-Nov-09 1:54
mveRichard MacCutchan25-Nov-09 1:54 
GeneralRe: using activeX in win32 project! Pin
zon_cpp25-Nov-09 21:51
zon_cpp25-Nov-09 21:51 
QuestionLoading Image from file not working? Pin
o m n i23-Nov-09 17:23
o m n i23-Nov-09 17:23 
What's wrong with my code to load an image from a file? It doesn't seem to work. Or is it the code to make it into an HDC that causes the problem?

HBITMAP LoadBitmapFromFile(LPCTSTR szFilename)
{
	HBITMAP hBitmap = NULL;
	hBitmap = (HBITMAP)LoadImage(NULL, szFilename, IMAGE_BITMAP, 0, 0,
		LR_LOADFROMFILE | LR_CREATEDIBSECTION | LR_DEFAULTSIZE);
	return hBitmap;
}


HDC userNewHDC;
HBITMAP userNewBitmap;

        userNewBitmap = LoadBitmapFromFile("C:\imagefile.bmp");
	userNewHDC = CreateCompatibleDC(NULL);
	SelectObject(userNewHDC,userNewBitmap);


I then BitBlt the userNewHDC object but it doesn't seem to work. Whats wrong?
AnswerRe: Loading Image from file not working? Pin
«_Superman_»23-Nov-09 19:37
professional«_Superman_»23-Nov-09 19:37 
AnswerRe: Loading Image from file not working? Pin
tolw23-Nov-09 19:38
tolw23-Nov-09 19:38 
QuestionRe: Loading Image from file not working? Pin
David Crow24-Nov-09 17:04
David Crow24-Nov-09 17:04 
Questionspeech recognization and saving in vc++6.0 Pin
soo preety23-Nov-09 17:02
soo preety23-Nov-09 17:02 
AnswerRe: speech recognization and saving in vc++6.0 Pin
Adam Roderick J23-Nov-09 17:44
Adam Roderick J23-Nov-09 17:44 
QuestionResponds to a menu differently from the toolbar button associated Pin
Gagnon Claude23-Nov-09 16:47
Gagnon Claude23-Nov-09 16:47 
AnswerRe: Responds to a menu differently from the toolbar button associated Pin
Richard MacCutchan23-Nov-09 21:45
mveRichard MacCutchan23-Nov-09 21:45 
QuestionHow to create a owner draw menu without a frame shadow like Pros_UIS? Pin
kcynic23-Nov-09 16:29
kcynic23-Nov-09 16:29 
QuestionDownloading a File from the web ? Pin
Jacobb Michael23-Nov-09 16:25
Jacobb Michael23-Nov-09 16:25 
AnswerRe: Downloading a File from the web ? Pin
«_Superman_»23-Nov-09 16:28
professional«_Superman_»23-Nov-09 16:28 
GeneralRe: Downloading a File from the web ? Pin
Jacobb Michael23-Nov-09 19:36
Jacobb Michael23-Nov-09 19:36 
AnswerRe: Downloading a File from the web ? Pin
wangningyu23-Nov-09 16:32
wangningyu23-Nov-09 16:32 
Questionthe opengl code problem? [modified] Pin
thundersun23-Nov-09 16:19
thundersun23-Nov-09 16:19 
AnswerRe: the opengl code problem? Pin
Tim Craig23-Nov-09 18:28
Tim Craig23-Nov-09 18:28 
GeneralRe: the opengl code problem? Pin
thundersun23-Nov-09 19:29
thundersun23-Nov-09 19:29 
GeneralRe: the opengl code problem? Pin
Cedric Moonen23-Nov-09 20:26
Cedric Moonen23-Nov-09 20:26 
GeneralRe: the opengl code problem? Pin
thundersun23-Nov-09 22:06
thundersun23-Nov-09 22:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.