51,592 Topics
![]() | |
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 … | |
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 … | |
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: { … | |
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 … | |
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? | |
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 … | |
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: … | |
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 … | |
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 … | |
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') … | |
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 << … | |
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 … | |
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. | |
#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 … | |
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 … ![]() | |
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 + + | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hi Quick question. Is it possible to find the source code for the predefined functions in C++ Tnaks | |
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> … | |
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 … | |
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 … | |
I read that vectors and arrays are almost the same. Could you explain this to me? | |
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 … | |
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] | |
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 … | |
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 … | |
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? | |
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 … | |
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 - | |
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. | |
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 … | |
I hope any one help me find a tutorial for programing microcontroller with C or C++ i need this really. | |
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 … ![]() | |
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 … | |
[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 … | |
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 … | |
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 … | |
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? ![]() | |
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 … | |
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, … | |
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 … | |
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 … |
The End.