51,593 Topics

Member Avatar for
Member Avatar for Silvershaft

Is there any way to hide the command line window where the program runs on? I got a little program and I want to it to go hidden if user writes hide. Is there any way?

Member Avatar for Excizted
0
193
Member Avatar for ASHAR VIRK

I am a new student in this field tell me tips for getting skill in this field

Member Avatar for Excizted
0
78
Member Avatar for GDICommander

Hi, everyone! I'm having trouble with a linker error (I'm using Visual Studio 2008) and I would like to have some tips on solving this problem: This is my code: Bill.cpp [CODE] #include "Bill.h" #include "../Exceptions/InvalidArgumentException.h" Bill::Bill() { } Bill::Bill(string shopName) { if (shopName == "") { throw(InvalidArgumentException("The shop name …

Member Avatar for GDICommander
0
170
Member Avatar for CppBuilder2006

is there any GDI or GDI+ function or method that copies part of client area? something like this: [CODE] char p[100000]; copy(hdc, p, rectangle(10,10,100,100)); paste(hdc, p, x, y); [/CODE]

Member Avatar for kevintse
0
126
Member Avatar for NicAx64

we have already known that there should be some initialization to work with the stl. To use that library. There are objects that there should be initialized before entering main. I think that I receive this run time SIGSEG due to that. So any idea ? I have use a …

Member Avatar for NicAx64
0
203
Member Avatar for KaZu88

This is my program, it causes memoryleaks. I show only a small part where the problem exist. Starts with the header then the cpp. ParticipatorRegister.h [CODE] #ifndef PARTICIPATORREGISTER_H #define PARTICIPATORREGISTER_H #include "Participator.h" class ParticipatorRegister{ private: Participator **arr; int inc, init, elem; void initiate(); //void expand(); public: ParticipatorRegister(); ~ParticipatorRegister(); //void save(ofstream&); …

Member Avatar for Lerner
0
167
Member Avatar for Silvershaft

How do I see what key user presses I suppose I have to do it with winapi? I want my program to write to text file what key user presses, like when he presses M it writes M to text file. I looked and I found one function but it …

Member Avatar for Silvershaft
0
105
Member Avatar for لولا

Hi everyone ,:) [B]I need a function in c++ to calculat the age of a user, by asking the user to enter his birthday.[/B] :S

Member Avatar for siddhant3s
0
77
Member Avatar for rahul8590

i am currently working on creating mathematical models for my research and want a non linear equation solver library which i could integrate with my program . i searched the web and found op++ which wasnt a free program .

Member Avatar for sinnerFA
0
218
Member Avatar for agilson

[Not sure how else I would describe the subject, that pretty well sums it up] Here's the set-up: I have a C# project that references variables in another application: [CODE]TextFrame BodyCopyBox = (TextFrame)doc.FindElement("BodyCopyBox");[/CODE] But what can happen is that I can have many of those like: [CODE]TextFrame BodyCopyBox1 = (TextFrame)doc.FindElement("BodyCopyBox1"); …

Member Avatar for agilson
0
111
Member Avatar for SoulReaper1680

Salutations! Would anyone be kind enough to provide a general overiew as to what exactly is OpenGL. I searched the internet however, most of the material I came across didn't quite clearly state the different between OpenGL and GLUT. Also, what is SDL? I am quite familiar with C++ however …

Member Avatar for SoulReaper1680
0
121
Member Avatar for jhayar

hi im a newbie,can u give me an example of math problems using c language...preferably calculus using else-if statement,or a looping satement..thank u very much..godbless(",)

Member Avatar for mrnutty
0
62
Member Avatar for FX2236

Hi IM trying to make a queue of Byte[] every time i click on a button , Very Strait Foreword [CODE]System.Collections.Queue Myqueue= new System.Collections.Queue(20); public byte[] Bytearray = new byte[2]; Myqueue.Clear(); while (Myqueue .Count !=20) { Temp=Calc(Bytearray); Bytearray[0] = temp[8]; Bytearray[1] = temp[13]; Myqueue.Enqueue(Bytearray); }[/CODE] So the Loop is done …

Member Avatar for sknake
0
202
Member Avatar for Kingfahad

Write a program that allows the user to enter a start time and a future time. Include a function named ComputeDifference that takes the six variables that represent the start time and future time.Your function should return, as an int, the time.

Member Avatar for Ancient Dragon
-1
163
Member Avatar for mobeen89

Hello! Ive searched the and even this site and I have not been able to find a way that would allow me, on the execution of a certain condition, to open a text or image file. By open here I do not mean using fstream etc. to open the file …

Member Avatar for Ancient Dragon
0
93
Member Avatar for Nikhar

Each year IARCS organizes a series of competitive exams based on computing languages. I have great passion for computers and hence it is natural that I was attracted towards it. Anyways, to cut the long story short, I was selected in ZCO 2010 and I have qualified for INOI 2010. …

Member Avatar for Nikhar
0
94
Member Avatar for ge6a93

Hi, i'm using VC++ 6.0. I'm having some activity in my program(e.g. moving object in a timer). If this object gets to the end of the screen and i press a key(doesn't matter which) a message shows up - MessageBox("You won"); or something like that. But if i do not …

Member Avatar for Rajesh R Subram
0
119
Member Avatar for gsingh2011

This is my code so far to connect to a webpage and retrieve the html: [CODE]#include <winsock2.h> #include <windows.h> #include <iostream> #pragma comment(lib,"ws2_32.lib") using namespace std; int main (){ WSADATA wsaData; if (WSAStartup(MAKEWORD(2,2), &wsaData) != 0) { cout << "WSAStartup failed.\n"; system("pause"); return 1; } SOCKET Socket=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); struct hostent *host; …

Member Avatar for marco93
0
743
Member Avatar for barakk

hi,I'm about to move to Vancouver Canada in the next four month. does anybody here know a good web site to start looking for a job.

-2
118
Member Avatar for rack

this is a bonus question..the doctor didnt give this subject to us..but i need these marks.plz someone help me. write i binary file that: 1.add new student. 2.delete student. 3.update student. 4.search student. 5.display student. 6.exit. each student must have first name , average, SID

Member Avatar for jonsca
-1
120
Member Avatar for DotA

My below code will compile and create a form with blue inside. I'm currently trying to draw a triangle to the screen but when I call "device.DrawPrimitives(PrimitiveType.TriangleList, 0, 1);" inside of my render function the program fails. Let me know if I'm doing anything wrong, I'm still in the process …

Member Avatar for DotA
0
261
Member Avatar for niyasc

Hai, This is a source code written in turbo c for car racing game as a part of my higher secondary project. May I get some advices to improve it? 1.Did I use the real method to constitute motion in c? 2.How can I include sound in c? { Function …

Member Avatar for Nick Evan
-2
156
Member Avatar for Nikhar
Member Avatar for Nikhar
0
65
Member Avatar for rahul8590

i DO have searched the google to do multithreaded programming using c++ and found there were few like the ones supported in BOOST libraries and zthreads .. I would be glad if u guys could help me in suggesting much better ways in doing so .

Member Avatar for rahul8590
1
766
Member Avatar for AddyMan

I need help to make a function that checks to see if a position is already occupied by an X or O. The game just checks to see if the random pc spot is the same as that chosen by the user on their last turn. I'm trying to get …

Member Avatar for mrnutty
0
66
Member Avatar for rag84dec

HElp needed to create a windows service , to launch a simple thread created by the user. I got an article here... [url]http://www.devx.com/cplus/Article/9857/1954[/url] But how to create a thread at apropriate places , like STOP , RESUME , SHUTDOWN?.PLease give me some pointers , thanks in advance...

Member Avatar for mahela007
0
113
Member Avatar for Ancient Dragon

This shows how to get the size of all the files in a folder, and all its sub-folders on MS-Windows operating system. It uses recursion to transverse all the directories, and return a 64-bit integer. It was compiled with VC++ 2008 Express and Code::Blocks Version 8.02 with MinGW compiler.

Member Avatar for Ancient Dragon
5
5K
Member Avatar for Stefano Mtangoo

I will start with SDL_mixer to make media player I have longed to make for long now. Here my question goes. Do I need to know SDL before I can use SDL_MIXER or I can just start directly? and good tutorial for begginner? Thanks all

Member Avatar for mrnutty
0
87
Member Avatar for sman13

I need help by saving a codded file like making a internet explorer what should I do email me at <EMAIL SNIPPED>

0
54
Member Avatar for prashw

hey all.........i m new here!!!!!! I am at my wits end on this problem.....i would appreciate it if you could give any help..................................................... i managed to compile and run a C++ program that intializes and reads/writes to a serial port . I was using the Dev C++ compiler to write …

Member Avatar for Ivan85
1
8K
Member Avatar for Silvershaft

Hey I read one tutorial and tried to edit a code a little bit now I can send messages from server to client. Im wanting to shutdown process on the client computer if the buffer matches kill and it won't work. Heres code: Client: [code]#include <iostream> #include <winsock2.h> #pragma comment(lib,"ws2_32.lib") …

0
69
Member Avatar for moomeen

hello everyone .. im writting a C program that requires to insert integers from a text file .. the contents of the text file are: 1:2:4 4:12:5 13:7:5 1:20:4 how can i read each number and define it as an integer ???? please HELP !! [CODE] #include <stdio.h> int main() …

Member Avatar for mrnutty
0
82
Member Avatar for laelzio.mosca

I finished my tic tac toe game program, I`d like to know if anyone can tell me what I need to do in order to send the .exe file to someone and make it so the file executes without problems. Thanks guys

Member Avatar for laelzio.mosca
0
114
Member Avatar for ge6a93

Hello, i'm using VC++ 6.0 and i have a problem with pressed keys in my program. When i press some key i make my program do something. For example i have a falling circle in a timer and if i press 'Z' when the circle gets coordinate Y = 500 …

Member Avatar for mrnutty
0
113
Member Avatar for cjwenigma

OK so here is a fighter game I made..except my fighters power won't decrease and I can't get my fighters names to show up....*sigh*... any idea.. My functions could be wrong.. but I always thought it went above int main().. #include<iostream> using namespace std; int fighterOne (char fighter1Attack){ string fighter1Name; …

Member Avatar for peter_budo
0
130
Member Avatar for Earendil

Today is my second day with *<Accerlerated C++>,* and so far I've read until chapter three. Below is the code written in the book and as a part of solving the chapter's exercise problem 3-0, I typed and compiled the code. (using vc++ 6.0) I assumed there would be no …

Member Avatar for Yiannis_Sp
0
280
Member Avatar for packrisamy

// Samy1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "math.h" using namespace std; int main() { float c; c = log10(100.0)* 10 ; cout<<c; int a; cin>>a; return 0; } Hi All, I tried above program in VC6, and compiled fine in both debug …

Member Avatar for Rajesh R Subram
0
140
Member Avatar for primalka

after having 10 years career - u know my age now- , I badly need a change in my career, I hope to spend 6 month learning and then look for a job. i have been working in non software but IT career over 10 years. can do self study …

0
47
Member Avatar for shishio1014

can you guys suggest a way for me to code c++ without using IDEs? a link or two could really help

Member Avatar for pspwxp fan
0
108
Member Avatar for abbel
Member Avatar for bbonik

Dear all, I am new in using Borland C++ and I face a difficult problem to solve. I would be most grateful if you gave me some advice on it. I use Borland builder 6, with winXP+SP3 I have created a dll (mydll.dll) which opens a binary file, makes some …

0
105
Member Avatar for patildh

Cause of Problem. Issue is generating from OCI API. When we select same fields multiple times in a query. then OCI API is not returning record count of same table. it is generating/adding new record into same table? i.e if MNAME with VARCHAR2(30) then in new record MNAME field value …

0
48
Member Avatar for eduard77

How can I define this algorithm to calculate the matrix that has uneven nr of rows and columns? //============================================================================== // // Linear System Solution by Gauss method // // // //============================================================================== #include <iostream> #include <stdio.h> #include <windows.h> #include <cmath> //============================================================================== void VectorPrint(int nDim, double* pfVect) { int i; printf("------------------------------------------------------------------\n"); for(i=0; …

0
73
Member Avatar for eduard77

Hello I am really new in c++ but I read a lot of books. But I haven't found in any book how to add an interface to my program. So, what is necessary that the program to not run in the windows console?

Member Avatar for eduard77
0
202
Member Avatar for abel kaleab

write a programm which out put is a triangle example 5 4 4 3 3 3 2 2 2 2 1 1 1 1 1

Member Avatar for restrictment
0
108
Member Avatar for baron919

Hi guys. Just joined the forums. I was quite an admirer for this community and the source codes here really helped me in learning process and for that i thank you. I am a student of 1st semester in BS(CS). I want to become a Game Programmer and am trying …

Member Avatar for mrnutty
-2
138
Member Avatar for Silvershaft

Hello I got a little problem with winapi programming I can edut dialogs graphically with resource editor but is there any way to edit mainform in similar way? Writing on iPod so there may be typos

Member Avatar for Ancient Dragon
0
77
Member Avatar for bhas_purk

Hi guys, Im doing this project in VC++ 2005. I cannot seem to get the size for my directory. No error is returned when I use GetLastError(); Both Low and High are coming out as 0. I do get a handle value for MF ( dunno how to verify if …

Member Avatar for Rajesh R Subram
0
144
Member Avatar for new programer

hello all please help .. whenever I enter a path it tells me it cannot open the file here is the code: [CODE]# include <iostream> # include <fstream> # include <iomanip> using namespace std; struct count_type { int count; double percent; }; void intial_struct(count_type count[]); void open_file(ifstream&, ofstream&); void counter(count_type …

Member Avatar for nezachem
0
79
Member Avatar for gretty

Hello I have made a simple win32 application that converts temperatures. [B]Problem:[/B] I am displaying a bitmap image in a static control that is scaled using StretchBlt(). But when the application runs it goes into an [B]infinite loop, doesn't display the bitmap & crashes[/B]. I believe the problem is either …

0
71

The End.