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 FreezeBlink

It's always bugged me how it seems that the only way to find out where you are inside a for loop is to use a counter. For instance, suppose you want to iterate through a list, and print every entry on a second line, but for the second-to-last entry you …

Software Development python
Member Avatar for vegaseat
0
101
Member Avatar for lllllIllIlllI

Hi Guys What i am trying to do here is have a tuple of numbers, lets say X. Then i have a list of a few other tuples. I want the program to find the tuple that is closest in value. [code=python] x = (214,521) lis = [(200,500),(250,550),(300,600)] [/code] I …

Software Development python
Member Avatar for vegaseat
0
138
Member Avatar for raul15791

Hi, Does anyone know how to browse through a folder to find all the files contains in it? I know how to use the opendir function but: 1. I'm having problem with looping in which i can use to browse through ALL the folders and ALL the files contained in …

Software Development perl
Member Avatar for raul15791
0
164
Member Avatar for Jennifer84

In a Form Window you have in the upperright corner, Minimize, Maximize and the other red control that you close the Form with. I wonder what this control is named and if it is possible to put code inside this control. Because if I doubleclick on it, I doulbeclick on …

Software Development c++
Member Avatar for Jennifer84
0
93
Member Avatar for Jennifer84

This perheps is a strange question but if I have a buttoncontrol on the form I could programatically make this button invisible like below: [code] button1->Visible = false; [/code] What I wonder is if it is possible to make the button Visible = false; by fading the button away so …

Software Development c++
Member Avatar for Jennifer84
0
158
Member Avatar for Zolookas

Hi, I am new to C++ and Qt and despite that i am thinking of using threads in my app. Here is an example code which outputs "." and then "QThread: Destroyed while thread is still running" error after pressing button. [CODE=C++] class MyThread : public QThread { public: void …

Software Development c++ qt
Member Avatar for Zolookas
0
1K
Member Avatar for emilio

can i drag from label and drop inside form and set the form backcolor as the labels backcolor ?

Software Development html-css javascript
Member Avatar for emilio
0
123
Member Avatar for bpacheco1227

I am a C++ beginner and I am stuck. I can't get the random number generators to run properly, specifically the random number generators are all coming up with 1 . The point system is not running properly either, I'm sure it has something to do with my do-while loop. …

Software Development c++ session
Member Avatar for bpacheco1227
0
186
Member Avatar for Clockowl
Member Avatar for bhoot_jb

I have used the Package & Deployment Wizard to put my Visual Basic Program on CD, I then copied over my database 'calculations.mdb' onto the cd also so that the VB program can access the database when installed on another PC. However, the program still searches the same path as …

Software Development microsoft:access visual-basic
Member Avatar for selvaganapathy
0
218
Member Avatar for &rea

I am trying to use Elements (a property of matrix) that will save all the elements as an array so I could access the different elements but now I don't know how works this property. I have written that [code] L->Elements(cli::array<int>(1)^get()); [/code] and I get these errors: [code] error C2143: …

Software Development c++
Member Avatar for &rea
0
121
Member Avatar for regent_royal

Hi friends, I have[B] build swing based application on windows os and I want to run this application in linux.[/B] The .jar file runs perfectly on windows. but not running on linux. gives error as below. pls. help regent@regent:~/main the law$ java -jar thelaw.jar Exception in thread "main" java.lang.NoClassDefFoundError: while …

Software Development java:swing
Member Avatar for regent_royal
0
194
Member Avatar for &rea

Hello, I have got a matrix and I want to get his elements so I can work with them in an unsigned int[][] or in a similar way. I have proved to get them with the method Element but it returns an array and I think it don't do what …

Software Development c++
0
79
Member Avatar for &rea

Hello, I want to make a matrix like this: [code] System::Drawing::Drawing2D::Matrix^ L; L=gcnew( System::Drawing::Drawing2D::Matrix::Matrix(rect,plgpts)); [/code] rect works properly but not plgpts plgpts is an array of Points. So I make that: [code] cli::array<System::Drawing::Point>^ plgpts; plgpts=gcnew(cli::array<System::Drawing::Point, 3>); [/code] and I have this errors: Error C3149: 'cli::array<Type,dimension>' : cannot use this type …

Software Development c++
Member Avatar for &rea
0
172
Member Avatar for sawant_nitesh

I am working on a JAVA project which needs to set the System date and time. I want to open Date and Time Properties of Windows through my Project. When I click on JButton, it should open Windows Date and Time Properties. How to do it ? Please Reply.

Software Development java microsoft:windows-api-win32
Member Avatar for sawant_nitesh
0
95
Member Avatar for raul15791

Hi, I'm a beginner for Perl. Just want to ask a few simple question: 1. Which Text Editor tools is the best for Perl? 2. Some recommend JEditor. I installed it but having problem with the Exuberant CTags. After i downloaded it I cant seem to install and apply it. …

Software Development perl
Member Avatar for KevinADC
0
226
Member Avatar for QuantNeeds

So I finally I got this to work, but my problem is that it gets very messy when I try to print it as a chart. I have to print the output in a neat tabular format that minimizes the number of lines of output while remaining readable. When I …

Software Development c++
Member Avatar for QuantNeeds
0
228
Member Avatar for mrjoli021

i am having problems appending txt to a file. it overwrites the file instead of appending [code] private StreamWriter outputfile = new StreamWriter("c:\\testfile.txt"); public void SetFile() { this.outputfile.WriteLine("Test",FileMode.Append, FileAccess.Write); this.outputfile.Close(); } ----------------------------------------------------------------- main class FileRead Testing1 = new FileRead(); Testing1.SetFile(); [/code]

Software Development .net:c# file-system
Member Avatar for mrjoli021
0
117
Member Avatar for SteveDB

Well, apparently, I jumped the gun a little. My code for the program I wrote still doesn't work. It compiles fine and throws no errors, but when I run it, only my main menu list runs-- over and over, regardless of my input, and the esc key no longer works. …

Software Development c++
Member Avatar for SteveDB
0
126
Member Avatar for mg0959

Is there any way to put multiple lines of text in each selection part for the tkinter listbox? Thanks for the help.

Software Development python:tkinter
Member Avatar for woooee
0
3K
Member Avatar for Zolookas

Hi, i am quite new to C++ and I am making quite complicated linux app: i need it to show wheather usb device (phone) is connected. I have a procedure which would check if phone is connected, but i need to somehow run in background to constantly (lets say every …

Software Development c++
0
100
Member Avatar for waldchr

Hi I am relatively new to c++ but have written a program that would benefit from a little background music. I need it to be mp3 format. I am using dev c++ on windows XP. can anyone help?

Software Development c++ multimedia
Member Avatar for waldchr
0
220
Member Avatar for &rea

Hello, I have been using C++ for not so long and today I have find a problem that I know it is not difficult but I haven't done it before so I have no idea. I have a matrix(System::Drawing::Drawing2D::Matrix^ L) and I want to apply this property OffsetX. since now …

Software Development c++
Member Avatar for &rea
0
62
Member Avatar for arupa

write a programme to show the prime numbers between 1 to 20.

Software Development python
Member Avatar for Jx_Man
0
88
Member Avatar for bokac

How to convert: [B]ThisIsMyNewString[/B] to: [B]this is my new string[/B] thanks

Software Development python
Member Avatar for bokac
0
110
Member Avatar for chanthung

M writing a program to display the date ie. 15 days later after a given (present/todays)date. Wel its actually like this. As soon as i write todays date, in the next text box, the date shd be automatically displayed adding 15 days to the present date which is already displayed. …

Software Development visual-basic
Member Avatar for chanthung
-1
1K
Member Avatar for NervousWreck

I am just starting to learn C++ with the Waite group primer. I wrote a program loosely based on the books instructions to display any entered ASCII character and its numeric value and the same for the next character in the table. Heres the bug: The second character works fine, …

Software Development c++
Member Avatar for mitrmkar
0
113
Member Avatar for edrrit

Hello everyone, as will be seen from the following massage I am new to C#. I have dataGrid that reads data from mine database. Also, I can update database from dataGrid, but I want to update it in more ways. So, I have the following code just to see something, …

Software Development .net:c# data-structure
Member Avatar for edrrit
0
106
Member Avatar for tirso

hi to all Does any body could help me how to blink the text of my button or even blick the background color. Thanks in advance

Software Development .net:vb.net
Member Avatar for tirso
0
732
Member Avatar for raul15791

Hi, I'm trying to write a perl program for a simple phone book. Means when the user enter a name, the phone book will search and display the name and the phone number of that person. Below is my code: [CODE=syntax] #!/usr/bin/perl; #playplay.pl use warnings; use strict; my %phonebook = …

Software Development perl
Member Avatar for KevinADC
0
202
Member Avatar for grazcy

i'm doing a game function which able to save and load game function, i want to do it in a simple way cause only a few information need to collect. :cry: Here is the save method i use which able to write things into the .txt file which work correctly …

Software Development .net:vb.net file-system
Member Avatar for DaKasper
0
207
Member Avatar for nerden

Hi, I’m writing a programme in VB.NET [B]2008 [/B]which uses an access database; I am trying to create a query which uses the value from a textbox say txtStudentNo, to query a DataGridView say grdInfo to only show the student with the entered student number. The problem I am having …

Software Development .net:vb.net
Member Avatar for nerden
0
208
Member Avatar for chmendell

Very new to C#. I'm a workhorse but one step at a time. I'm trying to make simple program. "What is out the door cost of an item that has sales tax?" You should enter the program and then type the amount of the purchase. Then the purchase amount is …

Software Development .net:c#
Member Avatar for Ramy Mahrous
0
99
Member Avatar for ff4930

Hello everyone, I am new to maps and I have a simple question. I have a map that stores a string as key and the data I want a map<int, int> so my syntax is map<string, map<int, int> test; What would be the syntax to insert say "hello" and say …

Software Development c++
Member Avatar for Narue
0
140
Member Avatar for esy928

Hello! its me again, I need a liitle help. Our teacher gave us a homework where we need to create a program that will determine the larger of the two inputed number, plus we have to determine if the input is an integer or not. Ive already coded the program, …

Software Development java
Member Avatar for esy928
0
146
Member Avatar for Aleczz

Hello Im coding mp3 encode / ripping tool and because i have licence to realbasic im gonna make user interface with it Technical part im gonna make with akrip.dll and i have develope it more by my own way now. The meaning is use threads for ripping and encode in …

Software Development c multithreading user-interface
Member Avatar for Aleczz
0
173
Member Avatar for mark192

Hi, I need help with sending an email through gmail from a program. I substituted email adresses and passwords with generic names, this program works up to the last line where it fails to send the email. Any ideas as to why this may be? This is using [code] imports …

Software Development .net:vb.net email
Member Avatar for conan82ac
0
107
Member Avatar for ShraddhaM

i have created one database in which there is one table **Supplier**, its **primary key is SCode**. i have one more table **Quotation**, in which i have created **SCode as Foreign Key**.nw i want to allow user **to select SCode from Combobox in Quotation table.** Format. hw 2 add databinding …

Software Development .net:vb.net database-design
Member Avatar for ShraddhaM
0
392
Member Avatar for Agni

Hi, When i search for a pattern in a file how do i get the line and line#? basically i want to replicate the 'grep' command functionality. Now i can easily say whether the pattern exists or not using re.search funtion but i'm not able to print that particular line …

Software Development python
Member Avatar for Agni
0
166
Member Avatar for 7arouf

hi there. i created an xml, xsl, and html files and i need to create a drop down list that will allow me to quesry database my xsl files is [QUOTE] <?xml version="1.0" ?> - <Kwantlen> - <Schedule> <Semester>Summer</Semester> <Department>CISY</Department> <CourseName>Emerging Technologies</CourseName> <Prerequisite>CISY1218</Prerequisite> <CRN>2583</CRN> <Days>Monday</Days> <StartTime>16:00</StartTime> <EndTime>19:00</EndTime> <RoomNumber>G1045</RoomNumber> <Instructor>Sen</Instructor> <FinalDate>August …

Software Development html-css javascript xml
Member Avatar for 7arouf
0
173
Member Avatar for agartrell

Hey, I have a hash table for primitive values that uses a template to store the key Type and value Type, everything compiles fine as far as that's concerned, but i have a wrapper class that associates floats with ints (array indices) and that's all good except for one syntactic …

Software Development c++
Member Avatar for agartrell
0
100
Member Avatar for ninjaimp

Hi I am trying to populate a listview with all the hours of the day in 30 minute intervals. I can doing very basically from 0 to 24 with the following code: [CODE] Private Sub CreateTimeStep() For i = 0 To 25 Step 0.5 lstDays.Items.Add(i) Next End Sub [/CODE] but …

Software Development .net:vb.net listview
Member Avatar for ninjaimp
0
93
Member Avatar for Muttley

[code=cplusplus] class Base{ char* s1; public: ... ~Base(){ delete s1} } class Derived:public Base{ char* s2; public: ... //the constructor of the derived class will call the constructor of the //base class, so derived will contain s2 and s1 too. ~Derived(){ //HERE } void main(){ ... Base x[5]; ... }; …

Software Development c++
Member Avatar for Narue
0
139
Member Avatar for sciwizeh

hello, i'm making a small calculator program, and i want the display to look like this: [URL="http://www.freewebs.com/sciwizehgames/images/want.jpg"]want.jpg[/URL] but i'm getting this: [URL="http://www.freewebs.com/sciwizehgames/images/Getting.jpg"]getting.jpg[/URL] this is the code i am currently using for the task: [CODE]public void actionPerformed(ActionEvent e){ String currText = viewer.getText(); String text = enter.getText(); int len = currText.length(); enter.setText(""); …

Software Development java
Member Avatar for sciwizeh
0
767
Member Avatar for new_2_java

Can someone tell me what jar file do I need inorder to use the above class?

Software Development java
0
145
Member Avatar for darklich13

I'm having trouble getting my InputMismatch working on my program. Do I need some kind of throw for this exception? The program compiles fine, but it dosen't pick up the exception. Can someone please help. [code] public class EndingListener implements ActionListener { public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("Convert")){ try{ …

Software Development java
Member Avatar for darklich13
0
231
Member Avatar for &rea

Hello, I have got a problem declaring a matrix. I have got a picture (bitmap) and I take the whole image with a rectangle so I can "paste" it in a matrix. My problem is that the constructor says that I need an array of Point (Point[]) but I don't …

Software Development c++
0
75
Member Avatar for SteveDB

Hi all. I am seeking to learn how to link my drag/drop GUI's to the code I wrote for a program from some 9 years ago. I.e., I have Borland, and MS's Visual Studio 6. I used both-- at different times-- to create a program, and was able to use …

Software Development c++ user-interface:gui
Member Avatar for Necrolis
0
735
Member Avatar for dr_kac

Hello everybody! As I thought I became more comfortable with data structure I've got the problem I can't solve. It looks so: I have that kind of text file: ABCD vvvv 1e-12 ABCD hhhh 1e-6 ABCD ggggg 1e-3 ASDE ffffff 1e-57 ASDE dddd 0.001 etc. I would like to read …

Software Development data-structure python
Member Avatar for paddy3118
0
212
Member Avatar for Aamit

Here is my file text file data Tree Bush Apple Mango Animal Dog Animal2 Cat [code] #include <stdio.h> #include<conio.h> #include<string> #include<iostream> #include<fstream> using namespace std; int main() { FILE * pFile; char mystring [100]; char mystring2[100]; char ch; int i=0,j=0; pFile = fopen ("c:\\List.txt" , "r"); if (pFile == NULL) …

Software Development c++
Member Avatar for mitrmkar
0
120

The End.