49,757 Topics

Member Avatar for
Member Avatar for VBNick

Hi, Does anybody know how to enable/disable a secondary monitor using ChangeDisplaySettingsEx or any other function?

Member Avatar for VBNick
0
630
Member Avatar for spinning_turtle

I am an Aspiring new coputer nerd trying to learn c== all by my self and would like suggestions of simple code ideas for beginers if you have any ideas send to "<EMAIL SNIPPED>" subject "ideas"

Member Avatar for mrnutty
0
49
Member Avatar for spartan118

Heyy Daniweb, Got a project I'm trying to compile and I'm getting the following errors: [CODE]--------------------Configuration: rpg - Win32 Debug-------------------- Compiling... rrrrrrrrrrrrrr.cpp Walking.cpp H:\final project\rpg\Walking.cpp(551) : warning C4715: 'See' : not all control paths return a value Linking... Walking.obj : error LNK2005: _main already defined in rrrrrrrrrrrrrr.obj Walking.obj : error …

Member Avatar for VernonDozier
0
260
Member Avatar for Supriyo

Hello. I am wondering how to pass data to hundred and hundreds of functions from main() in an application that has more than 1000 files. Can anybody give me some code? Regards, Supriyo

Member Avatar for rahul8590
0
249
Member Avatar for glenc70

ok i made a class and a new pointer object to the class class *a = new class[50] but at the end i forgot to delete them, now i know this will cause a memory leak which is bad but will the memory leak be gone when i re-start the …

Member Avatar for Nick Evan
0
98
Member Avatar for shoikatroy

hi i just wanted to parse a file to find certain associated data for ex if my text file is : <!#first>This is string1 <!second>THis is string2 So if user types in first...he will get This is string 1 iv written a simple C++ code to parse the text file …

Member Avatar for iamthwee
0
80
Member Avatar for mnf

Hi, I want to know how i can use multithreading in vc++ . please give an example . thanks in advance

Member Avatar for Ancient Dragon
0
70
Member Avatar for ibrahim72ro

I need to create a bynarytree of which information of a node is made of ISBN and price fields, data kept in a structure (book). I write in a .txt file : ISBN=10 Price=100 ISBN=13 Price =1 how can i populate the bynarytree with this informations, from the file? example: …

Member Avatar for Ancient Dragon
0
138
Member Avatar for Jacobah

Hi All I have Dialog include 20 pictures, on dialog initializing I try to take them off. i write this code: [CODE]CString tempname, tempnum; // define temporary name and number char tempvar [10]; // define temporary variable for (int x=1;x<=20;x++) // x picture location { tempname="IDC_"; // IDC_1...IDC_20 itoa(x,tempvar,10); // …

Member Avatar for Jacobah
0
265
Member Avatar for Wakesta
Member Avatar for Theo Gooden

I am new to software development. I just started to read software engineering by Ian Sommerville and just fell in love with software development. I want to learn the C++ language. What is the best approach to quick and clear understanding and use of the language. I want to develop …

Member Avatar for Nahiyan
0
167
Member Avatar for fougere

In the following example: [CODE]int a = 2; float b = 3.2; float c = a+b;[/CODE] Is 'c' 5 or 5.2? Is there a rule, like "lower precision types are promoted" for example, or is there a rule like "the first operand is converted to the same type as the …

Member Avatar for fougere
0
88
Member Avatar for Veer

This code assignment is due by class #14, Wednesday 10/20/2004. Write a program that reads in any 25 decimal numbers from standart input source (terminal), determins the actual and absolute lowest & largest values, and computes average of all the given numbers. You may use any/all programming techniques we have …

Member Avatar for camie_yeye
0
141
Member Avatar for Buolbear4444

I made a Roguelike game with SFML in Microsoft Visual Studio 2010 and got it to compile fine in both configurations. However, when I run it in Debug mode in either, I get an error message. Debug says: [quote] This Application has failed to start because the Application configuration is …

Member Avatar for Ancient Dragon
0
257
Member Avatar for megamanexp

Hi there, i am also currently working a project on the face detection using OpenCV but is using the Borland C++ to do the programming. Could anyone guide me i need help thank you and if possible can anyone send a example file that working and how do i really …

-3
37
Member Avatar for achieve_goals

I am trying to make a circular linked list. I will appreciate if anyone can tell me how to make it better. [CODE] int n = num_people; Node *head = new Node; head->next = new Node; Node *temp = head->next; for(int x = 2; x < n; x++) { temp->next …

Member Avatar for daviddoria
0
68
Member Avatar for Griff0527

I am trying to edit my current homework assignment to include a loop that lets the user repeat the computation for new values until the user says they want to end the program. I was given a hint to use integer division and the % operator to implement this function. …

Member Avatar for NathanOliver
0
275
Member Avatar for minihannah

For a uni project I've been writing a program to simulate video feedback. So basically I have 2D arrays representing the 'screen' and the 'camera' and I'm copying a portion of the screen to the camera then putting the resulting 'image' back on the screen. I'm creating really basic fractals …

Member Avatar for minihannah
0
1K
Member Avatar for fellixombc

Alright, my server only loops 3 times (recv's two strings that have been sent) and then freezes when there is no more information being recv'd. Note, this is happening in the listen() function. Main.cpp [CODE]/* * File: main.cpp * Author: fellixombc * * Created on May 23, 2010, 2:14 PM …

Member Avatar for fellixombc
0
1K
Member Avatar for kingnebula

Hello, I am trying to make a small utility that will search a process's memory for a specified value. I am currently able to both read and write memory values. But I'm not sure how I would go about scanning the memory for a value and getting it's base address. …

Member Avatar for kingnebula
0
197
Member Avatar for The_Prince

Hello fellow coders! This is my first time and post on forum but hope to stay here seems like a good friendly place Anyway the following code is to count the number of digits on user input. This includes decimal numbers. So far the code does what it does 1. …

Member Avatar for NathanOliver
0
162
Member Avatar for dansnyderECE

I want to represent 2^32 elements in a vector. In reality, I allocate about 500,000 elements and then everything else is there to be used by my program (for storage of data). So I have to have say.. elements: [0-999999] = 0 [100000-599999] = info [600000 +] = 0 <-really …

Member Avatar for dansnyderECE
0
159
Member Avatar for BLKelsey

Hello all, I'm still new at C++ and I'm almost through with this assignment. The thing I'm trying to do it have it repeat the hangmanMenu (which are switch statements) until this user chooses to exit, in which the program will exit. Can I get some ideas on how to …

Member Avatar for mrnutty
0
129
Member Avatar for bubacke

hi all, ive got this problem, i think it is an interplay of ifstream and vector... the following code compiles and links without problem, but when i debug i get the message "expression: vector subscript out of range". i know that "out of range" means i am trying to access …

Member Avatar for bubacke
0
478
Member Avatar for rbhave

Hi, I am having problems with my C++ Programs on Sun Solaris server since I have upgraded my C++ compiler from Sun Forte Developer 7 compiler to Sun Studio 9 C++ complier 5.6. I have my own string class which I had issues but now compiles ok after puting option …

Member Avatar for psoma74
0
316
Member Avatar for dansnyderECE

I'm trying to copy a string into a character array to be used in .write(). Here is a bit of my code to show you what I mean: [CODE] //input_buffer is a string that is determined during runtime int length = 5; char * buffer = new char [input_buffer.size()]; buffer …

Member Avatar for dansnyderECE
0
97
Member Avatar for catalyst491

Hello, I'm trying to use a string (filepath) with the windows IFileOperation interface. Only, the CopyItem method calls for the filepath as a PCWSTR. I've been googling and trying different things for half an hour but for the life of me I can't find out how to convert this string. …

Member Avatar for Ketsuekiame
0
236
Member Avatar for j-green.10

I want to make a loop that will keep asking for an input until 0 is entered into the input. How would I go about doing this

Member Avatar for jerry emmy
0
83
Member Avatar for ibrahim72ro

I need to populate the bynarytree with data from a file, an .txt. How can i do it? i need emergency help. thx a lot #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> struct information { int CNP; char* nume; int varsta; }; struct bynarytreenode { information info; bynarytreenode *left, …

Member Avatar for daviddoria
0
178
Member Avatar for dansnyderECE

Im trying to open a file, and then read a user defined number of characters from said file. I want to do this using scanf but I can't quite figure out how it works. I can get scanf to work just fine but I can't determine how to specify the …

Member Avatar for dansnyderECE
0
94

The End.