43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tapananand

I guess most of you would have seen the algorithm for the following problem: **Input:** Set of intervals(time) **Output:** Partion of intervals into minimum subsets such that no interval in a subset overlaps. **The Algorithm:** Sort intervals by start times and look them in this order, put each interval in …

Software Development c
Member Avatar for tapananand
0
308
Member Avatar for Noorul Ariff

I'm doing a project in vb.net back-end is MSACCESS... I don't know how to store data from COMBO BOX and to RETRIVE data from database to COMBO BOX... Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Ariff\Inventory\Inventory.mdb;Persist Security Info=False") cn.Open() str …

Software Development open-source vb.net
Member Avatar for cmanojkumar86
0
743
Member Avatar for shwetha.marigowda

hi , i have a java bean string which contains html and as well as jstl code ,, html code is rendering to jsp,, butnot the jstl code , how do i render that to jsp

Software Development java java-jsp
Member Avatar for shwetha.marigowda
0
522
Member Avatar for newbiewwcode

Hi, I am trying to design a vector within a vector within a vector. For example, a school has 3 floors, each floor has 5 classrooms, each classroom has 20 students, each student has a last name and a first name. I know how to create a vector for floors …

Software Development c++ web-design
Member Avatar for tinstaafl
0
699
Member Avatar for tanatos.daniel

I have this simple program in which I want to concatenate two char pointers using memcpy, but I get access violation writing location on the memcpy line. Why is this happening and what could be done to make it work? Thanks. char *first = new char[20], *second="world!"; printf("first: "); scanf("%s",&first); …

Software Development c++ microsoft-access
Member Avatar for Ancient Dragon
0
548
Member Avatar for nathan.pavlovsky

Hello programmers! I have been working on a hardware store application, where there is a `HardwareRecord`class that stores information about each object in a store (ex: nuts, bolts, screws, and so forth). Here's my declaration of this class: // HardwareRecord.h // Initialize Hardware Store File // // // Definition of …

Software Development c++ ide oop
Member Avatar for nathan.pavlovsky
0
20K
Member Avatar for Slavi

I asked a week ago a question about this, now I tried to google around and found this toHex method. It has an empty spot about the charset. For example I want to use UTF-8 but if I enter it returns an error and if I don't specify it, the …

Software Development java
Member Avatar for JamesCherrill
0
388
Member Avatar for Nebil

Hi guys, I just got into a little problem.I just deployed an application with backend db access.It works fine on major OSs being used like win7 and XP. But some functionality related to the database doesn't work properly when deployed on win8. I used a code to delete temp table …

Software Development microsoft-access vb.net
Member Avatar for Nebil
0
1K
Member Avatar for xuexue

Hi! This is my Gridview1 and I wanted to get the value of the recid column using the GridView1_RowEditing method <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" DataKeyNames="RECID" AutoGenerateDeleteButton="True" AutoGenerateEditButton="True"> <Columns> <asp:CommandField ShowSelectButton="True" /> <asp:BoundField DataField="RECID" HeaderText="RECID" InsertVisible="False" SortExpression="RECID" /> <asp:BoundField DataField="DOCUMENT_NUMBER" HeaderText="DOCUMENT_NUMBER" SortExpression="DOCUMENT_NUMBER" /> </Columns> </asp:GridView> Please help me, I …

Software Development vb.net web-design
Member Avatar for Mr.M
0
337
Member Avatar for Rake$h

Hello Friend's I try,If i take 2 button in a form. In this when i click button1 click event then show or display button2 on a page.

Software Development display gui
Member Avatar for Rake$h
0
139
Member Avatar for jared.geli

Hi guys I tried to to use inner join on 5 tables it worked but the problem is instead of getting the exact sum values it got doubled. Here's my code cmd = New OleDbCommand("SELECT om_list.invoice_no as invoice_no, om_list.internal_id as internal_id, om_list.customer_id as customer_id, om_list.account_name as account_name, om_list.seller_name as seller_name, …

Software Development dataset vb.net
Member Avatar for jared.geli
0
243
Member Avatar for Tsukamoto Kyoko

I have this database in stored inside my Visual Studio Express 2013 for web. How can I use XSLT to turn into: <?xml version="1.0" encoding="utf-8" ?> <graph caption='Cashflow' subcaption='(Drag to zoom out)' hovercapbg='FFECAA' hovercapborder='F47E00' formatNumberScale='0' decimalPrecision='0' showvalues='0' numdivlines='15' numVdivlines='15' yaxisminvalue='1000' yaxismaxvalue='1800' showVLineLabelBorder='1' numVisibleLabels='500' legendPosition='RIGHT' SCROLLBAR='Glow' btnSwitchToPinModeTitle='Compare Graphs'> <categories> <category name='1/1/2014' …

Software Development dataset visual-studio xml
Member Avatar for xml_looser
0
369
Member Avatar for nelsonfaboan.rios

I've generated an application that uses images, the wheel of the mouse, a txt to obtain info and other things. On my computer and on others it runs flawlessly, but on other computers it runs different, the mouse doesn't work, it throws runtime errors, doesn't load any information from the …

Software Development c c# c++ visual-studio
Member Avatar for nelsonfaboan.rios
0
358
Member Avatar for ITPT

Hi I'm trying to undrestand socket functions.... (in C) arguments of bind() and accept() functions is ambiguous for me! signature of bind() : int bind(int sockfd, struct sockaddr *my_addr, int addrlen); // okay, no problem but in example's codes or in the program : bind (sockfd, (struct sockaddr *)& my_addr, …

Software Development c socket-programming
Member Avatar for ITPT
0
198
Member Avatar for GingerDontCare

Hello Daniweb, I am building a simple form to calculate and display a discounted price using VB. Here is what I am trying to do... lblDiscount = txtPercent / 100 * txtPrice lblPrice = txtPrice - lblDiscount Here is the code that I have so far...I am just a little …

Software Development display
Member Avatar for GingerDontCare
0
157
Member Avatar for JOSheaIV

Hello Everyone, Okay I have got probably one of the weirdest question you have seen in awhile. I have been working on a custom image selection form (much like a file selection, but I didn't like the default Microsoft one). This also includes me rebuilding a custom object, that references, …

Software Development image
Member Avatar for JOSheaIV
0
195
Member Avatar for krystosan

I am on OSx and I am trying to exit the program by pressing CTRL+C. but it seems like even if I have a signal handler registered in main thread it doesn't exit while the thread is executing on pressing CTRL+C. Here is a piece of cake where I am …

Software Development multithreading python queue unix
Member Avatar for TrustyTony
0
2K
Member Avatar for Jahliah

I'm able to read rows separated by "~" but once I try to read the values separated by comma, my output returns nothing. Any help is appreciated! strInput is a .csv file. Content= strField[0],strField[1],strField[2],strField[3],srField[4],strField[5]~ strField[0],strField[1],strField[2],strField[3],srField[4],strField[5]~ strField[0],strField[1],strField[2],strField[3],srField[4],strField[5]~ using (StreamWriter write = new StreamWriter(filePath, true)){ string[] line = strInput.Split('~'); foreach (string part …

Software Development
Member Avatar for MarkAMalo
0
218
Member Avatar for Riteman

I recently developed an application and it successfully ran in my computer where I developed. But when I tried to run in my client's system, it returns: An unhandled microsoft .net framework exception occurred in Members Manager.exe [2916] The number in the square braces appears randomly. I can't figure out …

Software Development asp.net visual-studio
Member Avatar for Riteman
0
266
Member Avatar for masonketcham

I have this assignment due this weekend and I was able to figure it out but for some reason the last part of my output is going up to 38 and I have no clue to way it would be doing that any thoughts to way. my output: output: PRINTING …

Software Development c++
Member Avatar for masonketcham
0
334
Member Avatar for Adami

Hi guys, I wrote the following code: public static boolean match(int[] a , int[] pattern) { //need to use the overloaded method, in order to work with the static method. return match(a,pattern,0,0); } /** This is an overloaded method that match between a pattern to a given string (as an …

Software Development java
Member Avatar for Adami
0
3K
Member Avatar for ponnu

I have vb form that accepts input from user,search in database(database acess) and displays matching records if any in the listview .The problem is that the search query will display only one matching record even if there are many matching records .anyone please help

Software Development display listview seo visual-basic
Member Avatar for hannah_2
0
2K
Member Avatar for Jing_1

Good Morning Everyone, May i know how to extract all data from a excel file and copy the data all over to another excel file? Example from Excel A, we have data EmployeeID Name Department 1111 John MIS I want to copy the data over to Excel B... may i …

Software Development microsoft-office vb.net
Member Avatar for du_1
0
670
Member Avatar for sel15

I have implemented an FFT algorithm (by looking it up online) and integrated it into ImageJ but when I run it the image produced by the FFT algorithm is different from the image produced by the ImageJ software. I can't seem to find the error, I was hoping someone can …

Software Development display image java
0
185
Member Avatar for Brandy_1

Program runs without errors, unfortunately it will not calculate the days overdue. Any Suggestions? I have attached the code as a pdf, i have also done this as an IF, THEN, ELSE statement with the exact same results, but it will not let me upload it. Help! Private Sub calculateFees …

Member Avatar for Reverend Jim
0
398
Member Avatar for mattybennett

Hi all, Ok - there's nothing like a BIG challenge to start off my exploration into programming. Given that I'm a complete newbie with more build errors than a builder having a bad day (bad pun!), what I'm really looking for is someone to hold my hand a bit and …

Software Development c++ computer-vision video visual-studio
Member Avatar for joel.queiroz
0
2K
Member Avatar for myk45

Hello All, Well this is not exactly a C++ question. More of a math one. But I've seen many guys work on GameDev in this forum. So, posting it here. Here it goes: I was reading an article to check if a point in view frustum and i read some …

Software Development c++ microsoft
Member Avatar for myk45
0
426
Member Avatar for Slavi

Before I even attempt doing anything in this direction, is it possible to enter a string and get it represented in ascii? I am reading an article about XSS and SQL injections part of a course that I am taking now, and some of the tips are that people in …

Software Development java
Member Avatar for Slavi
0
181
Member Avatar for mbowenitj

Hy guys, . Please assist in advicing whch toolbox conncetion controls to add in my form. I want to connect to access 2007 using vb.net 2005 and im struggling. I have two textboxes(username and password) and two buttons(submit and cancel). When I click on the submit button it supposed to …

Software Development microsoft-access vb.net video
Member Avatar for mbowenitj
0
297
Member Avatar for mbowenitj

Hi guys pls help, Im trying to connect to access 2007 database in vb.net 2005 woth no luck.....im using a login form with two text boxes and two buttons, Im tring to log into the database using the below connection string....... (i only get the catch message box error)... Plz …

Software Development microsoft-access vb.net
Member Avatar for mbowenitj
0
285
Member Avatar for mbowenitj

Hy guys, Please assist in advcicing which toolbox connection controls to add in my form. I want to connect to access 2007 using vb.net 2005 and im struggling. I have two textboxes(username and password) and two buttons(submit and cancel). When I click on the submit button it supposed to allow …

Software Development microsoft-access vb.net video
Member Avatar for mbowenitj
0
377
Member Avatar for y2kshane

how to resize a image thtz lager than picturebox??

Software Development image vb.net
Member Avatar for Reverend Jim
0
9K
Member Avatar for tin1296

Private Sub Command1_Click() Dim Searchvar As String Searchvar = InputBox("Enter the Name to find") Searchvar = Trim$(Searchvar) 'remove surplus spaces If Searchvar <> " " Then 'cancel if nothing entered With Adodc1.Recordset .Find "[Title of Books] = '" & Text1.Text & "'", , adSearchForward If (.EOF) Then 'record not found …

Software Development display visual-basic
Member Avatar for Pranav b
0
200
Member Avatar for Pyler

Supposed I want to build a Queue using a LinkedList structure how would I go about doing this. I'm only allowed to use offer(), remove() or poll(), isEmpty() and size() methods, how do I implement a method to add items onto the queue?

Software Development queue
Member Avatar for Pyler
0
106
Member Avatar for Pyler

I have a generic class that contains a compareTo() method I'm getting an error on the method it'self that goes something like; Name clash: the method compareTo(T) of type twos<T N> has the same erasure as compareTo(T) of type Compareable<T> but does not override it. How do I fix it? …

Software Development
Member Avatar for Pyler
0
187
Member Avatar for moaz.amin.37

the virtual Methods concept is very difficult concept. In c++ when we want to implement polymorphism then we use virtual function. But in the case of java i read that all methods in java are virtual by default except final methods that can not be overridden. I am confuse about …

Software Development java
Member Avatar for jwenting
0
302
Member Avatar for jakizak

Ok here is the required feature: To send data gathered from a database inside a UserControl to the main form which houses the UserControl. Hierarchy at present: Mainform --FlowLayoutPanel ----UserControl The UserControls are generated on the fly by a client list in a database. This all works fine. When you …

Software Development vb.net visual-basic
Member Avatar for jakizak
0
1K
Member Avatar for srivardhanms

Hi, I want to write a sniffer program which sniffs the packet from a Unix socket. Is it possible? I have written a small server and client programs using unix socket (sockaddr_un). Now I want to write a sniffer program which sniffs the packet from the socket. Am not able …

Software Development c client-server unix
Member Avatar for srivardhanms
0
1K
Member Avatar for SpottyBlue

Hey, I'm new to assembly 8086 progamming and don't know much of the code. How do you change the input string to all caps and show the number of characters without counting the spaces? > Enter a string: Doraemon rules!!! > Output: DORAEMON RULES!!! > Number of characters: 16

Software Development assembly
Member Avatar for SpottyBlue
0
304
Member Avatar for DeanMSands3

I've found that there are times when I need to pull down a repository, but when working with other people, there's always that certain file that holds particular user-specific customizations. We need to pull it down the first time, but every time afterward, I'd prefer it not get updated - …

Software Development
Member Avatar for DeanMSands3
0
412
Member Avatar for coroll

Hi all, I get 'Invalid string or buffer length' exception when trying to do this. String s=resultSet.GetString(1) Exception: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid string or buffer length at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6956) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7113) at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3906) at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5697) at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:353) at sun.jdbc.odbc.JdbcOdbcConnection.buildTypeInfo(JdbcOdbcConnection.java:1503) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:381) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174) at java.sql.DriverManager.getConnection(DriverManager.java:579) at java.sql.DriverManager.getConnection(DriverManager.java:243) at Controll.Test.sselect(Test.java:72) at …

Software Development java
Member Avatar for jwenting
0
618
Member Avatar for Mr.M

Hi Dw I've been cracking my head trying to figure out the best way I can use to inter-react or send direct action commands to the device. Starting by stating what I'm trying to do here. I'm trying to create a POS system I've looked at jpos library packages but …

Software Development java seo
Member Avatar for Mr.M
0
248
Member Avatar for stephen.teacher

hi all, this is some extra credit from class we sat around cleaning up code today this is what we came up with public boolean equals2(IntTree t2){ return equals2(this.overallRoot, t2.overallRoot); } private Boolean equals2(IntTreeNode r1, IntTreeNode r2){ if(r1 == null || r2 == null){ return r1 == null && r2 …

Software Development data-structure java
Member Avatar for stephen.teacher
0
302
Member Avatar for BogdanCov

Hello guys. I need an idea. How can I calculate GCF of many numbers? I thought I could calculate two by two numbers, but it not seems to be a very effective idea. There is my function: int gcf (unsigned int x, unsigned int y) { return (y == 0) …

Software Development c++
Member Avatar for tapananand
0
234
Member Avatar for Slavi

@JC, I just wrote this code really quick and it does compile without errors for the server side ... but I am not sure about 1 thing .. here is the code first import java.net.*; import java.io.*; public class GameServer extends Thread{ private ServerSocket serverSocket; private enum Action { Scissors, …

Software Development client-server java
Member Avatar for Slavi
0
422
Member Avatar for IchibanXD

Hey guys, i'm a bit of a new programmer taking a class.So in my code what im trying to do is to select three random numbers, and see if it matches with the numbers that the lottery throws out. The problem is where the 1st number and 3rd number selected …

Software Development java
Member Avatar for IchibanXD
0
1K
Member Avatar for stephen.teacher

hey all im a relative noob with progaming if i could get some help i would be greatfull this is homework but not the whole assignment thank you all So when i run this it works fine if i type in the name of the first node but none of …

Software Development java linked-list
Member Avatar for stephen.teacher
0
222
Member Avatar for Dan_3

there is string of 0 and 1. The goal is to sort it. 2 pairs can be switched on each step. For example the mentioned above string can be sorted in following steps: 0. 00010111010 1. 00001111100 2. 00000011111 help please....

Software Development c++
Member Avatar for Hiroshe
0
309
Member Avatar for tubs1

Hi All, Im new to Python and doing a few basic exercises around modules and calling same. Can someone explain what par is in relation to this example? -------------- # Defining a module called support.py def print_func( par ): print "Hello : ", par return -------------- # Importing support.py module …

Software Development python
Member Avatar for Gribouillis
0
571
Member Avatar for BogdanCov

Hello, guys, I encountered a big problem. There is a genereted matrix of buttons: private void Single_Load(object sender, EventArgs e) { //code here for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { //a lot of working code here b[i, …

Software Development gui matrix-multiplication
Member Avatar for BogdanCov
1
221

The End.