43,549 Solved Topics
Remove Filter ![]() | |
hi.... i have a small problem using the DOM parser for XML in c# [CODE] XmlDocument doc = new XmlDocument(); XmlNodeList _list = null; doc.Load(location.Text); _list = doc.GetElementsByTagName("DataSource"); foreach (XmlNode node in _list) { //some processing } [/CODE] over here i am able to get specific nodes using the getElementByTagName … | |
I have created an application and also created the setup.The application adds it executable file to the user program menu but it does not create a shortcut on the desktop. How do i make my applications create a shourtcut menu on the desktop when they are installed Software Development vb.net | |
Hello, i'm beginner in eclipse and i try the helloWorld.java with Eclipse After creating the JAR file, if i click it, i have an error message: [CODE]Failed to load Main.Class manifest attribute from D:\Ecipse\workspace\HelloWorld\[/CODE] I don't understand why i can't launch my HelloWorld.jar My java version is 6.1.7.600 and i … Software Development java | |
I'm in the process of writing a knights tour algorithm for a homework. I believe my algorithm is a good one and don't see anything wrong with it, but for some reason my program keeps throwing a stack overflow error. I don't see any reason why it would be throwing … | |
i'm doing a rpg for fun but this one function is giving me problems. it compiles without problems, but when i test it, the hp stats done change. this is the code for the function. [CODE=c]void attack(dragon *d1, dragon *d2) { if(d1->getdef() < d2->getatk()) { d1->changehp(- ( d2->getatk() - d1->getdef() … Software Development c++ cybersecurity | |
I need to know if it is possible to store click event of a button in a variable. I tried doing it but didn't get any solution. Please help Regards Software Development | |
Hi people I need some help here. Here is the CODE : [B]for Form1:[/B] [CODE] 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.Data.SqlClient; namespace practice { public partial class Form1 : Form { Form2 obj; public Form1() { InitializeComponent(); } … Software Development dataset open-source | |
Hi, I am seeking some advice about how to tackle a programming problem. I'm not wanting code just some suggested ways of handling the problem. I am trying to develop a program that displays images that have similar visual properties. For each image, and for each of the rgb colors … Software Development | |
Hi. Can anyone help me with this code? I have a form which takes subject name, semester and class. I put this data in a database tables using 2 ADODC’s and the connections are as follows: ADODC3- LecturesAttended (StudentID, RollNo, Name, SubjectName) ADODC4- Student (StudentID, RollNo, Name,Class) I take studentid,rollno,name … Software Development visual-basic | |
Who can teach me how to make Class to store database location When want to use just call the location. Everytime I will write again the connection. When database location is change, I will change the database location one by one. This is time consuming and difficult to maintain program. … Software Development dataset open-source visual-studio | |
hello guys, this is my first post asking for a help. Actually i am a PHP/Mysql developer. i am newbie to vb.net and i am trying to develop a application which asks for a password when the user tries to open any.exe file for example: [CODE]Private Sub Form1_Load(ByVal sender As … Software Development vb.net | |
Hi all, I have some problems with my program, as it always compiles with segmentation fault after it run finishes. ANy help is appreciated [code] Program received signal SIGSEGV, Segmentation fault. 0x00375d37 in ?? () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0x00375d37 in ?? () from /lib/tls/i686/cmov/libc.so.6 #1 0x0804992b in Chord::isValid(char*) … Software Development c++ peer-to-peer | |
Hi all, I have been playing around with trying to create an english to pig latin translator. I am not really sure where to start, so right now I am just focusing on splitting a string and search for "A", if the word has "A" add "way" to the end … Software Development vb.net | |
I'm doing a function that returns the index of the largest integer in the array it's an easy function.I've done it but I don't know why the output is always 10 although i want to return only the index of the largest number and here is my code: int MAX_INT(int … Software Development c++ | |
Hey, I'm new to C++ (1 week, used to do Python), and it's very enjoyable, but I have an issue. In the following code: [CODE] int sizeofarray; cout << "Type size of array: "; cin >> sizeofarray; int myarray[sizeofarray]; ...........more code [/CODE] That isn't the code, but that is the … Software Development c++ | |
#include<stdio.h> #include<string.h> void fn (int *ptr) { static int val=100; ptr=&val; } main() { int i=10; printf("%d", i); fn(&i); printf("%d", i); getch(); } The output of the above code is 10 10. why not 10 100? What is happening inside fn? Software Development c | |
anybody know how to sort item in combobox and listview in alphabert or numeric | |
Is there a way to define a property with default get/set functionality for a variable? Software Development | |
Hello, i would like to know how to implement the FileNotFoundException in my code. my code concatenate files from a Folder, it's working well even if there is no file. So i want to throw a message something like 'There is no file in the folder" If there is no … Software Development java | |
Hi there, Does anybody know how to refresh a windows form after inserting into a database using a dataTableAdapter or any other method for that matter without having to close the form or use the fill method to reload the form? The problem with this is that you are taken … Software Development sql | |
Hello all, So I am new to the whole STL List class, and I am a little confused. In the past I have always had two classes, a data class and a "linked list" class. So now I have a bit of a pickle when I try to make a … Software Development c++ ios linked-list peer-to-peer | |
Hello, I'm trying to crate a login form that basically logs users in.. Now, I have created the database, and queried the table to see if the user exists.. But how do you check if the query returns whether it is or not? E.g. in PHP you'd use like.. [CODE] … Software Development open-source | |
hi friends and seniors i want to play (add audio files, remove audio files,and other oprations) players(like vlc) through c++ coding in Ubuntu help me out. how do i do this. i don't even have idea... i know how to accept input from command prompt | |
so im taking the advice of 1ML, seems like a smart guy, and starting a second thread for the controversial, main calling, system calling, devil code, anyway i did take your guys advice and cut out the main calls and reduce everything to one fuction. however! ladies and gentlemen we … | |
Hey there. I have a problem. But to make a Long story short, ill just say what i want to accomplish. I have a Datagridview, I can re-arrainge the data inside of it, by clicking the column headers to "auto-Sort" my data. But now i insert another database into the … Software Development | |
I want to represent money which is usually to 2DP and I add up items using float values but whenever I have a value that is similar to the one used it only converts it to a string to 1DP. This seems like its going to be annoying to work … Software Development python | |
hi guys i wanna ask how to make warning messages when a user clicks the search button and found no record with what he input. here is my stored proc [CODE]ALTER PROCEDURE dbo.Searchbylastname /* ( @parameter1 int = 5, @parameter2 datatype OUTPUT ) */ ( @value1 varchar(50) ) AS /* … Software Development vb.net | |
I have VB 5 learning edition which has suited me fine thus far believe it or not! One thing has really been annoying me for quite some time. I can't find how to set the command buttons forecolor (at least with the VB version I have). Backcolor is no problem, … Software Development visual-basic | |
Hey, I'm trying to build my own calculator piece by piece, and I've currently got it to the stage where it'll add positive integers. Anyway, at the moment I'm trying to incorporate the keyboard into the program. What I've done is made is so that only my form can have … Software Development java | |
hi, i try to run java program with ProcessBuilder but it works only with .exe file and with .jar or .java i use netbeans 6.9 why please? [CODE]import java.io.*; public class Mani { public static void main(String args[]) throws IOException, InterruptedException { try { Process p=Runtime.getRuntime().exec("javaw -jar D:\\NetBeansProjects\\GetIPAddress\\dist\\GetIPAddress.jar"); } catch(IOException … Software Development java java-netbeans | |
How to list all files in a folder including subfolder files. Software Development multithreading vb.net | |
Hello, I'll be as clear as I can in this one. OK, here is what is going on: I'm kind of trying to create a programming language of some sort using a Console application. I have got most commands to work, but what I haven't got is the ability to … Software Development vb.net | |
I can use the program fine without this code but I need to be able to take a line of text a file and read it into a variable. Here is the code causing the app crash: [CODE] string ReadLine() { getline(file, lineread); if (lineread.find_first_of("WSF_") != string::npos) { return lineread; … Software Development c++ | |
i am a beginner .can anyone just give me a code to make a txt file using c code,that will create txt file with name same as the value of int variable.. consider like if int x=10,then file name created will be 10.text if x is assigned 45 then it … Software Development c file-system | |
How do I insert commas to numbers so I can convert 1000 to 1,000 or 1000000 to 1,000,000. [CODE] FileSize = GetSize(MyFile).ToString & " KB" [/CODE] the output would be "6652 KB" i m trying to get output 6,652 KB Plz try to modify this code only. Software Development vb.net | |
I successfully implement in my application a listview that can get the values of selected items using a for loop [CODE] for (int i = 0; i < eventlv.Items.Count; i++) { if (eventlv.Items[i].Checked == true) [/CODE] and using this to get the specific value on my parameter [CODE]eventlv.FocusedItem.SubItems[0].Text[/CODE] Though, I … Software Development listview | |
im currently studying having a python program supply data to a website. to do this, i am working with a simple example. as a disclaimer to you guys: im quite new with webservers and websites so please bear with me. 1. the python program simply generates a random number continuously … | |
I've been teaching myself java using youtube videos of Starnford Engineering Everywhere. So far its been good, till the code started getting complicated and i got stuck. I need advice on how best to learn java. Software Development engineering java | |
How can I loop through a particular column of a datagridview? For example, I have three tables and I only need to get the selected items of the first column. I'll use for loop, right? Software Development | |
Guys, need help in autofill in my textbox, and the data is coming from the database, please tell me how will i do it. need help pleasee. thank you in advance. Software Development vb.net | |
I have only been diving into the C# language for roughly 3 days. I have alot of background with computers but never in a programming language. I am attempting to gain a foothold in C# by playing with it to learn a little about how it works before returning to … Software Development c# | |
i wrote this a couple of years ago when i was just starting to program. i didnt know any professional programmers and wanted to learn, so just experimented with the language. maybe it will give you an insight into how people program for fun. feel free to add to it, … | |
I just learned about the AtomicInteger a few days ago. Didn't realize it existed before. I haven't tried it yet. I used to simply write my own MutableInteger class. Integer has no "set" method. AtomicInteger does, so I imagine that it can now replace my MutableInteger class. My question is … Software Development java | |
Create a file that contains your favorite movie quote. Use a text editor such as Notepad and save the file as Quote.txt. Copy the file contents and paste them into a word-processing program such as Word. Save the file as Quote.doc. Write an application that displays the sizes of the … Software Development file-system | |
For a homework assignment I need to write a function that computes the average value of an array of floating-point data: double average(double* a, int a_size) In the function, use a pointer variable, and not an integer index, to traverse the array elements. The code below is what I have … Software Development c++ | |
Hi, I have a problem with filling a form dynamically. I have a form to which I add labels and textboxes. They are dimensioned globally as Label[] newlbls = new Label[30]; TextBox[] newtxts = new TextBox[30]; The first time I add controls there are four labels required. Everything works fine, … Software Development | |
I read some articles with regards on watermarks in windows app, but I found it to be quite complicated. What is the best way to implement watermark in textboxes? Software Development | |
Hey all, I am trying to use a numeric up down object. But the problem is that I need the output to be an int since I need to feed the value as an argument for an int. Example: [CODE]public void ExampleMethod(int lala) { //stuff } ExampleMethod(numericUpDown1.Value);[/CODE] By the way, … Software Development | |
I am currently building a program where the user inputs up to 1000 numbers (-1000 to indicate the end of input), and a number of equations are to be applied. However I have encountered a problem with the "for loop" in case 1. The variables initialized and modified within the … Software Development java | |
I'm having difficulty to implement a select query for my database using datagridview to bind to and textbox for searching a particular value in my table. I have this stored procedure [CODE]CREATE PROCEDURE usp_searchvisitor @keyword nvarchar(20) AS SELECT * FROM tblVisitor WHERE lastName = @keyword OR firstName = @keyword OR … Software Development dataset |
The End.