49,761 Topics

Member Avatar for
Member Avatar for donaldw

I would like to be able to dynamically load and display images in a Windows application written in an old version of MS Visual C++. I'm currently using functions as given [URL="http://forums.devx.com/showthread.php?t=89505"]here[/URL] by Karl Lilje. The pictures display fine when they are supposed to but they are not "persistent" (by …

Member Avatar for Ancient Dragon
0
130
Member Avatar for detailer

Hello, Beginner in C++ how to make this program if i pressed ctrl-c the program will quit. and there's a tiny problem. whenever i run my program it says that return 0 is unreachable code. thanks guys :) [CODE]#include <iostream.h> #include <stdio.h> #include <stdlib.h> int main() { while (1) { …

Member Avatar for Ancient Dragon
0
248
Member Avatar for shbk

does anybody know library for c/c++ to catch presses of keys like ctrl+shift+foo or fn+f7 etc. ?

Member Avatar for donaldw
0
76
Member Avatar for Stefano Mtangoo

Hi, I'm making an MVC pattern based app and I though I would learn the principles first. I have reached a stage I need to connect the three elements. When Controller receives user action It calls right model. Now I need to register callback function so that when Model is …

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for aiwasen

c++ programming from problem analysis to program design by d.s malik .. guys is this a good book for the beginner??

Member Avatar for donaldw
0
135
Member Avatar for Muhasaresa

:) Hello, I am making a C++ console application where the user can encrypt and decrypt text. So far, I have successfully made the encryption part, but am not quite sure how to make the decryption part. For example: abcb -> 128.70.88.70. but I can't make it go back to …

Member Avatar for donaldw
0
156
Member Avatar for ChaseRLewis

This is what I read about it. [CODE] virtual base class becomes common direct base for the derived class [/CODE] So my question is exactly what does this mean. What I believe it means. [CODE] class A { protected: int a; public: virtual int get_a(); A(void); ~A(void); }; [/CODE] With …

Member Avatar for mike_2000_17
0
162
Member Avatar for Marvin Danni

[CODE]#include <iostream> #include <string> using namespace std; int main(){ string str = "Gregory"; int k = 0; for (k=0; str[k]!='\0';k++){ if (str[k]>=65 && str[k]<=90) { str[k]+=32; } } cout << str << endl; } [/CODE] is this code right

Member Avatar for Narue
0
121
Member Avatar for Panathinaikos22

As we learn all, C dont supprot Inheretic, Polymorphism, Function Overloading... And Few Other Things... My Question is: What is this one? [URL=http://imageshack.us/photo/my-images/705/wico.png/][IMG]http://img705.imageshack.us/img705/5661/wico.png[/IMG][/URL] [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Example { public partial class WForm : Form { …

Member Avatar for ddanbe
0
274
Member Avatar for Martin C++

Hello, I m doing an exercise i found in internet. The exercise is the following: [QUOTE] Pancake Glutton Write a program that asks the user to enter the number of pancakes eaten for breakfast by 10 different people (Person 1, Person 2, ..., Person 10) Once the data has been …

Member Avatar for frogboy77
0
206
Member Avatar for queenjay14

Im having some problems identifying where my error is. I've read through the post on this topic and applied the responses to my code but it's still giving me a warning. I am trying to use an array to compute the average of 10 numbers. [CODE]#include <iostream> using namespace std; …

Member Avatar for WaltP
0
220
Member Avatar for senergy

Hi, does someone know nice, clean tutorial with links for all headers and libraries for connection to MySQL database? I'm searching for something good for about week now, but I've still found only some rly rly rly retarded posts, without any libraries for donwload or something, just code, i've tried …

Member Avatar for Ancient Dragon
0
322
Member Avatar for T1205

This assignment will require you to develop a program that reads a series of positive and negative integers from the user and loads these values into an array. The program then calculates and outputs the average of the values read. You will develop the entire program from the problem statement, …

Member Avatar for WaltP
-1
474
Member Avatar for shirlpeyton

[TEX][TEX]This assignment will require you to develop a program that reads a series of positive and negative integers from the user and loads these values into an array. The program then calculates and outputs the average of the values read. You will develop the entire program from the problem statement, …

Member Avatar for WaltP
0
501
Member Avatar for Holali

Hello, I need advice. Ive been using Microsoft Visual studio 2008 and making c++ console applications for some time. I made a "Five in line" game. I have a complete system, so its playable, now i just upgrade an AI. So, I have the code for console version, but I …

Member Avatar for mike_2000_17
0
248
Member Avatar for SCass2010

Hi everyone, I'm trying to learn C++ and about pointers and whatnot and seem to be a bit stuck... one of the exercises we were given involves passing an object (a Driver object) by reference to another object (a Manufacturer), which stores it. The Manufacturer object can then "employ" and …

Member Avatar for NathanOliver
0
135
Member Avatar for maxcraft

Hi i need help, what i am trying to do is that the program should search & print the first occurrence of that integer in the array and last occurrence of that integer in the array. If that integer does not exist in the array at all, then the program …

Member Avatar for vijayan121
0
113
Member Avatar for 4everct01

I have 2 error for my code when i compile and i need some guidance =) This is a small part of my program. Here's my code. I declare my function like below: [CODE] void working (Stack& deck, Stack& deckStack, List* column, Stack* stack, bool& loadGame, bool& exitGame, bool& newGame, …

Member Avatar for 4everct01
0
1K
Member Avatar for manugm_1987

Hi all, Can any one please help me how to call an function from dll in vc++. [CODE]// test1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "windows.h" #include "conio.h" #include "windef.h" int _tmain(int argc, _TCHAR* argv[]) { HINSTANCE instcall=LoadLibrary(TEXT("c:\\test2.dll")); if(instcall==NULL) printf("Failed to load dll"); …

Member Avatar for thines01
0
391
Member Avatar for Mr.UNOwen

Hello, I've confused myself a bit with virtual functions. I know they're useful when you want to call the parents function via casting the class to it's parent, but I've found myself scratching my head on few cases. So... Lets say I have a parent Class P and a child …

Member Avatar for mike_2000_17
0
364
Member Avatar for sasho648

I writing simple cmd game. My question is how to use timing function while I use _getch() command? Because this getch function stops the timing and the timer continuous after I click the keys.:@

Member Avatar for sasho648
0
310
Member Avatar for sergent

Why doesn't this work: [CODE]#include <iostream> class myclass { public: union d { int i; }; }; int main() { myclass i; i.d.i = 3; return 0; } [/CODE] but this does: [CODE]#include <iostream> class myclass { public: union { int a; }; }; int main() { myclass i; i.a …

Member Avatar for mike_2000_17
0
168
Member Avatar for YungSoprano

Hi, i'm having a few problems when debugging my project. Basically i have two errors; Error 2 error C2065: 'cout' : undeclared identifier Error 3 error C2065: 'cin' : undeclared identifier This is where the errors are (It's a header file) int temp; cout<<"Enter the Client Number : "; cin>>temp; …

Member Avatar for YungSoprano
0
594
Member Avatar for goco17

is it possible to have a back() in stack....i know queue and vector has it... [CODE] #include "Card.hpp" #include "Card2.hpp" #include <stack> using namespace std; typedef char StackItemType; bool Card::isEmpty() const { return cards.size() == 0; } Card Card::see() const { return cards.back(); } Card Card::pop() { Card c = …

Member Avatar for jonsca
0
4K
Member Avatar for AshfaqueIW

Hi all, I am working on a C++ application which involves a thread. My application draws the waveform on screen. The drawing speed should be 25mm/s and the thread should run every 10.56ms for this speed to obtain. But with either 10ms or 11ms set as the Time period for …

Member Avatar for mike_2000_17
0
174
Member Avatar for Chilton

Greetings, I've found [I]Accelerated C++[/I] to be a pretty solid foundation in C++, but with regards to the new standard, does anyone know of a good supplemental text that can keep me up to date with said standard? Any help would be greatly appreciated. Thanks in advance.

Member Avatar for Chilton
0
214
Member Avatar for mmangual83

All right, I am trying to make a working healthbar for my game done in direct x 9 and for some reason nothing I do works. Basically, when I run the game and the main character collides with an enemy, the red bar for his health just travels towards the …

Member Avatar for ChaseRLewis
0
279
Member Avatar for Martin C++

Hello, this is kinda my first program. I would like to know how to clean the screen so only this code would stay in the console [CODE=C++] cout<<"Welcome to calculator!\n\n"; cout<<"[*] - a * b\n[/] - a / b\n[-] - a - b\n[+] - a + b\n\n";[/CODE] I m also …

Member Avatar for Duki
0
2K
Member Avatar for Zoe123

I have some menu problems. So this is my first time, and I need someone to please solve the problem for me. This is my program. When I ask it to enter on the home menu, it takes me back to the second menu and asks me again if I …

Member Avatar for WaltP
0
205
Member Avatar for afi@alvi

i am getting some thing in while loop and want to pass that on to my rest of the programme. But i want that loop to be always running. but my code get strucks in the loop and does not move forward... i am not getting how to keep that …

Member Avatar for Duki
0
91

The End.