51,593 Topics

Member Avatar for
Member Avatar for serkan sendur

hi, i need to create a c shared library on unix platform using korn shell. can you provide me with some sample codes please. thanks

Member Avatar for serkan sendur
0
131
Member Avatar for csaund1

How do I code a C++ program that used an array to find an average of positive numbers. Then outputs the result

Member Avatar for chococrack
0
178
Member Avatar for IT_Techno

hi, ihave this code in c# for crating cookies : if (saveInCokies_CheckBox.Checked) { HttpCookie myCookie = new HttpCookie("AtterehWebCookies"); myCookie["userName"] = userName_TextBox.Text.Trim(); myCookie["password"] = password_TextBox.Text.Trim(); if(employee_RadioButton.Checked) myCookie["loginType"] = "employee"; else if(lawyer_RadioButton.Checked) myCookie["loginType"] = "lawyer"; else if(customer_RadioButton.Checked) myCookie["loginType"] = "customer"; Response.Cookies.Clear(); Response.Cookies.Add(myCookie); Response.Cookies["AtterehWebCookies"].Expires = DateTime.Now.AddDays(30); } after that i want to read …

Member Avatar for LizR
0
124
Member Avatar for thinfineline

I'm trying to get the game below to work with 2 players. It's setup the way I need it (even the entering the numbers for the die instead of using a rand function and not allowing the bet amount to change(crazy teacher)) I just can't figure out how to make …

Member Avatar for StuXYZ
0
415
Member Avatar for karang

Hi I am writing a function in C++ extern "C" { __declspec(dllexport) void CreateInputFilter() { ITestPtr pTest = createInstance<ITest>(m_Test); } } But I am getting this error m_Test' : undeclared identifier The main thing is above this function I have written the same code above in another function but there …

Member Avatar for karang
0
218
Member Avatar for karang

Hi I am made a library project. Now I want to use the functions of dll in another project. As I am new to C++ I don't know how to import the dll and use its function. Is there any tutorial that elaborates these things. Thanks in advance Karan

Member Avatar for Ancient Dragon
0
76
Member Avatar for abernut++

I am new to the fascinating world of C++, I should of stuck with Spanish.. But I have an assignment due and I am so close I can taste it. I am having an issue with my global functions. I can not get my average function nor my maxGrade function …

Member Avatar for cikara21
0
143
Member Avatar for karang

Hi I have build one dll project . I want to use that dll in another project. But when I include the header file of the project I am getting an error Error 2 fatal error C1189: #error : "include 'stdafx.h' before including this file for PCH" Am I missing …

Member Avatar for cikara21
0
311
Member Avatar for dhirajksaini

I am working on an MFC application which has a chat module in which i want to implement File Transfer/Upload to server using HTTP Post Method . Please help me Thanks Dhiraj

Member Avatar for Laiq Ahmed
0
131
Member Avatar for Headerandy

Hi friends , :( I've made a programme that can read a file and if it finds a peticular string in the file it shows the whole line. I've used "stringstream" to extractone by one and I checked that by the If loop on true condition it prints the whole …

Member Avatar for Headerandy
0
116
Member Avatar for DemonGal711

Okay, I have to store an adjacency matrix for a graph problem I'm doing. Let's use this picture to explain it right now. [url=http://i21.photobucket.com/albums/b272/DemonGal711/Program%20Pic/pic.jpg]Click here[/url] I figured, I'm use a linked list to store it where each node uses the struct [code]struct Node { char item; Node* vertex; Node* next; …

Member Avatar for DemonGal711
0
182
Member Avatar for tori10

I have writtern some code but apparently i have not initalised two parts of it, now to my knowledgde i have and i can not see why it is showing warnings for it. i hope you can help. [CODE=cplusplus] double m, l, dm, dc, xsq, D; W_line_Sum(line ,t); W_line sums; …

Member Avatar for Salem
0
125
Member Avatar for Undermine

Hello, I have a program that's 95% written. I am getting weird results though, so I will need you to fix it and EXPLAIN why that worked. This should take an experienced programmer less then 30 minutes. I would post it on here, but it's over a thousand lines of …

Member Avatar for vmanes
0
99
Member Avatar for namehere05

[CODE]void StrCpy(char * Dest , char* Src ) { while(*Src){ *Dest = *Src++; cout << *Dest ++; } } void main() { char* string1 = "\0"; char * string2 = "EL"; StrCpy(string1, string2); //cout << string1; //must output EL } [/CODE] Im trying to output EL after its copied to …

Member Avatar for namehere05
0
614
Member Avatar for Awais Ahmad

I want to writer a program in which i input an array? let the array i entered is : 4 1 2 3 The prigram can take values and find the positions of the character in the array such that the smallest on 0 position and so on. The result …

Member Avatar for Murtan
0
119
Member Avatar for yingfo

Hi I was wondering if anyone could help I'm receiving a segmentation fault whenever I go to run my main.cpp on my program. I've never encountered this before and was wondering if anyone knew how it can be fixed. The program consist of equiv.h, equiv.cpp, graph.h, graph.cpp, and main.cpp here …

Member Avatar for yingfo
1
260
Member Avatar for DemonGal711

I have to read in values from a file and output only the ones that past the test. However, I'm not sure how to compare a few of them. I need to skip the word if it ends with '\n', '\t', or a space. So, how exactly would you handle …

Member Avatar for DemonGal711
0
82
Member Avatar for DemonGal711

I have to make a program that reads in words, deletes certain ones, stores ones that pass, and then count the total. He didn't exactly specify how the words would be coming it, but I'm assuming that if a space at the end of the word is bad, that it's …

Member Avatar for DemonGal711
0
100
Member Avatar for JackDurden

How would I delete one char from a string? [CODE]string aWord = "question?"; while(aWord[i]) { if(isalpha(aWord[i]))printf ("character %c is alphabetic\n",aWord[i]); else delete[i]aWord; i++; }[/CODE]

Member Avatar for cikara21
0
223
Member Avatar for Awais Ahmad

I want to write a program which take input and save the poistions of the array elements in another array. let if i enter an array A[0]= 4 A[1]=1 A[2]=2 A[3]=3 now the output array will hold 1 2 3 0 i-e the posistions of the array elements starting from …

Member Avatar for Laiq Ahmed
0
136
Member Avatar for drkessence

Welcome to the temporary page for the official Nightmare Productions C++ Contest. What do we hope to achieve by holding such a contest? We are attempting to spread the knowledge of C++ and hopefully get others interested in it. The contest description is below. In order to enter the contest, …

Member Avatar for drkessence
0
210
Member Avatar for gharish

[B][U]Introduction[/U][/B] You are going to design a program which will print out each line of its input that contains a specified pattern or string of characters. For example, searching for the pattern "Humpty" in an input text file that contains the following: In Sixteen Hundred and Forty-Eight When England suffered …

Member Avatar for Salem
0
138
Member Avatar for davids2004

The code is pretty easy to understand what I am doing. You basically pick a number 1-4 and it will do either addition, subtraction, multiplication, or division. What I need it to do is after they do a problem it loops back and lets them do it again, until they …

Member Avatar for davids2004
0
171
Member Avatar for Prashant45

#include<conio.h> #include<stdio.h> #include<fstream.h> #include<graphics.h> #include<dos.h> #include<time.h> #include<STDLIB.H> // FOR EXIT #define ESC 0x1b /* Define the escape key */ void Pause(void) { int c; c = getch(); /* Read a character from kbd */ if( ESC == c ){ /* Does user wish to leave? */ exit( 1 ); /* …

Member Avatar for ArkM
0
2K
Member Avatar for karang

Hi I have declared the class in the header file class Test{ public: // Constructor Test(); // Variables IClassFact *m_pClassFact; }; But I am getting an error error C2143: syntax error : missing ';' before '*' And also I am getting this error error C4430: missing type specifier - int …

Member Avatar for ArkM
0
191
Member Avatar for Proseidon

Okay, I'm making a program that puts six word sequences into a hash table by taking the ascii value of each letter of the word and adding it to the sum, and multiplying it by a value, such as; num = num + int(firstName[nq])*(nq+1); in a loop. Now, I have …

Member Avatar for ArkM
0
157
Member Avatar for steve2up

Hi everyone, I am a U.student from China, I would like ask a question about my assignment. For the directed graph, I would like to perform topological sort for sorting up nodes, but I encountered some problem in queue which is able to be removed or added with certain elements. …

0
94
Member Avatar for ammameiya

does anyone knows how to conver from LPTSTR to std::string or std::wstring ? example : i want to convert f_path to abc ang def... [CODE] LPTSTR f_path; std::string abc; std::wstring def; [/CODE] thanks in advance

Member Avatar for ammameiya
0
252
Member Avatar for M^2

heloo can anyone plz tell me how use functions like power and setw.... in programmes... thanku

Member Avatar for davids2004
0
128
Member Avatar for jtb19nh
Member Avatar for complete

After someone creates a DLL in C# using the Microsoft Visual development environment, how would another programmer take that code, make a new project that includes the DLL's source and make a GUI that uses the DLL'S API?

Member Avatar for dickersonka
0
136
Member Avatar for Superstar288

hey i have to make a program using win32 c++ and i need to get my hands on some information from the registry which i cannot find. the problem is i need to find information about the graphic card the pc is using and this software has 2 be ported …

Member Avatar for seanhunt
0
93
Member Avatar for sweeya

Hi i have written a code for concatenation of two strings by overloading the string operator. The program works fine but i don't understand the sequence of steps happening. [code][Use language = C++] #include <iostream> using namespace std; class String { int len; char *p; public: String () { cout …

Member Avatar for seanhunt
0
397
Member Avatar for Foe89

I've got executable code that is partially working, so i know i've done something wrong in it. In it you type in the rainfall for each month in inches and will display the total, average, largest and smallest rainfalls(with the month). I have the the total, average and largest(except the …

Member Avatar for Foe89
0
284
Member Avatar for clutchkiller

I just wanted to make sure i am interperating code correctly when i write or read it when it comes to fstream. when you say ofstream example; your basically making a keyword "example" to call different functions. aka example.open() or .close. but, if i used example as the out put …

Member Avatar for clutchkiller
0
124
Member Avatar for bling_bling_vr6

Hello, I need some help filling an array with UNIQUE random numbers. So far I've figured out how to fill an array with random numbers, that's easy, but I'm stuck on how to avoid filling it with duplicate values. I'm assuming that i'll have to use either a linear or …

Member Avatar for kitf84
0
3K
Member Avatar for mbayabo

this is a similar example to what i have. it's simplified but it still get's the same error. i need to be able to use << operator to print out all information from class A. i have no idea how to do that. i tried casting it as an A …

Member Avatar for grumpier
0
118
Member Avatar for quocnam00

Hello every one, I got a interview and 1 of interviewer ask me that Howmany byte is a pointer? I can not answer this question. seem it is trick question. All I know is pointer is an address location where the pointer point to. Anyone get input to make it …

Member Avatar for Narue
0
179
Member Avatar for FTProtocol

Hey, Just wondering how i would go about connecting to a php file from a console based app. Any ideas would be greatly appreciated.

Member Avatar for FTProtocol
0
104
Member Avatar for karang

Hi I have include a header file in my main file. That header file contains the function getPath But still I am getting this error error C3861: 'getPath': identifier not found Even I have written the prototype of the function. Regards Karan

Member Avatar for cikara21
0
163
Member Avatar for clutchkiller

Hi guys, im still learning some programming, and am confused on the subject of file i/o. I am getting this error but cant figure out why. Any help is appreciated, thanks Keep in mind i have obviously not finished the case scenarios. In function `int main()': error: jump to case …

Member Avatar for cikara21
0
217
Member Avatar for mcsean2163

Hi everybody, I'm used to C++ OOP principles but I've never really understood dll's very well. I'm working on a code segment as shown below. It's a dll function. What I need to know is can I compile it directly or do I need to do something special? I'm using …

Member Avatar for Murtan
0
197
Member Avatar for MMac1218

I cant get the output to display the average, high, and low. Any hints? [code] /* Write a program that prompts the user for test scores (doubles). The user enters -1 to stop the entry. After all of the test scores have been entered, calculate the average, the highest and …

Member Avatar for nmaillet
0
107
Member Avatar for karang

Hi I am trying to use MSXML. But I am getting error in that so I explored internet and found one useful articles regarding the installation of MSXML [url]http://msdn.microsoft.com/en-us/library/ms758753(VS.85).aspx[/url] This article is about "Include Headers and Libraries Manually" But as per the instruction given in this article I have to …

Member Avatar for karang
0
158
Member Avatar for svetlana6167

1. printf("%d", 10*5/10); what is this result? 2. printf("%d", 10+5-5); what is this result? 3. a=d++ +(b=a); a=4,b=4,d=4 a=? 4. c=a+ a++ - b--; a=4,b=4 c=? 5. c=a+ ++a - b--; a=4,b=5 c=? 6. if(a==0 && b==0) printf("1); else if(a==0 && b==0) printf("2"); else printf("3"); (if a=1 and b=0) what …

Member Avatar for ithelp
0
127
Member Avatar for soniagupta98

Hello Everyone Can any one help me out in this code Write a program in C++ that will send text strings to the server in different functional modes. Server will respond back with the appropriate text string or integer depending upon the mode. Client displays these responses on stdio, and …

Member Avatar for ithelp
0
246
Member Avatar for bennoooo

Help!! i need to use motion sensor to move the mouse cursor...but first i must use C++ to do out a programme that can move the mouse cursor first...i only left 2 week..can anyone please help me??

Member Avatar for ithelp
0
23
Member Avatar for luckystar89

draw a right angle triangle with 3 sides 3, 4, 5, and vertices A, B, and C. And prints the description next to that as follows: (Note: it is OK that the characters are not printed out in the right positions at this time as long as they are printed. …

Member Avatar for Salem
0
158
Member Avatar for koushal.vv

Hi All, i am using MSFlexGrid in my project , i have added the click event for the Grid. Basic operation of grid is when ever any one clicks on any of the cell i will create a combo box below the grid or display the current time or etc.... …

0
88
Member Avatar for koushal.vv

Hi All, I have added context menu for my tree view control, i have enabled the context menu only for right click , Can any one tell me how to generate the context menu by key board. Open any browser, when the keyboard key for context menu is pressed , …

0
87

The End.