43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Iamthedude

I am attempting to get an input that can have varied types, float, int and a string are the three, I'm using sscanf to analyze the input from a buffer but for some reason I am getting memory access violations and I don't really know why. Main program: [ICODE] #include …

Software Development c
Member Avatar for Iamthedude
0
121
Member Avatar for Lukezzz

Hi, I wonder how it would be possible to pass a String to the clipboard. If you normally select a textstring in for example WordPad and press Ctrl-C, you copy this string to the Memory/Clipboard so you can Ctrl-V that text somewhere else. I wonder how that would be possible …

Software Development c++
Member Avatar for jonsca
0
114
Member Avatar for Soileau

I am getting a seg fault when I try to run this code. The compiler is also giving me odd warnings about how an integer constant is too long for "long" type. Here is the code: Declarations [CODE] #include<stdio.h> #include<string.h> #include<stdlib.h> void printstates(){ printf("Enter the number for the corresponding state:\n\ …

Software Development c
Member Avatar for Soileau
0
134
Member Avatar for GregPeters

Ok this is the problem... Basically when someone enters a figure, say £100, I want to remove the £ sound before doing some processing. at the moment I have this: [CODE] program remove_pound; uses crt, sysutils; var s: string; p: char; begin P := chr(156); Writeln('Please enter an amount of …

Software Development pascal
Member Avatar for GregPeters
0
2K
Member Avatar for A_Dubbs

I am a beginner programmer who is moving on from the basics of python to wxPython. I have the book [I]wxPython in Actio[/I]n and am using it as a reference while I make GUI programs for fun (still haven't sat down and read through the book, will someday). I am …

Software Development gui image python
Member Avatar for Ene Uran
0
1K
Member Avatar for Ap0ca1ypse

Hello, I can pull 3 tables data into my program and read from all of them, i can update all 3 datasets but when it comes to updating the actual database i can only send the updates from the last dataset. [CODE] Imports System.Data Dim con As New OleDb.OleDbConnection Dim …

Software Development dataset open-source vb.net
Member Avatar for Ap0ca1ypse
0
110
Member Avatar for Nicky4815

Hi, I'm working on a dissertation based around graph visualization. I need to make a GUI for my program but I am having trouble getting the JPanels to display what is required. My code so far: [code] //Class to create the GUI import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.Component; import javax.swing.JFrame; …

Software Development gui java java-swing
Member Avatar for mr.george
0
135
Member Avatar for Iamthedude

I'm not even certain if I am wording my title correctly for this question but this is my predicament. I'm trying to get input from the user, it could possibly be a float value like so ###.## or it could be a character value like DNA, I/P, or F, or …

Software Development c++
Member Avatar for Iamthedude
0
119
Member Avatar for freeseif

Hi programmers, I want read line by line a Unicode (UTF-8) text file created by Notepad, i don't want display the Unicode string in the screen, i want just read and compare the strings!. This code read ANSI file line by line, and compare the strings [B]What i want[/B] Read …

Software Development c engineering file-system
Member Avatar for Ancient Dragon
2
2K
Member Avatar for BevoX

Greetings! So my question is: Is it possible to create your own data type? Not a class, or a structure, that builds from predefined C++ types, but your very own. For example a 128bit integer type, or a very very long floating point data type, or a binary number type …

Software Development c++ data-structure
Member Avatar for maf5693
0
4K
Member Avatar for crazyboy

Hi all, right now i am going to make my own application like remote desktop sharing. I search a lot on google. mostly suggetion is like, USE microsoft RDP Active X control. I used it and its working properly. But after all it's through inbuilt RDP control. I wanted to …

Software Development
Member Avatar for dkhil
-1
459
Member Avatar for gerti13

Hello. I've spent many hours on this code and I cannot figure out why when I either declare "kot" - which will be in the code below or when I call blob_detect() which uses included .cpp with a "new" call (so to speak) I get an error allocating memory. If …

Software Development c++ storage visual-studio
Member Avatar for jonsca
0
150
Member Avatar for chromatinpt

Hi all, I need to store some data in a txt file from a textbox.text. I have try this and works: [code] FileInfo t = new FileInfo("data.txt"); StreamWriter Txt =t.CreateText(); Txt.WriteLine(textbox1.text); Txt.Close(); [/code] But.... How can I create multiple files without delete the older one, e.g., Gives the name to …

Software Development
Member Avatar for chromatinpt
1
178
Member Avatar for dh_30

hi', could help me how to solv this problem: Write a program that reads a list of names and telephone numbers from a text file and inserts them into an AVL tree. Once the tree has been built, present the user with a menu that allows him or her to …

Software Development c++
Member Avatar for Salem
-5
173
Member Avatar for Pilot Boy

Well hello! I'm having problem with reading data from notepad.. So here is what I'm trying to do. etc.. I have notepad file "Doc" and in it there are few things: Level= 5 Cash= 100 And what I want from my program to do is to read Level and Cash …

Software Development c c# c++
Member Avatar for Pilot Boy
0
405
Member Avatar for FatimaRizwan

[CODE]// basic file operations #include <iostream> #include <fstream> #include <string> using namespace std; int main () { char* pch; string line; fstream myfile; myfile.open ("Ahoo.txt"); if (myfile.is_open()) { while (!myfile.eof()) { getline (myfile,line); cout<<line<<endl; pch = strtok (line," ,.-"); while (pch != NULL) { cout<<pch; pch = strtok (NULL, " …

Software Development c++
Member Avatar for jonsca
0
447
Member Avatar for nathanurag

[CODE] #include<stdio.h> void reverse(char s[], int i); main() { int i,c; char s[1000]; for(i=0;(c=getchar())!='\n';i++) { s[i]=c; c=getchar(); } void reverse(s,i); [B] //getting error in this line[/B] return 0; } void reverse(char input[], int n) { int i; for(i=n;i>=0;--i) { printf("%c", input[i]); } } [/CODE] i am writing a program to …

Software Development c
Member Avatar for nathanurag
0
315
Member Avatar for GregPeters

Hi all, I have been creating a program that checks the length of an inputted value. The value inputted needs to be between two specific bounds, e.g. 10 < length < 120. However, I want to ensure that an individual cannot enter text, or a value which is not between …

Software Development pascal
Member Avatar for FlamingClaw
0
122
Member Avatar for gunbuster363

The situation is this: I use opensuse, which bundled with a python 2.4.X version, I installed it. Then I think python 2.6.4 is better, so I installed python 2.6.4 and all the later package I installed, were with python 2.6.4. In my project, I need a module named tkinter (python-tk) …

Software Development python tkinter
Member Avatar for gunbuster363
0
5K
Member Avatar for thehivetyrant

Hi there, using TKinter Is it possible to change a buttons text after you've clicked it? So if a button has text of "hi" and when clicked has text of "Goodbye"? [icode] button_switch = True def click(): global button_switch if button_switch: button_switch = False else: button_switch = True [/icode] This …

Software Development python tkinter
Member Avatar for thehivetyrant
0
12K
Member Avatar for Ap0ca1ypse

Hello all, I am creating a project for myself to practice Database connectivity, updating, deleting and adding items. I am having an issue updating one of the tables i have added, within a table there is a column called Today's Date which will contain the date the last time the …

Software Development dataset open-source vb.net
Member Avatar for Ap0ca1ypse
0
127
Member Avatar for Avner .H.

Hello everyone! I want to use bash from python, however the os.system([I]command[/I]) seems to act only on one command at a time. I want to use complete commands, also containing control flow statements, like If and While, and to call them from python. something like this code in bash: T1="foo" …

Software Development python shell-scripting
Member Avatar for sneekula
0
862
Member Avatar for Grovespaz

Hi all, a friend told me to take a look at this board whenever I got in trouble coding. At the moment I'm studying a game, disassembling it, mapping out parts of the scripting engine, etc. I have a proxy dll which I use to hook certain functions (d3d8.dll), and …

Software Development c++
Member Avatar for Grovespaz
0
69
Member Avatar for NatalyC

Hello everyone I have a problem using a "search" statement in mysql, using c#, here is my code: [CODE] private void btnBuscar_Click(object sender, EventArgs e) { SearchBook(txtBuscar.Text); } private void SearchBook(string bookID) { String connStr = "Server=localhost; Port=3306; Database=biblioteca;Uid=root;Pwd= -----;"; DataTable dt = new DataTable(); const string query = "SELECT …

Software Development c# mysql seo sql
Member Avatar for NatalyC
0
193
Member Avatar for Adami

I wrote an Ansi C# code that finds the smallest number in a several unknown function calls. You can see the code, it is very clear. just need help with how to make the program to not ignore always the first number in the list of each argument list... and …

Software Development c
Member Avatar for Adami
0
121
Member Avatar for Lukezzz

I wonder how the try, catch, finally function works. I know how try and catch works. What I wonder is if the try block is successful then I know that the catch block doesn´t execute. Is it true that the finally block doesn´t execute either ? [code] try { } …

Software Development c++
Member Avatar for Lukezzz
0
133
Member Avatar for chaienbungbu

As I see in some code having something like "[b]ClassName[u]&[/u][/b]". For example: [code] // this demo // check if a parameter passed to a member function is the object itself #include <iostream> using namespace std; class CDummy { public : int isitme ([b]CDummy[u]&[/u] param[/b]); }; int CDummy :: isitme ([b]CDummy[u]&[/u] …

Software Development c++
Member Avatar for jbennet
0
228
Member Avatar for Gonbe

Hello Daniweb, I'm trying to create a very simple shell for practicing purposes, but i'm a little bit puzzeled about the usage of execve, the function i use to execute a file. The code fragment underneath shows my usage: [CODE="C"] childPID = vfork(); if (childPID == 0) { execve(input.process, input.parameters, …

Software Development c
Member Avatar for gerard4143
0
273
Member Avatar for nathanurag

hi is there any way by which we can write a program that displays its own source code???????:?::-/

Software Development c
Member Avatar for Ancient Dragon
0
152
Member Avatar for GregPeters

Hi all. I have another problem. Basically I have a project where I need to create a number of folders in one go. This is the code I have: [CODE] program create_folders; uses crt, sysutils var value, name : string; i : integer; begin for i := 1 to 10 …

Software Development pascal
Member Avatar for finalist
0
196
Member Avatar for Nubie2001

Hello all together first of all sry for my bad english Well i got a problem with some of my application. First of all i had to write an application which can drag rooms from a source window to 4 destination windows. That works fine . But if i drag …

Software Development open-source os-x python
Member Avatar for Nubie2001
0
110
Member Avatar for Consus

so this is my first homework ever in Java so heres what I need to do: 1)a project named LetterCounterExample(done) 2)a main class for the project of the same name as the project (done) 3)a class called LetterCounter (done) with the following members: i. field of type char named letter …

Software Development java
Member Avatar for javaAddict
0
116
Member Avatar for makan007

'a' was not declared in this scope. I can't spot the error. Pls advise. [CODE] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; const int MAX = 10; void constructArray_2 (int*, int); int main () { srand (time (NULL)); constructArray_2 (a, MAX); } void constructArray_2 (int *a, int size) …

Software Development c++
Member Avatar for makan007
0
238
Member Avatar for adam291086

Hello i am new to java and playing around with some scripts. I have three java files [B]Main.java[/B] [CODE]package snake; import javax.swing.*; import java.awt.*; public class Main{ public static void main(String[] args) { new board(); } }[/CODE] [B]board.java[/B] [CODE]package snake; import javax.swing.*; import java.awt.*; public class board extends JPanel { …

Software Development java java-swing
Member Avatar for Stefano Mtangoo
0
162
Member Avatar for axn

cant figure out why summaryCounter wont increment?? [CODE] if (source == calculateButton) { int summaryCounter = 1; double payment = Double.parseDouble(paymentTextField.getText()); double rate = Double.parseDouble(rateTextField.getText()); int years = (Integer)yearsComboBox.getSelectedItem(); DecimalFormat currency = new DecimalFormat(" ##,##0.00"); double futureValue; String s; int i; futureValueListModel.clear(); System.out.printf("\n Investment Summary Option %d \n Monthly Payment%,10.2f\n …

Software Development java
Member Avatar for verruckt24
0
103
Member Avatar for ELBUF

My following question regards a problem I am having remembering python code. It has been about a year and a half since I last opened the shell or wrote any sort of code. I am attempting to rewrite the bullseye program that was seen in the Greater New York Programming …

Software Development dataset posting-games python
Member Avatar for ELBUF
0
5K
Member Avatar for jamesonh20

I have a windows form that starts at a designated size (not mazimized). I have a pictureBox1 control that zooms in & out. when I maximize my window and zoom in I need the pictureBox1 to return to it's original size upon clicking back to the original sized window. ANY …

Software Development
Member Avatar for jamesonh20
0
146
Member Avatar for sfurlow2

We have a programming project due in which we are supposed to create a boggle board. We are supposed to read in a file with the boggle dice (basically just sixteen lines of six random letters), then ask the user if they want to shake the board. If they say …

Software Development c++
Member Avatar for sfurlow2
0
596
Member Avatar for vlady

hello, pls, can anybody help? I try to print words which contains forbidden letters but counting without them and excluding the words which has the smallest number of letters. example: words = 'hello this is my test' forbidden = 'h, t, e' 1. hello this test -> these word contains …

Software Development python
Member Avatar for sneekula
0
124
Member Avatar for chaienbungbu

I read this code section from a tutorial, but I cannot understand it thoroughly. It is about Pointer & Class Pointer & Array Pointer. This is it: [code] // pointer to classes example #include <iostream> using namespace std; class CRectangle { private: int width, height; public: // prototype void set_values …

Software Development c++
Member Avatar for chaienbungbu
0
180
Member Avatar for khipasi

Hi, I am trying to write a program that will show the difference between two days. The end or ( to date) will be given(CONSTANT). But the from date must be entered in the edit box in the following format: YEAR, MONTH, DATE, HOURS,MIN,SEC. example 2009,01,22,12,32,02 I will be happy …

Software Development pascal
Member Avatar for finalist
0
161
Member Avatar for joehms22

I need a way to check what service a port is running in python, thanks for the help in advance.

Software Development python
Member Avatar for SoulMazer
0
442
Member Avatar for Memo..~

Hi everyone.. I wrote this program but I could not get the panels as what I arranged them.. also I don't know what's wrong with the scrollbar cuz I couldn't get the concept of it very well.. [CODE]import javax.swing.JFrame; import javax.swing.ImageIcon; import javax.swing.JPanel; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JTextField; import …

Software Development java java-swing
0
65
Member Avatar for adcodingmaster

My question is Y DLL? i know that it saves memory and many process can use 1 DLL file at a time blah blah blah...... but is there any task which can not b achieved without using DLL files?? Please reply in details.

Software Development c
Member Avatar for Ancient Dragon
-2
108
Member Avatar for Shmoil

Hello. I am new to jave so please forgive my newbishness. I've used Netbeans IDE 6.0 to construct a GUI for my project. However I have ran into a few problems; 1. I cant seem to get a jButton to change the text of a jLabel. (im trying to get …

Software Development gui ide java
Member Avatar for Shmoil
0
114
Member Avatar for cpp_noobsauce

Ok so I posted this before but didn't get a response... Our prof gave us this problem: "Write a program that will get, from the user, a string of characters such as a sentence, and place this into a declared char array. Ask the user which letter they would like …

Software Development c++
Member Avatar for Salem
0
240
Member Avatar for Memo..~

Hi everyone ... I hope that all of u r OK... This is the second semester for me in JAVA .. I have an assignment to create a GUI using JAVA and I almost finish but the problem is the teacher asked to use any component that she didn't teach …

Software Development gui java
Member Avatar for Ezzaral
0
153
Member Avatar for vbdotnetlover

Dear Developers How to enable "Autio Hide" command for Solution Explorer Window Please Help

Software Development vb.net
Member Avatar for padtes
0
118
Member Avatar for lordx78

Hi there, I'm unable to run the demos java files. I followed the ways according to the prefuse tutorial. It says, 1) Go to "build" folder 2) Launch demo of interest java -cp prefuse.jar:demos.jar prefuse.demos.<name of demo here> and I inputted e.g. java -cp prefuse.jar:demos.jar prefuse.demos.TreeMap.java Please advice. [COLOR="Red"]*Screenshot Attached![/COLOR]

Software Development java
Member Avatar for fleure
0
105
Member Avatar for Ecliptical210

Hi Guys, I posted earlier, and I figured it out after a few hours of playing around with it. Now, a new question arises. Is it possible to get the input from a JTextField and add it into a JComboBox via an array? The only thing stopping me from achieving …

Software Development java
Member Avatar for javaAddict
0
155

The End.