49,761 Topics

Member Avatar for
Member Avatar for saura

Hello anyone, I am a new visual studio C++ user. and i had the same problem that " error LNK2019: unresolved external symbol ". Now i solved it through your tellings ( menu Project --> Properties (bottom item of the popup menu) -->expand the Configuration Properties tab --> Linker --> …

Member Avatar for saura
-1
1K
Member Avatar for spacerat

The other code snipplets I found were either recursive or too complex. I therefore developed a simple, fast and yet non-recursive method; thats useful especially when working on the graphics card with CUDA as recursion is not possible there. (c) Sven Forstmann

Member Avatar for chtulu
1
645
Member Avatar for vbx_wx

hi all. I am trying to enumerate all of the subkeys of a key and then all of the subkeys of each subkey and so on....i dont know if u get my point.For example : enumerate HKEY_CURRENT_USER: AppEvents,Console,Control Panel.....and then enumerate all of subkeys of AppEvents,COnsole....an then every subkey of …

Member Avatar for mitrmkar
0
938
Member Avatar for smoothe19

Sorry I figured out some errors in the project but I can't figure out the rest of it.. I have attached the file below. I am also supposed to add a bool hasProperColoring () const that returns true if no vertex in the graph has the same color as an …

Member Avatar for Salem
0
74
Member Avatar for mmabdelsamea

Hi, I'd like to inquire how can I display 3D image using PictureBox control in Visual C++ 2008. or how can I display only one slice of this image in PictureBox control in Visual C++ 2008. your help is great appreciated. Best Regards, Mohammed.

Member Avatar for Salem
0
77
Member Avatar for ranjita.cdt.esg

I need to detect that joystick is unplugged during runtime. Using C++ Borland builder 5 enterprise edition. used windows api. Referred to [COLOR="red"]http://plib.sourceforge.net/js/index.html[/COLOR] Right now joystick once detected, it remains as plugged even though in the midst of the application i unplug the joystick. Goal: Is to stop processing the …

Member Avatar for Salem
0
98
Member Avatar for Anand111
0
49
Member Avatar for shm512

Hi everybody, first time writer, looong time follower. I've been given an assignment to write simple c++ code and make exe app out of it. It's purpose should be to check particular folder structure on running system and compare it to the some reference files and folders. Point is to …

Member Avatar for Salem
0
217
Member Avatar for Justin9825

[CODE] #include <iostream> #include <fstream> #include <string> #include <cmath> #include <cassert> using namespace std; class Payroll { public: int menu(); int option; int mainMenuOption(); int payrollMenu(); int employeeMenu(); int employeeOption; int payrollOption(); int anotherOption(); int exitOption(); int mainMenuOption; { system("cls"); cout << "\t\t Docket Materials Company\n\n"; cout << "\t\t Main …

Member Avatar for Salem
0
125
Member Avatar for mebob

I am getting an error in Windows Vista that says "Project3.exe has stopped working", and has a bar like a loading a bar, and under it, it says it is looking for a solution. The program is an class assignment that takes a data fiile with information about energy usage …

Member Avatar for mebob
0
160
Member Avatar for dillinger88

Hey guys, In the following code to find the determinant, the program crashes when it attempts to delete the matrix and gives an error about heap corruption. I'm having trouble determining why I'm getting this error. The code has worked fine until I realised my derivative definitions were wrong and …

Member Avatar for Salem
0
176
Member Avatar for LisaJane

Hello, I have an assignment where I have to create a hash table and load 30 part numbers into it- should be a 2-d array...and eventually I have to prompt the user to choose an algorithm and keep track of collisions. But I am starting really small with this and …

Member Avatar for peter_budo
0
395
Member Avatar for scholar

Hello friends, I am looking for an open source project to get into this summer.I have been programming for quite long but i am not into open source software development yet.I have programming experience in c, c++,c#,php ,javascript, xml .So please suggest some good open source project to start with. …

Member Avatar for Sodabread
0
69
Member Avatar for ayan2587

hello guyz.. Need urgent help on this !!! Is there a way to find out the total memory being consumed by my C++ program. I have seen in many online coding competitions that set a limit on memory consumption. Is there any tool by which I can find memory being …

Member Avatar for ashishchoure
0
8K
Member Avatar for crss

I need to write a reverse polish notation calculator and do not have a clue how to start. The only thing I have is the header file. This thing is due tomorrow at 3pm and I am backed into a corner. If someone can help me or write this for …

Member Avatar for Fbody
0
243
Member Avatar for d0ugg

Hello everyone, I need to load a multi-word strings from a file to a linked list in one of my programs, and i'm not sure how to do that. my text file looks like this- (the name of the text file is: names.txt) Linda Martinho Marla Jose Mary Luka Joseph …

Member Avatar for ssuss
0
143
Member Avatar for mattloto

I have an array of strings, with each string being a name. I'm looking for a function that will find the index of a particular name in the array. I looked into Array::IndexOf, but my array is like this: [CODE]string names=new string[30];[/CODE] and it wont work. I could make my …

Member Avatar for david.k
0
172
Member Avatar for nille_nerholt

I have a listview control in my project, runs in Visual C++ 6.0, that I want to make a sort based on column click. It works good when I have <1000 entries but when it goes over 1000 entries the sorting performance goes down. It takes about 10-15 seconds to …

Member Avatar for david.k
0
351
Member Avatar for marcoakis

Hi guys, I solved this C++ problem for my mid semester assignment. It is a guessing game where the user will guess a number between 1 and 10 and will bet and win/lose money accordingly. I just started programing with C++ so I'd like to receive feedback on how to …

Member Avatar for VernonDozier
0
142
Member Avatar for emilyp

Hello. I'm using Visual C++6.0, and Windows XP. I am trying to connect to a database. I want to add some records to it, reading the values out of edit boxes. Here is my Code: [code=cpp] CDialog::EnableConnections(); ::CoInitialize(NULL); _ConnectionPtr con; con.CreateInstance(__uuidof(Connection)); con->Open(L"Provider=Microsoft.Jet.OLEDB.4.0;DataSource=C:\\Documents and Settings\\204504519\\Desktop\\webcam.mdb",_bstr_t (""),_bstr_t(""),adOpenUnspecified); _CommandPtr cmd; cmd.CreateInstance(__uuidof(Command)); cmd->ActiveConnection = …

Member Avatar for iravishekhar
-1
546
Member Avatar for karthz85

[CODE]#include<iostream.h> #include<fstream.h> #include<string.h> class database{ public: virtual double store_data(void); virtual void save(ofstream &file); virtual double GetPassingMark(int pass); virtual void display(void); virtual void edit(void); protected: void data(void); //database(){cout<<"constructing";} //~database(){cout<<"destructing";} }; double database::store_data(void) { char code[100]; double totalmark,laboraty,exam,assignment,sum_assignment; int i,no_of_parts,a,pass; totalmark=0; for(i=0;i<7;i++) { cout<<"=======================================================\n"; cout<<"1.enter the subject code"<<i+1<<"\n"; cin>>code; cout<<"2.Enter no of …

Member Avatar for chiwawa10
0
127
Member Avatar for wardah0

I'm sorry if this has been posted before but... I used this example code from my book to understand image processing better. The image is of the queen mary ship, in a .bmp extension file. Anyways I basically take the picture and save a negative image of it onto the …

Member Avatar for wardah0
0
69
Member Avatar for acerious

This is my first time ever programming in C++ so please talk me through this step by step. This is my second compilation after the classic Hello World! program and I am running into a problem I cannot figure out. The code executes just fine but when I run it, …

Member Avatar for chiwawa10
0
129
Member Avatar for naseerhaider

Hi, Can any one please describe that if we can use || and && operator in C++ as following ? [code] if (choice == 'e' || 'E' && cur == 'd' || 'D' ) { cout << " Enter amount in Euro " ; cin >> amount ; } [/code]

Member Avatar for chiwawa10
0
132
Member Avatar for Spartan-S63

Alright, so it has become apparent to me that Microsoft has switched up the Win32 API in Visual Studio 2010 (I'm not too experienced in the API already, I was just starting to get the hang of it). Does anyone know what exactly they changed and where a good tutorial …

Member Avatar for Ancient Dragon
0
141
Member Avatar for theblastedfool

Hey guys, I am working on this encryption/decryption project and I have just finished writing the encryption part of the code. I complied it and ran it. The first part worked well. However once I chose to encrypt a file ( I didnt choose decrypt because it was not completed), …

Member Avatar for theblastedfool
0
93
Member Avatar for RayRay1

I am writing a rational number class and need to know if this is the correct way to do it. Can someone please let me know if I'm on track or not? Thanks. [CODE]class RationalNumber { public: RationalNumber( int = 0, int = 1); // constructor RationalNumber operator+( const RationalNumber& …

Member Avatar for RayRay1
0
844
Member Avatar for coding101

why is my code not letting me repeat? after the first run, and you type y to repeat it skips the run and say repeat again? [[CODE]void line(){ char ans; do{ string line; int count=0; cout<<"Enter a line of text.\n"; getline(cin,line); for(int x=0;x<line.length();x++){ if(islower(line[x])&&isalpha(line[x+1])&&isalpha(line[x+2]) &&isalpha(line[x+3])&&(!(isalpha(line[x-1])))&&(line[x+4]==' '|| line[x+4]=='.'||line[x+4]==','||line[x+4]=='\0')){ count+=5; } else{ …

Member Avatar for coding101
0
110
Member Avatar for mmgoicochea

So this is assignment number 14 and this is the fourth time Im bothering you...I hope you can help me. I think Im almost done with it but I can not get "toupper" my name and lastname so it would be copied to the outfile.txt file. Description: The program writes …

Member Avatar for mmgoicochea
0
120
Member Avatar for mswezey

Hello. Finishing up the my program that's due soon and I've came across some hiccups you could say. Basically I am to write a Class definition file and use it to to read in an infinite amount of fraction problems. (+,-,*,/,<,>,<=,>=,==, and !=) While I have successfully written most of …

Member Avatar for mswezey
0
3K

The End.