8,298 Topics

Member Avatar for
Member Avatar for paulnamroud

Hello, This is my first experience with C# Web Service & AJAX ... I would like to build a page like Facebook that will load the next set of records when we scroll down ... I'm trying to use the code but it's not working at all ... Can you …

Member Avatar for paulnamroud
0
332
Member Avatar for Akshay nand

Lab Assignment 1 - A Simple UNIX Shell Objectives: The objective of this assignment is to understand the workings of a command-line interface (CLI) and to obtain a working knowledge of process forking and signalling. Assignment: In this assignment we will build a command shell in stages. Our command shell …

Member Avatar for deltascrow
0
335
Member Avatar for kux

ok, I've checked the forum and I don't think this topic was touched. What I would need is an open-source or at least free static analysis tool for C++ code. Does anybody have any suggestions? I mean, searching the web C++ lacks A LOT at this chapter, compared to Java, …

Member Avatar for IssamLahlali
0
255
Member Avatar for liphoso

Hope this is the correct place to put this question. i am new to linux and am runnning ubuntu 12.04. I just installed Netbeans 7.0.1 and xampp 1.8.1, both running on ubuntu. i would like to make a c++ program that uses the MySql database that comes with xampp. I …

Member Avatar for pritaeas
0
95
Member Avatar for kidkardel

hi pls I need someones help. i am not good at programming and i have this subject ; but i am a BSBA major. it is like free section for me and i want to learn it to so i can be flexible. but this project is getting all my …

Member Avatar for tinstaafl
0
4K
Member Avatar for tbanisida

Hai Friends This is Bency. I need a help for type a word in textbox in tamil word in c#.. Advance thanks

Member Avatar for geniusvishal
0
932
Member Avatar for MARKAND911

I used following code to connect oracle database from C#. But i get this error "**invalid login credentials**" using (Oracle.DataAccess.Client.OracleConnection cn = new Oracle.DataAccess.Client.OracleConnection("Data Source=abcSource;User Id=abcUserId;Password=abcPassword;") { cn.Open(); } While if i try following code to connect database from C# I succeed. using (System.Data.OracleClient.OracleConnection cn = new System.Data.OracleClient.OracleConnection("Data Source=abcSource;User Id=abcUserId;Password=abcPassword;")); …

Member Avatar for RvSon
0
195
Member Avatar for penguin22

Hey guys i'm trying to figure out how to open a new message window from outlook when i click a button on my form any help greatly aprreciated thanks.

Member Avatar for Ketsuekiame
0
1K
Member Avatar for hookedtocsharp

The scenario is, If the user has logged in for the first using his one time password it should get redirected to ResetPassword.aspx If the user is not new, then should get redirected to Main.aspx page. Should I use IsPostBack or Membership.ValidateUser? How do we usually code in c# to …

Member Avatar for Ketsuekiame
0
230
Member Avatar for ConfusedLearner

Define an integer vector and get several input from keyboard, then display the numbers in the vector. The while loop is required to write the display loop. I am having trouble turning my program into a while loop and getting mistakes. Please help. #include <iostream> #include <vector> using namespace std; …

Member Avatar for Banfa
0
157
Member Avatar for PolarClaw

Hello everyone, im new here and dont know yet most of the policies.. but i have been reading lots of your C++ codes, mostly, codes made by Narue.... i wonder if you someone could help me make a code for pascal's triangle wherein the ouput would look like a triangle …

Member Avatar for H A hashim
1
1K
Member Avatar for ConfusedLearner

I am writing a program for class but stuck. I need my program to pick adult, child, student or senior, if I enter any of them. #include<iostream> #include<iomanip> #include<string.h> #include<fstream> using namespace std; int main() { int choice; int months; int Adult, Child, Student, Senior; cout<<"Enter the number of months …

Member Avatar for deceptikon
0
163
Member Avatar for Potgiesh

Hey guys i'm having a lil trouble with object serialization. student * s = new student("Mike",200014); ofstream ofs("student.dat",ios_base::out | ios_base::binary); ofs.write((char*)&s,sizeof(s)); ofs.close(); If student was a class with attributes `studentName:string` and `studentNumber:int` would the above code write the object pointed by s to the file `student.dat` ?

Member Avatar for rubberman
0
207
Member Avatar for oscargrower11

Following a tutorial, I built a small sample program that uses winsock. It compiles, but there are a few different places I'm not sure what's happening with the pointers. Full source is available [here](http://pastebin.com/NTdCWhWr) Line 25: `struct hostent *host;` As near as I can tell, this creates a pointer to …

Member Avatar for Moschops
0
262
Member Avatar for hirenpatel53

Hi all I am Using following Line Of <a href="HostInactivityTest.aspx?HostID={$iHost}&amp;HostNames={$HostName}" Target="_blank" style="font-size:8pt;font-family:Verdana;color:orange;font-weight:bold,text-align:left;"> Problem with this code is it opens new window with IE that is fine for me but newly open window shows URl,MenuBar,BookMarkBar that i dont want show in that child window so Anyone hase idea about this Please …

Member Avatar for scudzilla
0
243
Member Avatar for Spanky_12

#include <iostream> using namespace std; void get_temps(int choice) { if(choice == 1) { double temps[12]; for(int i = 0; i < 12; i++) { int month_num= i+1; cout << &"Please enter the average temperature for month " [month_num]; cin >> temps[i]; } } if(choice == 2) { double temps[10]; for(int …

Member Avatar for mrnutty
0
245
Member Avatar for Potgiesh

Hey guys i have an advanced programming project , which is to run on both linux and windows operating systems. And i wanted to know if there is an IDE with drag and drop features which i can use to code the graphical user interface

Member Avatar for mike_2000_17
0
467
Member Avatar for mical700

I am getting wrong output. My Code is following, in which I have to use function unsigned long powerof2(int n); #include <stdio.h> #include <stdlib.h> #include <math.h> //int powerof2(int n); unsigned long powerof2(int n); int main(void) { printf(" n 2^n\n"); printf("-- ---\n"); for (int n=0; n<65 ;n++) { //printf(" n 2^n\n"); …

Member Avatar for mical700
0
232
Member Avatar for mical700

I am trying to print: 0 1 1 2 2 4 3 8 4 16 5 32 6 64 7 128 8 256 9 512 10 1024 11 2048 12 4096 13 8192 14 16384 15 32768 16 65536 17 131072 18 262144 19 524288 20 1048576 21 2097152 22 …

Member Avatar for mical700
0
395
Member Avatar for rory.duncan.14

Thanks in advance for anyone who can a)understand this, and b) give any help in my struggles. We are coding in C++, have half a circle, starting a a certain point (e.g. (0,-310)) and finishing at a certain point (0,310). We have the radius, and we have the equation X^2 …

Member Avatar for Ancient Dragon
0
192
Member Avatar for gunnerone

Hi, I have this simple program that should draw a cube for the user by reading the data in from a text file which looks like this. 8 100.0 100.0 -100.0 -100.0 100.0 -100.0 -100.0 100.0 100.0 100.0 100.0 100.0 100.0 -100.0 -100.0 -100.0 -100.0 -100.0 -100.0 -100.0 100.0 100.0 …

Member Avatar for Ketsuekiame
0
444
Member Avatar for krutikasharma

There are a 10 words in statement.i want program in 'C' to find out how many words have the same number of letters

Member Avatar for Moschops
0
106
Member Avatar for rajendradhakal

Previously i've done it in VB6 in following ways: for lock database Sub lockDb(bPath As String) On Error GoTo Ermsg Dim iFreeFile As Integer Dim lLoop As Integer Dim sString As String iFreeFile = FreeFile() 'Get free file # Open bPath For Binary As #iFreeFile 'Open specified file for binary …

0
65
Member Avatar for Counterpartz

Hello, I'm writing an application that computes the variance and average from a list of integers. Here is the assignment info: Create a function that accepts a list of integers and computes the average and variance of the list. The variance is computed using the following formula. The list of …

Member Avatar for Counterpartz
0
310
Member Avatar for ayesha.anwar.9047

Write a MIPS code for the following C program to run perfectly in Qtspim??? Void main () { Int array[10]; For (i=0; i<10; i++) { array[i]=compare(num, i);} } Int compare (int a, int b) { If (sub(a, b,) >=0 ) return 1; else return 0; } Int sub ( int …

Member Avatar for L7Sqr
0
48
Member Avatar for shaun.b

Hi, I have finished developing the first release of my application which uses MySQL (locally under one license and hosted under another). Connecting the application to the hosted database works fine, i edit the connection details within my application to the hosted server details and it works fine. However, when …

Member Avatar for pritaeas
0
216
Member Avatar for waleed.makarem

Gentlemen, I have found a very nice tooltip control on the following link http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6967&lngWId=10 I tried to convert it to vb.net , and the solution works , but with some error . I beleive it is related to the namespace issue. Please check attached file for the C# source code …

Member Avatar for waleed.makarem
0
345
Member Avatar for VaibhavJhaveri

Can anyone help me with my problem? Problem : I have 4 text files named datatypes, delimiters, operators and variables, having respective data. I have another file which acts as input to this program. The problem is that I have to check each lexeme of the input file and compare …

Member Avatar for Ancient Dragon
0
95
Member Avatar for robgeek

Hi guys, I am facing some issues trying to deploy my application developed in c# in visual studio. I created a setup/.exe using InstallShield for visual studio 2012 with all the required files for the project included. The target machine where I want to deploy this application is running windows …

Member Avatar for robgeek
0
257
Member Avatar for akhil.mittra

Hi, I am trying to create a c++ program for counting the number of occurrences in an array using 2 1-D arrays such that the first array contains the elements and the second array gives the count of the number of occurrences of each element in the first array. Unfortunately, …

Member Avatar for emcela
0
705
Member Avatar for robgeek

Hi guys, I am facing some issues trying to deploy my application developed in c# in visual studio. I created a setup/.exe using InstallShield for visual studio 2012 with all the required files for the project included. The target machine where I want to deploy this application is running windows …

Member Avatar for Ketsuekiame
0
222
Member Avatar for Fahhad

USE [Emp1] GO CREATE FUNCTION [dbo].[Leave] ( @EmployeeID INT ) RETURNS INT AS BEGIN DECLARE @PayLeave INT, @NonPayLeave INT; SET @PayLeave = 0; SET @NonPayLeave = 0; RETURN ( SELECT IF((ImDescription == "Sick") AND (ImLeaveType == "Yearly")) { IF((ImMonthlyMaxLeave > 1) OR (ImYearlyMaxLeave > 10 )) { @NonPayLeave = @NonPayLeave …

Member Avatar for adam_k
0
300
Member Avatar for firebird102085

Hello Everyone, Off the bat I want to say that I am just learning programming so if my code is missing basics I apologize. I was hoping that you might be able to give me an example of how you would solve this problem. I've spent the better part of …

Member Avatar for firebird102085
0
805
Member Avatar for blaze007

I have a text file containing the following content: 0 12 1 15 2 6 3 4 4 3 5 6 6 12 7 8 8 8 9 9 10 13 There are no spaces between two rows but there is a space between two numbers. I want to read …

Member Avatar for ddanbe
0
382
Member Avatar for sanket2013

hi friends, i want the functionality like to bind images to dropdown which has been shown in below url. http://hotels.jetairways.com/templates/376171?lang=EN&currency=INR In above url, when u click on INR Rp, which displays all currency with their images, the same functionality i want. plz helped me out.

Member Avatar for JorgeM
0
44
Member Avatar for ahmzy

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; using System.IO; namespace Enrolement { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { /* This part of my code imports the …

Member Avatar for ahmzy
0
1K
Member Avatar for ripplex

Hi there What are the various GPL's that can be used with C? I am currently learning SDL and I know of another, Allegro. Just trying to fine tune as well as learn more about C, so I am programming games using C.On a bright sunny day, it would definitely …

Member Avatar for gusano79
0
223
Member Avatar for shaun.b

I am about to deploy my application and have came into a bit of trouble. I have the connection string for the database held in the application.settings and need a way to check if the database exists when the program first starts up, and if it doesn't, i need the …

Member Avatar for AleMonteiro
0
616
Member Avatar for gamers18

Hi, ive been trying to print out a dictionary item with its List but im so confused about it. Basically I created a dictionary and I managed to add an Item to the dictionary(as a Key) and List of something (as value) Dictionary<String, List<string>> dic = new Dictionary<String, List<string>>(); public …

Member Avatar for tinstaafl
0
5K
Member Avatar for anisha.silva

Hi, I am getting a xml object from as a web response for getting data from a web page the content is as : " <bookshare>\n <version>4.1.1</version>\n <messages/>\n <book>\n <metadata>\n <author>David Flanagan</author>\n <available-to-download>0</available-to-download>\n <bookshare-id>21385</bookshare-id>\n <brief-synopsis>The 1.4 release of Java 2 Standard edition brings a load of new features - and …

Member Avatar for anisha.silva
0
335
Member Avatar for ChainedHollow

I need to multiply 2 matrices together using threads to computer each element. Ive been working on it myself but Im stuck at this point and Im getting an error. Here is the code I have. Can someone help in explaining what is wrong here or how to correct it? …

Member Avatar for WannaDoRight
0
3K
Member Avatar for robnederland

Good morning DaniWeb community, I've been coding a while in Classic ASP with MS SQL, but now it's neccesary for me to take the plunge into ASP.NET, C# in particular. I have a lot of data in SQL, and I would like to know where to start, I know how …

Member Avatar for robnederland
0
115
Member Avatar for vegaseat

This short piece of code shows you how to display text in color in a C# windows console program. The corresponding WIN32 API functions are in the kernel32.dll and are imported and declared external. The only other problem is to assign variable types that accommodate the types listed in the …

Member Avatar for KrayZVIII
0
1K
Member Avatar for Counterpartz

Hi, I'm having a little trouble with an assignment for my C# class. (The professor doesn't explain specifics, just the basics, and he isn't any help, he's extremely shy and awkward) using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Assignment_2_ITM_225 { class Program { static void Main(string[] …

Member Avatar for tinstaafl
0
242
Member Avatar for harry.lloyd.7503

Hi guys/ and the minority of girls. This topic is for my teacher, who has asked me to find information of the following for himself. How can he interface a USB port to run a motor through C++? He is relatively good with computer systems himself, so why he does …

Member Avatar for MandrewP
1
256
Member Avatar for craig.durnin.1

Literally, I have been asked this question ""The Fibonacci sequence is 0, 1, 1, 2, 3, 5, 8, 13, … ; the first two terms are 0 and 1, and each term thereafter is the sum of the two preceding terms – i.e., Fib[n] = Fib[n – 1] + Fib[n …

Member Avatar for plenty.groover
0
2K
Member Avatar for sukhanya

I have 'bit' datatype in db. I convert its equivalent datatype to 'bool' in c# when i declare. protected bool e_Status; And when I set the property for the above, public bool Status { get { return e_Status; } set { e_Status = value; } } Now how do I …

Member Avatar for sukhanya
0
844
Member Avatar for pwolf

I'm new to c# programming, and I am a little stuck on how to make a variable available across multiple forms. I read that i should make a public static class, however, my code is as follows: private void btnLogin_Click(object sender, EventArgs e) { accountNo = txtBoxAccntNo.Text; valid = validate(); …

Member Avatar for ddanbe
0
346
Member Avatar for firebird102085

Hello All, First - I am just a beginner at this (just started studying C++ this semester) so I am lost somewhat sometimes and I think I am making good headway with my first array, but, I can not get it to return any output in my console window. I'm …

Member Avatar for mrnutty
0
1K
Member Avatar for chocolatte.lavista

hello guys ! I need some help.. "assume that the process happen in some restaurant. there are seat1 until seat10 in the restaurant. the customer(user) need to enter the seat number to select the seat that they want. the seat that have been selected by customer will remark by 'reserved' …

Member Avatar for tinstaafl
0
283

The End.