132,726 Archived Topics
Remove Filter ![]() | |
I have a DataGridView which I AllowUserToAddRows behavior enabled. I want to be able to force that only one row be added at time, then if the user clicks the save button the row is inserted into the database, and then another row may be added if the insert was … Software Development vb.net | |
Hi I want to add the table names from a database in sql server to a combobox with vb.net windows programming. Its a customer accounts database where for instance I add a new Account holder which creates a new Table and when I want to view a specific account holder … | |
HERE IS SIMPLE XOR PROGRAM WHEN I TRY TO COMPARE TWO SAME STRINGS ENCRYPTED WITH SAME KEY THEN IT SAYS COMPARISON IS WRONG HERE IS CODE [CODE]#include<conio.h> #include<iostream.h> #include<windows.h> #include<string.h> using namespace std; int main() { char st[100]; char key[100]; cout<<"ENter string ::"; cin>>st; cout<<"\n"; cout<<"Enter key::"; cin>>key; cout<<"\n"; int … Software Development c++ | |
Hello all! I just joined this forum in need of major help. I got this program to write as one of my final grades in a class im taking. I was wondering if anyone could help me (if you wanna do it... that would be awesome, i got 3 other … Software Development c++ | |
int c; c = getchar(); while ((c = getchar()) != EOF) putchar(c); c = getchar(); I know EOF means end of file. Basically, I believe this functions is instructed to keep inputing text from the keyboard until EOF becomes the subsequent input. However, I am not sure what EOF is … Software Development c | |
This program here is supposed to count the number of occurrences blanks, tabs and newlines within the respective text you type within the program. However, after I compile the program and run it on ubuntu's terminal, all I am able to do is punch in text, space, enter etc... endlessly … | |
Quick question: what does "if(c == '\n') mean in this context? Is it just using '\n' as a reference for a numeric value within ASCII? which in that case would be 10, so if 10 is entered, this is when nl increments up one? { int c, nl; nl = … Software Development c | |
Ok firstly I want to show you my code here: [B][COLOR="Red"]Trader.h file[/COLOR][/B] [code] const int NumSeller = 1; const int NumBuyer = 1; const int NumBids = 10; const int MinQuantity = 1; const int MaxQuantity = 30; const int MinPrice =50; const int MaxPrice = 100; class Trader { … Software Development c++ file-stream | |
I am trying to learn CGI programming in PERL. I have a simple test page that I want to try out, but when I upload it and try to display it as a web page, all I get is the source code. Can anyone help me out? I'm not sure … Software Development perl | |
I have two files with an unknown list of integers in ascending order. What i want to do is send the contents of the two files into another file in ascending order. We dont know the contents of the two numbers files. so for example File 1 may have the … Software Development c++ file-system | |
i'm having trouble creating a craps game for school, i'm a light weight c user and any help would be amazing!!! | |
Hi there, recently I wrote a small C program utilising the Windows API to communicate with a device over the serial port (COM1, a real serial port of my PC). This worked fine, but I am aware of the fact that those real COM ports are replaced more and more … Software Development api c windows-api | |
Can anyone help me with this problem, I have 2 textboxes in which i load 2 text files. And now in the third textbox i need to display the word frequency ( the word and how many times is been used that word in those 2 texboxes). And finally calculating … Software Development c# | |
I'm not sure if this should go here but as i'm making my program in C# i thought i'd give it a go. I've been using 'Add New Data Source' in visual studio 2008 to get information from Access databases. This has always worked fine but recently buttons like 'Add … Software Development visual-studio | |
Hi folks, I wonder if anyone out there could help me with something. I have a folder containing many cnv files that look like this: * Sea-Bird SBE 9 Data File: * FileName = C:\CTD Data\Alg173\stn001.dat * Software Version Seasave Win32 V 5.38 * Temperature SN = 4977 * Conductivity … Software Development python | |
Hi there, On executing the above code I'm getting the error "segmentation fault". Is it possible to manipulate a string variable which already contains a data?[code]#include<stdio.h> int main() { char *str="Hello"; char * str1 ="World"; strcpy(str,str1); printf("%s",str); }[/code] Software Development c | |
Have been programming in Turbo C for some time using an XP platform. I have recently bought a new computer also with XP and Turbo C programmes will not run on it. Has XP been modified recently? Is there any solution other than going back to 98? Thanks Cliff Software Development c | |
In my experiment.cpp i have Test *tests[maxTests]; as private data. How do i access this in my runExperiment function to call functions from the test class or its derived classes? Software Development c++ | |
hi there, i have a check box in a form. to this form i am loading information from the database(mdf file). and also in the checkbox checkchange event i have a code to do something. when i load the data if the checkbox value in the database is true then … Software Development c# | |
cant get this to display on webpage. Apache is setup correctly. Getting error "[COLOR="Green"]malformed header from script. Bad header=04/19/2010: date.pl[/COLOR]" where am i going wrong? [CODE]#!/usr/bin/perl use strict; use warnings; use POSIX qw(strftime); my $cur_time = strftime "%a %b %e %H:%M:%S %Y", localtime; print "$cur_time\n"; open PS, "/bin/netstat -nra 2>&1|" … | |
this snippet below is my code. It's supposed to be a memory game, but i have some problems making it work, I've made a button_1 that generates 6 random numbers in random order, those 6 numbers are supposed to tell the "p1 - p6" (pictures (2 of each to make … | |
Hi, I have some data stored on an XML file and I am trying to read a specific part of it. Here is a line from the XML:- [CODE] <photo id="4539802593" owner="***" secret="***" server="4032" farm="5" title="Stone Bridge" ispublic="1" isfriend="0" isfamily="0" /> [/CODE] Below is the bare bones of code I … | |
Hello, I'm new to C++ but after reading two books regardin this language I made this part of a program. While those two files (.h and .cpp) were concatenated in the main cpp file the program worked without errors, aldo it did not return anythig. As I split the program … Software Development c++ open-source | |
So im going to try and write a simple instant message program using MFC. Basically, Im wondering the concept of how the client server process works. I need to write a server that is its own seperate .exe, then a client which contains the gui and the information to contact … Software Development c++ client-server gui | |
Never use the function [inlinecode]gets[/inlinecode]. Why? It is unsafe. Since the maximum string size cannot be specified, it is always susceptible to buffer overflow. This snippet shows one way to do a safe version of [inlinecode]gets[/inlinecode]. It reads characters from the [inlinecode]stdin[/inlinecode] into a string up to the specified size … Software Development c | |
Hi All, I have a microsoft word document, and I have got class to handle the manipulation within those documents (I call it "Word"). My code goes this way: ------------------------------- sub form load set W = New Word ' W is the Word object if usingW = true then 'open … Software Development visual-basic | |
Hey, Ok i needed quick help on vectors in C++.I have a vector which consits of a complete bidlist for Traders i.e Askers and Buyers. Now what i want to do is,Get the first ask bid and compare that with the Buy bids,via the price and quantity. The traders have … Software Development c++ | |
im presently using two buttons in a form and a webbrowser control. button1-Navigate to the page button2-Fills user,pass and then submit like this [CODE] private void button1_Click(object sender, EventArgs e) { webBrowser1.Navigate("http://www.xxxx.login.aspx"); } private void button2_Click(object sender, EventArgs e) { webBrowser1.Document.GetElementById("username").InnerText = "aaaaa"; webBrowser1.Document.GetElementById("password").InnerText = "bbbbb"; webBrowser1.Document.GetElementById("login").InvokeMember("click"); [/CODE] and it … Software Development | |
Hey, Ok i needed quick help on vectors in C++.I have a vector which consits of a complete bidlist for Traders i.e Askers and Buyers. Now what i want to do is,Get the first ask bid and compare that with the Buy bids,via the price and quantity. The traders have … Software Development c++ | |
![]() | Hi i am doing C programming in netbeans and when i compile and run my program i get a message in the dos console that says i need to use the nodosfilewarning to disable the cygwin warning i am getting. I have attached a screenshot as it is a rather … Software Development c visual-studio windows-vista |
hey sorry for my lame entry, but I have such a problem: I have like 30 textbox controls on form, and I want to refer to them by name, but I want to pass name as parameter I tried some stupid things but no result, any ideas? thanks in advance Software Development | |
I hope you can help me. I'm working on a program that will open any Access database that might be on the system. The problem I'm having is that I cant get get the SQL statement to show all the tables within the database. The code im using is as … Software Development microsoft-access open-source sql vb.net | |
acutally above code is sorting employee class objects based on EmpID or based on EmpName but my requirement is if know the comparator (on which basis sorting should occur) @ runtime how can we achieve that :)[code]package CollectionsOps; import java.util.Arrays; import java.util.Comparator; /** * * @author King@java */ class employee{ … Software Development java | |
Hello, I need help with something it drives me nuts. I have an application which send XML to a web server through a POST method. This part works excellent. But where I have issues is with receiving the standard response from the web server for OK or error. Instead of … Software Development http-protocol vb.net web-server xml | |
can anybody give me some pointers on how to create folders/folder in C/C++? Software Development c++ | |
I want to walk a directory and ignore all the files or directories which names begin in '.' (e.g. '.svn'). Then I will process all the files. My test program walknodot.py does not do the job yet. Please help. [CODE]#!c:/Python31/python.exe -u import os path = "C:\\test\\com.comp.hw.prod.proj.war\\bin" for dirpath, dirs, files … Software Development python | |
I have interesting question. Why this code is legal in C, but not legal in C++ ? (tested with GCC 4.2 compilers) [CODE=C] void Function() {} int main () { Function(1); return 0; } [/CODE] We can simulate same C++ compiler error in C compiler by changing function definition to … | |
[B]I enter 3 identical records in an sql database table. Normally this should not have happened as the DBMS must check for identical records. Now when I try to delete or update these records, an error message is shown. What to do?[/B] Software Development sql visual-basic | |
hello i have a problem in assembly. need a code of following problem Write an assembly language Program that Compare two arrays of 10 elements. Arrays are given below Array1: 10 15 20 25 30 35 40 45 50 55 Array2: 15 10 20 35 40 30 55 50 25 … Software Development assembly | |
hi guys, I'm trying to implement a basic program which deals with structures and pointers. I have to insert data for various citizens, which is structure that have other structures as fields. in this case my main objective is to create 2 general functions that will get the information for … Software Development c data-structure | |
Having trouble trying to copy the vector 'sel' in main to vector 'ask' in class A. Can someone either explain or show me? Thanks in Advance![code]class A{ private: public: vector<Trader> ask; void AskMatchList(vector<Trader>&); void showAuct(); }; void A::AskMatchList(vector<Trader> &list){ vector<Trader>::iterator it; f1= new Trader; //I understand this is the WRONG … Software Development c++ | |
i m using borland c++ 3.0 i want to inseert image (jpg,bmp) files.. did anyone tell me how to do this..? i dont know anything about this..? | |
Hello, I get this error: System.IndexOutOfRangeException: 2000 I've got a table this table in excel: Month 2000 2001 2002 2003 1 180.4 194.3 209.0 236.4 2 181.1 195.2 212.2 237.9 3 182.4 196.3 213.1 238.7 4 184.1 197.4 216.5 240.1 5 185.4 198.6 219.4 240.2 6 186.1 199.0 220.7 240.7 … Software Development open-source | |
hello all, i need to extract table contents from a html page.. in that table one of the column has the links.. i need to extract that link too as of other column elements.. is it possible? i need to extract it and then to store in a database. actually … Software Development html-css | |
How can I tabulate the data strings I have saved in another file... the data sored is in the form of names and scores. The table should look like: Name Score 1 Score 2 Score 3 ==== ======= ======= ======= John 23 21 34 etc... I've started with this and … Software Development python | |
I'm new to Daniweb and with Python and I'm quite bad with it to be honest D:.. Here is my code... [CODE]from Tkinter import * class App(Frame): def createWidgets(self): self.grid() self.lbspace = Label(self, text="") self.lbspace.grid(row=0,column=0) self.lbfirstName = Label(self, text="First Name:", font=("Calibri", 12)) self.lbfirstName.grid(row=1,column=0) self.firstNameVariable = StringVar() self.firstName = Entry(self, textvariable=self.firstNameVariable, … | |
Hi, I am trying to write Japanese to a XML file generated through java. i am trying to write "日本語" to the XML But the generated XML is showing "???" instead of Japanese characters. [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <Project>???</Project> [/CODE] How to overcome this problem. i need your help desperately. Software Development xml | |
Hi there, I'm currently in the process of creating a Multi-User Dungeon (MUD) in python. It'll allow multiple users to explore a text based world. I've got a basic server but i can't seem to get a client to work with it. [B]MUD server.py[/B] [code] import socket #Connect with telnet … Software Development client-server python user-interface | |
I'm learning Python to use wMaya - a 3D graphics app. While reverse engineering some code, I [URL="http://www.daniweb.com/forums/thread89440.html"]found a thread here[/URL] which explains "list comprehension". The code I'm analyzing uses that, so I attempted to deconstruct it, but I can't reproduce the same results using a for loop. I have … Software Development engineering python |
The End.