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 ArticleHow 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 ArticleFree wmf editor
Hi¡ Please could someone recomends me a good free software editor, for wmf files.
View ArticleGlobal 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 (Eulers number, e = 2.71828 ) using a function you create named find_e. It shall have...
View ArticleHow 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 Articledynamic 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 ArticleDisplays 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 ArticleBuild failed
please help whenever i write any program output box shows build failed like this:- ================================================================================================================...
View ArticleMonty 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 ArticleIs 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 ArticleVoting 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 Articlemacro 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 Articlec++ 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 ArticleError 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 ArticleHow 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 ArticleC++ 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 ArticleCDialog 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 Articlequick 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