Converting C To C++ - It Worked In Original C But Not In Converted C++?
Hi, Doing some audio work with SDL2. Trying to get multi-channel audio to work with just SDL2. We found below working example: https://github.com/jakebesworth/Simple-SDL2-Audio but it is in C so we...
View ArticleMFC and STD::STRING not compatable ???
Im maintaining a legacy app in VC6 aka VS6 (release date 1998, wikipedia), don't have time to upgrade it now. I have found a previous bug in this version I think I found another. I'm trying to write...
View ArticleChanging background Color of CToolbar in MFC
Can anyone provide working code for changing background color of CToolBar? I drill down many links but nothing effective
View Articleenum or static const
I have some legacy code, where they use the magic numbers to index arrays. Snippet is : Code: if(pLossMultiRaster || pSBATrafficLossMultiRaster) { // NOTE - SPECIFIC ORDER IS IMPORTANT!...
View ArticleMake a good like button.
How to make a like button, that show who has like my post, on a social media website.
View ArticleCan we use OnDrawItem for dynamically created CStatic objects ?
The main problem is a CStatic Object is created dynamically & when I'm changing the background of entire dialog to white, the background of dialog changes except the CStatic Object. Also if CStatic...
View ArticleHow To: Prevent duplicate coding
I am rather new in programming and wonder how to compact the code I wrote for using a flexible number of CJMCU-8110 connected to my NodeMCU. In the attached test code below I have 2 connected, but in...
View ArticleTrouble getting program to recieve simulated xinput
I have been writing a program which needs to simulate an input from a controller. I have been using SendInput() with a keyboard input and used VK_GAMEPAD_A as my test key. Code: void PressButton(WORD...
View ArticleCaret not displayed in CEdit control with focus when dialog initially displayed
I have a CDialog derived dialog which has a CFormView derived member which has a number of CEdit derived controls placed on it. Based on business rules at runtime one of the CEdit derived controls...
View ArticleMSDN documentation unclear ?
I am trying to read directories from an EXFAT USB drive. And for this task, I have found here a good documentation: https://docs.microsoft.com/en-us/win...-specification But seem that is unclear...
View ArticleHow to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Can any one tell/provide code snippet for making the CEdit(EDITTEXT box) and CComboBox of flat style?
View ArticleColoring Rect of Create(lpszText,dwstyle,&rect,parentwnd,nID) white
I have below code Code: CStatic *text = new CStaic ; CRect textrect(10,20,70,50); MapDialogRect(&tectrect); text -> Create(name.data(),WS_CHILD | WS_VISIBLE | SS_RIGHT,textrect,this); The...
View Article[RESOLVED] How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Can any one tell/provide code snippet for making the CEdit(EDITTEXT box) and CComboBox of flat style?
View Articlevisual studio, resource file error : opened in another editor
Hello, I have a resource file, and when i try to open, i get error saying, opened in another editor. (eventhough it is not opened anywhere else) ! thanks pdk
View ArticleDLL C++ and C#
Hi, I'm writing a dll in C++ to get the serial hd, this is the code of the function: Code: __declspec(dllexport) char* __stdcall char* GetSerialHD() { WmiQueryResult res =...
View ArticleErase an stl element within the or loop
Hello I have the ollowing for loops, inside the second for loop, i want to erase the second element based on some condition. I know erasure invalidates the iterator. What is the nice way to do this ?...
View ArticleFLAT CEdit(EditBox)
Just a quick question. I am able to achieve flat editbox through CreateEx already discussed in previous thread.But question here again is why i am not able to achieve it resource editor although when i...
View Article[RESOLVED] FLAT CEdit(EditBox)
Just a quick question. I am able to achieve flat editbox through CreateEx already discussed in previous thread.But question here again is why i am not able to achieve it resource editor although when i...
View ArticleChanging background Color of CBS_DROPDOWN CCombobox
Any idea how to quickly change background color of CBS_DROPDOWNLIST CComboBox to white. since CBS_DROPDOWN has white background, i also want CBS_DROPDOWNLIST to have white background.
View ArticleChanging textColor of CMFCBUTTON in disabled state
I have the following code: Code: bool var; m_button.EnableWindow(var); If(var) { m_button.SetFaceColor((RGB(0,255,0),true); m_button.SetTextColor((RGB(255,255,255))); } else {...
View Article