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

cpu ID

If someone has (say) a quad-core CPU, do the cores have any kind of UID which can be interrogated by a program (i.e. to find out which core a given thread is running on)? Here's why... I'm working on a...

View Article


How to capture mouse scroll for the CMFCRibbonEdit class?

For a ribbon bar with edit controls (CMFCRibbonEdit) I want to handle the mouse scroll events for the edit controls. That is, when the user clicks and then scrolls on the edit it will navigate a...

View Article


Free wmf editor

Hi¡ Please could someone recomends me a good free software editor, for wmf files.

View Article

Global variables little help pls

Hi guys I need help with my code this is my homework "Write a C++ program that will calculate the value of “e” (Euler’s number, e = 2.71828…) using a function you create named “find_e”. It shall have...

View Article

How to convert a C# module into an unmanaged C++ dll?

I am in need to convert some C# code into C++ equivalences. But I don't want to spend the efforts to do so. Is there an handy way to convert an existing code of C# into C++ (unmanaged code)? if it's...

View Article


dynamic array resizing

I have to write a program where the user will input integer numbers. How many numbers they enter is unknown, therefor you should use a repetition structure for the input. When the user is done, they...

View Article

Displays arrays

I am trying to display the following arrays. int a[4]={5,9,2,10} int b[3][3]={1,2,3,4,5,6,7,8,9} int c[2][3][2]={1,2,3,4,5,6,7,8,9,10,11,12} Using these call statements Display (a,4); Display(b,3);...

View Article

Image may be NSFW.
Clik here to view.

Build failed

please help whenever i write any program output box shows build failed like this:- ================================================================================================================...

View Article


Image may be NSFW.
Clik here to view.

Monty Hall code problem

When i use option 2 in my code it says that I win 100% of the time and lose 0% of the time for some reason, I thought the logic looked correct but i"m not sure where I went wrong. If someone could help...

View Article


Is it worthwhile to write an ActiveX module dedicated to drawing charts?

I know the user installation must involve some registry manipulations and some other trickery. But the ActiveX way seems to be more modular. Is it worthwhile to separate the charting modules from the...

View Article

Voting bot - every 50th entry wins

Hello everybody, I am supposed to write a simple voting program as a semestral project. There are about 30 people in our class and we are going to compete with our voting bots against each other (+...

View Article

macro with mupltiple parameters

Keep in mind that in the following example, SET_DARKENING_PARAMETERS_0 is a fairly simple macro which accepts 9 parameters. The first one is called driver and the other 8 are all ints. Basically, the 8...

View Article

c++ weird error

[CODE]guys i'm having a weird error coming when i compile this program it's a program to fill an array of 100 integers with random grades for 100 students in the range of 40-100, then calculate the...

View Article


Error in finding lowest double in an array

I just can't figure out why when I run the program, when it displays the lowest temtpature, it shows the address instead of the actual number. Any help? Thanks! Code:...

View Article

[RESOLVED] Pass an array to a function and assort in descending order

000

View Article


How to get address of an selected image in string form

I have developed a form where i need to select an image from file explorer. But, when i select an image using, Code: objOpenFileDialog->ShowDialog(); System::String^ imgName =...

View Article

C++ need help with class

Hello i am a beginner in c++ and i really need some help with my code. i keep getting 2 errors and im not sure how to fix them... 1. i keep getting that invoice2 is undeclared 2. expected ';' before...

View Article


CDialog resize in one direction

Is there any way to allow user to resize a CDialog only in one direction ? I mean, by width, but not by height ? How ? I noticed that overriding WM_SIZE, I can do nothing about this issue ...

View Article

quick question

Hi i want to fix this code. The program must accept 7 values or stop it when you type s. The code not only couts the element, but also some other random numbers. Any help would be appreciated, thanks....

View Article

help I'm confused

thanks :D code works now

View Article
Browsing all 3029 articles
Browse latest View live


Latest Images