132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for s.tay

Hi, I am required to convert an Array Type DOUBLE to INT, for ease of plotting a graph. Fairly new to programming and unsure how to go about this. Any ideas appreciated

Software Development c++
Member Avatar for NathanOliver
0
453
Member Avatar for oscargrower11

I've made a simple function that takes a vector as an argument. If the vector is empty, it throws a domain_error (I've included stdexcept). I'm feeding it an empty vector from the main loop just to learn try...catch statements and when it catches the error, it's supposed to print something …

Software Development c++
Member Avatar for oscargrower11
0
166
Member Avatar for kylelendo

Hii friends Well I want to check if an exe file is corrupt without double clicking it....there mist be some way to do this.. can I write a code in vb ..??

Software Development vb.net
Member Avatar for Reverend Jim
0
140
Member Avatar for elkowalski

hi guys i am doing an applet that reads information from a website, stores it and uses it to graph the data and displays it in a very friendly way. it works perfectly fine in the viewer when i run it in eclipse but as soon as i try to …

Software Development html-css java web-browser
Member Avatar for elkowalski
0
535
Member Avatar for arunkumars

Hi, Am trying to use pointers on structures in c#. A separate class file. (the class file contains only strucutres, and the class has been removed. [code] [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct strEmployee : INotifyPropertyChanged { [MarshalAs(UnmanagedType.Struct)] int _EmpNo; public int EmpNo { get { return _EmpNo; } set …

Software Development
Member Avatar for sknake
0
358
Member Avatar for transplantedNYr

Now this question is being written in Scala, but Scala is Java compatible. I will translate the java code into Scala. // Write a recursive function "upto" // that takes two Int parameters "start" and "end" and produces a "List[Int]" // that counts DOWN from "start" to "end" (inclusive at …

Software Development java
Member Avatar for transplantedNYr
0
198
Member Avatar for TurkAlush

Hey I had made a chatbox, where if it don't know to the question, it just spit random sentence that don't make sense, but i don't how to make it read the question and se if it has a answer for it, and if it don't have a answer it …

Software Development
Member Avatar for lolafuertes
0
128
Member Avatar for ninjatalon

Is there a way to change the ftp password for a certain user programmatically?

Software Development vb.net
Member Avatar for lolafuertes
0
103
Member Avatar for Superandomness

I have a string that has a ton of random characters (pulled from a webpage). I want to pull all of the numbers, commas, hyphens, periods, and percentages from the page and put them into a text file. I'm new to C++ so I'm not sure how I'd go about …

Software Development c++
Member Avatar for Superandomness
0
229
Member Avatar for hughesadam_87

Hey everyone, I've been using python quite a bit to develop scientific applications. As of late, the Enthought Tool Suite is proving to be one of the handiest set of development tools out there. One question I have is, with commercial software, I often see the ability to plugin output …

Software Development python
Member Avatar for hughesadam_87
0
178
Member Avatar for lbgladson

I have an assignment to make a program for Time Entry. I am trying to get it where the Get payment button is disabled when the program first executes and then enables once I have submitted hours for five days. Below is the code I have so far and any …

Software Development vb.net
Member Avatar for NetJunkie
0
119
Member Avatar for us0343

hi gyz, i've got my first Assignment of java. first i do coding plz take a look. : /* The HelloWorldApp class implements an application that simply displays "Hello World!" to the standard output. */ public class HelloWorldApp{ public static void main(string[]args){ //Display the string.No global main System.out.println("Hello World!"); } …

Software Development java
Member Avatar for us0343
0
179
Member Avatar for niall86

Hi, im looking for some advice/guidance with regard to visual basic. Im and final year engineering student and my project requires me to make a graphical user inter phase to teach aerodynamics. I need to find out how to link the programme i design through VB with excel. Then the …

Software Development engineering visual-basic
Member Avatar for mb01a
0
212
Member Avatar for Labdabeta

How do I do 2D opengl? I need to be able to put stuff up on the screen so that it is not rendered in three dimensions, and I need the 3d stuff to still be 3d behind it.

Software Development c++ opengl
Member Avatar for Labdabeta
0
152
Member Avatar for crazins

Hi, I have to do program that uses a for loop to traverse a linked list. I have 99% of the program done and ready to go but our professor wanted us to use a specific loop which is the loop on line 31. I don't understand what b is …

Software Development java linked-list
Member Avatar for crazins
0
327
Member Avatar for kytro360

I have a for loop that loops with a listbox. For each item in the listbox I want to perform a httpwebrequest. My loop is doing the first item then occasionally just iterates down the list not doing the httpwebrequest for the other items. Im not sure if theres not …

Software Development
Member Avatar for kytro360
0
729
Member Avatar for Anirudh Rb

How do I check whether the data members of two objects belonging to the same class are equal? Will the following code do or is it done in some other manner?? [CODE=C++] class Sample { int a; public: S(int x) { a = x; } int getA() { return a; …

Software Development c++
Member Avatar for Fbody
0
78
Member Avatar for johnnyboyslim

I am just trying to load a data file into an array and display it. I run it and nothing comes up on the screen. Are my arrays set the right way and set to be output the right way. Please let me know what I am missing. int main() …

Software Development c++
Member Avatar for metronomu
0
144
Member Avatar for dakaboguy

Hello all, I have a form with 24 textboxes incremented by a letter. example: txtDimVala1.text, txtDimValb1.text, txtDimValc1.text, etc. I created a code to check each textbox, but there must me a more efficient way to loop it. I have tried a few loops but I cant get them to work …

Software Development programming-construct vb.net
Member Avatar for dakaboguy
0
752
Member Avatar for gerard4143

I'm really new to C# so this may seem like a novice question..How does C# accomplished passing a reference to a object reference? I'm really trying to understand the underlying mechanisms and how it applies to the attached code with the comments - //what happens here? Do we pass a …

Software Development c c# c++
Member Avatar for Ketsuekiame
0
262
Member Avatar for coding101

Is there some sort of script I can write that logs usernames every time someone (other than owner) "cd's into my pub directory"? any ideas? thanks

Software Development shell-scripting
Member Avatar for thekashyap
0
156
Member Avatar for johnnyboyslim

I have a sample program that shows how to load data into an array but I need to change it to sort movie titles into columns for movie title, length,year, media type from a file named movies.dat It asks first from where to load...then loads in no particular order...then sorts …

Software Development c++ file-system
Member Avatar for metronomu
0
478
Member Avatar for Stefano Mtangoo

Hi, I know of two curl and libtorrent but I was just doing a study on what library/component/whatever you call it, is famous among download managers. I could not get information on FreeDownloadManager, Flashget, Multiget, DownloadThemAll et al. Would you help me find what libraries do these use, especially for …

Software Development c++
Member Avatar for Stefano Mtangoo
0
239
Member Avatar for werdna347

I require a survey c++ program. The requirements are that it must do the following: It must first the user what they would like to do: 1.Complete the survey and writing it to a file, averaging some results and then quiting 2.Read the survey results from the files (password protected) …

Software Development c++ ios
Member Avatar for Stefano Mtangoo
0
146
Member Avatar for gunjannigam

In my application, I have to draw 25 images of 700*500 pixels. I am trying to use ImageIO.read() method, which is called by creating another Thread. Its taking too much time to read images. I thought since i am calling the image read functions by creating another thread my another …

Software Development gui java
Member Avatar for mKorbel
0
866
Member Avatar for D.M.

Guys, I got a problem in File Handling.. I entered two words(My World)to be saved in a file but the file displays the first word only. Can you guys help me....

Software Development c
Member Avatar for abhishek25
0
123
Member Avatar for mb01a

I found an old thread that had never been answered here - [url]http://www.daniweb.com/software-development/vbnet/threads/330981[/url] Basically, the guy was asking how to retrieve database names and/or table names from a MySql database with vb.net. Here's my answer to that. Yes, I still use vb6 because vb.net is not much better and I …

Software Development mysql sql visual-basic
0
974
Member Avatar for robdb

I have to write an application in which a text file is read and stored in a vector of strings [CODE]vector<string> text;[/CODE] After that I have to compare each character of text loaded from a file with an array of char with default content [CODE]char ARRAY[21] = {... ... ...}[/CODE] …

Software Development c c# c++
Member Avatar for robdb
0
2K
Member Avatar for singhSP

Front End : VB 2008 Back End : Access 2003 Example of Database Record: [B]cCode | Name | Company | Contact [/B] 20091 | ABC | XYZ | 123 20101 | AB1 | XYZ1 | 456 20102 | AB1 | XY123 | 987 I am using year for making a …

Software Development vb.net
Member Avatar for singhSP
0
237
Member Avatar for toebs

Hi i am trying to get the values from a comma separated .dat file into an array in C. The values in the .dat file only consists of 1 and -1. I have been trying for hours now, so i decided to ask for help. Here is an example from …

Software Development c
Member Avatar for toebs
0
239
Member Avatar for cse.avinash

In C, array is sequence of variables. int arr[3]; if arr is 2000 then arr+1 is 2000+sizeof(int). lly arr+2 is 2000+2*sizeof(int). in that way array elements are accessed but in JAVA array elements are dynamically allocated using new. then how all others variables are accessed, means I want to ask …

Software Development java
Member Avatar for JamesCherrill
0
163
Member Avatar for TurkAlush

Hey I have been trying to make a chatmachine, and i wanted to make it play music when the user asked for it, but the problem is how can i make the music stop again? Without closing the player, but by closing with the program.. I used this code [CODE]System.Diagnostics.Process.Start("C:Moves …

Software Development c#
Member Avatar for nick.crane
0
867
Member Avatar for kittu.kishore

I have a doubt regarding [B]stack[/B] in c functions... Here is a program which shows an example... [CODE] #include<stdio.h> int display(); main() { int m=display(); printf("m is : %d\n",m); } int display() { printf("1234\n"); return; } [/CODE] outputs: 1234 m is : 5 [CODE] #include<stdio.h> int display(); main() { int …

Software Development c display
Member Avatar for N1GHTS
0
223
Member Avatar for ts23944

im tried to make a vb creator to create account but how to show the captcha in my form? please teach me how to do it. Thank you.

Software Development vb.net
Member Avatar for Pgmer
0
55
Member Avatar for batlou

I am trying to build a WebPart using C# that passes the selected value from one WebPart to another WebPart. To do this I am using a Public interface to get the values. When I try to compile the code it returns the following error... "A namespace cannot directly contain …

Software Development sharepoint
Member Avatar for Acasia
0
445
Member Avatar for VatooVatoo

Hi folks, I am working on a Windows Form project that all things in it are dynamically created during run time. So all controls are created during running application and also events are assigned to controls. Also I have to mention all controls are user defined controls. All event functions …

Software Development
Member Avatar for VatooVatoo
0
149
Member Avatar for cse.avinash

hey I am having confusion in the output of a simple program. here is the code:- [CODE] int main(void) { printf("%d %d",sizeof('A'),sizeof("A")); return 0; } [/CODE] output on my compiler(gcc):- 4 2. I thought sizeof("A") is considered as string ending with '\0' so there are two characters i.e,2 bytes a …

Software Development c
Member Avatar for gerard4143
0
97
Member Avatar for NyQii

I have a code which works, but I need a main method. can anyone please tel me where I can put the main method, I'm still struggling with that and maybe someone can give me pointers for the future. Thanks [CODE]public class BinaryTree { BinaryTree left; BinaryTree right; int value; …

Software Development java
Member Avatar for NyQii
0
136
Member Avatar for AshfaqueIW

Hi all, I am receiving the keyboard read/Terminate command from the client(PC) to the Board(Windows CE) through Serial Interface. I need to terminate the character reading from Keyboard if i receive Terminate Command. Termination/Continuation is been handled inside a thread. But whenever Terminate Command comes Character reads are continuing till …

Software Development c++
Member Avatar for Ketsuekiame
0
112
Member Avatar for jayyzhao

Hi Guys, I have a problem which in java i have a method called turn() is there a way to count the amount of times it gets called upon, ultimately counting the amount of turns?

Software Development java
Member Avatar for hszforu
0
432
Member Avatar for Cap'nKirk

Hi, I am working on a small application that creates an RSS feed from raw XML data. While the application itself works as it should, I am trying to add images to each item in the feed, as for instance a Flickr feed. The problem I am getting is that …

Software Development
Member Avatar for Cap'nKirk
0
144
Member Avatar for Shizuo

for some reason my code is resulting to syntax error INSERT INTO and its pointing to executenonquery line [code] try { OleDbCommand cmd = new OleDbCommand(String.Concat("INSERT INTO CHILDREN2 WHERE (Emp_ID , Child_Name, Age ) VALUES ('", Convert.ToInt32(CaptionText.ToString()), "','", txtName.Text, "','", txtAge, ")"), clsData.con); clsData.con.Close(); clsData.con.Open(); cmd.ExecuteNonQuery(); cmd.Dispose(); clsData.con.Close(); } catch …

Software Development
Member Avatar for arunkumars
0
93
Member Avatar for chezkaty

Hi can you pls help me how this program containing a function that accepts a 5-digit numbers & returns the digit in reverse. like: Enter 5-digit number: 13569 Reversed: 96531 thankyou ;)

Software Development c
Member Avatar for Narue
0
159
Member Avatar for codepenman

Hi Folks, I'm working on a c# windows form application, that builds code on the fly and makes a new exe progamme with ICodeCompiler. My problem is that; i can bind a string variable into source code to build as below; [I].. ..[/I] [I]sourcecode + =" string myvar='hello world'; ";[/I] …

Software Development
Member Avatar for codepenman
0
88
Member Avatar for hszforu

i have two classes:parentbox and chiildbox [CODE]class parentbox { int width; int height; int length; }[/CODE] [CODE]class chiildbox { public static void main(String args[]) { parentbox babybox1= new parentbox(); parentbox babybox2=babybox1; babybox1.height=10; babybox1.length=19; babybox1.width=2; int vol; System.out.println("the vol of babybox1 is"+(babybox1.height*babybox1.length*babybox1.width)); //parentbox babybox2=babybox1; System.out.println("Now babybox2 contains:"); System.out.println("babybox2.height=",+babybox2.height); System.out.println("babybox2.length=",+babybox2.length); System.out.println("babybox2.width=",+babybox2.width); } …

Software Development java
Member Avatar for hszforu
0
259
Member Avatar for Zssffssz

Sorry about all the posts; found time and have found time to do programing. Ok I want a usual console application to make a Win GUI window saying thanks at the end of the console app how would I do this eg: [CODE]#include whatever Using namespase std; // what does …

Software Development c++ gui
Member Avatar for Ancient Dragon
0
151
Member Avatar for jonkim9483

hey guys, new to daniweb here. This is my first assignment in my first C class at school. I'm having some trouble getting the program to work, was wondering if you folks could give me some tips. I believe I have most of the code down, I think my issue …

Software Development c
Member Avatar for D.M.
0
373
Member Avatar for chiiqui

I've already read the stickied about "STarting java" but the thing is I am not starting java, soo my question is, what's the best book to learn core java and Java EE? and what's their difference and it would be good if you will site the books you've read regarding …

Software Development java
Member Avatar for hszforu
0
358
Member Avatar for kiko11

[CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package schedule; /** * * @author Kix */ import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.sql.*; public class Fourth extends JFrame { static JLabel lblFaccode,lblFaculty,lblSpace,lblSpace1; static JButton btnExit; static JTable tblOne; …

Software Development java java-swing
Member Avatar for Taywin
0
172
Member Avatar for vaironl

Hello forum vaironl here, I'm having a little bit of trouble with a school assignment which is storing up to 10 names and printing them out in the command box or just printing out the names if the user presses -1. For some reason my loop doesn't wait for the …

Software Development java java-swing
Member Avatar for stevanity
0
2K

The End.