Click here to Skip to main content
15,927,514 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to call a dialog in DLL containing Active X - Date Time Picker Pin
Naveen28-May-07 20:22
Naveen28-May-07 20:22 
GeneralRe: how to call a dialog in DLL containing Active X - Date Time Picker Pin
prashant pissey28-May-07 22:32
prashant pissey28-May-07 22:32 
QuestionActive Accessibilty, getting Font properties Pin
avirib27-May-07 0:14
avirib27-May-07 0:14 
QuestionBmp Pin
dodoxor26-May-07 23:01
dodoxor26-May-07 23:01 
AnswerRe: Bmp Pin
Mark Salsbery27-May-07 10:24
Mark Salsbery27-May-07 10:24 
QuestionRe: Bmp Pin
dodoxor27-May-07 23:59
dodoxor27-May-07 23:59 
AnswerRe: Bmp Pin
Mark Salsbery28-May-07 6:38
Mark Salsbery28-May-07 6:38 
QuestionRe: Bmp Pin
dodoxor28-May-07 22:03
dodoxor28-May-07 22:03 
Thanks for answers,it's very useful.
There's a prolem when i try to compile:
HBITMAP hBitmap = ::CreateDIBSection(hdc, &bmi, DIB_RGB_COLORS, &bitmap_buf, NULL, 0);
generate error C2664: 'CreateDIBSection' : cannot convert parameter 4 from 'BYTE **' to 'void **'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
so i try to do a safe cast, i add this line before the CreateDIBSection
void* buff=safe_cast<void *="">(bitmap_buf);
and use &buff instead of bitmap_buf in CreateDIBSection but the result is a list of build error:

error LNK2028: unresolved token (0A0002FA) "extern "C" int __stdcall ReleaseDC(struct HWND__
*,struct HDC__ *)" (?ReleaseDC@@$$J18YGHPAUHWND__@@PAUHDC__@@@Z) referenced in function "private: void __clrcall WinCam::Form1::capimgbut_Click(class System::Object ^,class System::EventArgs ^)" (?capimgbut_Click@Form1@WinCam@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)

WinCam.obj : error LNK2028: unresolved token (0A0002FB) "extern "C" struct HBITMAP__ * __stdcall CreateDIBSection(struct HDC__ *,struct tagBITMAPINFO const *,unsigned int,void * *,void *,unsigned long)" (?CreateDIBSection@@$$J224YGPAUHBITMAP__@@PAUHDC__@@PBUtagBITMAPINFO@@IPAPAXPAXK@Z) referenced in function "private: void __clrcall WinCam::Form1::capimgbut_Click(class System::Object ^,class System::EventArgs ^)" (?capimgbut_Click@Form1@WinCam@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
...and so on.

I don't know why...
Thanks however for help.
Regards.
QuestionHow to do a listbox that have columns in different width? Pin
Chen-XuNuo26-May-07 22:26
Chen-XuNuo26-May-07 22:26 
AnswerRe: How to do a listbox that have columns in different width? Pin
Anurag Gandhi26-May-07 22:42
professionalAnurag Gandhi26-May-07 22:42 
GeneralRe: How to do a listbox that have columns in different width? Pin
Chen-XuNuo27-May-07 2:14
Chen-XuNuo27-May-07 2:14 
AnswerRe: How to do a listbox that have columns in different width? Pin
Hamid_RT28-May-07 8:34
Hamid_RT28-May-07 8:34 
Questionresizing a group box control during runtime Pin
SWDevil26-May-07 22:01
SWDevil26-May-07 22:01 
AnswerRe: resizing a group box control during runtime Pin
Michael Dunn26-May-07 22:20
sitebuilderMichael Dunn26-May-07 22:20 
AnswerRe: resizing a group box control during runtime Pin
Arman S.27-May-07 1:42
Arman S.27-May-07 1:42 
AnswerRe: resizing a group box control during runtime Pin
SWDevil27-May-07 2:15
SWDevil27-May-07 2:15 
GeneralRe: resizing a group box control during runtime Pin
Arman S.27-May-07 3:06
Arman S.27-May-07 3:06 
QuestionOwner-drawn menu bar Pin
Perspx26-May-07 21:59
Perspx26-May-07 21:59 
AnswerRe: Owner-drawn menu bar Pin
Anurag Gandhi26-May-07 22:10
professionalAnurag Gandhi26-May-07 22:10 
GeneralRe: Owner-drawn menu bar Pin
Perspx26-May-07 22:26
Perspx26-May-07 22:26 
QuestionBitmap bits Pin
bankai12326-May-07 21:35
bankai12326-May-07 21:35 
AnswerRe: Bitmap bits Pin
Chris Losinger27-May-07 5:10
professionalChris Losinger27-May-07 5:10 
QuestionHow to add menu when right click at client area? Pin
Max++26-May-07 20:23
Max++26-May-07 20:23 
AnswerRe: How to add menu when right click at client area? Pin
Anurag Gandhi26-May-07 22:08
professionalAnurag Gandhi26-May-07 22:08 
QuestionASSERT(m_pCtrlSite == NULL) error on activex addition Pin
shivditya26-May-07 18:59
shivditya26-May-07 18:59 

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.