132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for khair.ullah

hi i want to Maintain login and logout time details for each user and store those details into my database... (each time the user loggedin) and when the user Exit the application it store logout time in database what is the efficient way to do this.. need ur suggetsions..

Software Development vb.net
Member Avatar for Icone
0
253
Member Avatar for sky.light.7311

when user login it will check if user exist in database or not what is wrong with this code Dim a As New System.Data.DataView Dim b As New System.Web.UI.DataSourceSelectArguments Dim usname As String Dim password As String SqlDataSource1.SelectCommand = " select usname , password from userinfo " a = SqlDataSource1.Select(b) …

Software Development vb.net
Member Avatar for Icone
0
314
Member Avatar for bprosic

I have 2 datagridview (later- dgView), textboxes and some buttons. Everything is bounded and connected with MS Access db. The tables in db are related!! 1st dgView contains Name and Surname table. 2nd dgView contains Details. Now, how can I disable a delete button when datagrid is empty. I'm using …

Software Development gui vb.net
Member Avatar for Icone
0
3K
Member Avatar for luisnaxxario

;I wrote this program that will display a calendar for 3 months.I try to run it with NASM and TASM but i keep getting errors . Can somebody run it and tell me what to do . thanks .MODEL small .386 .STACK .DATA inBuffer DB 80 DUP(?) scrBuffer DW 25*80 …

Software Development assembly
0
81
Member Avatar for ZeroZen

Hey folks I'm using a listview to show an array of images that get taken from a webcam. I want them ordered on the bottom of the screen and be selectable for saving, so I'm using a listbox. Everything works okay, but when I add items to the listbox and …

Software Development listview vb.net webcam
Member Avatar for ZeroZen
0
290
Member Avatar for game4tress

I'm working on softwares that were built without taking into account that they could be sold in modules. At the present time, when we (the company I'm working in) sell the software we have to install all features on the client. I know that currently there's a technique using "Prism" …

Software Development
Member Avatar for mike_2000_17
0
216
Member Avatar for stefano.a.feltre

(sorry for my english...) I have created a textbox where i take the number of textboxes that i must create... i created the textboxes pressing a button whit this... N = Convert.ToInt32(textBox1.Text); //N is a global variable... ValoriText = new TextBox[N]; for (int i = 2; i <= N + …

Software Development
Member Avatar for JOSheaIV
0
124
Member Avatar for jeanray

I have a small player built on a frame. At form_load, I set the form width/height equal to the size of the design (two fixed size images on top of each other. The form has no border, no control (dock, min, max, exit). When running, the user wants to move …

Software Development visual-basic
Member Avatar for Darkpiss
0
3K
Member Avatar for spunkywacko

Hey guys just joined.. So I'm learning C#, and kinda having trouble with finding the command prompt? Installed Vistual Studio 2008 Express with C# and visual basic. After that I installed XNA 3.1. It's supposedly in a folder in the start menu under 'Microsoft Visual Studio Tools', but I have …

Software Development visual-basic visual-studio
Member Avatar for abhinavgoyal02
0
330
Member Avatar for 1mmortal

Sorry to pester everyone with my lack of knowledge, but any help on this matter would be appreciated, thanks: So, having looked around various forums and threads i found that mouse simulation and mouse clicking can be achieved through VB.NET; more specifically, i found this code: Dim pointer As New …

Software Development vb.net web-browser
0
107
Member Avatar for vishankparikh

Q-1 Write a shell script in Unix that lists files from your current working directory · By modification time when called with lm · By access time when called with la. By default, the script should show the listing of all the files in the current directory. Q-2 Write a …

Software Development shell-scripting unix
Member Avatar for sbesch
0
149
Member Avatar for poloblue

Good Afternoon, I'm having a little trouble with a class. The error that I'm getting is: a nonstatic member reference must be relative to a specific object in the function void B::printStatic() { cout<<"size is "<<size<<endl; Here is the code that I have. #include <iomanip> #include <iostream> #include <string> using …

Software Development c++
Member Avatar for poloblue
0
2K
Member Avatar for highonbikes

I have this assignment to make an infix calculator I think I have all the logical things figured out, but I am having trouble converting values. the return is a double, but the read in is a string and outputting as a double, I know that there is the difference …

Software Development c++
Member Avatar for Lerner
0
838
Member Avatar for php111

Hey everyone, I never programmed before in no languages, but I would like to learn C, and I'm undecided on what book to read to learn from. I have no possible experience at all. May someone tell me as a beginner should I read either C Primer Plus by Prata? …

Software Development c
Member Avatar for php111
0
762
Member Avatar for jemz

Hi,I have problem on my code,it will not insert to the database can you pease help me on this.Thank you in advance. Imports System.Data.SqlClient Imports System.Data Public Class Form1 Private m_con As New SqlConnection Private m_DA As SqlDataAdapter Private m_CB As SqlCommandBuilder Private m_dataTable As New DataTable Private m_rowPosition As …

Software Development open-source vb.net
Member Avatar for jemz
0
350
Member Avatar for Mogworld937

I'm trying to make it so in my game when you equip your dagger it will change the variable dagger so I can tell if its equipped or not. from sys import exit from random import randint class Game(object): dagger = 0 def __init__(self, start): self.quips = [ "GAME OVER... …

Software Development python
Member Avatar for woooee
0
574
Member Avatar for deadsolo

Hi, I am currently working on a script that will compare two numbers from a file. I am thinking that I need to use a regular expression in order to get the numbers, however I don't know what the regex would be since there are multiple numbers through out the …

Software Development file-system java regex
Member Avatar for deadsolo
0
300
Member Avatar for MegaBigBigYo

Hi all - I am having a little trouble getting going on the methods for this assignment. I need to use a method which passes a Scanner as the object to create an array that is the correct size, but has null values. It reads in a file which contains …

Software Development java
Member Avatar for MegaBigBigYo
0
191
Member Avatar for cmh0114

For part of my project, I need to write a piece of code that will perform a task (beeping) once per second for ten seconds. I found this code online and tried to modify it to fit my needs, but I couldn't seem to get it. This code doesn't beep, …

Software Development java
Member Avatar for JamesCherrill
0
856
Member Avatar for somjit{}

this code is my attempt at modifying a simple game i found in the book "head first java".. (pg-98 if anyone's interested) the game is about sinking battleships! ... actually... its just about declaring some blocks of a virtual array to comprise a battleship, and the user makes guesses about …

Software Development java
Member Avatar for JamesCherrill
0
241
Member Avatar for joao.jose.520

Hellou. Can anyone tell me how can i save a string to a file? I have this function: void PrintGameBoard(jogo_4line*jg) { int i,n; system("clear"); printf("===============Jogo do 4 em linha===============\n\n\n"); printf(" +--+--+--+--+--+--+--+\n"); for(i=1; i<=6; i++) { printf("%d |%c |%c |%c |%c |%c |%c |%c |\n",7-i,jg->T[i][1],jg->T[i][2],jg->T[i][3],jg->T[i][4],jg->T[i][5],jg->T[i][6],jg->T[i][7]); if (i!=0) printf(" +--+--+--+--+--+--+--+\n"); } printf(" …

Software Development c
Member Avatar for Adak
0
233
Member Avatar for trantran

I am thinking of writing a path_name_class that would be easily adaptable to any file system, but I have run in this difficulty: it appears that some file systems allow **ALL unicode except null** characters in their directory entry (this is the case for example for exfat and many others …

Software Development c++
Member Avatar for trantran
0
193
Member Avatar for sbrohee

Dear all, I am certainly not an expert in C++ development but after some time, I had some code running and compiling for a bio-informatics tool. As always in Science, I changed my area of research of a while and when I came back to my tool, I had changed …

Software Development c++ ios perl
Member Avatar for sbrohee
0
2K
Member Avatar for Kronolynx

I wrote this program, when i run it, everything seems to work ok, but in the eclipse console i get a long list of errors, what is wrong with my program and how should i fix it? thanks import java.applet.Applet; import java.awt.Color; import java.awt.Graphics; import java.awt.List; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; …

Software Development ide java
Member Avatar for Kronolynx
0
271
Member Avatar for aabbccbryanmark

print "enter a number: "; $in = <>; chomp $in; print &prime($in); print "\n"; sub prime{ for($i=2;$i<($_[0]/2+1);$i++){ if($_[0]%$i ==0){return "not prime\n"} } return "prime\n"; } can anyonet tell me, what program do i use to make this code work?.. i just found it on the internet while searching a formula …

Software Development perl
Member Avatar for gourav_rao
0
161
Member Avatar for Shanti C
Member Avatar for rajat.sethi93

#include<iostream.h> #include<conio.h> #include<string.h> class X {public: int a[50],n; char b[20]; char name[20]; void input() { cout<<"Enter the limit upto which you want to enter "; cin>>n; cout<<"Enter the numbers "; for(int i=0;i<n;i++) { cin>>a[i]; } cout<<"\n enter the string"; cin>>b; } void large() { int c; c=a[0]; for(int i=1;i<n;i++) { …

Software Development c++
Member Avatar for NathanOliver
0
189
Member Avatar for code_r

Hi, I'm working on some questions for homework and I have a small idea what the answers may be. Can anyone look my answers over and help me out maybe explaining why they may be wrong or right? Question 1: answer "b" Here is a diagram of memory: Which declaration …

Software Development c c# c++
Member Avatar for Gonbe
0
168
Member Avatar for John B.

I assume this is simple enough, when you know how :) I retrieve 2 files, pricelist with multiple information such as number, price, desciption and so on, the 2. file is discount file, with 2 fields : discountcode;discount like G30;48 which means discountcode = G30 which equals 48% I have …

Software Development pascal
Member Avatar for John B.
0
189
Member Avatar for dean.ong.14

how to loop and how to add score? and i want to make sure that people can ask how many question the want to answer in my quiz. how can i do that? # make input equal to Python3 style input even in Python2 try: input = raw_input except: pass …

Software Development python
Member Avatar for dean.ong.14
0
140
Member Avatar for amrita111

What are the advantages of Macros over External(Global) variables?

Software Development c
Member Avatar for amrita111
0
155
Member Avatar for kenomote

Hey guys i need some help on how to Subtract the Dates i used a readline for sotring the number of fines per day on a txt file....now i wanted to know how do you subtrack the date the book borrowed and the date it was returned then multiplying the …

Software Development vb.net
0
89
Member Avatar for dean.ong.14
Member Avatar for engrjawad

What is a flag in java? when do we need it in our program? what it is used for?

Software Development java
Member Avatar for jalpesh_007
0
185
Member Avatar for dean.ong.14

` print "Welcome to my quiz" begin = raw_input("would you like to begin?: ") if begin =="yes": print "A)True" print "B)False" q1 = raw_input("Is Steve Jobs is the founder of Apple?") if q1 == "A" or q1 == "a": print "well done! you got it right!" else: print "thanks for …

Software Development apple python
Member Avatar for 铃
0
116
Member Avatar for Eclip7e

Hello everyone, I want to implement Kruskal algorithm for finding minimum spanning tree in Adjacency Matrix for my program. So I want to write method Graph& getMinSpanningTree() . I have 2 classes: class Graph { public: /* Adds an edge between given vertices. Third argument is a weight of an …

Software Development algorithm c++
Member Avatar for Eclip7e
0
2K
Member Avatar for naui95

Hi there, how can I split a string into variables?? better: string s = "one,two,three,four"; // Split string on character comma. string[] words = s.Split(','); foreach (string word in words) { Console.WriteLine(word); } how can I put an incrasing variable (for n splitted words) instead of 'Console.WriteLine(word)' thanks

Software Development
Member Avatar for JOSheaIV
0
271
Member Avatar for tahity1

I am still new with c programming, I need to create queue with first in first out but it is going last in first out. Can someone give me advice in how to make it work. #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_LENGTH 30 #define NUMOFEMPLOYEE 15 typedef struct …

Software Development c queue
Member Avatar for VernonDozier
0
125
Member Avatar for Jsplinter

I understand how to write a function to loop through a vector<double> and calculate the mean and standard deviation of its values, but I was wondering if there is a library which I could simply #include<> and then just call a function to compute such values.

Software Development c++
Member Avatar for Jsplinter
0
267
Member Avatar for cacadi

So i am doing a program that opens a file that contains grades and shows the average, total, etc.. But at the end I am supposed to make a histogram that would look something like this A= * * B= * * * C= * * * * * * …

Software Development c c# c++
Member Avatar for rstralberg
0
465
Member Avatar for Stuugie

Hi all, I have a procedure that compares release dates to file download dates. I have a download folder that is added to a string Dim strFilePath = "\EconomicDBTemp\DownloadedCSVs\" I've removed the directory but the folder DownloadedCSVs is where I need to search each csv file. However, I am unsure …

Software Development vb.net
Member Avatar for Stuugie
0
180
Member Avatar for amishosh

Hi, I looked all over and since I'm probably not using the right termonlogy I couldn't find anything in Google. Here's what I'm trying to do (in ANSI C). I have a text that represents a series of bytes that looks like this: "08 FF AB 0B 12 76 CD" …

Software Development c
Member Avatar for deceptikon
0
195
Member Avatar for tet3828

I have two forms that share data between eachother. 1. In Designer view of Form2 I establish a public variable. public bool isMyFormValid 2. When I attempt to access the variable in Form1 like this... if (Form2.isMyFormValid = true) { //do this} C Sharp no likey... I get this message: …

Software Development visual-basic visual-studio
Member Avatar for tet3828
0
186
Member Avatar for bikash barad

void main() { unsigned int x=500; int y=-5; if(x>y) printf("hello"); else printf("hi"); getch(); }

Software Development c
Member Avatar for amrita111
0
98
Member Avatar for jg1405

Thanks for the support! I have been working on a program with 7 classes, one the main and one starts the program, and I have been troubleshooting for a few hours trying to see why for one of the output constructors I'm not getting the classes to update the output. …

Software Development java
Member Avatar for Taywin
0
197
Member Avatar for leesin

Hi everyone, i got a question about the fscanf. I input a file and scan the data in the file. It works good that if there are integers in line1,2,3,4 in the file. However, it does not work good with empty file or the file only has dat in line …

Software Development c
Member Avatar for leesin
0
98
Member Avatar for Ismail Issa

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.Linq; namespace Discrete_Structures { public partial class Form1 : Form { int[] array2; int[] array1; int[] value; int num1; int num2; public Form1() { InitializeComponent(); } private void textBox1_TextChanged(object sender, EventArgs e) { …

Software Development
Member Avatar for JOSheaIV
0
99
Member Avatar for MARKAND911

I have created threads dynamically. static void Main(string[] args) { int ThreadCount = Convert.ToInt32(ConfigurationManager.AppSettings["Threads"]); List<Thread> th = new List<Thread>(); for (int i = 0; i < ThreadCount; i++) { Thread t = new Thread(print); th.Add(t); } foreach (Thread t in th) { t.Start(); } } public void print() { console.writeline("123"); …

Software Development
Member Avatar for Momerath
0
117
Member Avatar for bobbyraw

Does any one know of a software/program that can create a form. the form would have a drop down list, when your select an item on the list some part of the form would populate with items base on whats selected in the drop down. the other field can be …

Software Development
Member Avatar for jd0007
0
140
Member Avatar for hwoarang69

note i want to do this code in background class. not in main class. so i have a main class and a background class. getting error at url = getDocumentBase(); also getting error at getImage drawImage background class import java.awt.Color; import java.awt.Graphics; import java.awt.Image; import java.awt.Rectangle; import java.net.URL; //#2 public …

Software Development java
Member Avatar for JamesCherrill
0
114

The End.