43,549 Solved Topics
Remove Filter ![]() | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 … | |
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 … | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
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 | |
[CODE] [I]Server.aspx[/I] <%@ Page Language="C#" CodeBehind="Server.aspx.cs" AutoEventWireup="false" Inherits="AMChat.Server" %> <p> </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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
[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 | |
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++ | |
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 … | |
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 | |
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++ | |
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 | |
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 … | |
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. … | |
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 | |
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 | |
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 | |
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 | |
![]() | 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 … ![]() |
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 | |
[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 | |
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++ | |
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 … | |
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 | |
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 … Software Development client-server dns machine-learning tcp-udp visual-studio | |
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 | |
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 | |
[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++ |
The End.