49,761 Topics

Member Avatar for
Member Avatar for 330xi

Hi! Only two windows-dialogs in my programm. On button click I do this->EndDialog(0); MyWiew mw; mw.DoModal(); ShellExecute(0, NULL, fdlg.m_ofn.lpstrFile, NULL, NULL, SW_MINIMIZE); But MS WORD opens file and starts only when mw is closed. How to start it with the mw together? Thanks in advance.

Member Avatar for 330xi
0
89
Member Avatar for dakoris73

Hello everyone; I've been struggling with trying to figure out how to get this struct program to work and I'm at a total loss on this. Basically I need to create two structs POINT which will have an X and Y values, and a LINE struct which will include 2 …

Member Avatar for subith86
0
128
Member Avatar for mrexp21

I have a file, 'date-list.txt' which has date in it. For example , 20 May 2012 . Now I want to compare this date with current system date and show the difference in days . How can i compare dates and shows difference in days in C++.? Im really a …

Member Avatar for subith86
0
140
Member Avatar for hwoarang69

hi in this if statment i want to paste image if lever[r][c]==1 else i want to add space. i dont know how to add space. my think is that i would have to use dbText() or dbPrint() function? if(level[r][c] == 1) { //dbSprite(1, x*32, y*32, 1); dbPasteImage(level[r][c], x, y); x+= …

0
92
Member Avatar for stephanieirene

The file contains the instructions. I need help by tonight. Please Help!!!! main.cpp: #include <iostream> #include <fstream> #include "addressbook.h" #include "addressbook.cpp" int main(){ ifstream inStream("input.txt"); string line, header, token; vector <string> tokens; getline (inStream, header); AddressBook myAddressBook; while(!inStream.eof()) { getline (inStream, line); cout << line << endl; int x=0, y=-1; …

Member Avatar for stephanieirene
0
238
Member Avatar for coutnoob

Hi again and thanks in advance ! Last question ! I have to create a class called polygon (not normal) that has in private the number of sides and the length of each side and in public that has 2 constructors (the one has as variables the number and each …

Member Avatar for Kanoisa
1
4K
Member Avatar for hwoarang69

i have a array 10X13. where it say 1 i want to print image called wall. ok so the array part is easy. iam pretty sure its fine. less continue. const int ROWS = 10; const int COLS = 13; int level[ROWS][COLS] = { {1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, …

Member Avatar for hwoarang69
0
205
Member Avatar for Hellblazer.

Hello everyone, I want to start learning C++, because that's what we do at school and I really need to know it. But there's a problem, I don't know where to start from, what to do and such. At school I can't understand anything from the teacher, so that won't …

Member Avatar for sternone
0
199
Member Avatar for coutnoob

Hi all and thanks in advance for your help ! I have a very simple class called circle and i wanna add the ostream << so i can have the ability in main to write cout<<a<<b<<c; the theme is i'm getting many compile errors in the same row eg iso …

Member Avatar for histrungalot
0
347
Member Avatar for yavindu

please can anyone send me a simple code of c++ game which is coded without object orientation.

Member Avatar for peter_budo
0
87
Member Avatar for baby_c

Hi all, FIrst I have to say my experiences with C++ are very low. But since we're given an assignment to develop a simple game in C++ now I have to try it out. But I have the basic idea on OOP and programming. So friends where should I start. …

Member Avatar for sternone
0
266
Member Avatar for coutnoob

Hi again and thanks in advance !Any help would be very appreciated cause i'm having a test tomorrow and i need some help! So i wanna have a class called Bag and a subclass Set.In bag we have 2 constructors, an insert function , getsize function , getsum (which adds …

Member Avatar for VernonDozier
0
222
Member Avatar for jonnyboy12

Hello all. I am wokring in windows forms right now. I have a form with many large split containers inside of it, in these split containers are a few more split containers. When i re-size the splitter on any of my split containers. All of the child splitters will change. …

Member Avatar for jonnyboy12
0
123
Member Avatar for sidra 100

hey how to clear the screen in c++ i m using dev c++. clrscr()doesnot work

Member Avatar for adityatandon
0
210
Member Avatar for amethystglow

Hi again, all--- I'm trying to write a function that will add two matrices and output the resulting matrix. I've got two matrices already and everything, now i just need to write the function that i can use to call in my switch loop (The program must read two matrices, …

Member Avatar for adityatandon
0
640
Member Avatar for rony.united7

How will I implement colors in a console application developed using C++? What are the color codes of different colors?

Member Avatar for adityatandon
0
142
Member Avatar for haven_u

Hi, I have a matrix of size of n x m, how can the file be read without any given size, thus making it possible to be read with any given size matrix?. Here is the scenario, I have a matrix of size 3 x 2 then someone wants to …

Member Avatar for adityatandon
0
128
Member Avatar for nathaniscool99

Hello, I am trying to create a Login system, so far it writes users correctly however it doesn't seem to be reading it correctly as it always claims the username/password is incorrect even though when I check the file it is. Could someone help, thanks! class TestLogin { public: char …

Member Avatar for adityatandon
0
168
Member Avatar for nathaniscool99

Hello I am looking to read a file into a 2d array to show which spaces have been taken/ haven't taken whiey will show a # if not taken and a T if taken, so far I just have a text file I created which shows like this: T # …

Member Avatar for adityatandon
0
8K
Member Avatar for jeav12
Member Avatar for cool_zephyr

hello everyone..i'm trying to create a simple window using Win API in visual studio 2010 using the code below #include <Windows.h> LPCTSTR g_lptstrClassName="myWindowClass"; LRESULT CALLBACK WndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam) { switch(msg) { case WM_CLOSE: DestroyWindow(hwnd); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hwnd,msg,wParam,lParam); } return 0; } int WINAPI …

Member Avatar for adityatandon
0
582
Member Avatar for tomtetlaw

First of all I learnt how to do this from http://nehe.gamedev.net/tutorial/playing_avi_files_in_opengl/23001/ AVIStreamGetFrameOpen is always returning NULL. I checked to see if I could open the AVI file in windows media player and that worked, so that means it can't be a codec problem, right? I'm not too sure. All the …

Member Avatar for tomtetlaw
0
253
Member Avatar for Mojtabarahimi

Hi guys Actually i have problem to convert my C++ program to C! Because C is too old and unusable, i tried to find and read so many sources, but finally i got some errors. Anyone can help me?! Thanks Regards C++ Files: Main.cpp #include <iostream> #include <cstring> #include <cstdlib> …

Member Avatar for Ancient Dragon
0
385
Member Avatar for jonnyboy12

Hello. I am working on a windows form right now. My form is very full and i am using many textures. I have double buffered my form and made exteded classes for anything with a texture that has double buffering. Before i had double buffered everything my form was very …

Member Avatar for triumphost
0
117
Member Avatar for Transcendent

I'm using Eclipse c++ and when I run a program it says: launch failed. Binary not found. how can i fix this?

Member Avatar for nanu707`
0
354
Member Avatar for MasterHacker110

I have this C++ network client program but it has an error. Here is the error: error C2664: 'wsprintfW' : cannot convert parameter 1 from 'char [128]' to 'LPWSTR' Here is the code: // Client program example #define WIN32_LEAN_AND_MEAN #include <winsock2.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #define DEFAULT_PORT 2007 …

Member Avatar for mitrmkar
0
315
Member Avatar for hekri

Hi, I've just finished my c++ class (mechanical engineering) and as the final exam we have to create a simple program with graphical user interface and I need some help from you guys. T**he task is this**: we have to make a simple GUI that can take the diameters of …

Member Avatar for hekri
0
194
Member Avatar for BryantFury

Hi ive made a code where a user makes a list and then displays it. he may also delete objects one by one. suppose i wished to clear all in one go. How would i go about doing this? thank you in advance. my code is below. all works except …

Member Avatar for BryantFury
0
120
Member Avatar for hwoarang69

for some reason iam not getting the right map. i think the problem is x += 130; y += 130; #include "DarkGDK.h" const int ROWS = 10; const int COLS = 13; int level[ROWS][COLS] = { {1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,1,1,0,0,0,0,0,1}, {1,0,0,0,0,1,1,0,0,0,0,0,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1} }; void DarkGDK(void) { …

0
111
Member Avatar for blueyan

[Click Here](http://img196.imageshack.us/img196/3873/captureiv.jpg) for the snapshot of my problem. string operand; string opCode; struct MacroNameTable{ string macroName; int start; int end; int invocation; string operandCounter; }; struct MacroNameTable NAMTAB[NAMSize]; void addNAMTab(){ NAMcounter++; cout <<"check NAMcounter: ["<<NAMcounter<<"]"<<endl;//debug cout <<"check this operand: ["<<operand<<"]"<<endl;//debug cout <<"check this opCode: ["<<opCode<<"]"<<endl;//debug NAMTAB[NAMcounter].macroName=opCode; NAMTAB[NAMcounter].start=DEFcounter; NAMTAB[NAMcounter].operandCounter="AA"; } operand …

Member Avatar for blueyan
0
130

The End.