199,114 Archived Topics
Remove Filter ![]() | |
hi i have an ajax calendar extender control that is set to a textbox. how can i get the current selected date value from the calendar ? | |
is it possible to catch an exception in a try-catch block and show the message in the page's validation summary ? | |
Hii I want to design a contact form with multiple fields like title, firstname, lastname,country,email,address,pincode on one page at the bottom with next button and on other page want to add some more fields with checkbox and radio buttons .... please tell me how to design it and its coding … | |
Hi everyone, i wrote this small app and it works fine but it erases everything up to the offset and everything after it. Anyone knows how to avoid that? [CODE=C++]#include <iostream> #include <fstream> int main() { int hex = 0x75; std::ofstream f("sample.exe", std::ios::binary); f.seekp(1169, std::ios::beg); f.write(reinterpret_cast<const char *>(&hex), 2); f.close(); … | |
i USED THIS CODE TO ASSIGN THE BRAND DBS TO A VALUE OF $200000 Help with Code Tags [quote] Private Sub xModelComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xModelComboBox.SelectedIndexChanged If xModelComboBox.Text = "DBS" Then xTotalPriceLabel.Text = "$200,000" [/quote] AND THIS CODE TO CALCULATE THE FOLLOWING iNITIAL PRICE= is … | |
Hello, Is there a way to read an imagefile into a binary string? I know I can use [code]open(FILE,"rb")[/code] but this produces something unreadable that looks a bit like hexdata (I'm a newbie here :-). What I am trying to accomplish is to convert it to a string of ones … | |
Hello, For the program described below, I obtain the correct prime numbers in the file, but when I try to output this data sorted to standard input, I get some garbage when I try it on my school network. However, when I run the same code using vmware's lamp with … | |
Greetings; I would like to install Python, wxPython, XRCed, BoaConstructor : I installed Python 3.0.1 : but which version of the others go together with Python 3.0.1? Maybe I should backup with Python, but I don't know. Please Help. Thanks! ...Vern | |
Hi all, I'm a beginning CS student and am working on an assignment today and am hoping someone wouldn't mind checking my work. I've typing out each assignment problem followed by the code I wrote. Also, please note I'm not required to write complete methods just the code for the … | |
im a noobs in c++.. and my problem is i cant calculate the total,.. here is my program.... i use MSVC++ 6.0.. i hope you can solve my problem..thank you!!. [CODE]#include<iostream.h> void line(); void main() { cout<<"\t\tlist of foods:\n\n1. Yum..............................P49.00\n2. Yum w/ Cheese....................P59.00\n3. Yum with Mushroom and Cheese.....P66.00\n4. Amazing Aloha....................P88.00\n5. … | |
I'm teaching myself c++, and after searching around on the forums, I couldn't find an answer that helped me with this specific problem. The idea is to collect the first name, last name, and SSN of a customer, and create a file using the first three letters of the first … | |
[code=php]<style> body { background-color: #eeeeee; } border:0 valign="top" </style> <?php require_once("VatsimPHPgenerator.php"); $VatsimPHP=new VatsimPHP; $pilotlist=$VatsimPHP->pilots(); $flag=0; $found = false; foreach ($p in $pilotlist) { $m = substr($p[11],0,4)."|".substr($p[13],0,4); if (preg_match("/TTCP|TGPY|TBPB/", $m)) { printf("<tr><th>%s</th><td>%s</td><td>-%s</td></tr>", $p[0], $p[11], $p[13]); $found = true; } } if (!$found) print("<tr><td>There are currently no ongoing flights within the Piarco … | |
I plan to start learning shell scripting but I want to start with the one I can use. Is there anyway to find out which type and version of shell program XP uses? Is it DOS, PowerShell? | |
Hello, I made a page that allows users to login, if id and password are correct than it sets up a cookie and says 'Hi'. Now i can access any page on the site after logging in(Which was restricted if you arent logged) Now this works fine in firefox and … | |
hellow everyone, can u please help me.... just a code fragment in C... the program is designed to add fraction... the user should input like this: enter the fraction to be added: 1/2 1/4 the answer is: 3/4... tnx... :) | |
[code] bool operator>=(const ElementType &e1, const KeyType &key); [/code] I am trying to overload >= which compares the a string in struct e1 with a string. When I compile I get an error that: 'bool operator>=(const ElementType &e1, const KeyType &key);' must take exactly one argument ...I understand that the … | |
I have an assignment I'm working on in C but I didn't want to ask for any code specifically. I just wanted to ask about the methods to use. The program reads a text file where it tells you the number of values to hash. The hash function is completely … | |
Hi, I am getting a segmentation fault at the following line in the code. I am reading a file using ifstream. The file contains some initial junk data followed by useful data. I wish to read and discard the junk data from the file, before I read the useful data. … | |
Can anyone tell me.How should i update. i am trying to to a new record if the Supplier_id Doesn't exist, Then i need to do a Select Statement.if that Supplier_id is in the database already,then i want to update method.i havewritten a code .Here is the code what i have … | |
how can i get the first name, the middle name and the last name in my textbox? what i mean is i have 1 textbox to input his full name the format is this sample: Nash, Steve B. then i have 3 label, the first label is Your first name … | |
hi, ive got a text file which has multiple lines, how can i display all the lines? [CODE] BEGIN assignfile(filea, user); reset(filea); while not eof(filea) do BEGIN readln(filea,textstring); writeln(textstring); end; closefile(filea); readln; END[/CODE] Thanks | |
I've encrypted a file from my local machine, but now I'm looking to make it [B]exe [/B]file. User just [B]double click [/B]on it and a form will be displayed to ask for the [B]password [/B]and [B]decrypt [/B]the file. I don't know how to embed a form with encrypted file. Can … | |
I am getting an error saying, expected unqualified-id before "template" I can't figure out why I am getting this error. Any ideas? Thanks daiel code below: [CODE]#include <stdio.h> #include <stdlib.h> #include <fstream> #include <iostream> #include <iomanip> #include <string> #include <cctype> #include <sstream> //#include "comparable.h" using namespace std; // enum cmp_t … | |
Hello all. I am a CS major and I am learning recursion right now and have a lab assignment to write a program that uses recursion to evaluate post fix expressions. I have made an attempt at this but I am stuck and need some help. Here is what I … | |
Hi All, I need a bit of help with a java Dots and Lines game i am developing, Similar to the Dots and Box game. I have laid out the Dots with the two colours blue and yellow which change accordingly. I now need to draw a horizontal or a … | |
Hey everyone, I've got a problem with my program and don't really know how to fix it. The program is a simulation Game of Life and has these rules: 1. A new cell is born on an empty square if is surrounded by exactly three neighboring cells 2. A cell … | |
Hi, does anyone know how to read the specified line from a text file? And by create a program, we can load what is write inside the text file and read line by line to show at the program. Does anyone have idea on it? Thanks and regards Rainny ![]() | |
Hey I am trying to use Python to control a motor over RS232 (serial ports). It is connected to COM3, and the connection settings are correct (baud=9600, etc). I am using pySerial in Python 2.5. My code is: [code=python] import serial, time # the serial port connections - customise as … | |
i have to do this, and my lecturer is such an ass asking us to learn it by ourselves. i have tried a code but it not working the way it is suppose to be. (Airline Reservation System) A small airline has just purchased a computer for its new automated … | |
Ok here is the code I am trying to compile remotly on a linux machine I am getting quite a few compile errors when I try to compile this Here is just a sample of the errors I am getting. [code]-bash-3.2$ gcc -o lemastsGCD lemastsGCD.cpp /tmp/cca8g62Q.o: In function `__static_initialization_and_destruction_0(int, int)': … | |
I want to connect the access database to the c++ project. What are the requirements of this? How to connect that? Give the example. | |
hi... plz solve this .. actually binary search takes two tests inside the side the loop . Now i want with one comparison inside the loop. [U]Question is[/U]: [B]Our binary search makes two tests inside the loop, when one would suffice (at the price of more tests outside.) Write a … | |
I am trying (unsuccessfully!) to code the game of life for an assignment, I am very new to C programming and am finding it very difficult. I am at the part where the program needs to count how many cells are live/dead and I thought it would be a good … | |
Hi, I am new to java and want to play around, I want to make a program that takes in input of lets say 5 numbers, and displays them separated by a space. For example I would enter 12345 and 1 2 3 4 5 would be returned. this is … ![]() | |
I have to make a tree that will have unlimited leafs in each root. I don't have much experience in binary trees and i am confused on how to make this tree. Can you help me please? | |
can any1 solve this .....Given a sorted list of infinite size in which first n elements (n is unknown) are finite integers and rest are infinity, write an efficient function that finds a given number in O(ln n ) time complexity. | |
#include <iostream> #include <fstream> using namespace std; void namefile(ifstream & infile); void openfile(ifstream & infile); void displayScores(int scores); void getData(ifstream & infile, int scores[], int & size); int main() { } void nameFile(ifstream & infile) { cout << "enter the file name"; cin >> infile; } void openfile(ifstream & infile) … | |
this is my first program ever, my email address is in the program. tell me if anything is too complicated or there are bugs and if you can tell me how to fix them. this program is me playing with fstream and it writes to a txt file or creates … | |
How can I stop this error, here is my code and there error occurs where i have decimal.TryParse(.... class EstCalc { static void Variables (string[] args) { decimal bl; //blank length decimal bw; //blank width decimal bp; //blank perifery decimal pd; //part depth decimal dq; //die quantity decimal.TryParse(quantityTB.Text, out dq); … | |
I was wondering anyone knew how to figure these problems out. To, me it is hard and I really need this done by Sunday morning. If possible please reply, thanks! 1. Construct a recursive definition , where all variables are natural numbers. f(n, k) = k + (k + 1) … | |
Hello everybody I am in search of free PHP script to add calendar in my forum, can anybody help me in this regard, thanks in advance | |
Hi, I have the following structure of my project [code] Copyproject(main folder) | |_____src(folder) | | | |__Nertworkpackage | | | | | |__Storepackage | | | | |__FtpPackage |__module1.py | |__module2.py |____ tests |__ module3.py [/code] Module1 takes some commandline parameters that will do some operation Like If I … | |
I am not too sure about c++. I have this program so i can perform a test on it against java. It looks like [CODE]#include "stdafx.h" #include <iostream> #include <math.h> #include <sys/time.h> using namespace std; double generate(int max) { struct timeval start; struct timezone tz; gettimeofday(&start, &tz); bool *sieve = … | |
Hi, i have a small project in which on selecting a node in treeview displays attributes in listbox.In treeView1_AfterSelect, the text parsing code depends on the textual representation for a node in the tree view, which can be changed at any time and break the entire logic of list display. … | |
hi there, im currently working on my own cd ripping program using c# and wpf and was wondering what the best solution for this problem is? my xaml code is as follows: [code=xml] <ListView x:Name="trackList" VerticalAlignment="Top" Margin="0,100,0,0" Height="200" SelectionChanged="trackSelect" FontFamily="Comic Sans MS"> <ListView.ItemTemplate> <DataTemplate> <StackPanel> <StackPanel Orientation="Horizontal" Margin="0,0,0,0"> <CheckBox Name="checkbox" … | |
Create a class named Order. This class has the following attributes/ data members i) OrderID ii) Items iii) PricesOfItems a) Create the object of this class using parameterized constructor in order to initialize OrderID and Items data members. Default values of both the data members must be equal to 1. … | |
Here's the scenario. I have a web server running with IIS 6 and website running written in ASP. The site and code has been working perfectly up until about 2 days ago when for no reason whatsoever the ASP has decided to partly work. and by this i mean as … | |
Hi to all I have the following question, I was wandering if I can use the Web Browser Control(ActiveX) in a C# DLL. I create a win form from the article: [URL="http://www.c-sharpcorner.com/UploadFile/mahesh/WebBrowserInCSMDB12022005001524AM/WebBrowserInCSMDB.aspx"]http://www.c-sharpcorner.com/UploadFile/mahesh/WebBrowserInCSMDB12022005001524AM/WebBrowserInCSMDB.aspx[/URL] And every thing is working OK, I want to write a DLL that includes a Web Browser object … | |
hello what is the exact code in saving visual basic using ms excel as database? i want to save my data in the form of visual basic into excel as database..what is the exact code in my cmdSave command button? thanks in advance... | |
Hi All, I want to use the data grid as input interface. Can any one help how to start. i need 3 columns date, name, location the location field is drop down field user can select from the list only. the values entered by user should update in the database. … |
The End.