43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jackmaverick1

Hi! I've been making a rather large (but not huge, by any means) program and it needs, or so I think, a couple of classes and I want them to use inheritance to make my life easier. However, when I try to include all of my files in the main …

Software Development c++ oop
Member Avatar for jackmaverick1
0
219
Member Avatar for pro_learner

Guys i have created a simple Java Desktop application in netbeans.I want to connect it with SQL server 2008.I want to know how to connect it by using ODBC.Plz help me.....

Software Development java java-netbeans sql
Member Avatar for pro_learner
0
112
Member Avatar for croker10

Hi All, I am trying to use to linq to retrieve some data, and creating my queries dynamically with where clauses added to an IQueryable object. The problem I am running into is filtering for days of the week. In the table, I have a datetime of a call. I …

Software Development asp.net
Member Avatar for thines01
0
248
Member Avatar for Jake.20

I've been doing this for almost 6 hours and i can't figure out what is in my codes. please if there is someone out there can tell me what is the problem here. [CODE]public class thirdAct { public static void main (String write[]) { int beerNum = 99; String word …

Software Development java
Member Avatar for Jake.20
0
157
Member Avatar for landog

How do I test whether the first character in an array is a particular character? [CODE] i=0 while [ $i -lt $# ]; do strng=${args[i]}; if [ $strng[0] == '-' ] echo ${array[i]} let i=i+1 done [/CODE] Better yet - can I test the first character in an array of …

Software Development shell-scripting
Member Avatar for landog
0
98
Member Avatar for shanker31

How to implement elipsis in C/C++?

Software Development c++
Member Avatar for Salem
0
114
Member Avatar for himgar

I have set two environment variables for JAVA JDK. 1. PATH=C:\Program Files\Java\jdk1.6.0_26\bin;%PATH% 2. CLASSPATH=C:\Program Files\Java\jdk1.6.0_26\lib\tools.jar When I compiled the file using javac it was done successfully but when I ran the file using java command I got the following error: Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld

Software Development java
Member Avatar for rajatarora612
0
197
Member Avatar for zebnoon

Hye All Please help me to create Data Reports Accourding to given Dates. I Created a VB6 Form put 2 Time/Date Picker Controls and one Command Button.what will be code for Button to display Report Between given dates.

Software Development visual-basic
Member Avatar for zebnoon
0
584
Member Avatar for Riteman

Dear Daniweb members.. Am on ma way to learn java. I hav bit knowledge about c,c++. Since am new to java, I need help for the following questions: 1. Where can i get the java software? (like turbo c++ for cpp)I need a link for it. I heard that it …

Software Development java
Member Avatar for Riteman
0
177
Member Avatar for vishalrane

Suppose der is one database name Customer which have columns like Cust_ID,Cust_Name,Cust_Mob,Cust_Address And on Form der are one list box which contains all Cust_Id from database and 4 textbox so when user click on the listbox having id as 1 it should display name, mob and address of cust_id 1 …

Software Development display vb.net
Member Avatar for saj_amo
0
6K
Member Avatar for saj_amo

hi guys , help me in this i have made a report in crystal reports 10 in that i want the field only displays data without the special characters like its showing 11-00-3200-002-37 but i want it would show the field like this 1100320000237 without (-). so does any one …

Software Development display vb.net
Member Avatar for saj_amo
0
292
Member Avatar for Huakalero

In the line 72 of the code i do a findAll to retrieve all 'a' tags that have a 'horariosCarteleraUnderline' class and that have an href url that contains `?ic=[code]&` where code is a common code used to identifie the movie start time. It should retrieve all movie times, but …

Software Development python regex
Member Avatar for Huakalero
0
222
Member Avatar for pro_learner

I'm novice to C#.net & i'm using Visual Studio 2010 as the IDE.I have created a Desktop Application in C# & i want to connect it with the Database in SQL server 2008.Friends can you tell me the code or web links to solve this issue.....

Software Development c# ide sql visual-studio
Member Avatar for pro_learner
0
1K
Member Avatar for jarograv

I have this code: [CODE] def closest(): citiescomp=[] distances=[] for i in range(0,len(city_names)-1): citiescomp.append([city_names[i], citiesx[i], citiesy[i]]) while True: try: targetx=int(raw_input('Please enter the x coordinate of the city you wish to target: ')) if targetx in range(0,1000): break else: print "Oops, it seems like you made a mistake. Try again by …

Software Development python
Member Avatar for Gribouillis
0
108
Member Avatar for katrien202

Hi, I want to put plots using pyplot in a Tkinter window, a frame. I want to have the options I usually have in pyplot figures: the user has to be able to zoom, save,... so a photo of the image will not satisfy. Does anyone now how to do …

Software Development python tkinter
Member Avatar for Ene Uran
0
80
Member Avatar for FriXionX

So, I joined DaniWeb in february, and posted a problem regarding this code. I then quit learning for a while, and started again a week ago or so, continuing this. I've made it better, and its almost working, except for the If statement doesnt work. It asks you what you …

Software Development c++
Member Avatar for FriXionX
0
118
Member Avatar for de Source

Hi, i have a form in which i have different labels and picture boxes is there any way i can get the print of it by pressing print button on d same page but ofcourse that button shouldn't b d part of that print thnks

Software Development
Member Avatar for vishalrane
0
122
Member Avatar for zachattack05

Is it bad practice to create relationships between tables where the PK is an identity AKA auto incremented? The reason why I ask is, while identity keys won't repeat, they are set based on the order that someone enters data, so the first entry is 1, second is 2 etc... …

Software Development sql
Member Avatar for zachattack05
0
137
Member Avatar for geekme

While debugging my code in vS2010 i get the buid error: " Visual Studio cannot start the debugging because the debug target 'D:\Users\Mike\AppData\Local\Temporary Projects\beginner\bin\Debug\beginner.exe' is missing.Please build the project and retry again." What should I do? Regards

Software Development visual-studio
Member Avatar for geekme
0
82
Member Avatar for apanimesh061

[CODE] [I]Server.aspx[/I] <%@ Page Language="C#" CodeBehind="Server.aspx.cs" AutoEventWireup="false" Inherits="AMChat.Server" %> <p> &nbsp;</p> [/CODE] [CODE] [I]Server.aspx.cs(excerpt)[/I] namespace AMChat { /// <summary> /// Summary description for Server. /// </summary> public class Server : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { . . . [/CODE] When I build this application, I get …

Software Development
Member Avatar for apanimesh061
0
116
Member Avatar for nocloud

I have a number of functions I would like to reuse in multiple pieces of code. I have put these into a single header file that looks something like the following: [CODE] #ifndef FUNCTIONS_H #define FUNCTIONS_H //function prototypes extern float sum(vector<float> &v); //calculate sum of a vector float sum(vector<float> &v) …

Software Development c++
Member Avatar for Schol-R-LEA
0
419
Member Avatar for SakuraPink

Hi all, I am working on a data file that looks like the following: [CODE]value1: 0.7586 +/- 0.00473 value2: 0.664901 +/- 0.0357 value3: 0.662784 +/- 0.00447 ------------------------------------------------------------------------------------------------------------------------- value1: 0.765217 +/- 0.00425 value2: 0.694663 +/- 0.0277 value3: 0.66438 +/- 0.00393 ------------------------------------------------------------------------------------------------------------------------- value1: 0.758317 +/- 0.00332 value2: 0.648057 +/- 0.0201 value3: 0.660746 …

Software Development c++
Member Avatar for SakuraPink
0
160
Member Avatar for Bob Jacobs

I wish to call a form with the form name contained in a variable using a declaration such as [CODE]public myform as form[/CODE] will work if the formname is used. but myform will not accept a variable containing the form name

Software Development visual-basic
Member Avatar for Bob Jacobs
0
97
Member Avatar for chris007

hello guys. i got a method that someone showed here BUT it doesnt work 100%... i mean..i put this folder C:\Users\chris\Documents .. if i search for *.docx, it finds only the docx files that are in SUBFOLDERS inside the Documents.. it does NOT find docx files that are in C:\Users\chris\Documents …

Software Development vb.net
Member Avatar for chris007
0
1K
Member Avatar for larrymtl

Hello, somehow my program passes directly to else statement after [QUOTE]System.out.println("Would you like to draw another triangle? (Yes/No): ");[/QUOTE] something is wrong with if statement at the end...please help [CODE] import java.util.*; public class Triangle { public static void main (String [] args) { System.out.println("Welcome to the Triangle Program"); int …

Software Development java
Member Avatar for larrymtl
0
213
Member Avatar for klikeras

Hello, I need help with an assignment, been trying to figure it out for couple of hours with no luck, hope someone here can help me, i would be extremely grateful. I need to create a 2D array 5x4, each row represent a student and each column respresents a subject. …

Software Development c++
Member Avatar for prvnkmr194
0
149
Member Avatar for kristo5747

After running the command [CODE] find . -name "R*VER" -mtime +1 -exec sh -c 'grep -H ^err "{}" || echo "{}:No error"' \;[/CODE] my files look like this [CODE] RRR1~COS~COSMETICS~40048~jgmdtv113~1~P~R22-200~029053662549~20110607~102151.VER No error RRR1~COS~COSMETICS~ETT03~jgm14652.~3~F~R16-500~000907009757~20110607~085109.VER err 3922 [/CODE] Using the tilde (~) symbol as delimiter in the file name, can I extract …

Software Development shell-scripting
Member Avatar for kristo5747
0
222
Member Avatar for horserider

[code] ListBox2.Items.Clear() Dim myCoolFolder As String = "F:\" Try For Each myCoolFile As String In My.Computer.FileSystem.GetDirectories _ (myCoolFolder, FileIO.SearchOption.SearchAllSubDirectories, "*.*") ListBox2.Items.Add(myCoolFile) Next Catch ex As UnauthorizedAccessException MsgBox(ex.Message) End Try MsgBox("Total Files: " & CInt(ListBox2.Items.Count).ToString("#,###,###")) [/code] This code is for listing all folders including subfolders. but when i run this code …

Software Development vb.net
Member Avatar for chris007
0
1K
Member Avatar for akhal

Hi I am working on fast fourier transform where I have to use std::complex<> template class types. I have a situation where I want to calculate nth roots of unity as follows w = pow(e, 2*pi*j/n) Where e is eulers constant, and j=sqrt(-1.0); But this doesnt work for me as …

Software Development c++
Member Avatar for akhal
0
325
Member Avatar for Huakalero

Hi, I'm working on a unofficial app to get the movie listings from a webpage [url]http://cinepolis.com.mx[/url]. In order to get the correct movie listings, the user must select his city. Now, using HTMLParser I was able to get the list of cities, but because some of these have non english …

Software Development html-css python
Member Avatar for Huakalero
0
351
Member Avatar for de Source

hay guys... i m new here and having problem in finding a row through a combobox i did that with a simple text box it is working fine here is the coding [CODE] private void btnFind_Click(object sender, EventArgs e) { string searchFor = textBox4.Text; int results = 0; DataRow[] returnedRows; …

Software Development sql
Member Avatar for Mitja Bonca
0
176
Member Avatar for king03

Hi there guys I need some help I am creating an inventory with loads of exception handlers, I got a problem with isalpha and isdigit because supposedly it will detect whether an input is a char or a digit... Ok I tested a simple program to show my problem. I …

Software Development c++
Member Avatar for MareoRaft
0
600
Member Avatar for dotancohen

How could I register a function to receive an event when the user presses the space bar in a text field? Better yet, where in the fine manual should I be reading about how to do this? I'm not finding much by googling, and I think that I should be …

Software Development
Member Avatar for Mitja Bonca
0
145
Member Avatar for DOT6

Hello all, I have been working on a card game for the last month or so and sofar have created the basics ie. cards, deck... The language is ANSI-C and is created in programmers notepad with devkitpro and MLlib. Everything is working greate so far as in I can shuffle …

Software Development c gaming
Member Avatar for Narue
0
256
Member Avatar for rEhSi_123

Hi Guys, I am working on converting a console application into a user friendly GUI. The actual application is written in visual C++ and person has no information none what so ever on how to run it. So to understand the technique I am trying to experiment with the application. …

Software Development algorithm c c# c++ dns gui
Member Avatar for JasonHippy
0
340
Member Avatar for moone009

Variable 'loNode' is used before it has been assigned a value. A null reference exception could result at runtime. does anyone know why I am getting this error? [CODE]Imports System.Xml Module Module1 Sub Main() Dim doc As New XmlDocument Dim loNode As XmlNode Dim nodes As XmlNodeList doc.Load("C:\Desktop\Template.xml") nodes = …

Software Development vb.net
Member Avatar for sandeepparekh9
0
104
Member Avatar for localp

I have 2 applications. one is a console application and the other is a windows form application. I need both of these to run together in order for my application to work. for example: The console application - has controls over the cursor, so it'll navigate 5cm blocks from left …

Software Development visual-studio
Member Avatar for localp
0
194
Member Avatar for Joshua Kidd

Hello, Im creating a TS3 server admin tool. And Im having a Problem adding items to the DAtagrid View. Ive got like 8 Columns and I want to add this data to the correct Column But IDK What Im Doing Wrong [LIST] [*]# [*]Server ID [*]Server Port [*]Server Status [*]Clients …

Software Development vb.net
Member Avatar for Joshua Kidd
0
146
Member Avatar for xanawa

Hi, I am using windows form. Now in this window i have 2 textboxes which have their validation using the error provider. Now i want that when the user clicks on the close button it closes not rests until u enter something in the textboxes. How can i do so?

Software Development
Member Avatar for xanawa
0
310
Member Avatar for yoni0505

I had a problem with some program I wrote that edit specific values within a specific file. When I saved the values, using fstream's write() function, everything between these values became null. I've looked again in the I/O tutorial - [URL="http://www.cplusplus.com/doc/tutorial/files/"]http://www.cplusplus.com/doc/tutorial/files/[/URL] and saw that they use memory block at the …

Software Development c++ ios
Member Avatar for yoni0505
0
363
Member Avatar for domingo

hi, i came up with an idea of doing a music recognition for my theses but i do not know where to start from. basically this app will be that one plays a song from his PC (for now) and the program will recognize the song and finds the name, …

Software Development
Member Avatar for Momerath
0
106
Member Avatar for apanimesh061

[CODE] . . . . namespace AMChat { public class Global : System.Web.HttpApplication { private System.ComponentModel.IContainer components = null; public static AMChat.[B][U]ChatEngine[/U][/B].IChatEngine Engine = new AMChat.[B][U]ChatEngine[/U][/B].ChatEngine(); . . . . [/CODE] I have a folder 'AMChat' in which there is another folder 'ChatEngine' which includes two .cs files - ChatEngine.cs …

Software Development assembly
Member Avatar for apanimesh061
0
251
Member Avatar for cretaros

How to i implement loops to print the initialised word as foloows: Thanx in advance. p pr pro prog progr progra program programm programmi programmin programming programmin programmi programm program progra progr prog pro pr p

Software Development c++
Member Avatar for nmaillet
0
389
Member Avatar for MareoRaft

x.find() does not return the proper values for x.find('J'), x.find('K'), and x.find('.'). Do you know what could be the issue? It could possibly be x.substr() which is causing the issue. I want the variable q to be "q_J30_K5.txt". [CODE] #include <iostream> using namespace std; short ato( string number ){ return …

Software Development c++ perl
Member Avatar for MareoRaft
0
537
Member Avatar for airbourne

I am writing a simple shell script to automate a simple backup of a website and it's database. This is the working code: [CODE]#!/bin/bash # creates a backup of the mysql & webdata for a specific website. TODAY=`date +%A` # these variables cannot contain any spaces and must be modified …

Software Development file-system shell-scripting
Member Avatar for L7Sqr
0
722
Member Avatar for rootchord

I am learning about networking in C# and to do so i am making a simple instant message server/client app. everything is going fine. i am currently testing it by inputting my own ip address as the target to send/receive on same machine. but, i can only send one message …

Member Avatar for samueal
0
1K
Member Avatar for rminator

string valeur = ligne.Split(ChrW(59))(0); what is the equivalent of that in C# please???

Software Development c#
Member Avatar for samueal
0
276
Member Avatar for Lovelake

hi u can limit textbox max length to 4, then use keypress event to validate entry: [code] private void [textbox]_keypress(object sender,keypressventArgs e) { if((!Char.IsControl(e.char))&&(!Char.Isdigit(e.char))) e.handled = true; } [/code] then use keyup event to catch enter pressed to add controls [code] private void [textbox]_keyup(object snder, keyeventargs e) { if (e.KeyCode …

Software Development
Member Avatar for crishlay
0
154
Member Avatar for ninjatalon

My table gets its information from a Mysql database online. I'm not sure which would be quicker to retrieve the row that contains the information specified. EG. table1 Name________Age John_________5 Joe__________20 At this moment i have a while loop that looks for john and gives me the row. But is …

Software Development vb.net
Member Avatar for debasisdas
0
136
Member Avatar for theguitarist

[CODE] int x; while(cin>>x) { cout<<"Yes"<<endl; } int y; while(cin>>y) { cout<<"Yes again"<<endl; } [/CODE] What I expected to happen is,that as long as I entered a number for x(in line 2)that block should be run and "Yes" must be printed. To get out of the 1st while loop I …

Software Development c++
Member Avatar for theguitarist
0
2K

The End.