Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Browsing all 3042 articles
Browse latest View live
↧

Rounded corners for the Group Box Control in VC++ (MFC)

Hi, How to make Group controls/Static control edges to be rounded. There are many Group Box controls will be present on the GUI, all group controls edges should be rounded. As Group Box is a static...

View Article


Adding together ASCII(h) representation of bytes in an array

I am trying to send a message consisting of a few byte using visual studios c++. The device requires serial communication and I am using array:...

View Article


CreateDIBSection returns NULL

Hi, please help me to resolve the error of createDIBSection returns NULL. Given below the code before calling the createDIBSection . I tried to creates a DIB using CreateDIBSection but it returns NULL....

View Article

A normal button which is a Custom Button in disguise?

I want to a normal button to disguise a custom button I have written. Let's say the normal button comes from an ordinary application, I want to override the OnPaint function, so that it will draw the...

View Article

Is this c++ native code?

I have a code snippet in my code that does not compile and gives me a error Code: --------- for (SceneNode* childNode : sceneNode.Children()) { GetBindPose(*childNode); } --------- 1>error C2143:...

View Article


size limit (float)

What is the maximum value (excluding infinity) which can be assigned to a float? I'm building an open source program which assigns the value *3.40282347e+38f* to a float. However, MSVC gives me...

View Article

Inline assembly in 64bit mode of Visual C++

If inline assembly code is totally invalid in Visual C++, should I just retype the whole thing in another .asm file or something I didn't know how the original author can compile this code, maybe he is...

View Article

Generating Prototypes in header files and the 64bit counterparts?

Depending on the size of the prototype, the PRE_1 macro generates a prototype to the class declaration header file on the fly. On the end of it, there is a stub to return to the class declaration, as...

View Article


Saving/loading files from within program

Hi everyone, I would like to write a function for a program of mine that processes all the files in a given directory. This would require the ability to save/load files from within the program itself,...

View Article


Review, divide two integers

Problem: "Write a value-returning function called isFactor. It should take 2 integer parameters and return true if the 2nd number can be divided by the 1st number evenly (in other words, if it has no...

View Article

CFolderPickerDialog and file list

Hi there, My question: is there a way to make CFolderPickerDialog to show the list of files, not only folders from a certain location on disk? I have tried and made a lot of debugging stuff, but no...

View Article

Keeping track of a temporary window

I bring up a window which stays up for 3 seconds, after which it automatically closes. The mechanism for this is that I have a worker thread which sends WM_CLOSE message to this window after 3 seconds...

View Article

Still Need Help With Unicode IO

Attempting to port code from VS 2010 to VS 2017 I have found that a single code method is breaking my newly ported apps. This was originally a daunting problem in VS 2010, but you gurus helped me to...

View Article


How to send Image Files to server using winsock in C++

I am using Visual Studio 2013. I have developed a simple client and server application using winsock API in C++ where the client sends normal message to the server. But, I want to send multiple images...

View Article

GetDC(null) sanity check...Will this DC ever get released?

I'm running some legacy code that eventually fails on GetDC(null). It will return NULL with GetLastError() returning 0. The documention I've read says that the culprit is a GDI resource leak somewhere....

View Article


String Format Crash

I have question on string formatting. It will crash at the line strCombine.Format("%ld000%s", a, "+0800"); when running on Microsoft visual studio 2010 but not in visual studio 2003 by using the exact...

View Article

FILE_NAME_INFO struct

I'm using MSVC 8 to build a library that was originally written for MinGW. One of the source files uses a Windows struct called FILE_NAME_INFO MSDN refers to it here...

View Article


Problem with array

Hey! I have created two shops one shop has 3 products and the other one has 5 products so I created an array for that. The thing is when I select my shop with only 3 products the last two slots get...

View Article

Question_QWidget

I have a question about using the QlistWidget Function where to use it to check if it is listed before and if not it should written into the listwdget. I have prepared some code but it doesnt work...

View Article

ShellExec - view output

I have this functions that executes DOS commands in the specified command line and git function in the specified command line. I want to view the the output of the commands however the windows DOS...

View Article
Browsing all 3042 articles
Browse latest View live