Our Software Development forum encompasses topics related to native application programming design and development.

43,484 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for C++ Obliviator

Hi! I'm working on a project and need a way to add a newline to the input stream, by code and not by user's help. The user should not need to do anything, I need a simple line of code that places a newline in the input stream, but I …

Software Development c++
Member Avatar for C++ Obliviator
0
155
Member Avatar for JohnPhilipps

Good evening, I have the need to learn how to make a picture jigsaw with java. I have been looking for hours on the web for some kind of tutorial, source code example, something anything and I haven't been successfull in finding something I could work with. Would somebody have …

Software Development java
Member Avatar for JohnPhilipps
0
568
Member Avatar for adam291086

i currently have this nested list [[u'Alice Mee', 3], [u'Alice Mee', 4], [u'adam plowman', 1], [u'james pirret', 2]] I need to remove the last number from each list so i have something like [[u'Alice Mee'], [u'Alice Mee'], [u'adam plowman'], [u'james pirret']] the list is populated dynamically and will always change …

Software Development python
Member Avatar for adam291086
0
139
Member Avatar for sonia sardana

I want to get random numbers between 0 to 100..But i do not want the random number to be repeated. [code] Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim objRand As New Random objRand.Next(0, 100) End Sub [/code] Suppose first time random numb generated is …

Software Development .net:vb.net
Member Avatar for sonia sardana
0
273
Member Avatar for MonicaClare

Hi to all programmers.. i have a problem about this code .. i don't know what to do to this code.. i change a lot of code .. but always appear the error "illegal start of expression" .. I'm a newbie in Java.. please help me in this case.. thanks.. …

Software Development java:swing
Member Avatar for llemes4011
0
205
Member Avatar for vuchko

Hi, I have a problem repainting Jpanel. I wrote a simple code just to check whether it works, but notnihg is happening. Function initPanelAnswer should initialize answer panel with some image, but I wanted to make it more simply. So, according to my logic, this should print out "Paint Component", …

Software Development java javascript
Member Avatar for vuchko
0
728
Member Avatar for Pauliuw

Hello, i where making a game, and i needed a vector that holds class objects, i do the thing (below), and i thing i did it right, but it seems not and i dont know whats wrong :( [code]#include <iostream> #include <vector> #include <string> using namespace std; class Races { …

Software Development c++
Member Avatar for Pauliuw
0
4K
Member Avatar for hjdaniel.sun

Hi I used the Data Source Configuration Wizard to connect to my access database, how do I write code to manipulate the data from the database? I read the book "Microsoft Visual Basic 208 step by step", it only teaches how to display data on the form. So how do …

Member Avatar for hjdaniel.sun
0
194
Member Avatar for Pokenerd

Hello! I'm trying to use code to write to a text box - I know my strings are valid and that the function I'm using to generate them works, because I can successfully display them in a pop-up. Now I want to insert my string into a textbox at the …

Software Development .net:c# user-interface
Member Avatar for Pokenerd
0
139
Member Avatar for SpiritGeek

I'm making a simple wxPython app on win32 that does a number of calls to external binaries. Everything works fine, except the GUI doesn't update well while the external process is running. This makes for an ugly window and non-updated status StaticTexts, so I'd like to fix it. Window . …

Software Development python user-interface:gui
Member Avatar for SpiritGeek
0
635
Member Avatar for mediachicken

Is there a way to get all the arguments and put them in one string? I'm very new to C++, so I need all the help I can get. Here's what I have here: [CODE]#include <iostream> using namespace std; int main(int argc, char* argv[]) { cout << "argc = " …

Software Development c++ python
Member Avatar for Ancient Dragon
0
217
Member Avatar for juliusceasar

I am designing a pocketpc app to manage service delivery at restaurants. I have designed the interface of the app and defined the schema of the database using a Microsoft SQL Server Compact 3.5 database file. I cannot figure out how to interact with this file tho, I'm using vb …

Member Avatar for juliusceasar
0
112
Member Avatar for NathanOliver

Hi all. i am writing a simple log in program and i would like to have a class for users that stores the user name and the password as strings. after i have a user created i would like to output the class with the ios::binary flag set and store …

Software Development c++
Member Avatar for NathanOliver
0
410
Member Avatar for rizillion

Hi!, I have created a user inteface named "helpGUI". This user interface contains a JTextArea. I also have created a text file named "help.txt". I need to show the "help.txt" file in the JTextArea. As I'm new to JAVA I have no idea how to do this. Given below is …

Software Development java:swing user-interface
Member Avatar for peter_budo
0
766
Member Avatar for poncho4all

Well I have a doubt about where can I find some examples about this funcion, I need to use it on a program. Any ideas are welcome xD

Software Development c++
Member Avatar for poncho4all
0
130
Member Avatar for Pokenerd

Hello again, I'm trying to create a text field that only accepts numbers, a single decimal, and a dash (for negatives) but only as the first character. I have conquered everything except for pasting, and have no idea on where to begin. Below is the current code (working!) code that …

Software Development .net:c# regex
Member Avatar for Pokenerd
0
153
Member Avatar for SpiritGeek

I'm taking a stab at multiprocessing and I need one process to tell the other to run a given function. On the receiving end, I'm trying to figure out how to interpret the message it gets. I could set up a big nest of if/elif to test for every possible …

Software Development python
Member Avatar for SpiritGeek
0
137
Member Avatar for JohnPhilipps

Good morning, I have been trying to research the net on the subject of "how to set a folder view utilizing a VB.form button", I've found references to the "IFolderView : SetCurrentViewMode Method", but no concrete examples I could work with. I haven't been able to find what I need …

Software Development .net:vb.net
Member Avatar for JohnPhilipps
0
154
Member Avatar for turbomen

Dear Sir, It is a simple example using a string. [code] program dowhile; {$APPTYPE CONSOLE} uses SysUtils, OurCrt; var my_words : string; begin my_words := ''; writeln('Enter some words (type "stop" to finish):'); readln(my_words); while (my_words <> 'stop') do begin clrscr; Writeln('You typed:'); writeln(my_words); writeln; writeln('Enter some words (type "stop" …

Software Development pascal
Member Avatar for turbomen
0
150
Member Avatar for akulkarni

[code] i want a program which asks the user to type the password. If he goes wrong three times exit.this is my code import java.io.*; class password1 { public static void main(String args[])throws Exception { String pass="samarth"; boolean flag=false; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String [] password=new String[20]; int i; for(i=0;i<3;i++) …

Software Development java
Member Avatar for tux4life
0
316
Member Avatar for oall

Hi all! Does anybody know how to generate a makefile from a visualStudio project? I kind of remember this was possible years ago, but can't find this option on the VisualStudio Express edition 2008 I am using now... I have to transfer projects from VS to eclipse and need the …

Software Development c++ microsoft:visual-studio
Member Avatar for oall
0
516
Member Avatar for MONODA

I am making a script which manipulates ID3 tags. I want a certain function to be used on every file in a directory recursively. I have written the script but it is not behaving like I would expect in some cases. If I give it exec perms and put it …

Software Development python
Member Avatar for MONODA
0
107
Member Avatar for tomtetlaw

I want to be able to find a class with a variable in it: [code=c++] for(int i=0;i<classes.size();i++) { if(class[i].name == classes[i]) return class[i]; } [/code] I think class would be a list of classes that are instanced. where classes is a vector of strings. Is this possible?

Software Development c++
0
79
Member Avatar for rizillion

Hi! I have added an action listener for a button. When i click this button it should go to the second tab in the tabbed pane which i have created. I have created two tabs as follows: [CODE] tab.addTab("Change Password", panel1); tab.addTab("Add new User", panel2); [/CODE] and the action listener …

Software Development java:swing
Member Avatar for llemes4011
0
2K
Member Avatar for Pokenerd

Hi, I'm somewhat new to C# and I've created a numbers (backspace, delete, negative, and decimal) only text box. However the way I'm testing whether to allow for negative numbers only allows them to be added if they are typed as the first character. Below is in an if statement …

Software Development .net:c# regex
Member Avatar for Pokenerd
0
150
Member Avatar for theashman88

Hey I just got this book Accelerated c++ and it seems pretty good, but I'm having one problem in chapter 4. When I compile my grading program in chapter 4. I can't get the final version to work. I believe I'm supposed to enter a students name followed by grades, …

Software Development c++
Member Avatar for tux4life
0
253
Member Avatar for dp_neo

Hi, I am trying to schedule a python compiled file to run using windows scheduler. But it does'nt run successfully The script writes to a SQL server database installed on the same machine as python and the script resides on the same machine. The script imports the urllib, sys, threading, …

Software Development microsoft:sql-server python
Member Avatar for dp_neo
0
131
Member Avatar for serkan sendur

hi guys, i want to be able to have three different names for one program. to do that i can create two other setup projects and change the product name, but i dont feel like it is proper way of doing that. so i need to run setup project with …

Software Development software-architecture
Member Avatar for serkan sendur
0
104
Member Avatar for elidotnet

i have register form with some information about users, there is few textbox, some dateTimepicker, and some combo box that takes the data from a database (ODBC). the textbox and the datepicker works fine and insert into the data but i cant handle the data bound combo box. PLEASE HELP …

Software Development .net:c# database-sql
Member Avatar for sknake
0
99
Member Avatar for Hiroshe

Is it possible in C to pass a 2d array without eather of the sizes known? Something like this maybe: [CODE=C]#include <stdio.h> void somefunction(int *array); int main(void) { int array[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; somefunction(array); return 0; } void somefunction(int *array) { printf("%d\n", array[3][2]); …

Software Development c
Member Avatar for Hiroshe
0
11K
Member Avatar for rude04

is it possible to set the position of the picture inside a pictureBox? like making a small pictureBox and putting a larger picture inside,,instead of showing only the upper-left most part of the picture,,it would be able to show different parts of the picture..

Software Development visual-basic
Member Avatar for rude04
0
127
Member Avatar for daviddoria

I don't understand why can you do this: [code] Employee *emp; if (condition1) emp = new Employee(); else if (condition2) emp = new Manager(); [/code] but not this: [code] Employee emp; if (condition1) emp = Employee(); else if (condition2) { emp = Manager(); [/code] Maybe this is a TERRIBLE idea, …

Software Development c++
Member Avatar for Ancient Dragon
0
114
Member Avatar for serkan sendur

what is the windows script to add shortcuts to all users desktop? thanks

Member Avatar for serkan sendur
0
107
Member Avatar for wotthe2000

Hi, I'm having a bit of a problem outputting to a file. I am trying to output each element of a list into a document on a new line and I can only get it to work when all the items in the list are on the same line. The …

Software Development python
Member Avatar for Ene Uran
0
85
Member Avatar for AirGear

Sir, i have a numerical method project. I want to be different, so i try to make a program that can read user input, ex : sin(x+3)^(x*3^x), and find the root of the equation. I already implemented Reverse Polish Notation, and also shunting-yard algorithm. But, i found out that all …

Member Avatar for AirGear
0
189
Member Avatar for serkan sendur

some functionality is not available in .NET class library, so we need to use one the items in the title of this thread. My question is when to refer to which one. Thanks

Member Avatar for serkan sendur
0
199
Member Avatar for functionalCode

I am wondering if anyone can point me in the right direction so I can save the returned identity value from one of my stored procedures. How can I save it into a variable. Any help or examples is appreciated thanks!

Software Development microsoft:sql-server
Member Avatar for Ramy Mahrous
0
111
Member Avatar for S2009

Hi all, I am developing a windows application. I have 3 forms: I want to change the backcolor of all the 3 forms to the color selected by the user. I have written the following code to do this. But the backcolor is not changed. [code] In Form1 ColorDialog c1 …

Member Avatar for sknake
0
119
Member Avatar for DimOK

Hello! I'm trying to write a program, that replaces inscpitions like "\input{C:\FullFileName.txt}" to maintenance of FullFileName.txt. It now looks like [code=C++]#include <fstream> using namespace std; #define shint short unsigned int const char* InS ="input{"; ofstream log ("C:\\Users\\DimOK\\Desktop\\Lat\\TEST1\\log.txt"); bool EqN (ifstream &as, const char *ba, shint l){...} // takes l chars …

Software Development c++
Member Avatar for DimOK
1
277
Member Avatar for Tank50

Hi I Want to develop the application ,that use for get how much data I download from the internet.Please give me idea. Thanks Tank50

Software Development python
Member Avatar for Tank50
0
149
Member Avatar for xyzt

hello, i was looking at a program someone wrote. I saw something like that: name = (char*) strdup(path); strdup already returns char *, so why do we need casting here? did he do a wrong thing or am i wrong?

Software Development c
Member Avatar for xyzt
0
112
Member Avatar for linkingeek

Here i am posting again the program for creating the table of contents which are filled according to the user with dynamic arrays but yet the problem regarding the output is not solved ,i know dry run is correct , compilation is free from errors and warnings,builtable() function is working …

Software Development c c++
Member Avatar for linkingeek
0
122
Member Avatar for OffbeatPatriot

Basically I'm trying to run a simulation of neurons and this is the code that gets run in the main loop of it. [code=c++] class Neuron { private: double v, u, a, b, c, d, current, du, dv; public: double x; vector<double> pre; int id; vector<int> fired; vector<int*> post; vector<double …

Software Development c++
Member Avatar for OffbeatPatriot
0
632
Member Avatar for dinilkarun

Hi friends, I want to copy few cells of an excel sheet and paste special(picture) in ms-word. I want to develop a vb code code for this. Please help!... Regards, Dinil

Software Development .net:vb.net visual-basic
Member Avatar for h.khuraidah
0
944
Member Avatar for Himani_29

nw i hv been tryin a stuff tht m really nt sure if u guys understnd at once..bt sum1 hs to find a solution for it plzzzzzzzzzz... i need a code in C++ to do the following tasks...:- 1.) copy files from a folder 2.) save them in a different …

Software Development c++
Member Avatar for Himani_29
0
225
Member Avatar for nonadoes

Hi guys, i'm new here and new to c/c++ programming. could you guys guide me how to extract some character/number from a char string? Example: char = TAGNAME_C123_V45_S67_M89 i want to extract the numerical number next to the character. The TAGNAME and the number is varies. So my code should …

Software Development c c++
Member Avatar for nonadoes
0
248
Member Avatar for Chargers 21

Hello Everyone! This is my first actual post although I've been a member for almost a year. I'm writing a program that will create a random number between 1-1000 and ask the user to guess the random number. I also have the program display an error message to tell the …

Software Development c++
Member Avatar for Lerner
0
134
Member Avatar for llemes4011

Hi. I have a Vector of Vectors that I need to rotate 90 degrees clockwise and 90 degrees counter-clockwise. I got it to rotate Clockwise, but whatever I try, I can't get it to rotate counter clock-wise. The 2D Vector is not always going to be a square. It will …

Software Development java
Member Avatar for llemes4011
0
327
Member Avatar for roryt

I have posted this thread in the microsoft software forum as well but with no luck. If anyone can tell me how I can save a active excel file using a macro to save it in a folder using the current date as the file name. I hope that was …

Software Development office-suite visual-basic
Member Avatar for leecker
0
873
Member Avatar for rtwister

on line 53 it says menu is undeclared. but if i bought menu first then mcdonalds is undeclared. does anyone know how i can sort this out? ty [CODE] #include <iostream> using namespace std; double money = 50.00; void Mcdonalds() { cout << "Welcome\n"; cout << "How can i help …

Software Development c++
Member Avatar for Tom Gunn
0
94

The End.