8,298 Topics

Member Avatar for
Member Avatar for Ricky65

Hi I'm attempting to code a proxy in C++ using Winsock2. At the moment it only works on simple HTML pages and locks up a lot when downloading certain pages. After a lot of fiddling, I'm not sure what the problem is. A big thank you to anybody who can …

Member Avatar for Ricky65
0
1K
Member Avatar for arjunpk

hi.... i have a small problem using the DOM parser for XML in c# [CODE] XmlDocument doc = new XmlDocument(); XmlNodeList _list = null; doc.Load(location.Text); _list = doc.GetElementsByTagName("DataSource"); foreach (XmlNode node in _list) { //some processing } [/CODE] over here i am able to get specific nodes using the getElementByTagName …

Member Avatar for arjunpk
0
298
Member Avatar for dilake
Member Avatar for adelsin

I have a Powershell script that I was hoping to either re-write or include into a C# so it may be compiled into an executable. I guess my first question is to see if anyone has any knowledge on how to directly go from powershell to C#. If not, I'll …

Member Avatar for Momerath
0
65
Member Avatar for kul1508

Hi, I am new to C# application development. I want to know,how to receive a character from a textbox? Right now I am getting a textbox output in a string buffer Instead of this I want it into a Char array Regards Santosh K.

Member Avatar for Momerath
0
78
Member Avatar for daniel1977

Dear Friends: I have a few questions. First, I want to say I am using Microsoft Visual C++ 2010 Express. 1. When creating a class, should it be in the main file? I assumed it was in the header files folder of the project. Maybe I am making this process …

Member Avatar for user422
0
163
Member Avatar for Silvanarix

I have only been diving into the C# language for roughly 3 days. I have alot of background with computers but never in a programming language. I am attempting to gain a foothold in C# by playing with it to learn a little about how it works before returning to …

Member Avatar for Silvanarix
0
73
Member Avatar for Phil++

Hello, I'm doing my final project and I'm thinking about creating an application that is user based.. A user can login (See their score etc) and also register if they haven't got an account yet.. I'm thinking about doing this using SQL and I haven't really done it before, other …

Member Avatar for Mitja Bonca
0
114
Member Avatar for arjunpk

hi i'm writing a c# script to be used in ssis.... i'm trying to pull an image from a website... i'm new to c# and i'm not sure whether the data types i'm using are right... i'm posting my code here... [CODE] using System; using System.Data; using Microsoft.SqlServer.Dts.Runtime; using System.Windows.Forms; …

Member Avatar for dotancohen
0
234
Member Avatar for zack_falcon

I've constructed an inventory program that relies on a database for information. Previously, I've used Access 2007, because it is easy and n00b friendly. Unfortunately, I'm not so sure Access can handle the requirements (Multiple simultaneous users over a LAN connection). So I switched to SQL Server 2005 Express. And …

Member Avatar for zack_falcon
0
149
Member Avatar for ChrisHunter

Hi, Could anyone tell me the best way to implement a propertygrid? currently I'm doing it like this but I'm having truble setting the value of the private variable with the values returned but a single SqlDataReader: [CODE] [DefaultPropertyAttribute("ObjectTypeID")] public class ObjectType { private int _objTypeID; private int _stateType; private …

Member Avatar for lolafuertes
0
564
Member Avatar for aarahi

//what is the problem in following program? #include <iostream> #include <cmath> using namespace std; // FUNCTION PROTYPE FOR test_polar void test_polar(); // FUNCTION PROTOTYPE FOR read_point void read_point(double & radius, double & angle); // FUNCTION PROTOTYPE FOR degrees2radians double degrees2radians(double angle); // FUNCTION PROTOTYPE FOR compute_coord void compute_coord(double radius, double …

Member Avatar for MasterGberry
-1
150
Member Avatar for blacklocist

Hi, I am importing data from excel (don't know yet I am going to do that) and export it back into excel. I don't want to have users to import data using excel (due to lack of intelligence) and also it would be faster and more streamline. I already had …

Member Avatar for ivy3
0
218
Member Avatar for Sundayy

Hello again: I am having trouble declaring my variables. Can you please show me what I am doing wrong. The homework problem ask for me to use the "if" statement also, kinda having a few problems with that. Please see the question and my code below. Thank you for your …

Member Avatar for peter_budo
0
446
Member Avatar for D.Twomey

Hi guys/girls, I have an exe that has been written in C# using visual studio Is there a was I can de-compile it back into the C# code - It seems to be some what protected exe files I've created myself using Visual Studio and C# I can see the …

Member Avatar for Momerath
0
757
Member Avatar for maac2002

Hi, I'm novice by complete to webservices et al. I've created successfully a webservice and referenced it in a console application. By simplification let assume that the webservice contains a webmethod, the 'classic' CelsiusToFarenheit (string Celsius). Once referenced i can see my new namespace ServiceReference1 with the following classes inside: …

Member Avatar for maac2002
0
886
Member Avatar for rt.garg1991

I want some help in sending Email through my Gmail account. I don't want this for spamming purpose. I am developing Complaint System for my University and I want to send Email whenever any Complaint is launched. I already tried the following code but I am getting "Failure Sending Email" …

Member Avatar for rt.garg1991
0
154
Member Avatar for sufyanali

Hi, friends Can anyone tell me more efficient answer of this question. Q:-As we all know when we any object by value to a function then a temperary object is created. I observe that the destruction of this object occurs differently in different situations like . 1):- If we call …

Member Avatar for rxlim
0
112
Member Avatar for amiref

Hi I am beginner in C#.please tell me what is problem in this code : using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] firstName={}; string[] lastName={}; Console.WriteLine("Please type your firstName : "); for (int i = 0; i …

Member Avatar for Momerath
0
118
Member Avatar for peck3277

Hi guys, if anyone can help here it would be great. I'm running Windows XP SP3. I have at the moment a micro-controller connected to my serial port. Using the micro-controller I can get temperature data and send display it in a terminal. I can program the micro-controller in C. …

Member Avatar for Ancient Dragon
0
106
Member Avatar for micmo

Hi guys, I've been searching for hours now and haven't yet found a good source of C# information for what I need to do. The general gist is this: I have 1 Client app (a simple windows form which gathers data) and 1 Server console app (which holds the business …

Member Avatar for micmo
0
656
Member Avatar for Gowrishankar

Hi every one,Could you help me in creating one login page,in which the username and password get validate with the backend db(sql server)And the password is encrypted and stored in db.So I want to know how to encrypt the user inputting password and validate that one against the encryted password …

Member Avatar for afjal nathani
0
412
Member Avatar for lebna

I am creating a project for video surveillance. How do i send the live video to the client using socketing and Udp. I tried sending consecutive images to the client using tcp so that it finally looks like a video when viewed at the client side. But was not successful.... …

Member Avatar for lebna
0
2K
Member Avatar for clbembry

I installed MSCharts but when I go to install this toolbox add-on here for it: [url]http://www.microsoft.com/downloads/en/details.aspx?familyid=1D69CE13-E1E5-4315-825C-F14D33A303E9&displaylang=en[/url] It doesn't work. Am I going to have to install 2008 to use it?

Member Avatar for kvprajapati
0
55
Member Avatar for moone009

C# command prompt. I have a program that builds an xml file for me but then I need to open the command prompt and enter: 1.D: 2.cd\rplcarts\createprogram 3. createprogram.exe "XML file" then enter does anyone know how I could automate this in c#?

Member Avatar for kvprajapati
0
93
Member Avatar for israruval

ok so im trying to implement a stack using vector and i have to access the last element of the vector el, i dont know if its right and also how would i implement the pop function of the stack using vector el_t stack::topElem() { el_t n; if(isEmpty()) cout <<"stack …

Member Avatar for mike_2000_17
0
5K
Member Avatar for plang007

I really need help in writing this program for homework. 1. Round the average for each student to the nearest integer. 2. Add code to print out an appropriate message for each student. (given in prologue comments) 3. Add code to calculate the highest student average, and the lowest student …

Member Avatar for ravenous
0
263
Member Avatar for ben_

I wrote this function about a year ago, it's very useful for generating safe file or folder names from text that a user inputs. One method I use this for is storing the filename in the database and then url-rewriting with global.asax. You can get an example of url rewriting …

Member Avatar for Momerath
0
4K
Member Avatar for daniel1977

The class dateType in my program was designed to implement the date in a program. However, the function and constructor don’t check whether the date is valid before storing. … rewrite the definition of the function setDate and constructor so that the values for month, day, year are checked before …

Member Avatar for Narue
0
362
Member Avatar for dmenke

I am running multiple lines generated from a SQL data source and using pulldown menus to input the data on a button click control using c#. When this is executed with the button, only the first set of data is transferred to the SQL table. The other lines are not …

0
59
Member Avatar for frank731tr

I would like to convert a C++ string that the user inputs to a c string. The problem is I have no idea how long the c++ string will be and i know the c string has to have one extra space for \n. Is there a way to apply …

Member Avatar for jonsca
0
302
Member Avatar for lgonzo

am new to c++, and am having trouble with if else statement for this code i am writing a program that makes the computer guess a number you the user has choosen my program works fine, but when i get in trouble is when my range gets down to zero …

Member Avatar for lgonzo
0
109
Member Avatar for RobBobSmith

I'm having trouble reading in values from a file. I know how to get all of the values in the file, but I only need some of them. This is my code (a snippet) so far. [CODE] ifstream myStream( file ); // file is the file name . while (true) …

Member Avatar for jonsca
0
201
Member Avatar for plang007

Could you please tell me how to arrange my code so that the invalid statement like in my displayed output will only show up if some enters a wrong character. Here is my code: #include <iostream> #include <fstream> #include <iomanip> #include <cmath> using namespace std; int main() { //(1) Declare …

Member Avatar for mcriscolo
-1
637
Member Avatar for sivananda2009

please help me to solve this problem,i want to insert data by checking the multiple entries in my form and retrieve the same data, the check box must checked the corresponding field retrieved.

Member Avatar for ahamed.suhail
0
117
Member Avatar for plang007

#include <iostream> #include <fstream> #include <iomanip> #include <cmath> using namespace std; int main() { char fare; char choice='Y'; int hrIn, minIn, hrOut, minOut; int hours; int minutes; int total_minutes; double cost; float charge; float additionalTime; while(choice=='Y'||choice=='y'){ cout << "\nThis program will calculate a single, couple, or group " << "\nfare …

Member Avatar for Sky Diploma
0
333
Member Avatar for rachaelginge

I need to get codes for ADD DELETE SEARCH (WHICH GOES TO ANOTHER FORM WHEN CLICKED) UPDATE (WHICH UPDATE AND SAVES RESULTS) [ATTACH]19289[/ATTACH] just the code for that thank you! :) it's from a SQL Database;

Member Avatar for Mitja Bonca
-1
128
Member Avatar for judithSampathwa

hi there, i have a question in C# files. i have a client application which is created in visual studio C#. and from that i copy a file to a folder in the server computer folder. so when i am trying to display it ot the user i user System.Diagnostic.Prcess.Start(PathToTheFileInTheServer) …

Member Avatar for lolafuertes
0
2K
Member Avatar for geekme
Member Avatar for geekme

Hey ., need to know does turbo c work for ubuntu as well and if not what editor-cum-compiler should be used? Thanks

Member Avatar for ravenous
0
173
Member Avatar for music613

I need to take the content of a C# datatable and deposit it (...) in a new Excel spreadsheet. I have seen some good generic code to do this, however, my problem is that I need to be specific, column by column, as to the format of the cells. For …

Member Avatar for Momerath
0
189
Member Avatar for VasquezPL

Hi! I have a problem. I cannot pass text chosen in combox to text field.. The problem is: how to do that if all menu items from combobox are read from cfg file. ComboBox: [code] // // systemBOX // this->systemBOX->FormattingEnabled = true; resources->ApplyResources(this->systemBOX, L"systemBOX"); this->systemBOX->Name = L"systemBOX"; StreamReader^ plik= gcnew …

Member Avatar for VasquezPL
0
687
Member Avatar for jwill222

Hey I'm having a problem with a loop in my code. It's a pretty long problem, but it is a travel expenses program. I'm creating a function that calculates the meal expenses for the user. I have to get a total for two days(first day and last day). When I …

Member Avatar for frogboy77
0
263
Member Avatar for SourabhT

Hi all, I am looking for C++ multi threading under windows but i wasn't able to find any fruitful examples .Please provide me with some useful online books or links. TIA

Member Avatar for ziggystarman
0
116
Member Avatar for biancaW

please check this code : [CODE]#include <iostream>// requires for keyboard and screen I/O #include <conio.h> using namespace std; void main () { int frontPad=0; int rearPad=0; int door=0; cout << "Welcome" << endl; cout << " Enter either 0 or 1 for state of the\n Front Pad,\n Rear Pad,\n and …

Member Avatar for vinayakgarg
0
151
Member Avatar for VasquezPL

I've heared that its very easy to add c++ code to c++/cli project (net.framework @ Visual Studio 2010) Unfortunatelly I cant do that. I was seraching all over the internet and I cant find any decent examples. All I want to do is to make a function that will read …

Member Avatar for VasquezPL
0
1K
Member Avatar for RavesCoder

Hello DaniWeb, I am wondering if any of you guys here at DaniWeb, could help me start of C# Coding, In exchange of me helping one of you , code some other programs, i've basically coded everything but visual studios. So please PM me if you can help me out!

Member Avatar for ddanbe
0
84
Member Avatar for biancaW

could you write a program that process the weekly payroll of the Brooks Leather Company (BLC). For each employee of BLC the program will compute the gross pay, deductions, and net pay. Each week BLC enters the following information into a data file called 'paydata' for all the employees: Social …

Member Avatar for arkoenig
-3
101
Member Avatar for plang007

Here is my code: #include <fstream> #include <iomanip> #include <cmath> using namespace std; int main() { char fare; char choice='Y'; int hrIn, minIn, hrOut, minOut; int hours; int minutes; int total_minutes; double cost; float charge; float additionalTime; while(choice=='Y'||choice=='y') { cout << "\nThis program will calculate a single, couple, or group …

Member Avatar for Software guy
0
192
Member Avatar for plang007

[CODE]#include <iostream> #include <fstream> #include <iomanip> #include <cmath> using namespace std; int main() { char fare; char choice='Y'; int hrIn, minIn, hrOut, minOut; int hours; int minutes; int total_minutes; double cost; float charge; while(choice=='Y'||choice=='y') { cout << "\nThis program will calculate a group " << "\nfare amount which is then …

Member Avatar for rxlim
0
154

The End.