132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Gaiety

Hi, I know i am asking a question which can be googled and find lot of explanation. I have actually gone through many but none explained the ownership property completely. > Mutex is acquired by some process, only that process can unlock it how the other process/thread know that the …

Software Development c
Member Avatar for mike_2000_17
0
128
Member Avatar for arunpawar

I am trying to build a simple app that calculates the farenhit to celsius converter. Here is my code.. from gi.repository import Gtk, GObject class DemoWindow(Gtk.Window): def __init__(self): Gtk.Window.__init__(self, title="Demo Example") self.set_size_request(300, 400) vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=6) self.add(vbox) self.entry = Gtk.Entry() self.entry.set_text("Enter Farenhit") self.button1 = Gtk.Button(label="Calculate") self.button1.connect("clicked", self.on_button1_clicked) vbox.pack_start(self.entry, True, …

Software Development python
Member Avatar for arunpawar
0
252
Member Avatar for lewashby

#include <Stdafx.h> #include <iostream> #include <stdlib.h> #include <time.h> #include <math.h> using namespace std; int rand_0toN1(int n); int hits[10]; int main() { int n; int i; int r; srand(time(NULL)); // set seed for random numbers cout<< "Enter number of trials to run "; cout<< "and press ENTER: "; cin>> n; // …

Software Development c++
Member Avatar for Sky Diploma
0
238
Member Avatar for 9tontruck

Hi guys, I need to parse JSON data from an HTTPS protocol so I downloaded and integrated libcurl into my VS2010. Everything works fine and sample codes work fine when I use "http" protocol. However, a CURL error keeps coming out when I try to read from "https" protocol.... The …

Software Development c++ http-protocol json
Member Avatar for 9tontruck
0
3K
Member Avatar for AKJo

When I print a document from my Delphi 2007 program I quite often get a message "Printing in progress " and printing is aborted. Only part of the page is printed,not always identical part,but close. When closing the message I get "Access violation at address 004FEEC5 in module........read of address …

Software Development delphi pascal printer session
Member Avatar for AKJo
0
2K
Member Avatar for zur1ch

So i made another Code in C in which i am making a program to stop working when the Licence has ended. The Program Runs but lets say the date its suppose to end on June 20, 2012 so it triggers the Stop of use of the program. This is …

Software Development c
Member Avatar for zur1ch
0
100
Member Avatar for GeekTool

public class ForLoop { public static void main(String[] args) { String writtenStuff = "Hello i am bucky bucky"; int otherNum = 0; int length = writtenStuff.length(); int i; for (i = 0; i < length; i++){ if (writtenStuff.charAt(i) == 'b') continue; } }//end method }//end class Here is my code, …

Software Development java
Member Avatar for GeekTool
0
111
Member Avatar for whit89

Hi ive been given some question as part of a homework assignment, just to clarify i dont want the answers to the questions just advice as to where to look for resources. The Socket programming model and how that model works in Java, explaining clearly how Sockets support a simple …

Software Development client-server java socket-programming
Member Avatar for whit89
0
162
Member Avatar for king000000

I havent done java in a while and not sure what to do with the void methods please can someone help me out thanks whole thing is in a zip file as well done in bluej as there is a long list of code here. /** * class Player * …

Member Avatar for JamesCherrill
0
2K
Member Avatar for GeekTool

public static void main(String[] args) { String searchMe = "Look for a substring in me"; String substring = "sub"; boolean foundIt = false; int max = searchMe.length() - substring.length(); test: for (int i = 0; i <= max; i++) { int n = substring.length() int j = i; int k …

Software Development java
Member Avatar for deceptikon
0
492
Member Avatar for GeekTool

Ffirst of all, i have just achieved to code a program that counts the chosen letters. ( For example, i wanted it to count how many 'p's exist in the string. ) Now, for example i want to code a console application that extracts only the ones that are not …

Software Development java
Member Avatar for stultuske
0
245
Member Avatar for GeekTool

public class ForLoop { public static void main(String[] args){ String writtenStuff = "someone was here!" + "here i am!"; int numP = 0; int length = yazi.length(); for (int i = 0; i < length; i++){ if (yazi.charAt(i) != 's') continue; ++numP; }//for end System.out.println("the total number of the letters …

Software Development java
Member Avatar for GeekTool
0
130
Member Avatar for Gus_19

I'm trying to get the first row in each worksheet to be shaded and have the font bold. Right now, I am able to get the first worksheet changes made, but none of the other worksheets within the same workbook are being changed. Here is what I have written so …

Software Development vb.net
Member Avatar for Reverend Jim
0
252
Member Avatar for stephanieirene

C++ Programming The file attached contains the instructions. This is what I have done so far. It outputs the contacts from the file. I need help by tonight. Please Help!!!! I have all the tokens on the vector token. I want to create a Contact with those tokens Ex: Contact …

Software Development c c# c++
Member Avatar for Lucaci Andrew
0
346
Member Avatar for srvinu

Hi, I have one perl script for comparing two text file entries. But its not working according to my expectation. Its comparing line by line, not like comparing one entry to the complete file. I like the script to be compare all the entries irrespective of line by line comparison. …

Software Development file-system perl
Member Avatar for cod3r
0
679
Member Avatar for jwings

This program is one part of the GUI part for my reminder program. I would like to update the JTable which shows all the task and will refresh every 2 second. I have questions... (1)the SwingWorker never executes( I put println in the code but it shows nothing ) How …

Software Development gui java java-swing storage
Member Avatar for JamesCherrill
0
173
Member Avatar for mrexp21

Hi , Help me to convert flowchart to pseudocode . Thanks Flowchart in PDF : http://www.4shared.com/office/FgnhUYgw/Project_Full_Flowchart.html

Software Development c++ pdf
Member Avatar for deceptikon
0
2K
Member Avatar for Waleeed

the assignment to create 4 classes to make message server i made the code but i have an errors

Software Development java
Member Avatar for stultuske
0
140
Member Avatar for jockfaire

Hi, I am running Java 1.6.0_31 on my machine and would like to have "Nimbus" set as the default look-and-feel for my Java applications. I have followed the instructions obtained from the Oracle java website i.e. by creating a text file named **swing.properties** with the following line of code **swing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel** …

Software Development java java-swing oracle
Member Avatar for JamesCherrill
0
142
Member Avatar for Johannady2

I get this error. /*array dimension missing new ImageIcon [] = getClass().getResource(name[0]),*/ ^ and I dunno what's missing. and not sure if anything else is wrong because for now there are 4 erros for name[0],name[1],name[3],name[4] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.Container; import java.io.IOException; import java.io.*; import java.awt.BorderLayout; import …

Software Development java java-swing
Member Avatar for JamesCherrill
0
607
Member Avatar for 330xi

Hi! I'm working with word through my c++ application. And I want to read some documentation about available opportunities. I see some piece of code of some paticular situations (to add a picture, to add text, to save file, to fill table) in forums, but I want to observe all …

Software Development c++
Member Avatar for 330xi
0
348
Member Avatar for razree

Hi all I've been struggling with this one for some time now and I would realy appreciate some help. I have a string which gets data from mssql server, reader collects data (among others also "person) SQLStr = "select * from tablename order by id desc command = New System.Data.SqlClient.SqlCommand(SQLStr, …

Software Development listview mssql vb.net
Member Avatar for razree
0
2K
Member Avatar for london-G

I have started a database application just like an address book, however I would like to have the user to upload a picture that will show when the user click save. Any idea? Thanks alot

Software Development java
Member Avatar for seslie
0
136
Member Avatar for bhagawatshinde

Hi guys, How to sort hashtable keys in ascending order. I have 5 keys 1,2,3,4,5 and respective values are 10,7,8,6,9,5. but when i am displaying records it shows like this..... foreach (DictionaryEntry entry in srque) { MessageBox.Show("Key === " +entry.Key); MessageBox.Show("Value ===" +entry.Value); } the output i am getting like …

Software Development
Member Avatar for bhagawatshinde
0
3K
Member Avatar for themaj

Back on my form with a ton of financial data entry textboxes but I want to have the data formatted at runtime, as I enter the data. I have a format declared as Public Const cFmtCurrency = "##,###,###" ' don't need decimal for the local China currency What would be …

Software Development vb.net
Member Avatar for themaj
0
366
Member Avatar for NunsBeachSurfer

Hi all, I am attempting to assign values to a multidimensional array but am having difficulty. This isn't the exact code that I'm using, but the idea is this: for(int T=0; T<5; T++) { array[T][3][4] ={{4,2,6,4},{5,2,5,3},{6,3,1,5}} } For all T from T=0 to T=4, assign the same values shown above. …

Software Development c++
Member Avatar for mike_2000_17
0
302
Member Avatar for aimboter89

Hi, I am trying to delete data from dataGridview, and update my Access database, but I am having trouble withe these code it keep stated that I have "Object not set to an instance of an object" and I don't know where my code went wrong, please help, I am …

Software Development dataset microsoft-access vb.net
Member Avatar for aimboter89
0
189
Member Avatar for fishstick

Hello xD First : Im new to c# stuff Im having some windows form app. I read data from datagridview(iv puted in from table..works fine) and i should write it to table in database.. My insert statment doesnt do nothing.. private void button3_Click(object sender, EventArgs e) { int amorplanid = …

Software Development open-source
Member Avatar for Momerath
0
121
Member Avatar for dsatele1

I'm new to vb so it is no surprise that I am stuck. I have this code and it runs as it should but I get a the Error "Run-time error '91: Object variable or With block variable not set". How can I fix this and have it continue on …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
127
Member Avatar for mohan_saini

Hi all, I have to interface an IC which is giving serial output bitwise from a single pin this pin is directly connected to a microcontroller i have to read this single pin to an unsigned int. i have written a function something like that but its not working. unsigned …

Software Development c c# c++
Member Avatar for Ab000dy_85
0
130
Member Avatar for fatalaccidents

Hey guys, I'm trying to use mpi4py on my mac but I'm running into some problems. I'm just trying to get it up and running by running a simple helloworld program that runs on different processors. When I run the command 'mpiexec -n 2 python helloworld.py' I'm getting a very …

Software Development python
Member Avatar for fatalaccidents
0
553
Member Avatar for Waleeed

public class Main{ public static void main(String[] args){ User u1 = new User("My Super Ex-Girlfriend", 5734); User u2 = new User ("Morad", 5734); User u3 = new User ("Fatma", 5734); Network n = new Network("Telecom international", 5734); Message m = new Message ("My Super Ex-Girlfriend", "Morad", "My heart in pain", …

Software Development java
Member Avatar for 1stDAN
0
232
Member Avatar for TTTHXC

i have a function that is supposed to check a string against a set of types, stored as a hash set in the class o. however the function only works if there is one word. if the string conmtains more than 2 words, my program crashes with NullPointerException. public static …

Software Development java
Member Avatar for TTTHXC
0
103
Member Avatar for ollie60

Hi Recently I had the following error occur when the CImg destructor is called, 0xC0000005: Access violation. It occurs at the end of the function unwrapFilteredImage when the destructor is called and I have traced it to the point where inImage is being destructed. The first thing that is destructed …

Software Development c++
Member Avatar for ollie60
0
238
Member Avatar for npmiller

I was creating a program using vb.net on visual studio. Unfortunatley when I closed out I save it in a way where all of my developer coding was erased. Luckily I still have the debugging file, but it won't allow me to see the form developer or design view (which …

Software Development vb.net visual-studio
Member Avatar for adam_k
0
105
Member Avatar for winki

[Sample Project](https://skydrive.live.com/?cid=e4d7ee6214fdc062&id=E4D7EE6214FDC062%21120) Excuse me. I am a new vb programming and my enlish is not well. A link on top is my sample project. I have to try hard to fix it. But i have no idea how to fix. If you download my project and run it. When you …

Software Development vb.net visual-studio
Member Avatar for Reverend Jim
0
308
Member Avatar for Zvjezdan23

#include <iostream> #include <string> #include <cmath> #include <math.h> #include <algorithm> #include <cstdlib> using namespace std; int main() { string names[10]; int score[10]; for(int scores = 0; scores < 10; scores++) { cout << "What is your score? "; cin >> score[scores]; cout << endl; } int swapHolder = -1; int …

Software Development algorithm c++
Member Avatar for deceptikon
0
137
Member Avatar for koolzed

a simple c++ program for an adress book that adds contact, stores the contacts and searches for the contact... it should have only one class called class addy_book..i called a constructor and am stuck coz i don't know where to go from here #include <iostream> #include <fstream> using namespace std; …

Software Development c++
Member Avatar for WaltP
0
1K
Member Avatar for Majestics

How to provide auto size re-ajustment in java design i.e when vb.net form are expanded then it automatically expand the button and textfield appropiatly like nothing changed... while in java every thing messes up... Any Suggestions.

Software Development java
Member Avatar for Majestics
0
165
Member Avatar for iraj.jelo

i have a Qt code writed in C++ . i want translate it to python code, but i have a problem in 4 code line: all code is: void TableView::print(QPainter* painter, const QRect& area) { const int rows = model()->rowCount(); const int cols = model()->columnCount(); // calculate the total width/height …

Software Development c++ python qt
Member Avatar for HiHe
0
2K
Member Avatar for LuisJ

import javax.swing.JOptionPane; import java.text.DecimalFormat; public class payrate { public static void main(String[] args) { String str; String name; double horasT; // horas trabajadas double rate; // rate por hora double salarioB; // el salario bruto name = JOptionPane.showInputDialog ("Entre le nombre del empleado: "); do { str = JOptionPane.showInputDialog("Entre las …

Software Development java java-swing
Member Avatar for JamesCherrill
0
200
Member Avatar for ironman99

im having trouble with this oledb commands im just a starter using this commands why can i not add to a microsft access is my insert declaration wrong can i give my code just for you to check it if something is wrong?

Software Development
Member Avatar for ironman99
0
102
Member Avatar for DarkMonarch

hey guys, im building a small prediction software, the GUI is in PHP and i want to do the data crushing in C. (sequence, matrix and multiple variables isolation) i know the basics in C, but im no C expert. Is it possible to pass from C to PHP other …

Software Development c c# c++ gui php
Member Avatar for DarkMonarch
0
247
Member Avatar for lakshay21

Hello, I would like to get some help please. I am a newbie in Java and i am stuck. Actually I wrote a code in which i want to draw a circle and then move that circle downwards like free fall. I can deal with the coordinates but i don't …

Software Development java java-swing
Member Avatar for JamesCherrill
0
160
Member Avatar for gedas

Hey Guys, Could someone guide me o show examples of how i can hit a url and find whether its dead or alive, well simply i want to monitor couple of sites incase they go down so if the site is returning me holding page or any other error i …

Software Development java
Member Avatar for JamesCherrill
0
87
Member Avatar for Lucaci Andrew

Have some problems with the qt destructor. I'm working on QtCreator: here's the class: the .cpp #include "controller.h" Controller::Controller() { } Controller::Controller(MovieRepo *movrep, MovieValidator *movval){ this->movrep=movrep; this->movval=movval; } void Controller::addMov(int id, string title, string desc, string type)throw(ValidatorException){ Movie* mov=new Movie(id, title, desc, type); movval->validate(*mov); movrep->store(*mov); } const Movie* Controller::getById(int id){ …

Software Development c++ ios qt
Member Avatar for Lucaci Andrew
0
272
Member Avatar for abu taher

i work with 3 more form. 2 form has no border. when i click a button a form is show. when i minimize main form the other form still show. but i want when i minimized main form all from will minimize what was open.

Software Development visual-basic
Member Avatar for Qesha carol
0
1K
Member Avatar for SalicBlu3

Hi guys, I'm not sure how to enter new entries into an array that is full. scanf() allows us to input a number. array[i] allows us to put the number into the array The problem with int array[x] is that you have to define the number of values in the …

Software Development c
Member Avatar for m4ster_r0shi
0
134
Member Avatar for GeekTool

I use a book to learn Java ,and this book contains making a difference question in each end of the chapters. I finished chapter 5, which is all about if and switch statements and operands such as bitwise and logical and loops. Now, it asks me to create a quiz …

Software Development java
Member Avatar for stultuske
0
134
Member Avatar for Onlineshade

public class NewClass { public static void main(String[] args){ int[] a=null; int p=0; int i=0; while(p<11){ a[i]=p; p++; i++; } } } what is wrong here.....here the array can not store data.

Software Development java
Member Avatar for stultuske
0
123

The End.