132,726 Archived Topics
Remove Filter ![]() | |
hullo frenz, i am designing an employee database. the records are displayed on a master (emp.vb) form whereas the search button is on a seaparate form(emp_search.vb). hw do i code the search button on the 'emp_search.vb' page so that this form closes automatically and den the records are displayed on … Software Development vb.net | |
O_RWDR opens a file for read and write and pmode allows you to specify permission for each of the users? WHAT DOES IT MEAN BY WHAT PMODES AND O_RDWR ARE AVALABLE ON YOUR SYSTEM? CONSIDERING I AM USING VISTA I HAVE NO IDEA. I HAVE THE ABILITY TO READ AND … Software Development c++ | |
I'm trying to store or arrange three sets of two-dimensional data into three 2xN matrices that are stored as NumPy arrays. [CODE] 1. import os # for file handling functions 2. import numpy as np # for array/matrix processing 3. import matplotlib.pyplot as plt # for general plotting 4. from … Software Development data-structure dataset os-x python | |
i am passing values to stored procedure from .net through command parameters.when i pass values like string City="'Lucknow','Kanpur'"; Com.Parameter.AddWithValues("@Cities",City); create procedure SPGetState @Cities varchar(2000) As Select * from Temp Where City in(@Cities) i can't get the result.But i run this in Sql Query Analyzer ,i get the result.What;s the problem,i … Software Development | |
HI everyone i have created a form in c#. This form is connected with the database. i want to add data with the help of button. for example if i click on add button the data should add in my database. any one please help me. thanks Software Development | |
![]() | Hi there, I am running a program in order to generate some reports. The program starts connects to the database takes the first customer and then calls a method in order to create a report for this customer. When it completes takes the second customer generates the report etc etc. … Software Development python |
Hi. I'm using a datagridview to display data and make updates to my access database. I was able to display data from my database to the datagridview but it is not filtered. The datagridview displays all the records on my database. I tried using query builder to execute sql select … Software Development vb.net | |
Here's my SQL Statement: SELECT * FROM tblHeader WHERE Requestor='"&label1.text&"' Why doesn't it work? | |
Hi all. I recently wrote a python program that takes a screenshot of the current active window. After taking that screenshot, it saves it as a bmp (using PIL), and then goes thru each pixel, looking for a certain color. If it finds that color, it moves the mouse to … Software Development c++ | |
Hello everybody, I want to create a program that removes the first line from a text (csv) file (which is a header). I used this code: [CODE] string deleteline = "Name, ID, D.O.B, etc., etc."; //contains the Header information to be removed string line; ifstream sup; sup.open("DOWNLOADED_DATA.csv"); ofstream temp; temp.open("temp.csv"); … Software Development c++ file-system | |
Hi, i am currently making a class to handle xml files but my class will have a lot of child and i dont know if the way i keep the parent in the child node will be a copy of it or a pointer to it.... thx for taking time … Software Development xml | |
I am writing a custom slider control, All its functionality is accounted for but now the aesthetics (which was the reason for writing it in the first place) has become problematic. It starts with a custom class that converts true hls and rgb, thats 360 stops not 255. then I … Software Development | |
I really need help with this guys. This compiles and runs but does not give me the right output. tfile.data: Seth 19 1.7 Austin 20 1.8 Michael 21 1.9 [code]#include <iostream> #include <fstream> using namespace std; int main() { ifstream fin; fin.open ("tfile.data"); if (fin.fail()) { cout <<"ERROR"; exit(1); } … Software Development c++ | |
Hi yall, So what my code is supposed to do is basically count the number of paranthesis that the user enters and hit me back with the result. The code below works perfectly when there are no white spaces in the user's input. But when white spaces are present, It … Software Development c++ | |
i've copied this code from net but this is not working. Only blank output. can anyone help. i'm new to assembly. [code][ORG 7C00h] ; This is where BIOS put me ; --------------------------------------------------------- ; Main program ; --------------------------------------------------------- mov si, msg ; Print message call putstr hang: jmp hang ; Hang! … Software Development assembly | |
| |
Hi, I have these 2 links I want to start in this web browser. The point of it being in the web browser is so they can't see the 2 links. The first link signs the person in on this gaming website. And the second link starts the game. The … Software Development gaming web-browser | |
Hi, I need to convert a string of binary numbers to their corresponding ASCII characters. E.g. 011000010110001001100011 should be displayed as ‘abc’. I tried couple of functions in C# but could not get the desired result. To get a more clear idea of what I need, please visit [url]http://www.theskull.com/javascript/ascii-binary.html[/url] Enter … Software Development | |
Here's my program: import java.awt.Rectangle; public class RectangleTester { public static void main(String[] args) { Rectangle r1 = new Rectangle(0, 0, 100, 50); Rectangle r2 = new Rectangle(0, 0, 100, 50); r2.grow(10,20); System.out.println(r1); System.out.println(r2); } } No error compiling but when I run this is the output 2009-09-14 16:00:29.174 java[414] … Software Development java | |
Dear Sir, Could you please give me some of the ideas of making the hotSeat game in pascal? The following is the simple mode of my coding:- [code] Program yeungkt1; {$APPTYPE CONSOLE} { Who wants to be a millionaire. Author: Chris Yeung Version 1 } uses SysUtils, OurCrt; Type hotSeat_record=record … Software Development pascal | |
Hi all, I am a first year student at the university of South Africa. I am doing my degree via correspondence, thus no lectures. I am working through the prescribed book as best i can but they still assume a little bit of fore knowledge of programming which i don't … Software Development c++ | |
I'm just learning python. I'm trying to figure out while loops with s.argv in a larger script on my network. hopefully this small example will show basically what i'm trying to do. argtest.py import sys for arg in sys.argv: print arg #which gives me: Life is good but could be … Software Development python | |
I need help with my homework assignment for school. I was able to get everything to work fine when I just put everything in int main() without using functions but when I tried to separate everything into functions the program is not running correctly and although I don't get an … Software Development c++ | |
Hi real quick one and most likely going to look stupid after this. I need to show the Current Date in a form text box. Also the second textbox I have needs to show the date + 3 (show the date 3 days later). For some reason I can't figure … Software Development | |
I have question on how to detect an action invoked by a component in some class by the other class. Say: [CODE] public class C1 extends JPanel { JButton button; C1() { button = new JButton(); add(button); C1Action h = new C1Action() button.addActionHandler(h); } public void doSomething() { // code … Software Development java | |
hi all, when i am running a Python script that i made, i get a list as a result ( i do not know the number of items stored in that list ) HOW can i return each element of the list and store in an array defined in a … ![]() | |
Hi All, I am working on the Nohau Emulator with a POD having 68HC11E9 controller in Expanded mode. It was working fine with my target board a couple of months back, but now a days I am facing a problem with it. When I do external memory mapping in the … Software Development assembly | |
.txt .globl main main: # f= (g+h)-(i+j); li $s0,0 li $t1,0 li $t2,0 li $s1,4 li $s2,5 li $s3,6 li $s4,7 add $t1, $s1, $s2 # sum of s1,s2 is stored in t1 or temporary variable t1 contains g+h add $t2, $s3, $s4 # sum of s3,s4 is stored in … Software Development assembly | |
I want to know how to open a file existing in a computer in vb 6.For example I want to open notepad when I click a button.notepad.exe exists in C:\WINDOWS\.So when I click the button notepad.exe should execute.Also tell me how can I generalise this to any computer(means computer where … Software Development visual-basic | |
hiii Im searching for a method or an algorithm that can help me in finding number of holes in an image this image is basically for a letter like "D" "B" --->number of holes can distinguish between those letters.. this will help me alot in my project if it works … Software Development algorithm | |
hello I am trying to design an rss feed reader using xerces-c and im using dom parsing, I am new to this side of programming and everything I know so far is self taught. I can read an xml document that is in my computer but I can't access external … | |
I made 2 classes, Point and Point3D: Point.h: [code] #ifndef POINT_H #define POINT_H #include <iostream> template <typename T> class Point { protected: T X,Y,Z; public: Point(const T x, const T y, const T z) : X(x), Y(y), Z(z) {} T getX() {return X;}; T getY() {return Y;}; T getZ() {return … Software Development c++ | |
Hi..i saw this a randomly..i got some part don't understand: [url]http://www.daniweb.com/forums/thread214624.html[/url] @ancient dragon's reply 1) const unsigned int MAX_SIZE = 2; student array[MAX_SIZE]; Q: Why MAX_SIZE = 2 ? 2)15: void insert(student array[],const unsigned int MAX_STUDENT); 33: void mySort(student array[],const unsigned int MAX) 55: void display(const student array[], unsigned int … Software Development c++ | |
Here is a sample of the XML that I am starting with: XML: any.xml [code] <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="any.xsl"?> <root> <device> <device_Info> <name>Name 1</name> <type>Type</type> </device_Info> <drive_Pair> <status>Ready</status> <Local> <l_name>10E5</l_name> </Local> <Remote> <l_name>0651</l_name> </Remote> </drive_Pair> #Can be 1 or many <drive_Pair>'s {<drive_Pair> ... </drive_Pair>} # Can only be … Software Development xml | |
I am new to programming in C++. I have a bit of experience in Python and ActionScript3. I decided to pick up C++ so I downloaded Dev-C++ complier. I tried to run the following code but it doesn't seem to do anything. I complied the code, and it did not … Software Development c++ | |
Hello everyone, I am an Intern at a company and I mainly create scripts to update databases. I don't have the opportunity to do much "real" programming, hence the reason I am begging for some help :p I am working in visual studio and my program runs great. There is … Software Development gui vb.net visual-studio | |
Hello. I have this simple program that open a file and read lines from it and print them to screen. #include <errno.h> #include <stdlib.h> #include <stdio.h> int main() { char line[4096]; FILE *fp = fopen("/root/Desktop/testfile","r"); if( fp == NULL ) { exit(1); } while(fgets( line, sizeof(line), fp ) != NULL … Software Development c | |
This gives a compilation error " missing return statement".. there is no sql error or such...where to put the return.??? private boolean checkpword(){ pasWd = pword.getText() ; try{ /*this works ok...>>>*/ResultSet pwrd = c.getData("Select Pword from users where userNm = '"+uname.getText()+"' "); while(pwrd.next()){ if(pasWd.equals(pwrd.getString("Pword"))){ return true; } else{ return false; … Software Development java | |
I haven't wrote in C++ for a long time so I decided to brush up a bit by writing some basic programs. I wrote a class that allows for basic arithmetic of infinitely large numbers (or as much as you have memory for). Here is the code. [CODE] class largeInt … Software Development c++ | |
Hey i have a simple output program that i can't seem to figure out Home Owner Price of Home Seller's Cost Agent's Commission Garcia *****100000.00**********6000.00**********1500.00 Software Development c++ | |
please can anyone help me doing this example. Add to the text editor's GUI a menu that lists these font sizes: 12, 14, and 16. When the user selects one of the sizes from the menu, the text displayed in the text area changes to the selected size. SNIP | |
[CODE]#include <iostream> #include <cstdlib> using namespace std; const int arrSize = 100; bool isPresent(int ,int ); int main() { int myArr[arrSize]; int input; for (int i=0; i<=arrSize; i++) myArr[i]=rand()%200; //creating array with random numbers //sorting random numbers for (int j=0; j<=arrSize; j++){ for(int k=0; k<j ; k++){ if (myArr[j] < … Software Development c++ programming-construct | |
Hello all, So to start off I'm just starting to learn programming so please excuse a lot of my noob mistakes especially when trying to explain what is going on/wrong. I've been trying to use a header file in an example program I'm trying to complete but the compiler doesn't … Software Development c++ | |
I'm working on a project and I need some help with C# constructors. Let's say I have the following; [icode] public class vehicle { public vehicle() { //do some initialization for all vehicles } } public class automobile : vehicle { public auto : base { // do specific initialization … Software Development | |
Hello Everybody, I use different forms....I want to send a value like form1 to form2.for example textbox1.text value, I want to send it to myStr in form2. I tried public static but I could not solve it. Also another problem is this. There is 3 forms. If form1 sends a … Software Development mssql | |
Hi, I'm programming an application that records video samples of 5 seconds each. the recording takes place inside a loop. I use MFC and DirectShow The thing is, that the main thread must pause for 5 seconds while the sample is being recorded. in order to do that, I can … Software Development c++ multithreading | |
Hi all, I have a login form and ChangePassword form. I want to retrieve the value of username entered in the Login form at the time of logging. I have created a property named as RetUserName as follows: [code] public partial class frmLogin : Form { private string UseNam; public … Software Development c# | |
![]() | Hello all, I'm used to java programming and php. I'm trying to learn C++, but it's rather difficult for me. Basic in java: String message = "Test"; String temp = "This is a " + message; temp now contains "This is a Test". In c++ i tried everything, a + … Software Development c++ |
Hi, I'm doing a small application using asp & C#. I'm having three text boxes. I want the result in the third text box when I changed from second text box to third. For example: Let A= 10 , B=20 when I changed the tab from the textbox2 automatically print … Software Development |
The End.