132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bhagawatshinde

Hi, I am getting an error while fetching the records from sql server to datagridview. Ex. I have 10 rows in datagridview first five are with one table and next five for another table. When loop goes for next table it throws an error like "timeout expired. the timeout period …

Software Development mathematics vb.net
Member Avatar for Pgmer
0
338
Member Avatar for tinamary

what is the use of constructors in java when we can intialize objects directly

Software Development java
Member Avatar for peter_budo
0
185
Member Avatar for zabra

Morse code Converter Morse code is a code where each letter of the English alphabet, each digit and various punctuation characters are represented by a series of dots and dashes. Write a program that asks the user to enter the string: “Yesterday, I slept most of the night. I saw …

Software Development c++
Member Avatar for daviddoria
0
2K
Member Avatar for achava

Suppose you have an xml file that has a portion that looks like: <div id="California">The cat is in the house <p>The horse is also in the house</p> <div><a href="wwww.whatever.com" /><p>Another pigeon?</p></div> </div> Since the top div here is buried somewhere within the file, I am trying to isolate it with …

Software Development xml
Member Avatar for achava
0
110
Member Avatar for holden1986

How can I create a report using 5 tables of SQL Server? I've got table master that stores the data. And others child tables, where i keep the data. In the child tables I have any data to the same data in masters. So, I want to select data by …

Software Development vb.net
Member Avatar for holden1986
0
97
Member Avatar for Pekulacis

I hope that someone can help me with this problem. I need to allow only characters in input: Example I have procedure to add records to my database [CODE]procedure AddRec( var fff:Myfiletype; FileOpen: boolean); var rec:myrec; tmp:MyFileType; begin assign(tmp,'data.tmp'); reset(fff); rewrite(tmp); seek(fff,0); while not eof(fff) do begin read(fff,rec); write(tmp,rec); end; …

Software Development pascal
Member Avatar for Maggy0426
0
336
Member Avatar for vivek4020

[B]Hi Guys. I am working on my mini project(Intel 8085 Simulator) I am faced with a huge problem How do i store the instruction set?? What i am doing currently is i have made a structure[/B] [CODE]<Serializable()> _ Public Structure inTab Dim iName As String Dim iLen As Integer Dim …

Software Development file-stream vb.net
Member Avatar for pr@+#!
0
124
Member Avatar for sirlink99

I am making a game, but my buttons don't seem to be working. When I click in a certain area (where the button is) a screen should pop up. It doesn't. Please help. [code] // The "VirusMania" class. import java.applet.*; import java.awt.*; import javax.swing.Timer; import java.awt.event.*; public class VirusMania extends …

Software Development java java-swing
Member Avatar for sirlink99
0
112
Member Avatar for chipsch

I have an assignment where I have been asked to ask the user for input. What I am trying to figure out is if there is anyway to call and use methods of another class whose constructor requires parameters without passing them from the main class that will be calling …

Software Development java oop
Member Avatar for Akill10
0
220
Member Avatar for judithSampathwa

Hi there, I have a question in EncryptByPassPhrase. I am trying to encrypt the source column in the database table PForm. When I run the code it sasys, “Failed to convert parameter value from a String to a Byte[].” the SourcePath column in the database is varBinary(256) type. What is …

Software Development asp.net sql
Member Avatar for judithSampathwa
0
340
Member Avatar for MasterMic

I've taken 1 course in Java and 1 in C++ and now I'm tinkering with Python (love it so far). My module I'm currently working on is designed to solve a certain puzzle. To understand the code you'll need to understand the puzzle: There is an upside down triangle with …

Software Development mathematics pascal python
Member Avatar for MasterMic
0
270
Member Avatar for D33wakar

I've been trying to automate the creation of a user account with admin rights using cmd bat . [CODE] net localgroup administrators [I]account name[/I]/add [/CODE] got the following error: [CODE]There is no such global user or group:[I]account name[/I][/CODE] what's the problem?

Software Development shell-scripting
Member Avatar for VulcanDesign
0
141
Member Avatar for anumash

The first program compiles fine and is also logically corrrect but the second program also compiles but is logically incorrect!! Why???? Is there something wrong with the methods in the class???? [CODE]import java.util.*; class CashRegister{ private int dollar=0; private int quarter=0; private int dime=0; private int nickel=0; private double pennies=0.0; …

Software Development java
Member Avatar for anumash
0
327
Member Avatar for mackemforever

I've just been trying to put together a small piece of code to display the Fibonacci series up to the nth term, where n is defined by the user. I have got it working in a way, it is displaying the series up the the nth term where n is …

Software Development c
Member Avatar for mackemforever
0
124
Member Avatar for remuladgryta

Hi, i'm a new learner of the ways of COM and, when trying to recode a code example found in [I]Automating Office[/I] by Lori Turner from just a demo of Word interaction into a c++ class (which i will be using in my program) i come across these linker errors: …

Software Development c++ visual-studio
Member Avatar for DJRoss
0
3K
Member Avatar for roottybrian

Hi guys... I am in need of urgent help here! I want to print more than one page on vb.net's printdocument whatever! I quite don't get it quite clearly when it comes to "e.hasmorepages=true" thing It keeps adding pages on and on and on... Please help me.. Thanks

Software Development vb.net
Member Avatar for Luc001
0
168
Member Avatar for Dannyo329

Hi, I'm having a problem with reading from the char , coupon, and it comes up with an error saying [CODE]Exception in thread "main" java.lang.NullPointerException at input.Main.main(Main.java:27)[/CODE] At the line which I read from the char, which is that myScan.findInLine bit, I am working from a beginning java programming book, …

Software Development java
Member Avatar for Dannyo329
0
198
Member Avatar for iwannalearn

hey i am in a great confusion plz help me out.I have done basics of c++,and now i am in a confusion that whether i should continue c++ or to start with java???? plz suggest me

Software Development c c# c++ java
Member Avatar for Moschops
0
148
Member Avatar for youLostTheGame

in my C++ class we were given an assignment (as follows) and i only have one last objective with it. the user is given an option to be able to see the entire queue list and i don't know how to get the program to show that. does anyone know …

Software Development c++ objective-c queue
Member Avatar for youLostTheGame
0
147
Member Avatar for singhabsk

Hi Perl guru's My name is ABHI and i am almost new on perl i need help for below mentioned issue. Well, I have one file(xyz.txt) containing following text LT19-10-13-400922 --TID1-3039@10.100.14.163 1--RequestREGISTER LT19-10-13-405432 --TID1-3039@10.100.14.163 1--Response100 LT19-10-13-410015 --TID1-3039@10.100.14.163 1--Response401 LT19-10-13-415481 --TID1-3039@10.100.14.163 2--RequestREGISTER LT19-10-13-419800 --TID1-3039@10.100.14.163 2--Response100 LT19-10-13-426400 --TID2-3039@10.100.14.163 1--RequestREGISTER LT19-10-13-463320 --TID3-3039@10.100.14.163 1--RequestREGISTER …

Software Development perl
Member Avatar for singhabsk
0
104
Member Avatar for lance7tour

Am trying to get this code to work where the user enters n rock,paper,or scissors and the computer randomly picks as well, it then states what each choose, once u click ok it tells who won the match but my code once it shows the 1st winner result have to …

Software Development vb.net vbscript
Member Avatar for codeorder
0
653
Member Avatar for ben25x

I have searched and deleted on this code, but I am still stumped on where the "unresolved external" it's complaining about is. Here is the code:[CODE]#include <windows.h> #include <stdio.h> #include <string.h> #include <tchar.h> #include "resource.h" #define GETITEM(item) GetDlgItem(hWndDlg, item) void convert (HWND hWndDlg) { wchar_t ConvertTime[9], ETime[8], UKTime[8], HKTime[8], Hour[8], …

Software Development c
Member Avatar for Banfa
0
246
Member Avatar for airesh

How to import an Excel file into SQL Server 2005.. anyone?

Software Development vb.net
Member Avatar for sandeepparekh9
0
116
Member Avatar for Fadiy

Hi all... well.. the thing is that me & my team are working on our graduating project we are using MATLAB.. and we need to use a database we've tried Access.. but it seems hard as we need to store images in the database when we tried to retrieve the …

Software Development
Member Avatar for Fadiy
0
110
Member Avatar for vanzhyme

im using crystal report in vb 2005. please help me on the code. how to import the data from the textbox or label on the form to the text on crystal report using a button. please badly needed..

Software Development vb.net
Member Avatar for vanzhyme
0
619
Member Avatar for shallug

Hi, I have created a registeration page without using login controls in asp.net (C#). I have taken label,text boxes and validation controls. Can u please help me, i dont know how to validate them or how this will work. Its very urgent Thankx

Software Development
Member Avatar for umamahesh2020
0
227
Member Avatar for uclaEE

Hello all! I am having trouble writing this code where I am supposed to take integers and output them as strings. When i try a number like 67 it outputs it correctly like sixty seven. However, when i try 467 it only outputs four hundred sixty. Suggestions appreciated! [CODE]#include <iostream> …

Software Development c c# c++
Member Avatar for ravenous
0
122
Member Avatar for ckid

HI friends!! I am very new to this type of groups, and this is my first post to this group, before asking u all a help I am just posting this code to u all, , please respond for this code Huffman algorithm is one used for image compression and …

Software Development algorithm c
Member Avatar for nilu28
0
3K
Member Avatar for uma.kotha89

Dear Daniweb Team, I face memory leaking problem while sending mail automatically when user advertisement expire date(i.e,26 days) was expire..Mail functionality was working when it expiry days come to 26.But it shows following error. It shows an Error Like:: pergem space out of memory leaking. I request u people past …

Software Development java session
Member Avatar for masijade
0
130
Member Avatar for AnaR

Hi, i would like to put some icons over desktop and these launch apps. It's necessary to use xlib with python, and i'm lost. thanks in advanced

Software Development python
Member Avatar for AnaR
0
241
Member Avatar for tiararin

Hello. I'm trying to code a C# assignment which is well due tomorrow. This is my first project. I know it's last minute but I'm desperate for help. So here goes. Basically I'm doing on army store system. The project requires me to use Objects and 2D arrays which I'm …

Software Development storage
Member Avatar for ddanbe
0
176
Member Avatar for madtowneast

Hi all, I am going slightly insane about this because I have been spending a lot of time on this simple thing and I am not sure what is wrong. I just want to rename a couple files that are time and date stamped to something that I can easily …

Software Development shell-scripting
Member Avatar for masijade
0
150
Member Avatar for JayWeb

Hi, I have a gridview with checkboxes in the 3rd column. I am trying to work out when they are selected. I have the following code: [CODE]foreach (GridViewRowInfo dr in gvMovies.Rows) if (dr.Cells[2].Value = true) MessageBox.Show("Row " + dr.Index + " selected");[/CODE] I get the following error: [B]Cannot implicitly convert …

Software Development
Member Avatar for JayWeb
0
111
Member Avatar for PinoyDev

Hello guys and Good day! I just want a little help on how to get the total number of space from the left until the word starts and display the total space in msgbox.. Example: [Code=vb] combo1.AddItem = " Bank " [/code] In this example the total number of space …

Software Development visual-basic
Member Avatar for PinoyDev
0
171
Member Avatar for elizabeth mwash

hello, am trying to create a system that can grade a lecture according to his knowledge of subject, how he handle the class etc.....is there a way this can be implemented into a system...its the normal questionnaires on papers but i wanted to make a system from that...is it possible. …

Software Development
Member Avatar for jonsca
0
104
Member Avatar for bored4

i'm trying to make a login form connected to an sql server database. my data base has records like this: fname - lname - minit each name in a separate column, and i wanted to use the name as the login username, so in the dataset designer i made a …

Software Development dataset open-source sql vb.net
Member Avatar for Dheerajpro
0
531
Member Avatar for Gsterminator

So my problem is that i'm trying to read a MyString that returns a new Mystring in which every digit -0123456789- has been replaced with a certain char. Ex: Blink182 ====>Blinkxxx [CODE]import java.io.*; import java.util.Scanner; //////////////////////////////////////////////////////////////////////////////// class Hw08 { //------------------------------------------------------------------------------ public static void main (String [] args) throws Exception { …

Software Development java
Member Avatar for Gsterminator
0
157
Member Avatar for svatstika

Hi everybody! In my TMemo (name: MemoMain) there are following datas: 3 0 1 1 1 0 1 1 1 0 I must read them to a variable int and an array int A[][]; After reading: n==3; A[0][1]==0 A[0][2]==1 A[0][2]==1 A[1][0]==1 A[1][1]==0 A[1][2]==1 A[2][0]==1 A[2][1]==1 A[2][2]==0 I did like this: …

Software Development c++
Member Avatar for svatstika
0
294
Member Avatar for Shodow

can you help my with the code for my cmdDone to add a new record into my database, i can't seem to get it here is my project [URL="http://dl.dropbox.com/u/9153815/Unknown.rar"]http://dl.dropbox.com/u/9153815/Unknown.rar[/URL] no luck even with tutorials

Software Development visual-basic
Member Avatar for Shodow
0
138
Member Avatar for w1mark

Hi, I have been working on this program for a while, and it is just getting plain frustrating. I'm trying to make a class(called numberType) which can take a number with up to 100 digits using a 100 integer character array and then be able to add that class with …

Software Development c++
Member Avatar for w1mark
0
123
Member Avatar for _neo_

I need to convert this C code to python. void GetChkSum(Int len, PSTR buf, PSTR res) { memset(res, 0, 4); for(int i=0; i<len; i+=4) { res[0]^=(buf+i)[0]; res[1]^=(buf+i)[1]; res[2]^=(buf+i)[2]; res[3]^=(buf+i)[3]; } res[0]=~res[0]; res[1]=~res[1]; res[2]=~res[2]; res[3]=~res[3]; } In my case, buf is bytes object. for example: buf = b'00000001TXBEG 0000' len is …

Software Development python
Member Avatar for _neo_
0
320
Member Avatar for kamotekid08

Hi there somebody please help me to create a record file using c++.. The project is similar to a record. Ex. A product(goods) record. Where you can search for a certain product using the code number of the product, add product, remove product and view all the records. the task …

Software Development c++
Member Avatar for jonsca
0
3K
Member Avatar for pinsickle

I should remember this but I am rusty. I'm passing a char* [] to a function which will hold data that I have extracted using strtok. I've tested the output and it is doing what it is suppose to, at least it is inside of the function. As soon as …

Software Development c
Member Avatar for pinsickle
0
217
Member Avatar for Butterflieq

Hi everyone, I'm taking a C programming class and in addition to being unfamiliar with all of the syntax, I'm still learning my way around a new compiler. I'm currently writing a program that gets a user to input 3 numbers, then it will display the lowest to highest. My …

Software Development c
Member Avatar for gerard4143
0
192
Member Avatar for caut_baia

Hi everyone i'll keep it brief.Say i have [code] template <int k> struct A { enum {key=k}; }; template <int t> struct B { std::vector <A<y>* > vec; B () { vec.push_back (new A<y> ()); B <t-1> (); } }; template <> struct B <0> {}; int main () { …

Software Development c++
Member Avatar for caut_baia
0
98
Member Avatar for danijela123

Hi there, in my binary file i want read something but from 4th byte. i need to read data as 2 bytes int. i have this code but im not sure if its ok: some of my files should have some values less than 0, and im not getting any..so …

Software Development c++ ios
Member Avatar for MasterGberry
0
119
Member Avatar for Lemonader

Hi. How do I develop test cases for this code? Like, you know, testing the methods. I don't really know. If there was a "return", I could do it that way, but there isn't. So, you make a skeleton of tests, then adjust each test so that it actually tests …

Software Development c++
Member Avatar for Lemonader
0
158
Member Avatar for Spider05

I have been working on a HW assignment for a while and I cant figure out how to print out a 'user' selected column out of an array. I can print the rows, but I need to know how to print specific columns dictated by user input. My code is …

Software Development c
Member Avatar for gerard4143
0
192
Member Avatar for ableg02

How can I write a for loop that will help me run this twice so that I won't have to re-type code for other data type Student variables? Student S1, S2; for (int x = 1; x < 3; x++) { cout << "Enter First Name: " << endl; getline(cin,Firstname); …

Software Development c++
Member Avatar for ableg02
0
100
Member Avatar for c++probeginner

Please Help Me! I cannot figure out what to do. I get an error that I don't understand. I posted my code and error below: #include <iostream> #include <string> #include <iomanip> #include <cctype> using namespace std; //prototypes int read_dials(char &d1, char &d2, char &d3, char &d4, char &d5, char &d6, …

Software Development c++
Member Avatar for arkoenig
0
157

The End.