8,298 Topics

Member Avatar for
Member Avatar for jawaad17

hi can anyone tell me how string ends in C# does it have a null in the end or any other way and if there is null character at the end of string then which function or how to get the index of that null?

Member Avatar for ddanbe
0
58
Member Avatar for bbabarajj

How to add 1/1+ 1/2+1/3...+1/9+1/10 . I tried but I am getting answer in negative number.

Member Avatar for bbabarajj
0
2K
Member Avatar for cthreash

I have a question regarding scope for a character array defined as follows: saveDataObj->save("This is the first entry", 1, 2); Here is how the SaveData class has been defined: [code=c++] class SaveData { struct entry{ const char* data; int data1; } entry* mpData; static int iter; } //Constructor SaveData::SaveData() { …

Member Avatar for cthreash
0
391
Member Avatar for ziedbhz

Hi, I'm new to network developpement but not to c#. I want to create a desktop application in wich the user provide a serial number to validate his acount. This serial number must be sent to a web server for verification purposes. Please, i need your suggestions to start: - …

Member Avatar for ziedbhz
0
67
Member Avatar for Argo54325

Hello, I've been looking for information on creating a chat server and client application, just the basics that would include: 1. Connecting to the server. 2. Displaying a "friends list" (like windows live). 3. Open a private conversation with a friend on the list. 4. Send messages from users to …

Member Avatar for csmgsarma
0
168
Member Avatar for Kitten84

I have this website with a login and a password recovery link. When I click the "forgot my password" link it takes me to a page which asks for username and security question answer. When I fill it out and hit submit. I am taken to a page that tells …

Member Avatar for Kitten84
0
241
Member Avatar for MatthewSedam

This is a basic calculator I made in C++. I am learning C++ on my own. [CODE] #include <iostream> using namespace std; float Add (float &a,float &b) { float c; c=a+b; return (c); } float Subtract (float &a,float &b) { float c; c=a-b; return (c); } float Divide (float &a,float …

Member Avatar for WaltP
0
179
Member Avatar for Ngup

Hello C#ers, I apologize for the rudimentary question but I did not realize my issue till now. I have a large csv file some 214MB. Initially I made my program readalllines and it takes forever. I understand to fix this problem streamreader can help. However any of the tutorials I …

Member Avatar for stryker4526
-1
224
Member Avatar for eternaloptimist

i have a few questions.: 1)if i wanted to write a line of code needed to declare a 1-dimensional array named names that can hold 8 string values would this be correct?: char names[8]; 2)how would i write the code needed to assign strings to each element of the array …

Member Avatar for eternaloptimist
0
107
Member Avatar for hemant_is_here

hi all plz explain me with syntax "how to pass pointer to a function or pointers to a function " . plz tell me if there any big tutorial which can solve my problem providing a deep knowledge about it . and one more probim : what is incorrect int …

Member Avatar for jamma
0
804
Member Avatar for mingas

Hi forum! My name is Eduardo and I´m from Portugal. I´m a newbie to C++ and I hope to learn a lot with you I´m facing a doubt that I couldn´t solve yet. (I will also post this thread at c++ area, hope you don´t mind ) My doubt lies …

Member Avatar for Ancient Dragon
0
214
Member Avatar for truthuntold

I am running into problem on getting this program done. Its suppose to quiz you on your 2 powers ie(2^2 = 4, 2^22 = 2m, 2^46 = 32t) I've programmed in python for a couple years but a lot of the tricks python lets us have C++ doesn't or I …

Member Avatar for WaltP
0
100
Member Avatar for skorm909

here is my script: [CODE]#include <iostream> #include <cmath> int main() { using namespace std; int who; cout << "how are you today? good, bad, or eh?" << endl; cin >> who; if (who == "good") { cout << "ahh thats pretty cool i guess..." << endl; } if (who == …

Member Avatar for skorm909
0
362
Member Avatar for devster123456

I am currently trying to generate a program using a double nested for loop to get the following output: >Please enter the maximum integer value you wish to find divisors: 10 >List of divisors of the integer between 1 and 10: >divisors of 1: 1 >divisors of 2: 1, 2 …

Member Avatar for Agni
0
452
Member Avatar for RoyMicro

Hai I have to provide icons for my C# application (just like any other application!) But what is the optimum size of these icons used for different purposes? GUI has a icon, menu has got images etc. I got downloads in which different sizes of icons and even images in …

Member Avatar for lee.j.baxter
0
493
Member Avatar for sweetnidhi

cprogram i doing mca so i do one program the defination is: do binary addition of 8 bit number

Member Avatar for lamoracke
-1
77
Member Avatar for jdpjtp910

I have a program for school. The program is an inventory program. It will start by writing blank records to a file. The user then should have a case drive menu. The user will select an option for what action they desire. Actions are add new record, change record, and …

Member Avatar for dusktreader
0
2K
Member Avatar for MARKAND911

How to get timer_tick event in Asp.net. i am making one web server control. i want to add timer control in its property. please give some examples of property which uses timer control in it.

Member Avatar for kdcorp87
0
490
Member Avatar for subcom

[B]Introduction[/B] In this sample,It shows how to move files to another folder. [B]Background[/B] It can be used in winForm applications.

Member Avatar for logiccool
0
3K
Member Avatar for tuckerblue

I have a few C# questions too, but this is mainly an ASP problem I think. All the code I mention below takes place in the code-behind of my Master Page. I worry a lack of knowledge on master pages may be the problem too. Excuse the database name; my …

0
67
Member Avatar for heredia21

#include <iostream> using namespace std; int num, factorial; num = 6; factorial = Fact(num); cout << num << "! = " << factorial; return 0; } // end main int Fact (int num) { if (num == 0) return 1; else return num*Fact(num-1); } //end Fact int main() What is …

Member Avatar for heredia21
0
70
Member Avatar for ppotter3

Hello, I am working on a program that takes an integer array filled from a random number generator. These values are suppose to be from -5000 to 5000, 2500 of them. Then I want to find the standard deviation of the numbers in the array. I am required to use …

Member Avatar for ppotter3
0
1K
Member Avatar for ravick4u

[b]Split from - [url]http://www.daniweb.com/forums/thread106146.html[/url] [/b] [QUOTE=GeniXmeN;517655]Thanks man a lot for the help i solve the problem!!! :) I put the new button for Deleting and now is working. Once again thanks for the ideas and for the link!!![/QUOTE] I tried almost everything but did not got success. I am not …

0
45
Member Avatar for sandorlev

Hello! I've started programming C++ a week ago, so I cannot solve my problems easily. I've started a small project for learning classes, it's about encryption and stuff. I don't really get pointers, although I've read some about them. My problem is that when I use the cipher, it replaces …

Member Avatar for vmanes
0
777
Member Avatar for wen30

Hi , i got an application API interface written in C++. i wanted to inherit the interface in C#. can somebody be kind to teach me how may i write this code in C#? [CODE]HRESULT _stdcall ExampleFunction() [/CODE] thanks!

Member Avatar for kvprajapati
0
71
Member Avatar for aquaticdeity

Hi am learning c# myself.I have created a [B]Breakout [/B]using c#.But am struck with one problem.When I run the program the paddle and the ball moves properly,but when the ball hits the brick it, the brick does not disappear. The problem I believe is with the [B]Invalidate()[/B] method.I think when …

Member Avatar for aquaticdeity
0
1K
Member Avatar for reyarita

hey guys gudday!!! guys do u have idea how to use listbox or datagridview? sample if i want to create another data and save it, i will see it in listbox or datagrid or any. pls need ureidea guys

Member Avatar for kvprajapati
0
59
Member Avatar for Lukezzz

I am trying to declare a Doublebuffered panel in C++ I can only find the declaration for this in C#. So I wonder how this could be converted to C++ ? [code] public class DoubleBufferPanel : Panel { public DoubleBufferPanel() { // Set the value of the double-buffering style bits …

Member Avatar for Lukezzz
0
386
Member Avatar for mo94015

need to change this from availcredit01.cpp to availseats01.cpp and make the necessary adjustments 1)ask user to enter the room size 2)get room size 3)ask user to enter number of students 4)get enrolled 5)set avilseats to room size minus enrolled 6)display the available sets 7)halt and return to operating system i'm …

Member Avatar for Narue
0
97
Member Avatar for robbtek

Hello , I need to pass a system (linux) result to a varaiable . Example : ... char KERNEL = system("uname"); printf(KERNEL); ... this example dont work , can you help me ?

Member Avatar for Salem
0
373
Member Avatar for WargRider

Hello Everyone, As you can see, I am new to DaniWeb, and might I say this is a VERY good community. Either ways, my problem is a pretty complicated one, which I have been working on for a while now, 2-3 weeks. I am assigned by my team to create …

Member Avatar for Nick Evan
0
399
Member Avatar for jamesonh20

Is there a way to reference winmm.dll's to get ID3 info. Everything I have looked at online shows programming of your own mp3 data (i.e. Title, artist....). There has to be a way to just retrieve the file info from the DLL right??? JamesonH20'

Member Avatar for kvprajapati
0
67
Member Avatar for madcloud

Hi all! I would like some help for getting a value out of a selected row of a datagrid. To do this i used the following code but it returns an empty string (DG is my datagrid) string val = DG.SelectedItem.Cells[1].Text; Response.Write("*"+val+:*"); The rouput of this its: ** although there …

Member Avatar for Kapil Vaichalka
0
1K
Member Avatar for mnf
Member Avatar for Diamonddrake
0
3K
Member Avatar for jdpjtp910

I have a program for school that I need help condensing some code, if possible. I have structure that has 10 fields for a monthly budget. I will have the user input their current budget and then my program informs the user if they are over under their budget and …

Member Avatar for jdpjtp910
0
515
Member Avatar for gianx80

Hi! I'm writing a little equation solver for an exam ... it has not to be perfect or mathematically rigorous. With this program I have only to show to my professor that I can write some simple program in Assembly and C++ language. In other words, I have only to …

Member Avatar for Salem
0
247
Member Avatar for ppotter3

Hello! I have a question, I have been struggling with this for a bit (I welcome any constructive criticism and pointers) now, and I am pretty new to C++. I am in the process of writing a program that takes names in the format of LAST, FIRST; the it loads …

Member Avatar for ppotter3
0
1K
Member Avatar for ppotter3

Hello! My name is Page, and I am having problems figuring out how to read a name for example like; SMITH, JOHN in a string array. From there I would like to find the space and read the last name into a vector and the first name into another vector. …

Member Avatar for ppotter3
1
7K
Member Avatar for zeeven

Hello guys, Been doing good in my thesis: Face Recognition System, a little more improvements and its all done. Now, I'm planning to deploy my application in terms of a installer (i.e. .msi). I know that VS2008 Pro can have this with no pain but I'm using VC# 2008 Express …

Member Avatar for JuhaW
0
104
Member Avatar for borkoBorule

Hi everyone, I'm n00wbie to C# and I I have one question. I'm writting class for access to MySQL over DbLinq and I need to know connection string. I know that I can read connection string from webconfig file. My question is is there any function in C# that I …

Member Avatar for apegram
0
80
Member Avatar for renoxp

plz convert this to vb.nettttttttttttttttt thanx [code] attachment attachment = new attachment(); attachment.caption = "facebook.com"; attachment.name = "Publish Test"; attachment.href = "http://www.facebook.com"; attachment.description = "a sample description"; attachment.properties = new attachment_property() { category = new attachment_category() { href = "http://www.facebook.com/mycategory/sample", text = "sample category" }, ratings = "5 stars" }; …

Member Avatar for pauldani
-4
158
Member Avatar for hypnos4

Hello, I've got a problem with my project... in short I've got a mysql db bond through a DataSet and BindingSource - if I'm editing like a user the gridview then all changes are commited to the db no problem... But I need the user to responsibly change foreign keys …

Member Avatar for kdcorp87
0
338
Member Avatar for Dizzzy

Ok i have a char with ''/afile.html" assigned to it. The extensions of it can vary so i need to get the extension to a seperate char to compare it with something else il show you what i have.... Basically i need everything after the '.' [CODE]char resource[16]; n = …

Member Avatar for Dizzzy
0
141
Member Avatar for Servet Yekta

Hello everyone, I'm trying to improve myself on Winsock , so I wrote a code which can get the content of an website.Now I'm trying to post (upload) a file to a http website.Here is my code , what should I add to my code to work with POST? Thanks …

Member Avatar for Servet Yekta
0
192
Member Avatar for justinclev

I've been looking through the site for topics on how to code your own DLL's in C++ and so far i have not come up with much, I'm hoping to create a DLL in which i will code functions for using the win32 API and kinda making a small framework …

Member Avatar for Frederick2
1
128
Member Avatar for bharathilakshmi

I am need to process on images using C. I am working in fedora 10. I am using KDE C/C++ platform. I am interested to work under C only. I want to know if image reading is possible in C. if so what is the procedure. Regards Bharathi

Member Avatar for Ancient Dragon
-2
49
Member Avatar for vin1

hi all,im new here and im a beginner at c++, im making a simple tic tac toe program, and its not working properly, it cant determine the winner,could someone please help. heres the code [CODE] #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<stdio.h> #include<graphics.h> #include<ctype.h> #include<time.h> void main() { /* request auto detection */ …

Member Avatar for mrnutty
0
142
Member Avatar for atticusr5

Hello everyone, I am a college student in his second year of learning C++. Last semester we would use Visual Studio to write and compile our code in. This year we use linux, more specifically the Vi editor. We use linux in two ways, either we use Putty in Windows …

Member Avatar for Salem
0
141
Member Avatar for muthu1802
Member Avatar for kvprajapati
0
159
Member Avatar for wilsonz91

Hi, I have a problem here with the c++ if statement. if (adult=1) { hotel=(adult*hotel)+(children*0.5*hotel) +(baby*0); break; } else if (adult=2) { hotel=(adult*260*0.85) +(children*0.5*260) +(baby*0); break; } else if (adult>2) { hotel=(adult*hotel*0.8) +(children*0.5*hotel) +(baby*0); break; the above is a small part of the code i'm doing. Problem here is, It …

Member Avatar for wilsonz91
0
120

The End.