49,757 Topics

Member Avatar for
Member Avatar for TrustyTony

I found [URL="http://www.daniweb.com/software-development/cpp/threads/358674"]this assignment[/URL] on C++ forum as was browsing to see little where I am in my mostly C little C++ thrown in understanding of C++ and if I should try to increase my knowledge in that language. I could not believe my eyes! The OP is completely lost …

Member Avatar for TrustyTony
0
624
Member Avatar for CodyOebel

Ok ... I have a handle to a game window in which inside this game my little character picks up items off the ground and drops them onto himself. It is done with drag and drop. I left click down drag the item to the character and release the leftclick …

Member Avatar for CodyOebel
0
3K
Member Avatar for CodyOebel

What I am trying to do is simply get a coordinate system in which to run mouse commands in a window I have the handle to. What I am trying to do is macro my mouse. The catch is my mouse pointer has to move along with commands such as …

Member Avatar for CodyOebel
0
3K
Member Avatar for DestinyChanger

Hi, I want to write thread function myself and don't want to use boost or AfxBeginThread(). Oh, and it works in /MD[d], /MD, MFX. Thanks a lot DestinyChanger

Member Avatar for DestinyChanger
0
209
Member Avatar for mahendra maurya

Thanks in advance.. [B]I want to know how to get running process information of remote machine in vc++[/B]

Member Avatar for L7Sqr
0
140
Member Avatar for mahendra maurya

Thanks In Advance [B][U]Please any one can suggest me how to get network statics of remote machine in C++ .... [/B]

Member Avatar for L7Sqr
0
141
Member Avatar for jnewing

so what i'm trying to get my head around it say i have a vector of vectors containing some unsigned chars and i want to copy a certain vector to another vector as follows. [CODE] std::vector< std::vector< unsigned char > > foo; std::vector < unsigned char > bar; for (int …

Member Avatar for L7Sqr
0
171
Member Avatar for kumarmpk4u

hello, Am getting the below error while compiling my project. [B]error C2440: 'initializing' : cannot convert from 'struct __POSITION *' to 'class CPtrList &' A reference that is not to 'const' cannot be bound to a non-lvalue[/B] This is the snippet of code where the error happens. Tell me what …

Member Avatar for Ancient Dragon
0
113
Member Avatar for Dexxta27

I got this question: Create a SavingAccount class. Use a static data member annualInterestRate to store the annual interest rate for each of the savers. Each member of the class contains private data members: firstName, lastName, and savingsBalance to indicate the amount the saver currently has on deposit. Provide member …

Member Avatar for Dexxta27
0
95
Member Avatar for Nicco

Hey there! First off let me say that this is for an assignment and i would of rather used a singular array. Also i'm pretty sure that the TA wrote this assignment cause some stuff is ass backwards to create the illusion of the arrays starting in the bottom left …

Member Avatar for Nicco
0
294
Member Avatar for hawita

i am trying to write a program to play the Battleship game;It is not a homework problem just a practice problem. The instructions are: set up a coordinate grid, select your own ships and locations while the computer selects its own; launch missiles by entering coordinates and accept hits from …

Member Avatar for Nicco
0
483
Member Avatar for BobTheLob

Hello, I think I have the right location for this thread. I'm working on a C++ project where I need to create a GUI. I'm using wxWidgets, which is cross platform compatible. Now I know that Cocoa/Objective-C/not C++ is the option of choice for GUI programming on the Mac, but …

Member Avatar for daviddoria
0
323
Member Avatar for mashar

Hello all, I am currently a student doing an end-of-year software project - and I need some help. I am currently trying to return a 2D array from a function contained in a header file. The function is called from the main() and asks the user to input the location …

Member Avatar for mashar
0
141
Member Avatar for salty11

This is one part of my program, I need a loop that checks through the input(specifically the agent numbers) and then outputs the agent numbers that aren't in the input, from 1 to 20(because there should only be 20 agent). [CODE]void not_part() { ins.open(in_file); int i=0; int sum=0; cout<<"AGENTS WHO …

Member Avatar for WaltP
0
127
Member Avatar for CodyOebel

OK... I have a program that runs and sends output to a game window. It is a magic roleplaying game online. I am using getpixel to look for when my energy is down and then I send a double click to my healing potions. All is well and working. This …

Member Avatar for triumphost
0
1K
Member Avatar for Awilson089

I need some code that checks the number of characters entered and if it is not seven it needs to display "Error not enough numbers" i already tried (strlen(pin_code) == 7); but it says invalid conversion from int to const char... It needs to not conflict with the checking of …

Member Avatar for VernonDozier
0
252
Member Avatar for yongj

So it's been a while since I've coded (a quarter) and I'm taking a data structures II class. I have an assignment where I have to implement a C++ Class named LongInt that uses an embedded internal private data member of type STL list<char> to represent the list of each …

Member Avatar for VernonDozier
0
133
Member Avatar for GaidinDaishan

I am just starting MS Visual Studio 2005. My laptop has a 64 bit Intel microprocessor and the OS installed is 64 bit Windows 7. I created a DLL in VC++ 2005 using a Export Definitions File (.def) and then created an application on VB to test it. The entire …

Member Avatar for Ancient Dragon
0
263
Member Avatar for ashrafu1

hello am doing a library program. i am almost done with it. but now my problem is i have to make the record update section work as each of the record can be updated separately. so far i think of making another menu and do it like that. now my …

Member Avatar for ashrafu1
0
449
Member Avatar for Khoanyneosr

[CODE]#include <Windows.h> HWND hgMainWnd = 0; bool InitWindowsApp(HINSTANCE instanceHandle, int show); int Run(); LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pCmdLine, int nShowCmd) { if(!InitWindowsApp(hInstance, nShowCmd)) return 0; return Run(); } bool InitWindowsApp(HINSTANCE instanceHandle, int show) { WNDCLASS wc; wc.style …

Member Avatar for Khoanyneosr
0
168
Member Avatar for Labdabeta

If I have a templated storage class, how can I create a specialized template for nested storage class. I already know how to specialize pointer template, but I don't know how to specialize this. EG: [CODE]template <typename Type> class Array { ///Array class code }; int main() { Array<int> rob; …

Member Avatar for Narue
0
134
Member Avatar for atticusr5

hello all, I am writing a program to test sorting times, and I am having trouble with my quick sort. essentially, my quicksort is not sorting and I am having alot of trouble with it. Does anyone see any real problems with my implementation? Thanks! [CODE] //-------------------------------------------------------- void quicksort(name_t *&charArray, …

Member Avatar for geojia
0
150
Member Avatar for dophine

Hi, I have the following code. and it works fine. [CODE] class base { public: base() {}; virtual ~base() {}; virtual void foo() = 0; virtual void boo() = 0; }; class derive2 : public virtual base { public: derive2() {}; virtual ~derive2() {}; virtual void foo() {}; }; class …

Member Avatar for Fbody
0
183
Member Avatar for sosongetsu

My class did a practice program and worked thru it however i was absent due to illness but i was sent the parameters they used for practice. I attempted it on my own but i was unable to figure it completely but i did get part of it down before …

Member Avatar for WaltP
0
2K
Member Avatar for exca

Hi all, I am writing a program in which there is a part that computes all the possible values for two vectors of string patterns, one like 1XX78X9X32X (11 digit) the other like 26XX (4 digit), using digits from 0 to 9, and that passes all these possible strings to …

Member Avatar for Momerath
0
145
Member Avatar for king03

Hello there guys I have a noob question I just want to ask what is syntax declaration? Is it the program source code itself? help me please I'm a bit confused...

Member Avatar for 200908093
0
157
Member Avatar for sahil1991

hello frndzz... just wrote a piece of code in c++....bt this didnt create any .DAT file as expected.....dun knw wats wrng.... #include<fstream> #include<iostream> using namespace std; class person { int age; char name[40]; public: void get() { cout<<"enter age:"; cin>>age; cout<<"enter name:"; cin>>name; } void show() { cout<<"age is:"<<age<<endl; cout<<"name …

Member Avatar for daviddoria
0
134
Member Avatar for leonziyo

// i dont know why the part below bunny class doesnt work properly help line: 223 i allocated a class array but i can figure out why it doesnt work [CODE=c++] #include "stdafx.h" #include <iostream> #include <ctime> #include <string> int p[100]; // global varialbe int times=0,last=0; void ruleta() { for …

Member Avatar for daviddoria
0
216
Member Avatar for aishu........

can any one help me by giving the complete program on airline[COLOR="Red"] reservation system in c++[/COLOR] language its for my project

Member Avatar for daviddoria
-1
68
Member Avatar for mugenoesis

okay i've got a problem with this code its going to be a apart of a word guessing game, the problem is that my code reads the file i want it too, but when i ttry to guess the letter it will only read the first letter, i know that …

Member Avatar for daviddoria
0
169

The End.