49,757 Topics

Member Avatar for
Member Avatar for spinaltoad

I'm trying to add xml-rpc to an existing application using [url]http://xmlrpc-c.sourceforge.net/[/url] .I used the following code for testing. [code=c++] xmlrpc_c::clientSimple myClient; xmlrpc_c::value result; myClient.call(serverUrl, methodName, "ii", &result, 5, 7); int const sum((xmlrpc_c::value_int(result))); [/code] The code compiles correctly, but causes the program to throw an error. If I initialize them as …

Member Avatar for Ancient Dragon
0
141
Member Avatar for jaepi

Any of you here knows the corresponding structure of CRITICAL_SECTION in linux? thanks.

Member Avatar for vijayan121
0
85
Member Avatar for monsieur_jj

I am modifying the class CMimeMessage : public CMimeHeader, i need to modify the <pre> virtual inline BOOL MakeMimeHeader(CStringA& header, LPCSTR szBoundary, LPCTSTR szFileName){ATLENSURE(szBoundary != NULL);ATLASSERT(szFileName != NULL);ATLASSUME(m_pszEncodeString != NULL);char szBegin[256];if (*szBoundary){// this is not the only body partChecked::memcpy_s(szBegin, 256, ATLMIME_SEPARATOR, sizeof(ATLMIME_SEPARATOR));Checked::memcpy_s(szBegin+6, 250, szBoundary, ATL_MIME_BOUNDARYLEN);*(szBegin+(ATL_MIME_BOUNDARYLEN+6)) = '\0';}else{// this is the …

Member Avatar for monsieur_jj
0
149
Member Avatar for mpplumb

Hello, I'm looking to dowload a bunch of .csv files from different web address' using c++. I'm pretty new to c++ but not to computers or object oriented programming. What is the best way to go about developing this downloading functionality and what is a good guide for learning how …

Member Avatar for mpplumb
0
133
Member Avatar for jaepi

Hello there. I just want to ask some simple explanation about multithreading in this situation. Suppose I have two CD/DVD drives and an applicaton that enables me to control these two drives. This application uses multithreading. How would this thread be implemented or what is the help that this multithreading …

Member Avatar for Tricci
0
83
Member Avatar for phalaris_trip

Hi guys, I have an MFC application and I made a class called CCustomFilter.. it basically brings up a dialog with some edit boxes, etc.. the user is able to enter a mask and apply the filter.. Now, from the main dialog I am instantiating it as follows: [code=cplusplus] CCustomFilter …

Member Avatar for Ancient Dragon
0
440
Member Avatar for Prithwish

Please tell me from the scratch how to compile and run a .C programme in Turbo C++ Explorer IDE. I'm finding it difficult. Whenever I try to compile and run the .C files , I find these commands as dimmed command in the project and run menus in the IDE. …

Member Avatar for iamthwee
0
366
Member Avatar for danysabin

Is there any commands or registry keys that can be edited to standby/hibernate a computer and wake it up again autonomously. I know there are programs to do this so it is possible but anyone really know the exact way it's done? It going to be used for some testing …

Member Avatar for vijayan121
0
119
Member Avatar for em_i

Hello, I've just wrote a small program to calculate the factorial of a given number. When i give a small number everything is ok but when i want t calculate the factorial of a biger number, like 53!, I get a wrong answer. I thing that the problec is the …

Member Avatar for iamthwee
0
143
Member Avatar for Mitchelle

I have this question. List Lg is a global variable and L1 is a local variable.I have not yet described my list/array. Am made to understand that Lg should have my initial length so that I can later compare with L1. My Q is how do I declare Lg and …

Member Avatar for Bench
0
69
Member Avatar for tonyaim83

Hii.. I m using string vector my element set is L1 L2 L3 L4 L5 what i want now is to remove the whitespaces. so that my elements become L1L2L3L4L5. I tried using remove but it doesn't check as it can't find a whitespace separately means when it iterate over …

Member Avatar for Bench
0
2K
Member Avatar for ishwarbg

Hi, I have a txt file with some details as given in the below format: filename index file position file length ex: 0001.ogg 123 000001 2345 0002.ogg 124 000099 3457 ...... ..... I need to read the third parameter (i.e file position) with corresponds to its file name (first parameter). …

Member Avatar for vijayan121
0
95
Member Avatar for ishwarbg

I need to archive 50 text files into a single target file in C++. To achieve this first I need to read all those file contents from a directory and finally write them sequnetially into a new file. Please help me with a sample code or steps. Your help will …

Member Avatar for vijayan121
0
203
Member Avatar for karimnouh

Hey im new to this C++ business but i just wanted to know cause i find lots or errors coming up to me :'( .. whats the difference between int main and void main.

Member Avatar for Infarction
0
297
Member Avatar for qaiser
Member Avatar for katman1

I use the playsound function to play files in wave format. Wave filenames are read from a text file. I can play several wave files in series. Then I have a pause between series. But if a subsequent series is shorter that any previous series, the old trailing sounds are …

0
46
Member Avatar for complete

Is there an ActiveX control for a display from a cam? There must be one that I can drop into an MFC application. In the resource editor there is a button for a "Custom Control" in the 2005 IDE but I also remember there used to be a special way …

0
49
Member Avatar for sandile77

i'm writing a program to capture marks and names of 15 students and then i'll be using a function to display whether those students have failed,supplement or passed. but the problem is i'm using strings to capture those names and i'm using arrays to capture those names and the marks.i'm …

Member Avatar for Lerner
0
97
Member Avatar for orkut123

Hi Guys 1)I am planning to write a simple implementation of T9 , as seen in nokia phones. Could someone suggest an efficient way to go about this ?? 2)I am also planning to write the code for a english dictionary. What is the most efficient way to store and …

Member Avatar for iamthwee
0
254
Member Avatar for gaggu82

can anybody tell me the coding for a program to search an element in a string exactly the same word ,like if we are having two words is and this in string then we have to search for is then it only shows is not this........

Member Avatar for Hamrick
0
163
Member Avatar for meiyantao

Hello! I want to implement a avltree using C++,and I have do most of it,except the remove() algorithm. My question is when should I rotate the tree in remove(). I hope that any body can represent the situation for me using the Pelple's language,because the implemented code depend on the …

Member Avatar for meiyantao
0
150
Member Avatar for Mitchelle

If you have any idea on where I can learn how to implement OOP in C++ specifically when it comes to list please send me your feedback

Member Avatar for Ancient Dragon
0
68
Member Avatar for McQueen

[code=c++]void wait ( int seconds ) { clock_t endwait; endwait = clock () + seconds * CLOCKS_PER_SEC ; while (clock() < endwait) {} }[/code]

Member Avatar for McQueen
0
110
Member Avatar for elle_yuyu

i dont know how to write this code..anyone can help me ?? here are the question : Write a complete program that calculates the wages of an employee for the month(hint : input from user includes year,month,time in/time out for each day in that month.). monday-friday :first 8hrs,Rm50......add.hour RM10/hr. saturday …

Member Avatar for Salem
0
108
Member Avatar for a.baki

[COLOR="Green"] I have some lines on a plane. I want to find points those lines intersect each other. than I try to find whether this lines make a closed surface or not. Any one have idea? [/COLOR]

Member Avatar for quintoncoert
0
238
Member Avatar for rati

Hi all, I am trying to understand the concept of private constructors and singleton. As far as i have studied, we can have private constructors , destructors and that they are used to avoid making instances of the class other than its member function. now that i am trying to …

Member Avatar for vijayan121
0
92
Member Avatar for shannonpaul

I am not sure why I am getting syntax errors in lines 29 and 31. When I run the console my return values are correct, but have syntax errors. [code] include <iostream> #include <iomanip> using std::cout; using std::cin; using std::endl; using std::setprecision; using std::ios; using std::setiosflags; int main() { //declare …

Member Avatar for vijayan121
0
126
Member Avatar for Marine

Hello, I just installed GMP for CodeWarrior C++ using cygwin, and it compiles file "gmp.h" without problems. But it does not compile file "gmpxx.h" and says there are illegal function overloading and some unidentified characters. I'm really confused as I spent half last night following all instructions, and I have …

0
44
Member Avatar for em_i

[code] #include <iostream.h> void prime_num(int num,int cut); void center_list(int primes[],int len, int c,int n); void main() { int N,C; cin>>N>>C; while(N>0) { prime_num(N,C); cin>>N>>C; } } void prime_num( int num,int cut) { int prime_list[169],k=0,i; bool isPrime=true; for(i=1;i<169;i++) { prime_list[i]=0; } for ( i = 1; i <= num; i++) { …

Member Avatar for em_i
1
130
Member Avatar for atrusmre

Anyone know where I can find a good MySql and C++ Tutorial? I want to us MySql w/ MFC C++ Thanx, Atrus

Member Avatar for SpS
0
75

The End.