49,760 Topics

Member Avatar for
Member Avatar for TheKebab

Hi there! I'm working on this app that will allow you to encrypt or decrypt simple lines or entire txt files. It's no "real" encryption since it's easy to crack the output lines, but it's a fun project. So far I'm just done with the first option, and the funtions …

Member Avatar for TheKebab
0
161
Member Avatar for I_want_to_lean

I have an app which i draw a PNG on the button and all works great until i want to redraw the whole screen. when i try to redraw the whole screen it gives me an exception and points to this part of afxwin2.h [code]_AFXWIN_INLINE CDC* CWnd::GetDC() { ASSERT(::IsWindow(m_hWnd)); return …

Member Avatar for I_want_to_lean
0
261
Member Avatar for xtremerocker

[CODE=cplusplus] #include <iostream> #include <sstream> #include <string> #include <fstream> using namespace std; int main(void) { for(int COUNT = 0; COUNT <= 1000; COUNT++) { if(COUNT > 1000) { break; } if(COUNT <= 1000) { std::string TO_STRING; std::stringstream OUTPUT; OUTPUT << COUNT; TO_STRING = OUTPUT.str(); ofstream myfile; FILE.open ("data.txt"); FILE << …

Member Avatar for xtremerocker
0
118
Member Avatar for PradeepChandra

Can any body tell me how to fetch data from a SQL table using SELECT statement in VC++ (MFC app)

Member Avatar for Nick Evan
0
47
Member Avatar for neoangin

Quick one about API: There is advice in MS Visual Studio 2008 Documentation: "To enable the user to draw filled shapes, include the following popup menu in your application. POPUP "Filled &Shapes" { MENUITEM "&Ellipse", IDM_ELLIPSE MENUITEM "&Rectangle", IDM_RECTANGLE MENUITEM "R&oundRect", IDM_ROUNDRECT } " Hm... where? In WinMain or between …

Member Avatar for Freaky_Chris
0
84
Member Avatar for serkan sendur

Hi guys, i want to achieve the same thing below in C++ and C, is it doable? Dont get me wrong, i dont want to create a web application, i just want to get an index number of enum by specifying a string value. [CODE]//Default.aspx : <%@ Page Language="C#" AutoEventWireup="true" …

Member Avatar for jencas
0
1K
Member Avatar for datenshi

Write a program that immplements a pointer based linked list with the following functions: a. Construct/ constructor b.empty c. dispaly a node/ search d.display all nodes e. delate a node f. delete all nodes g. insert a node The program displays a menu of operations below. string AuthorTitle; int BookCode; …

Member Avatar for Freaky_Chris
0
168
Member Avatar for smithss

Hi guys, I wrote a program which used an external library. i was asked to include a .h file for compiling and link with the '.lib' while linking. I don't understand the reasons behind all this? Can someone explain? 1>What happens when i include the .h and link with the …

Member Avatar for Nick Evan
0
172
Member Avatar for number87

hi guys its my first time doing a c++ program to manipulate shell input I need to create a c++ program which reads input from this unix shell command >> ls -ali and then im supposed to count the number of dir,write files. I am not allowed to use the …

Member Avatar for Agni
0
241
Member Avatar for PradeepChandra

i am trying to place a bitmap image on a cbuton by using setBitmap() function, it is not showing up. kindly assist.

Member Avatar for PradeepChandra
0
69
Member Avatar for MyRedz

hi i got my second assigment here for oop in c++. but i don't understand clearly. can anyone explain it to me? [QUOTE] ASSIGNMENT 2 INTRODUCTION TO CLASS [15 marks] Objective: 1.Learn how to write class which uses dynamic memory allocation 2. Learn how to invoke member function/send message to …

Member Avatar for VernonDozier
0
96
Member Avatar for gshock2006

Right now, I want to handle data file in the following format: apple 1234 coke 2344 some grape 2345 null .... as some lines consist of 3 element while some other have 2,I want to use the expression as follows to get the first two elements in every line and …

Member Avatar for gshock2006
0
109
Member Avatar for rosenberg_a

I got a problem that is not for homework in the book. It states... "Total Template Write a template for a function called total. The function should keep a running total of values entered by the user, then return the total. The argument sent into the function should be the …

Member Avatar for rosenberg_a
1
567
Member Avatar for winrawr

So, supposing I do manage to compile a DLL with exports, how does the DLL work with my code? How would I check for the DLL on the system, and then, how would I link to it? Also, Can a DLL written in C++ be used in a VB application? …

Member Avatar for Freaky_Chris
0
89
Member Avatar for jake88

Hello, I've parsed, read and edited an xml file. But when I write the output file I get a mashed up xml output. I would like to know if there is anyway to pretty print and output .xml file, like the DOMPrint example does on the cmd prmpt. Thanks

Member Avatar for jake88
0
205
Member Avatar for fusi0n423

My Project is to create a MaxHeap priority queue to sort voters. Everything compiles fine but the linker gives me a wierd error: [code=c++]1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall MaxHeap<class Voter,class SalaryCompare>::MaxHeap<class Voter,class SalaryCompare>(class Voter * * const,int,int)" (??0?$MaxHeap@VVoter@@VSalaryCompare@@@@QAE@QAPAVVoter@@HH@Z) referenced in function _main[/code] Anyone have any ideas? …

Member Avatar for fusi0n423
0
82
Member Avatar for niranjan.quasar

What is Broken Inheritence in OOP ? What are the reasons for it ? How can we correct such a problem ?

Member Avatar for sidatra79
0
74
Member Avatar for tones1986

Hey all. I am using visual studio 2008 for the first time because i have heard very good things about it (plus i had numerous problems with devc++). Here is a debug.html file that shows an error i am getting while trying to compile my project in visual studio. i …

Member Avatar for tones1986
0
198
Member Avatar for kunal123

i m using visual studio .net 2003 vc++ mfc i cannot connect to sql server SQLSetEnvAttr() is returning null value everytime i hv used retcode = SQLSetEnvAttr(env, SQL_ATTR_ODBC_VERSION, (void *) SQL_OV_ODBC3, 0); pls help !!

Member Avatar for kunal123
0
129
Member Avatar for gshock2006

Hi,guys, I am new to C++,and recently I practice to read a file with visual studio 9.0,but it turns out that it cannot find the very file! [code] #include<iostream> #include<fstream> #include<string> #include<iomanip> #include<cstdlib> #include<vector> using namespace std; //using namespace stdext; int main() { ifstream inClientFile("Dic.dat",ios::in); if(!inClientFile) { cerr<<"File could not …

Member Avatar for gshock2006
0
240
Member Avatar for Ciganjo

hi im having alot of trouble with this particular code the idea is to read text from a file and print it on screen, i have done that. Next i needed to ouput the longest word onto the screen, this i have done also The bit im stuck with: I …

Member Avatar for h3xc0de
0
266
Member Avatar for massivefermion

Hey men When i wanna run the code below,i get the famouse [I]don't send[/I] message and i use code::blocks 8.02 [CODE]#include <conio.h> #include <iostream> using namespace std; int main(){ int start,end; double a[start-end][2],p[start-end]; cout<<"Enter a number to begin with : "; cin>>start; cout<<"Enter a number to finish with : "; …

Member Avatar for massivefermion
0
381
Member Avatar for williamjoseph

hai everyone i need the program in c++ for merge list using date structure? <snip fake signature>

Member Avatar for ithelp
0
141
Member Avatar for liphoso
Member Avatar for Comatose
0
45
Member Avatar for ACRobison02

I have to create a structure array that contains the title, director, year made, and run time of a list of 4 movies. Then I need to create a function to display the contents of the array. Then ask the user what movie they'd like to search for. Create a …

Member Avatar for ACRobison02
0
118
Member Avatar for liphoso

I am concidering learning C++, can anyone help me find a freely downloadable book for C++. Thnx in advance

Member Avatar for Agni
0
44
Member Avatar for gulad75

Write a Program that models a simple calculator. Each data entry line should consist of a valid operator (from the list below), and the right-hand operand. Assume that the left-hand operand is the accumulated value in the calculator, with an initial value of 0.0. Acceptable operators: + ..Add - ..Subtract …

Member Avatar for Freaky_Chris
0
182
Member Avatar for soroushc

how to get a string using array? and how can I get input in this format string|12.3 12.23 | example;with no space between the lines and when user enter 0 it will exit david|12.3 24.2| Peter|12.4 24.2|

Member Avatar for VernonDozier
0
107
Member Avatar for csurage

I am doing independent research for a professor of mine, but I'm not sure where to start. I plan to write this application in c++. 1) The application will run on a server and the main computer will be able to monitor the computers in the lab, for example the …

Member Avatar for Nick Evan
0
105
Member Avatar for xtremerocker

I'm currently working on ProjectEuler.net's problem no. 39 and it states "If p is the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions for p = 120. {20,48,52}, {24,45,51}, {30,40,50} For which value of p <= 1000, is the number of solutions …

Member Avatar for xtremerocker
1
123

The End.