49,761 Topics

Member Avatar for
Member Avatar for Robtyketto

Greetings, I study C++ at college using one of the earliest versions of Code::Blocks (version 1.??). If I write any programs (all build and run succesfully and use the same GNU C compiler) from home with the latest version (8.02) and open the project and compile/run with earlier version used …

Member Avatar for kenji
0
171
Member Avatar for Icebone1000

The file gets more kB then the original ( 114KB to 914KB) And something weird: when I try open the new file with the notepad, it loads forever and i get a program not responding message when I try to close it, with the original file it loads ok.. By …

Member Avatar for nucleon
0
205
Member Avatar for eviocg

how can i pass a variable to command? ex.. [CODE] #include <iostream> using namespace std; int main(int argc, char *argv[]) { string ip cout << "Enter an ip"; cin >> ip; system("ping ip"); //// this is the problem. how do i enter the value of "ip" here? system("PAUSE"); return EXIT_SUCCESS; …

Member Avatar for eviocg
0
91
Member Avatar for rom87

Why does'nt the delete keyword destroy all of the allocated array and not just the first element.As it is even after the delete[] the second cout still prints out the values of the "t" array. Any idea ? [CODE] int main() { int *t =0; t = new int [10]; …

Member Avatar for Ancient Dragon
0
76
Member Avatar for massivefermion
Member Avatar for daviddoria

If I make an array like this [code] GLubyte bufImage[100][100][3]; [/code] I can pass bufImage to a function and then get the values using: [code] r = bufImage[im_x][im_y][0]; g = bufImage[im_x][im_y][1]; b = bufImage[im_x][im_y][2]; [/code] However, if I don't know Width and Height at runtime, this does not work. I …

Member Avatar for Narue
0
285
Member Avatar for Spanki

I need to make a program to create an array of doubles. Array of sales for 10 shops in a center .Load this array from a file at the start of the program. Use a menu to allow display and update of this array. Allow access to the shops array …

Member Avatar for Narue
0
98
Member Avatar for ashishchoure

hi, can anyone tell what is major difference between vs2005 and vs6. i want to know coding related difference not related to UI.In what extent vs2005 different for c++ from vs6

Member Avatar for ashishchoure
0
149
Member Avatar for bancje

I am trying to understand how to check for a COM error when I am using a C++ COM client. I realise that HRESULT can be checked but what confuses me is exposed methods that also specify a parameter of type [retval,out]. For a COM object that returns eg. a …

Member Avatar for bancje
0
97
Member Avatar for torchedintexas

Runge-Kutta is supposed to be used to obtain the numerical solution to a boundary layer problem. I'm trying to get the output to go to excel where it will show me the values for G1, G2 and G3 but it won't go to excel. Please help! [code] #include <iostream> #include …

Member Avatar for jencas
0
127
Member Avatar for rickster11

Ok, I tried and tried some more, if someone could push me in a right direction or point out the obvious for me that would be great. The dates have to be between the years 1900 and 2099, so I was thinking if I could calculate the amount of days …

Member Avatar for vmanes
0
93
Member Avatar for free radical

Hello all. I am working on a little program here and need some help. The input is 3 test grades that are out of 50 points total, the program takes the higher of the first 2 test grades and adds that to the last test grade to determine a final …

Member Avatar for free radical
0
117
Member Avatar for monkey_king

Hi, I'm considering using some boost stuff for my next project. But it's quite essential, that the program can be ported to multiple platforms with different setups. I've always used -ansi -pedantic -Wall And so far the projects has been working on sun/gnu/intel compilers, on both windows and linux. But …

Member Avatar for monkey_king
0
92
Member Avatar for billgone

Can anyone please help me make a program that does following: i enter first string then i enter the second string i.e. first string: "abcxyzefg" second string:"xyze" and the program should the write a new string without the second string in the first one i.e "abcfg" thank you

Member Avatar for Mazzin
0
76
Member Avatar for pagu

Dear all I made a code in C++, for data processing. The code read, processing and write the output several times. The process abort when the output file get 2Gb fo size. I know that it is not a disk limit. Is that a flag mistake on the makefile? thanks

Member Avatar for nucleon
0
103
Member Avatar for scuba6388

I am making a program that takes a binary number (a boolean array) and gives numerous representations. For example, Enter binary (8 bits): 10001000 -Unsigned int: 136 -Hexadecimal: 88 -Octal: 210 -Two's complement: -120 -Sign magnitude: -8 -One's complement: -119 -Excess-127: 9 -ASCII: N/A -Pep/8: SUBX immediate -Floating-point: -0.125 I …

Member Avatar for NicAx64
0
100
Member Avatar for siddhant3s

Well, first of all I will speak much so that you guys can target my problem better. Hello, I am a poster from the C++ forum. Hence, I am a well established C++ programmer. Now I want to learn Python. First of all, should I? I mean, keeping in mind …

Member Avatar for sneekula
0
764
Member Avatar for Sarlacc

How do i go about creating an app in mfc where there is a series of buttons and when you press one it loads an image, then if you press another one a different image loads? i am using vc++ 2008 to do this

Member Avatar for Sarlacc
0
158
Member Avatar for deadmancoder

Hello mates, i am pretty new to this forum.. i am a midrange c++ programmer. if i have to create an IDE in c++ that involves basic drawing tools, what should i learn and where should i start?? is it a big task? can anyone explain me or direct me …

Member Avatar for NicAx64
0
219
Member Avatar for XGeniuS

I used [URL="http://www.daniweb.com/forums/thread131545.html"]this[/URL] example, to create screen shot.However, this create very big file (1280x1024 = 5MB). Is there anyway to resize this file without including another libraries??

0
64
Member Avatar for PoZHx

Ok i've created basic DLL and DLL Injector/Loader which the DLL calls on a function called CreateRemoteThread inside the target process i was wondering how to code DLL to read/write to memory so e.g. lets say my target process is: [CODE]int main() { int mytest = 2; system("PAUSE"); return EXIT_SUCCESS; …

Member Avatar for PoZHx
0
791
Member Avatar for shyterrice

Hello, I'm currently working on a project for an internship utilizing microwave scanners. I am using MatLab/C++. I have been able to get my scanner lense to move when instructed to do so by the user, however I would like for the lense to be able to auto adjust before …

Member Avatar for Ancient Dragon
0
136
Member Avatar for slik33

I am working inside a function and am already passing back a value. Inside the function I am using cin to get an int from the user. If they want to quit they type q. The input buffer fails when this happens. I could use an if statement and then …

Member Avatar for kenji
0
96
Member Avatar for GDICommander

I need help with the code below. At root->removeChild(nodeToRemove), I have a NOT_FOUND_ERR code. It is not supposed to return this code, because I look in the DOM Tree with IsInDocument. Can someone tell me what's wrong with this code. I'm becoming blind with this code. [CODE] DOMNode* nodeToRemove; if …

Member Avatar for GDICommander
0
162
Member Avatar for lllllIllIlllI

I am using this code here: [code=c++] #include "stdafx.h" #include "windows.h" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK); return 0; } [/code] But no matter what i do i keep getting this built error: ------ Build started: Project: Gui, Configuration: …

Member Avatar for lllllIllIlllI
0
272
Member Avatar for nsvanjani

hello programmers is there any win32 api or technique by which we can fetch the address of the active window of explorer(not the internet explorer) please help

Member Avatar for MrSpigot
0
111
Member Avatar for tendolm

I want to apply heat on a tube surface (3D). The heat is to be applied on a straight line on the tube. The equation of line is x= 87.5 y = 126.1620 + (-1*1004.0820) z= 166.1620 + (-1*-1004.0880) Since x is constant is given asposition holder, real x[ND_ND]; For …

Member Avatar for tendolm
0
300
Member Avatar for karthik.c

hi guys im trying to write a makefile which contains :two cpp files and two header files. now i've put cppfiles in a folder called source whose path is: /root/workspace/source and header files in a folder called header whose path is: /root/workspace/makedemo/header my makefile is in the path:/root/workspace/makedemo my makefile …

Member Avatar for karthik.c
0
154
Member Avatar for eviocg

The program psexec runs any command remotely on another computer. the syntax is "psexec \\RemoteComputer cmd.exe" I want to run "start "www.website.com" on computers a19-(01-29) any help would be appreciated [CODE] #include <cstdlib> #include <iostream> #include <string> #include <sstream> using namespace std; int main(int argc, char *argv[]) { int compNum; …

Member Avatar for nucleon
0
132
Member Avatar for Dontais

For the line Point::setPoint(... it tells me that it is invalid and I set it to Point::&setPoint(.. with then stats it is a illegal operation. I'm a little lost on this one anyone mine pointing me in the right direction. [CODE]class Point { public: Point(double=0.0, double=0.0); Point &setPoint(double xPoint, double …

Member Avatar for VernonDozier
0
219

The End.