132,726 Archived Topics
Remove Filter ![]() | |
I dont know whts wrong with the code... its in java..the error msg is shown while compilation i.e. class, interface , or enum exception.. plzz can anyone help me with this.. [CODE]import java.io.*; import java.security.*; import java.awt.*; import java.awt.event.*; import java.applet.*; public final class DiffieHellman extends java.applet.Applet implements ActionListener { … Software Development java | |
please help me. when i add control or make changes in code at runtime these changes does not updated to my project. Software Development vb.net | |
Hi, How to set the name for thread in linux using c, c++. Software Development c++ | |
Hi I have Made Two Project in one Solution of microsoft visual studio 2010 One project is a windows service type another is windows Form Application The windows form application project can interact with the windows Service Project .But Now I am stuck as I donot know how to combine … Software Development microsoft visual-studio | |
![]() | hey all, I know this might seem like a basic question but we haven't really been taught it at university and I was getting curious. Once you've created your program and have all your relevant java classes/package and it has been compiled where do you find the .exe and how … ![]() |
I have 2 forms right now Form1 and Form2 the default setting start up is Form2. Inside Form 2 there was a button that will release the Form1 button using Form1.Show(). I have now the problem. What I want to do now is to close the Form2 without closing the … Software Development vb.net visual-basic | |
hi to all I have a dos command that can backup system state in winserver2008,it write it in cmd when i run it and say y to its question but I want to have this command in bat file for a scheduled task that runs daily,I create this task and … Software Development | |
[code=java] /*This is a small GUI application that I made for personal use. It allows you to enter the colors of the bands on a 4-band fixed resistor to calculate the resistance (and tolerance) of that particular resistor. Eventually, I will create a version that deals with 5-band and 6-band … Software Development gui java java-swing | |
hi... im not able to update data in vb.net....here is my code: cmd = New SqlCommand("update tbl_Account_charts set AccountTypeid='" & cmbAccountType.Text & "',AccountNumber='" & TxtAccountNumber.Text & "',AccountName='" & txtaccountname.Text & "',Status='" & chbmark & "',UpdateDate='" & sys_date & "' where AccountTypeid=" & AccountID, con) cmd.ExecuteNonQuery() Software Development vb.net | |
hi, I'v built a c# application in visual studio 2010 premium with SQL server 2008 database using crystal reports. my project is not a web project. i want to install my application on another computer and i dont know what i need to do. my project has my computer connection … Software Development visual-studio | |
hi all, I am working with vb.net 2010 SQL express 2008 and ReportViewer. I have created a form that a user can add, edit and delete data which is all stored in an SQL db. I am printing out reports for the user with ReportViewer. The issue I am encountering … Software Development open-source pay-per-click vb.net visual-studio | |
Hey,i am working on a module in vb 10..i have to retrive data from the database between two dates...i have used the following code but not able to get ny output,,nt even an error [code] Imports System.Data.OleDb Public Class Form4 Dim con As OleDbConnection Dim cmd As OleDbCommand Dim dr … Software Development dataset open-source vb.net | |
I'm having issues with a rather simple program that prints a string. I have two .cpp files, main and login, with login.h header file. The problem at hand is that when I want to print the string in main.cpp that was entered from login.cpp - nothing is shown in which … Software Development c++ | |
Can any one give a useful link to learn oracle report server and also how to connect it with java application.... Thank you. Require second question answer.... | |
So i haven't figured out what the point of constructors are i am just learning C++ and am seriously having trouble with it, i do not get why...well i kind of get default constructors because it initializes the variables but what about a constructor with arguments and the member function | |
Hey guys i am new to c++ and i was practicing read/write specific line from an ini file. My File [CODE] // browser ini file // options resolution 100 300 fullscreen 1 account "silentcoder" [/CODE] My Code [Prints out the whole configuration file since my code said to do so] … Software Development c c# c++ file-system | |
where can i participate in C projects ?? Software Development c | |
I have to accept three numbers from the user using cin into 3 variables. If the user enters non integers,I must reject it and ask for a new one instead of that. So,here is my attempt: [CODE]int a,b,c; do{ cin.clear(); while(cin.get()!='\n');//remove failure bits,clear stream if wrong input cin>>a; } while(!cin);//while … Software Development c++ | |
Hey all, I'm looking to upgrade my compiler and I was wondering if there is a compiler that is fully c++0x supported yet. If not is there one that is mostly supported? I am currently using MSVC++ 2005 express. I would like to stay in the MSVC++ family since I … Software Development c++ | |
Like the title says, I have about 10-15 rows in a local dataset. I need to take any one row, and make it the "default" (on a button click), meaning to take that row and stick it right at the top so it comes up first. I've been up and … | |
Hey, is there a function/call in c in windows to find the place from where your C-Development Environment is running. For example, (in case of Turbo-c), MOSTLY it is C:\TC\bin. Can i find this from within the program and output to a string or something ??? Software Development c | |
Hello, I am searching for codes that could find the min and max(or first and last values) from a column in a datatable. I have stored the datatable with four column values i want to find the min and max values from the third column(index 2) and display it to … Software Development | |
[code]"insert into invoice(sno,entrydate,invoicedate,companyname,party,station,purchase,avail,sale) " + values("+Integer.getInteger(head.getSerial().getText())+",to_date('"+head.getEntryDate().getText()+ "','dd/mm/yyyy')"+",to_date('"+head.getInvoicedate().getText()+ "','dd/mm/yyyy')"+",'"+head.getCompany().getSelectedItem()+"'"+"'"+head.getParty().getSelectedItem()+"','"+head.getStation().getSelectedItem()+"',"+Integer.getInteger(head.getPurchase().getText())+",1,"+Integer.getInteger(head.getSale().getText())+")"); [/code] SNO NOT NULL NUMBER(38) ENTRYDATE DATE INVOICEDATE DATE COMPANYNAME VARCHAR2(50) PARTY VARCHAR2(50) STATION VARCHAR2(50) PURCHASE NUMBER(10,2) AVAIL NUMBER(1) SALE NUMBER(10,2) Whats wrong in this query.... I am getting sqlException .... | |
Hello. I've started to learn assembly this week, and I found a example that I couldn't understand, so, if anyone could explain it to me, I would appreciate. [CODE]int increment(int x) { x = x + 1; return(x); } [/CODE] and this got translated to: [CODE]pushl %ebp movl %esp, %ebp … Software Development assembly | |
hello, Am new to Java and i just installed jdk, but i failed to set the paths correctly since am missing some paths am supposed to edit as the procedure says, any one having an idea pliz help me, thanx Software Development java | |
[CODE]// Find prime numbers between 2 and 100. using System; class Prime { static void Main() { int i, j; bool isprime; for(i=2; i < 100; i++) { isprime = true; // See if the number is evenly divisible. for(j=2; j <= i/j; j++) // If i is evenly divisible, … Software Development | |
Hello everbody Simply put; [I]rand() is driving me nuts[/I]. I've been trying to get my teeth into Dev c++ (v. 4.9.9.2) for the first time and couldn't find anything anywhere which helped me anymore. Nearly all this code is IDE generated or copied from examples - I'm just trying to … | |
Hi please find this simple program, not sure why realloc is not working and its causing memory leak. But if calloc and malloc is used with little changes it works fine. [CODE]#include "string.h" #include "stdio.h" #include "stdlib.h" char *mystrcat(char*, char*); void main(void){ char str1[] = "quick brown fox"; char str2[] … Software Development c | |
A [B][I][U]concept[/U][/I][/B]:icon_rolleyes: has grown, may be it as wrong or right, that in Java [COLOR="Green"]if we do not take the help of [I]thread class[/I] or [I]runnable interface[/I] at all then also several threads get executed there[/COLOR]; If so how it happens with other languages where there is no concept of … Software Development java multithreading | |
[code]#include <iostream> #include <cassert>//what is the use of this??? #include <algorithm>//how to convert in turbo c++ and what is the use this??? #include <vector>//is this array in turbo c++??? using namespace std; int main() { bool result;// what is the use of this?? string s("abcde"); string s2("aeiou"); vector<char> vector1(s.begin(), s.end());// … | |
Hi, I have created a program to play videos in VB6. But it cant play FLV files. Can anyone please suggest how to play FLV files in VB6. Software Development visual-basic | |
i want to write a program that will prompt the user for the type of conversion he wants: “binary to decimal” or “decimal to binary” -If he chooses “binary to decimal”, the program should prompt the user for 8 bits (values only 0 or 1) and then display the number … Software Development c | |
hello every one , i am working on this code for a week , but i have a problem that every time i try to debug it i receive many errors i can't understand them here is my code [CODE]/* Simple program to compute the two possible roots of a … Software Development c c# c++ file-stream storage visual-studio | |
I am trying to read a custom file extension When reading a string from the file it output the correct string, however when I attempt to read an int it does not output the correct int. Here is my code: [CODE] import java.awt.event.*; import java.awt.*; import java.io.BufferedReader; import java.io.FileInputStream; import … Software Development file-stream file-system java java-swing | |
I am trying to write a few functions that work when compiling for windows AND linux, and I can't seem to find the linux equivilent of a few windows functions. If it's of any relavance I intend to use GCC to compile for linux and VC++ to compile for Windows. … Software Development c++ | |
Hello there, I installed [URL="http://www.activestate.com/activeperl"]ActivePerl[/URL] (I kept all default settings) and also downloaded [URL="http://search.cpan.org/~srezic/Tk-804.028/"]Tk 804.028[/URL] and extracted it to C:\Tk-804.029. I'm wondering why I keep on receiving this error whenever I run this simple script on my command prompt window (I'm using Windows XP Pro). [QUOTE]Can’t locate Tk.pm in @INC … Software Development perl ![]() | |
I have this hw problem, but I can't figure out what the problem is. If I run this code I get an assertion error. Also if i run without commenting out the return outStream line, it won't compile saying I'm converting an istream to ostream. Any clues? [CODE]#include <iostream> #include … Software Development c++ | |
I am trying to open multiple ports in a computer with PYTHON Sockets. Here is my code.. [CODE]import socket import thread from threading import * BUFSIZ = 1024 clientsock = socket.socket() def handler(clientsock,addr): while 1: data = clientsock.recv(BUFSIZ) if not data: break def function(): for n in range(1,5): var = … Software Development python | |
Next quiz is posted as code snippet. It is quite interesting code. What it does? And where [B]in your system[/B] you already have this code? (in little different format) (If you have not follow tip in page [url]http://python.org/download/[/url]) Software Development python | |
Hello, i'm roughly new to c# and i was wondering how to Have my program make a decision based on a percentage. For example there's a 56% chance that a sprite on a map will move left and a 54% chance it will move right. Then there's another sprite that … Software Development | |
Guys before i post my problem , lemme say that, i HAVE gone through the previous blogs/forums on daniweb, so please dont get annoyed with this topic again. But none of them answer my question My question is, "How do you write a structure to a file and retrieve data … Software Development c data-structure file-system | |
I made myself a little autoclicker in c++, but after it's done, I want the console window to come up again, so the user can decide wether to do it again, or end the program. How do I do that? Software Development c++ | |
So.. I want information on drawing on top of a DirectX game, like how Steam does it. I would consider naively trying to obtain a "device context" of the client area of the game's window, and then try some 2D drawing functions. D: I don't know if that's going to … Software Development c++ | |
Hello guys! i really need your help. In my program, I am reading the contents of the file. File looks like this: [CODE] 1 ART ACE APE 2 BAT BOY 3 CAT COP CUP CAP CUT [/CODE] I want to store the words in an array. one array per line. … Software Development c file-system | |
Hello everyone, I have some code to sort a random array of integers, although im getting an error whenever I try to run the method. It prints the input and then I get an error. The code is below and the error is below that. If anyone could help me … | |
Hi guys, Im starting a new project this week for my computing course and to be honest - i didnt like my last one as it had many forms which i thought was quite tacky. So i had a thought, how can i use for example, 1 or 2 forms … Software Development vb.net web-browser | |
Hey folks. I currently have the below code:- [CODE] int double weeksInYear = 52; int double num; while (num <= weeksInYear) Console.WriteLine("Week " + num); num += 2; [/CODE] Now when my code runs, it produces approximately 26 lines of text as below:- Week 1 Week 3 Week 5 etc..... … Software Development c# | |
hi just wanna ask how to transfer a file from a peer-to-peer wired connection a character input from a node to another node. this is my simple code: [CODE]#include <stdio.h> #include <stdlib.h> #include <conio.h> int main() { char x; printf("Enter a character: "); scanf("%c", &x); getche(); }[/CODE] when the 1st … Software Development c peer-to-peer | |
[CODE]tomashqooo@Tomashqooo:~$ python Python/tcrack.py File "Python/tcrack.py", line 86 ostring2 = ostring2' -c 'station' mon0' ^ SyntaxError: invalid syntax[/CODE] That`s my error message when ostring2 and station are string variabiles and ' -c ' and ' mon0' is text. Please help me what`s the problem here??? Software Development python | |
Hi all, I'm trying to get an octal number from console and store it in an int variable using scanf. Here is my code. [CODE] int n; scanf("%i", &n); printf("\nEntered number in dec = %d", n); printf("\nEntered number in hex = %x", n); printf("\nEntered number in oct = %o", n); … Software Development c |
The End.