132,726 Archived Topics
Remove Filter ![]() | |
hi, i have Ms Access database having three fields ID username password and i want to make form that update them, my table name is studentLoginData [CODE] MessageBox.Show("the password is matched"); String conString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=C:\\Documents and Settings\\Wasif\\My Documents\\studentLogin.mdb"; SqlConnection objConn = new SqlConnection(conString); try { objConn.Open(); } … Software Development c# dataset microsoft microsoft-access open-source | |
Hi people I need help solving the following problems. Any help will be greatly appreciated: 1. Create a simple python application that displays a list of movie titles that match a set of terms, which is given in a text file called "input.txt". The content input.txt must be: Harry Potter … Software Development python | |
Hello.. I am an intermediate c++ programmer and currently using Visual C++. I want to write a program which could receive real-time information from the currently running applications and process that information to perform its respective task. for example: How can I receive the characters written on the title bar … Software Development c++ | |
I am making a simple unit converter, and wanted the user to specify the number of decimal places to be displayed for the results. The user selects which conversion they want to perform from another combo box, and I have a select case to decide the calculation needed. Eg. [code]Select … Software Development vb.net | |
i am trying to read the following information: [CODE]Carlingford,Epping,3 Epping,Marsfield,6.5 Marsfield,North Ryde,2.4 North Ryde,Epping,5 Carlingford,North Ryde, 3.5 Carlingford,Marsfield, 4.7 North Rocks,Epping,4.8 Carlingford,North Rocks,2.4 North Ryde,Ryde,2.1 [/CODE] so i will be able to store the information into a 2 strings and a float (obviously excluding the comma. eg: string station1 = … Software Development c++ | |
I'm trying to create a class that provides object serialization and deserialization methods for use by another class. These two methods (I think) are in the class already (see code below). I'm not sure how I would go about making those 2 methods their own class and then returning the … Software Development java | |
hi everyone i had been working on a project using random files (.dat) and now i want to change it to use a database instead. the thing is my project is quite long and it would be a hassle to go and change code. i had used hash tables to … | |
I want to use JDBC with apache's pooling library. I can't find easy tutorial/example to follow. Please help me get it up and running. I have it downloaded and I watch at it puzzled :) | |
[code] public class A { String username = "Unknown"; public A() { username = "Virux"; B.method(); } } public class B extends A { public void method() { System.out.println(super.username); } } [/code] Obviously my actual code is much more complex than this. But how can I get B to see … Software Development java | |
// File : Suitors.h #ifndef SUITORSLIST_H #define SUITORSLIST_H #include <iostream> using std::cout; using std::endl; class SuitorsList { private: struct ListNode { int value; ListNode * next; }; ListNode * head; public: SuitorsList() { head = NULL; } void appendNode(int num); void deleteNode(int num); void displayList() const; }; #endif; // File … Software Development c++ | |
Hello daniweb members, How can I use gtkmm with MinGW (g++) without MSYS? Here is the story of my problem: I installed MinGW offline with all required packages (full install). I installed Apache Server and I copied all .tar.gz files and I created a website called sourceforge.org [localhost] and I … | |
Hi, I have a little issue that I need some light shed on please. I have 2 forms; StartUp and MainForm. When the application starts with the StartUp form the forms load section check to see if a file exists, if it does, it closes and opens the MainForm using … Software Development | |
i write following code to update database but every time i got update syntax error is anyone help me to .. [CODE]MessageBox.Show("the password is matched"); String conString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=C:\\Documents and Settings\\Wasif\\My Documents\\studentLogin.mdb"; OleDbConnection empConnection = new OleDbConnection(conString); String insertStatment = "UPDATE StudentLoginData Set ID='" + this.txt_id.Text + … Software Development c# microsoft microsoft-access open-source | |
I really need help in trying to understand what the "dat:table" is in this procedure, and how to translate it to Java. procedure Taylor(var dat: table ; cd: integer; h: real); begin for i:=2 to cd + 1 do begin dat[i,1] := dat[i,1] + (i-1)*h; x := dat[i-1,1]; y := … | |
I am building a text adventure and hit a snag. I have classes PERSON, PLAYER, COP, & ENEMY. Now PERSON is the main class, and PLAYER, COP, and ENEMY are all sub classes of PERSON all of the function prototypes and definitions work except (2). [CODE]public: WEAPON* GetWeapon(); void SetWeapon(WEAPON … | |
![]() | i currently have this piece of code i need to create a dictionary that prints the incorrect word and the line number where it is incorrect. words [] # is my txt file text1 [] # is my list of incorrect words i am new to programming and dont know … Software Development python ![]() |
I need this program to buy and sell items from a list. the list needs to display similar to below and have a menu for user to select options from: ID No. Name Price Stock 1 Apples $2.50 4 Choice: Buy - 1 Sell - 2 Quit - 0 *Needs … Software Development python | |
Hi there I have following XML document that i want to read in python code. i know how to read, thing is i want to make hash/list from this XML document. <?xml version="1.0" ?> ‐<TradeExt> ‐ <fxall category="buyer" version="2.0"> ‐<tradeHeader> <sourceId>test_sourceId1</sourceId> <pmsId>4521363.0.0</pmsId> <fundId>ACCT1@TESTCUST</fundId> </tradeHeader> ‐ <tradeStatus> <dealImmediately>F</dealImmediately> <blockImmediately>F</blockImmediately> </tradeStatus> ‐ … | |
Hey all! I'm writing a simple fluid game in C++, and I've come across a strange issue. I allocate a whole bunch of arrays of float for use in simulations. During the course of the program, nothing goes wrong. But when I try to delete the arrays, I get a … Software Development c++ | |
how would you do that? Language similar to LISP I don't think you can use cons twice. really stuck. maybe (define a '('())) Software Development | |
Okay so this one should seem easy enough but I can't get past 1 issue I am having. Pretty much what ever is in the the listBox is stored in an array, but also in a text file (for loading and saving). The only issue is that I can't seem … Software Development | |
Hello When I login as instructor data from db is put into the model (Instructor.java) because the instrutorBean extends the model Intructor.java Is this copy(object sourc, object dest) doing anything? I would like to be able to have several people logged in at the same time is this possible? [code] … Software Development java | |
Hi Guys, Here's the situation that im stuck in. I have 2 Header files which cannot be changed named bintree and bindnode. These define tree structure, aswell as several other functions eg inserting node, printing node etc I have 2 Classes. 1 Class is : [CODE]class mazePoint {int x; char … Software Development c++ | |
Everything else works fine, but for some reason, it only receives once. (note, the recv function starts at line 49) function is at code: [CODE=C++]/* * File: Bot.cpp * Author: fellixombc * * Created on May 20, 2010, 6:25 PM */ #include "bot.h" /** Constructs the Bot * @param set … Software Development c++ client-server | |
To write a C language program that implements the main functions of maintenance of student information. To maintain student information must be used on a list of njedrejtimore. Each node of the list will be used to store the data of only one student: Name, Student No, average. Your program … Software Development c++ | |
i have a problem when i use: [code] do { printf("press only A to continue):\n"); x=getchar(); }while(x!='A'); [/code] if i press anything the program prints me the message multiple times Software Development c | |
Hi everyone, I used to create shortcuts with IWshRuntimeLibrary in C#, but now i am trying to create in java, which i couldn't found via googling. Can anyone show me the shortcut path of wisdom and illumination? :) Software Development java | |
Is there a event detect change of Listview item count? Like it will be trigger whenever i add an item or delete an item form listview. I search on MSDN Listview Event member, but cant c any usefull. Any help would be please:) Thanks | |
Hi all, I am using the following function which I found online to trim the leading and trailing whitespaces from a passed in string. It works fine for all the cases but I am having trouble in understanding the process being a newbie to C world. [CODE]char *trim (char *str) … Software Development c | |
I'm trying to write a script that will go to a host and list all of its shares. So far, in my searching, it seems that I need to include a top level share name. For example: [CODE]os.listdir('\\\\1.2.3.4\')[/CODE] doesn't seem to work, but [CODE]os.listdir('\\\\1.2.3.4\\share\')[/CODE] will work. As a bit of … | |
Hello everyone, My application needs a feature to detect whether a directed graph contains circle. Does anyone know any efficient implementation? Which implementation is the best (most efficient)? thanks in advance & happy new year, George Software Development java | |
How can i make sscanf() skip all whitespace characters?I read from a file and i dont know where are the characters. eg.->@Solomon Islands ,i need "Solomon Islands" in one string e.g->AGAF (AFT) – Afutara Airport – Afutara ,i need "Afutara Airport" in one string. Software Development c | |
Hello everyone, I need some advice. I have been given an assignment to construct some kind of chat application which uses push technology (In C#, so i have socket objects and all that) Reading on the internet, i came to know that push technology means in essence, that not the … Software Development c c# c++ client-server | |
I want to know how to read from a file. I have posted the first line of program.dat file before. There are more than one line in the file and i want to tokenize them and save them into different variables or pointers. Can anyone write full code how to … Software Development c file-system | |
hi i'm trying to write a program that compares and manipulates certain characters from a string. heres the bit i'm having trouble with. [CODE] char c; if(c <= a && c >= x)//obvious error //do something [/CODE] is there anyway i can get this to check if 'char c' lies … Software Development c++ | |
Lets say I have a class. It holds other classes in it. ex [CODE]class Test: def__init__(self, name): self.name = name def getname(self): print(self.name) class Holder: def __init__(self, tests): self.tests = tests def getnames(self): for i in self.tests: print( i.getname())[/CODE] so lets say I pickle an instance of Holder with 3 … Software Development python | |
how do I save a dictionary, (below), to a txt file thats is in a tabular format? i also need to be able to rload the txt file back into its dictionary form... catalog = { 1:["Bread", 1.50, 10 ], 2:["Cheese", 5.00, 5], 3:["Apples", 2.50,12] } eg. 1 Bread 1.50 … Software Development python | |
Can someone please show me how to implement the pickle module in this pogram!? PLS? I've tried for hours but I think programs are immune to my trying! Thnx [CODE]'''maintain a catalog''' def main(): global catalog loadCatalog() while True: pick = showMenu() if pick == 0: break elif pick == … Software Development python | |
I would like to extend a method found in C# XNA which will set the length of a vector. I thought I should go with extensions as that seemed like the only option. It appears that this isn't going to work as intended as my original vector value isn't updated … Software Development | |
I'm using an access database to save plain textboxes. I've made a connection with the database. Now i need to find the code to add the textboxes to my database. I've tried to add with the bindingnavigator but it won't work... please help... Software Development microsoft-access | |
I want to upload photo on click in VB.NET and want to store it in SQL 2005,also want to retrive it in picture box on another click. Software Development vb.net | |
Hi there, Is there anyone here using NB platform to develop applications? Anyone using former Matisse GUI builder in NB 6.8? I can't see it in my IDE! | |
In my program, I want the user to be able to move an MDI child window anywhere inside the MDI container but I need it to be kept completely inside the container boundary. For example, the upper left corner should never be at a location less than 0,0 when moved … Software Development vb.net | |
Hi, Here is an example made by 'C++' and 'SDL' library, this example load an image with format .PNG, because I'm beginner in c++, I'm asking some questions: [CODE]/*This source code copyrighted by Lazy Foo' Productions (2004-2009) and may not be redestributed without written permission.*/ //The headers #include "SDL.h" #include … Software Development c++ | |
Hello, I'm having problems passing an ArrayList from a method in one class into a method of another class and accessing it. Here's my code. [CODE]private static void createData() throws IOException{ ArrayList<movie> moviesList = new ArrayList<movie>(); moviesList.add(new movie(1, "Schindler's List", 18, 19.99)); moviesList.add(new movie(2, "Red Cliff Blu-Ray", 4, 43.50)); moviesList.add(new … Software Development java | |
Hey everyone, I've been working on learning the Win32 API for C++ so that I can start programming windows programs. I haven't run into any issues until last night when I tried to include a menu in my basic window through resources. I'm using Visual C++ Express 2010 which doesn't … Software Development api c++ visual-basic windows-api | |
I am using a solaris machine to run my c++ code I have written the following code in the mentioned files classclock.h [CODE] #include <iostream> using namespace std; class classclock { private: int min; int hour; int sec; //member function for the operations public: void SetTime(int a,int b,int c); };[/CODE] … Software Development c++ | |
Hello all, I have been working on a project in scala, but I am getting some error messages that I don't quite understand. The classes that I am working with are relatively simple. For example: [CODE=scala] abstract class Shape case class Point(x: Int, y: Int) extends Shape case class Polygon(points: … Software Development java | |
Could any one help me? :sad: I am a beginner in Visual basic. I recenly was testing one of the applications I developed and have a problem to run it. The application basicly is a database that I can add/remove/update...etc records and it uses a microsoft access database to connect … Software Development microsoft microsoft-access operating-system visual-basic | |
Write a program that defines a template function named add(). This function takes two arguments, add two variables and then return the sum. In main function, define two variables of type int, two variables of type float and two objects of type ‘String’. Now call the add() function three times … Software Development c++ |
The End.