51,592 Topics

Member Avatar for
Member Avatar for ftom2

Hi, i'm trying to use cygcurl-2.dll, i downloaded a simple example from curl site bur i'm not able to compile it properly. the example is this: [code] #include <stdio.h> #include <curl/curl.h> int main(void) { CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { /* First set the URL that is …

Member Avatar for ftom2
0
165
Member Avatar for tunday

Hi. I have developed PHP scripts (both server and client) and a SOAP/wsdl that work as expected. However, I would like to build the client side using Borland's C++ Builder 2006. This program will still access the web service using the wsdl while the server side script remains written in …

Member Avatar for tunday
0
436
Member Avatar for sadaka

Hello everyone, In this post it might not be as interesting. I created a "while" loop with the purpose of continual runtime of the application until it closes. However, I came to a conundrum. In this "while" loop- [code] 01: while(true) 02: { 03: if(PeekMessage(&msg, NULL, 0,0, PM_REMOVE)) 04: { …

Member Avatar for ProgrammersTalk
0
164
Member Avatar for phalaris_trip

Hi everyone, I've been googling this for a long time, and most of the hits are about keyboard shortcuts in the actual IDE... it's so annoying.. :( I'm working on a pretty big VS project (about 20 source files).. I have to add some keyboard functionality to it... simple stuff …

Member Avatar for phalaris_trip
0
229
Member Avatar for M1A1

fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory I'm using Vc++ pro. I have installed MySql and set the include directory C:\Program Files\MySQL\include\ in my project directory, that include folder does have mysql.h so I can't figure this out, anyone got an idea?

Member Avatar for Salem
0
89
Member Avatar for tiyagu_vpm
Member Avatar for DinoBod

Ok I have a bug that is very hard to pinpoint. Upon Compilation I get Compiling... Forkin.cpp \vc98\include\xlocale(467) : error C2059: syntax error : 'end of file' ForkLift.cpp MainWnd.cpp \vc98\include\xlocale(467) : error C2059: syntax error : 'end of file' Mat4f.cpp Generating Code... Error executing cl.exe. Forkin.exe - 2 error(s), 0 …

Member Avatar for Killer_Typo
0
435
Member Avatar for Fred1306

can you help me plz in these 2 assignments: assignment1: Create a new string ADT (using a dynamic array). The data members of the String class are a pointer to the start of your string and an integer representing the length of that string. The following methods should be provided: …

Member Avatar for Bench
0
204
Member Avatar for petzoldt01

Hello, First of all, I am new to c++, but have experience in PHP. I am currently working on a little educational program for myself and a group of friends. I use linux all the time, but my friends tend to use windows. i would like to add a graphical …

Member Avatar for petzoldt01
0
134
Member Avatar for sadaka

Hello everyone. Its been a while since I posted. I've gone through many threads regarding Linking issues that beginning programmers come across. Its the linking error - "error LNK2001 : unresolved external symbol." I admit I am a beginner and I also encounter the same problem. Going through all of …

Member Avatar for sadaka
0
104
Member Avatar for bapef

The problem I am having is one in which I am using getline to read in a name with spaces, and when I attempt to output it it is cutting off the beginning of the names. This is the code I am using. I also have to have the cin.ignore('\n') …

Member Avatar for bapef
0
3K
Member Avatar for Killer_Typo

started a new thread because naru got my interest. please explain. [code="cplusplus"] #include "stdafx.h" #include <iostream> #include <string> #include <cstdlib> using namespace std; void reverseword(char * reverse) { size_t size = strlen(reverse); //get the size of the char * for(size_t i = 1; i <= size; i++) { cout << …

Member Avatar for Killer_Typo
0
261
Member Avatar for JRM

all is not always what it seems. I found out the hard way that there is a very big difference between a copy and a direct assignment . [code=cplusplus] char* a = new char(); char* b = new char(); cin.getline(a,10,'\n'); strcpy(b,a); //ok makes a SEPARATE copy a=b; //This seems to …

Member Avatar for Narue
0
144
Member Avatar for ankitrastogi82

Hi Folks, I want to avoid a class from being inherit but instantiating it should be possible. Can anyone tell me how can I do this in C++? Is it possible or if not are there any tweaks for it ? Thanks.

Member Avatar for Bench
0
117
Member Avatar for ElieK

#include <stdlib.h> int main(void){ system("shutdown -r -f -m \\192.168.1.104 -t 60"); return 0; } This command closes a computer on the network, i tried it and it works fine. All i need is to my program to run it so I can run it with the IP adress i will …

Member Avatar for Bench
0
158
Member Avatar for radskate360

Hey all I am writing this program and I am trying to read in a group of names from a file example: Peter Mike Juan Valentino Stephanie I need to read each name one by one and look at for example the first one P then compare it to see …

Member Avatar for iamthwee
0
170
Member Avatar for Naseem89

Hi anyone I am a new member, and want to learn the c + + from the outset Please, Where can I find free electronic books for the education of c + +

Member Avatar for Naseem89
0
119
Member Avatar for gattispilot

I thouhgt I had this solved. But the value is 1 and it looks like if K is pressed then it changes to 0 and then back to 1. The value of start is defined as 0 at the first. There are if start=1 statements but none but this for …

Member Avatar for Ancient Dragon
0
96
Member Avatar for Matt Tacular

I need a way to get a number from the user, break that number up (eg. 1128 into 1 1 2 and 8), and then manipulate each number. Here is what I tried to do, failed horribly: [code]#include <iostream> #include <string> #include <cmath> int main() { string str; int a …

Member Avatar for hinduengg
0
105
Member Avatar for krnekhelesh

Hi, I was using borland 5.5, and I tried introducing graphics using the followig code [CODE]#include<iostream.h> #include<graphics.h> $void main() { int driver,mode; driver = DETECT; initgraph(&driver,&mode,"\\tc\\bgi); circle(25,35,12); closegraph(); } [/CODE] But I get the error [I]graphics not supported with windows[/I]. So I tried [B]TURBO C++ 3.0[/B]. And it worked perfectly …

Member Avatar for krnekhelesh
0
593
Member Avatar for gattispilot

This is Orbiter: Ok what is wrong? I have start =0 at the beginning. then this: [code=cplusplus] case OAPI_KEY_K: // start if (start=0) start=0; else PlayVesselWave3(MySoundID,START,NOLOOP,255,22100); start=1; return 1; [/code] So start should be 0 until K is pressed. If K is pressed then the wav is played and start …

Member Avatar for gattispilot
0
198
Member Avatar for jenymaru08

Please help me what is linked list in C++?i need to know this because we have a report about this topic....i really dont have any idea on this.. please kindly give me a detail about linked list and if you have any recommended site that explaining what is linked list …

Member Avatar for WolfPack
0
72
Member Avatar for parthiban

Hi all , I have one doubt when i read a book to understand type conversion concepts . Here's the listing used in that book to demonstrate : [code=cplusplus]// strconv.cpp // convert between ordinary strings and class String #include <iostream> using namespace std; #include <string.h> //for strcpy(), etc. //////////////////////////////////////////////////////////////// class …

Member Avatar for Bench
0
114
Member Avatar for game_fan

Hi, this program is supposed to get data from an input file, have the user add new data, then output the new data in an output file. There are also supposed to be inheritance classes for the different titles. The 2 derived classes should be a fiction one and a …

Member Avatar for Bench
0
121
Member Avatar for m_meena

hi, i m building the code in VC++6.0. (win32 unicode debug) i m getting the following error in the RPC call error C2664: 'UuidToStringW' : cannot convert parameter 2 from 'unsigned char ** ' to 'unsigned short ** ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or …

Member Avatar for Ancient Dragon
0
56
Member Avatar for mauro21pl

Hi Quick question. Is it possible to find the source code for the predefined functions in C++ Tnaks

Member Avatar for krnekhelesh
0
83
Member Avatar for avaholic1973

I am working on this c++ app for class and have hit a wall. I have been trying to get the average to display with decimal points for accuracy but have had no luck. Here is the code. Thanks for any help. [code=c] //************************************************************************* // Include Files //************************************************************************* #include <iostream> …

Member Avatar for ndeniche
0
118
Member Avatar for driplet

Hi guys: I am using Borland C++ Builder to make a window application. I need to use a list box to display the items I selected. Besides, I need to chang the order of the selected items in the box. Could any body please give me a clue how I …

Member Avatar for WolfPack
0
548
Member Avatar for bapef

ok here is an example of the type txt file I am trying to read 12345678901234567890123456789012345678901234567890 Bugs Bunny Jr. 1234 1001.01 Dr. Wiley Coyote 2345 1002.02 Taco Speedy Gonzales3456 1003.03 Billy the Goat 4567 1004.04 Porky Pig 5678 1005.05 what I am trying to do is skip the first line …

Member Avatar for Tight_Coder_Ex
0
5K
Member Avatar for krnekhelesh

I read that vectors and arrays are almost the same. Could you explain this to me?

Member Avatar for JRM
0
273
Member Avatar for jhayrald

i am new in c++ and i quite need help in writing the code for this peoblem.This program needs to list the numbers from 0 to 25, their squares, and the fourth power. The output should be in the neat 3-column format. Number Square 4th power 0 0 0 1 …

Member Avatar for ndeniche
0
548
Member Avatar for bluebird

9. Which of the following operator has the highest precedence? (1)* (2)== (3)=> (4)+ [B] Ans : 4 If I have to answer that question, I will choose the answer *. Does + has higher precedence than *? Please explain me. [/B]

Member Avatar for Salem
0
203
Member Avatar for mauro21pl

Hi again You gonna hate me, so many questions :). I will try with that one. I am working on tokanization ,it's work for many delimiters except the space. Does anyone know how may I make it work. Its have to make excutly what function strtok() does. I have to …

Member Avatar for Ancient Dragon
0
75
Member Avatar for unclepauly

I've been learning about aggregating COM objects. I dont understand why we 'need' 2 IUnknowns (ie the delegating IUnknown and the Non-delegating IUnknown). Surely the same effect can be achieved with just the 1 usual IUnknown? Eg, The outer component implements interface IX and aggregates interface IY, which is implemented …

Member Avatar for unclepauly
0
170
Member Avatar for complete

I have an MFC SDI application and I want to send a message from the MainFrm class to the View class. How do you get a view class from an associate MainFrm class in MFC?

Member Avatar for Ancient Dragon
0
109
Member Avatar for complete

I am used to VC 6.0 and the class wizard. Now I am using Visual Studio 2005. How do I launch the class wizard from a menu command. I have found that if I double click on a dialog box, the class wizard comes up. But how do I do …

Member Avatar for Ancient Dragon
0
174
Member Avatar for kodiak

Hi, I was inspired by cygwin to code my own little shell that allowed you to use ksh or bash commands(haven't decided yet.). Should I go about doing this by using the system() function, or some other way?? Thanks, Kodiak -

Member Avatar for kodiak
0
116
Member Avatar for adotl

Im starting a course next year which will cover a C++; I was wondering whats the best software to start coding in C++? I noticed my college use NetBeans which is an IDE which may be a start? Any help appreciated.

Member Avatar for jbennet
0
141
Member Avatar for mauro21pl

Hi to all I have a quick question. How can go through the integer to find if there is any specific number. For example my input would be 234446 (integer is of type long),and now I would like to check that integer and find how many 4's are in there …

Member Avatar for mauro21pl
0
111
Member Avatar for egboy

I hope any one help me find a tutorial for programing microcontroller with C or C++ i need this really.

Member Avatar for egboy
0
316
Member Avatar for Akilah712

Hi, I am working on a program that reads through a file, gets the words, and finds all the anagrams in the file. For example if the input is Pans stop pots pots Sits it's snap I have no trouble reading the words from the file. I create a signature …

Member Avatar for iamthwee
0
287
Member Avatar for kodiak

hi, i need help with the system() function. I need to open up a command line instance, change directory to a certain file, and open a file there. Problem is, every time call the system() function, it calls up a new command line instance. I need to do as i …

Member Avatar for Bench
1
2K
Member Avatar for minigweek

[B]char *(*c[10])(int **p); [/B]Ok, what does the above mean ? I compiled it fine. But I can't figure what it means :( Also, how to make sense of any such questions ? I know pointers, and have a concept of it. But this one really baffled me ! Can anyone …

Member Avatar for minigweek
1
119
Member Avatar for ace5798

PLEASE HELP.... I was wondering if someone could help me. I am taking a programming class and I am having alot of problems. When I began my class we were given a copy of Visual Studio 2003. I had alot of problems with it and when I would go to …

Member Avatar for quintoncoert
0
114
Member Avatar for m_meena

Hi, On building a windows service, i m getting the 57 errors and 11 warnings. All the errors are about structure redefinition. Given below are some of them. :\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winsock2.h(112) : error C2011: 'fd_set' : 'struct' type redefinition C:\Program Files\Microsoft Platform SDK for …

Member Avatar for m_meena
0
271
Member Avatar for Elfshadow

For a program I'm writing I only need two digits past the decimal.I was a c programmer and the way I would have done this was [code] printf("%2f",variable); [/code] Is there anything like this in cout?

Member Avatar for GreenDay2001
0
59
Member Avatar for tralfas

i need to know how to use powers in c++. so if i enter to and then 3 for the power i get 8. this is what i have so far [code]#include <iostream> using namespace std; double power(double,int); int main() { double n; int p; cout << "Enter a number …

Member Avatar for krnekhelesh
1
180
Member Avatar for jenco

I am struggling with how to make an Item selected from a ComboBox change the color of a square on the form. If I enter code in the OnClick event of the ComboBox, then as soon as I click the box the square changes color. But there are also Circle, …

Member Avatar for Killer_Typo
0
105
Member Avatar for tracethepath

hello everybody, I am a beginner in C++. I got a CD with a C++ how to program,fifth edition book by Deitel which has the source codes included in the books. The source code for ATM case study is in parts i.e. user defined header files r dere which includes …

Member Avatar for WaltP
0
162
Member Avatar for jaepi

Hello there, I'm creating a cd writer application. As of now, I was able to create a data burning application for cd-r/rw. I'm having trouble finding the code block for writing audio cd. I'm using cdrom.h and the command for writing data is CGC_DATA_WRITE together with GPCMD_WRITE_10, I looked for …

0
51

The End.