132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MastAvalons

Hi, my project works with emulating the file system. I can invent my own as well. I'm developing a unix like shell which will provide all the file handling commands similar to unix. Basically I want to allocate a large file on the actual file system, and treat it as …

Software Development c file-system unix
Member Avatar for MastAvalons
0
195
Member Avatar for moshe12007

hi i have have problem with my code i try to do event that use me to know when the clipboard changed - but it doesnt work :( -> The Code: namespace YossApp { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public void InputStr(string dataObject) …

Software Development
0
87
Member Avatar for MrEARTHSHAcKER

Hi, I am learning queues and I have found 2 examples. Both examples represent queues with limited size, for example 30. But <queue> allows us to create queue that is not limited by ***pre-set** queue size. Can anyone explain me how have they created something like that? Thanks! ***By *pre-set* …

Software Development c++ queue
Member Avatar for MrEARTHSHAcKER
0
247
Member Avatar for bigzos

Hey,,I tried the following code to retrieve data from an excel file,apply query and save the result of query to another excel file. Now there are two problems: One,I am getting the required data but some reduntant unwanted data too. Second,It only works if the excel file, from which the …

Software Development open-source vb.net
Member Avatar for bigzos
0
626
Member Avatar for thanadaray

How to check if table exist? **I would like to check if table exist then drop table. If not exist, create table.** My codes at this moment: import MySQLdb, csv, sys db = MySQLdb.connect("host","username","password","databasename" ) # prepare a cursor object using cursor() method c = db.cursor() # Drop table if …

Software Development python
Member Avatar for vegaseat
0
8K
Member Avatar for vriend12345

When I am trying to design an algorithm , I had a programming problem in Java .. I want to write M nested "for" like that: for (I[0]=1; I[0]<=N; I[0]++) for (I[1]=1; I[1]<=N; I[1]++) ... for (I[M]=1; I[M]<=N; I[M]++) { Statements; } Where M is entered by the user during …

Software Development algorithm java
Member Avatar for vriend12345
0
119
Member Avatar for jigglymig

I am having trouble making the link open a web browser and going to the website can someone please show me what to do in the linkClicked. private void agricultureLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { }

Software Development web-browser
Member Avatar for lxXTaCoXxl
0
114
Member Avatar for Bungie

I need help creating a pause screen for my pong game. Also if you could make a way to make the game fullscreen that would be great. Here is the code: import pygame, sys, random, os from pygame.locals import * import screen import screem os.environ['SDL_VIDEO_CENTERED'] = '1' # Pygame init …

Software Development os-x python
Member Avatar for TrustyTony
0
274
Member Avatar for zeqe

Hi there. I'm having trouble passing variables between Forms. Let me explian my self by an example. I have a Form1, the user types a "Client ID" in a textbox if it's not a valid one, it opens a Form2 in which the user selects the correct "Client ID", once …

Software Development vb.net
Member Avatar for zeqe
0
178
Member Avatar for jrosh

I am tryin to add rectangle to on to an image in wpf. Rectangle is drawn at MouseLeftButtonDown event. Problem is I want to add this rectangle straight to the Grid (on to the image) without using a canvas. How Can I do that? or How can I avoid using …

Software Development image
Member Avatar for Sahil89
0
2K
Member Avatar for triumphost

typedef union { unsigned Color; struct { unsigned char B, G, R, A; }; } RGB, *PRGB; inline RGB Rgb(int R, int G, int B) {RGB Result = {((COLORREF)((BYTE)(R)|((BYTE)(G) << 8)|((BYTE)(B) << 16)))}; return Result;} inline RGB Rgb(COLORREF Color) {RGB Result = {Color}; return Result;} The above is my code …

Software Development c++ data-structure
Member Avatar for L7Sqr
0
141
Member Avatar for perllearner007

I have a delim-tab file ID NAME FAMILYTAG EFFECT 001 John Black Positive 002 Kate Rhodes,Mich Positive 003 Aaron Sunders Negative 004 Shirley Rhodes Negative 005 Dexter Sunders,Hark Positive I want to input this file(which is much larger) and read in a name for eg: Kate. I want the script …

Software Development perl
Member Avatar for perllearner007
0
161
Member Avatar for sah

For some days I have been trying to optimize an image processing program (cropping, rotate, changing brightness and undo) written in c# 4.0. Getting suggestions from google I have optimized the code in many ways. At first some disposable objects hadn’t been disposed that’s why exception was shown. But I …

Software Development c# image motherboards-cpu-ram
Member Avatar for sah
0
1K
Member Avatar for adityawkhare

Can anybody here tell me please how to display a notification/message box in c++. suppose i'm making a program for factorial of a no. and i want to display the result in a message box with msg..." Factorial of No. is <fact>". help me please!!!

Software Development c++
Member Avatar for Ancient Dragon
0
572
Member Avatar for king03

hi there guys can you suggest me some games that I can program in c sharp in an object oriented way? just simple programs that can be done for maybe less than a week since I'm just starting to learn it yet. Any idea? Please help me guys I will …

Software Development c c# c++ gaming
Member Avatar for seslie
0
122
Member Avatar for collin_ola

Hi, I have a form in VB which is scrollable (using autoscroll) and when I currently click 'print', it only prints what I can see; it takes a screenshot of the viewable information. Here's my code: [CODE]Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click Dim settings …

Software Development vb.net
Member Avatar for n71423
0
2K
Member Avatar for prancode

I have this code which displays a login form, i want to encrypt the password before it stores into the sql database and should also be able to verify the pwd when a user logs in. Please help me, it'll be very greateful of you, Thank you. Private Sub Login_Click(ByVal …

Software Development vb.net
Member Avatar for Reverend Jim
0
247
Member Avatar for matharoo

-53 45 -54 43 -55 42 -56 41 -57 40 -59 37 -61 35 -61 36 -62 34 -64 33 -65 31 -65 32 -67 30 -68 29 -69 28 -72 25 -73 23 -73 24 -74 22 -76 20 -76 22 -78 20 -79 18 -80 17 -81 16 …

Software Development shell-scripting
Member Avatar for b1izzard
0
254
Member Avatar for mr_scooby

Hi guys, I am trying to connect to AD and want to be able to enter a group name and return all the members of that group. I have no idea what I am doing or where to start. I imagine that its not a lot of code I am …

Software Development
Member Avatar for mr_scooby
0
118
Member Avatar for anuj_sharma

I have created an application which puts all the images at a user defined location in a rtf document. The code is working fine and the images are getting inserted. However, if I open the document and add some text manually and save the file, the file size increases dramatically. …

Software Development api java
Member Avatar for anuj_sharma
0
644
Member Avatar for haris riaz

suppose i got a matrix 0 1 0 0 2 0 0 0 4 0 5 0 2 1 3 4 4 5 0 0 0 3 2 0 2 Select a matching by choosing a set of zeros so that each row or column has only one selected. It …

Software Development c++
Member Avatar for histrungalot
0
163
Member Avatar for khoo_jun

i have problem that the the loop to check if a digit is correct but not at the right place. then print. void feedback( char random[4], char guess[5]) { int i; for(i=0; i<4; i++) { if(guess[i]==random[i]) { printf("#"); } } if((guess[0]==random[1]||guess[0]==random[2]||guess[0]==random[3])&&guess[0]!=random[0]) { printf("*"); } if((guess[1]==random[0]||guess[1]==random[2]||guess[1]==random[3])&&guess[1]!=random[1]) { printf("*"); } if((guess[2]==random[0]||guess[2]==random[1]||guess[2]==random[3])&&guess[2]!=random[2]) { …

Software Development c
Member Avatar for WaltP
0
190
Member Avatar for lxXTaCoXxl

I get tired of having to google this simple line of code all the time. My problem with memorizing it is that I switch back and forth between C# and C++ all the time, and the way you overload operators in each is different. So once I learn one again, …

Software Development
0
174
Member Avatar for renzlo

Hi, All, I have a data table that looks like this: USERNAME ICOUNT IAVERAGE DATE_LOGGED LAGX01 1245 1245 05-07-2012 LAGX02 2211 1422 05-07-2012 LAGX03 1698 1112 05-07-2012 LAGX04 4598 1555 05-07-2012 LAGX05 2589 3245 05-07-2012 LAGX06 3321 1155 05-07-2012 LAGX07 3698 3458 05-07-2012 LAGX08 2589 4587 05-07-2012 LAGX09 1598 1142 …

Software Development sql vb.net
Member Avatar for renzlo
0
381
Member Avatar for king03

Hi guys I need help on how to create a remake of the popular tetris game for my csharp project. I am wondering how I will be able to design the tetris blocks on my own, I mean can I do it in xna? I tried once to use xna …

Software Development visual-studio
Member Avatar for lxXTaCoXxl
0
271
Member Avatar for silvercats

I need 15 .but I only have 3. can some one remind me of some? I have put only these questions so far This is just a practise questionnaire . not a real one. 1. What are your color preferences for below mentioned Sections? i. Title bar? ii. Tools bar? …

Software Development
Member Avatar for silvercats
0
120
Member Avatar for PDB1982

I am trying to figure out how to make a form quicker to fill out for my work, and it involves having a employee enter a patient's name in one text box, and then having that information duplicated in all other name text boxes. Here's what I'm thinking.... function FillName(f) …

Software Development vb.net
Member Avatar for ChrisPadgham
0
291
Member Avatar for digan

Hello everybody, I have an application for the iphone. When I go into a view, it is supposed to play a sound on repeat until I exit the view. This works fine the first time. The second (and subsequent) times the sound is played numerous times overlapping each other (two …

Software Development iphone objective-c
Member Avatar for ChrisPadgham
0
379
Member Avatar for Mike Bishop

Hi All, I have a spash screen on my project, this isn't just for effect but to read data from a file before my main project is started. the issue is that i cant seam to close my splash screen..... here is the code from my splash screen. Private Sub …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
2K
Member Avatar for dinosaur123

Hello again! I am still working on a program, and I am now working on sorting an array. Well, the array is a bunch of strings read from a text file. Some of the strings were turned into integers. I need to take the strings and find a way to …

Software Development c c# c++
Member Avatar for dinosaur123
0
271
Member Avatar for hhol1101

Hi everyone, I'm new to python and I have been trying to get this program to word but I don't know how to get the image cards to shuffle randomly and then appear on the graphics screen. Can anyone help me? The question was to create a program that displays …

Software Development python
Member Avatar for TrustyTony
0
2K
Member Avatar for abhishekagrawal

Hi all, I have written a program to find the reciprocal of an input number by using newton rhapson iterative method. Below is the algorithm implementation in C: #include<stdio.h> #include<stdlib.h> #include<math.h> int main() { double guess,newguess,input,error=1.0; printf("Enter the input number"); scanf("%f",&input); printf("Enter the guess for the reciprocal of the input …

Software Development algorithm
Member Avatar for TrustyTony
0
213
Member Avatar for Bladtman242

I have this annoying problem: I am filling a HashSet out with Road objects, only doing so to avoid duplicate elements. However, the output from lines 81 though 95 shows that the set contains duplicate elements. Sorry for the messy code, this is a pretty ad-hoc sollution, in addition to …

Software Development java
Member Avatar for NormR1
0
3K
Member Avatar for Torf

I'm doing an actually simple practice problem from the book, but I am still not sure how to correctly do it.. It's just converting pseudo code. 1st part > num SIZE = 5 > > num VALID_ITEM_PRICE [SIZE] = 0.59, 0.99, 4.50, 15.99, 17.50, 39.00 > > stack int validItems …

Software Development java
Member Avatar for NormR1
0
156
Member Avatar for soham.m17

How can I keep the lines that have been drawn previously after calling repaint() this is my paintComponent public void paintComponent( Graphics g ) { graphics2D = (Graphics2D)g; graphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); graphics2D.setPaint(Color.white); graphics2D.fillRect(0, 0, getSize().width, getSize().height); graphics2D.setColor(Color.black); } I've another method public void show_line(line a) { graphics2D=(Graphics2D)this.getGraphics(); for(int i=1;i<a.getLine_segs().size();i++) { Point …

Software Development java
Member Avatar for soham.m17
0
215
Member Avatar for pendo826

import javax.swing.JFrame; public class MainApp { public static void main(String[] args) { new MainApp().start(); } public void start() { CalculatorUI obj = new CalculatorUI(); obj.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); obj.setSize(275,275); obj.setVisible(true); } } import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JTextField; public class CalculatorUI extends JFrame { //Variables. …

Software Development java java-swing
Member Avatar for pendo826
0
163
Member Avatar for DeanMSands3

I need GMPXX on MinGW. This is driving me nuts. EDIT: I should mention I've tried using the precompiled MinGW GMP and GMPXX libraries via the **mingw-get**. And they fail. I removed them. I compiled GMP in MSYS with the following line. ./configure --enable-cxx --prefix="/mingw" && make && make install …

Software Development c++ pascal
Member Avatar for DeanMSands3
0
623
Member Avatar for suhasgh

Hello, i want to create a vector of pointers and delete them,but i am little confused whether my code is OKAY or not. here's my code: vector<Object*> SpriteList; for(i=0;i<10;i++){ Object* tempobj; tempobj=new Object(); SpriteList.push_back(tempobj) } for(int i=0;i < (int) SpriteList.size();i++){ delete SpriteList[i]; SpriteList.erase(SpriteList.begin()+i); } is there any memory Leak??plz help...

Software Development c++
Member Avatar for DeanMSands3
0
237
Member Avatar for utkarshsahu

I am basically trying to make a TicTacToe game in Netbeans GUI builder. I have nine(3x3) buttons to show a grid for the game and that's where you mark X and O's. I want to make it one player game. I wanted to know how to make an array of …

Software Development gui java
Member Avatar for utkarshsahu
0
133
Member Avatar for Pamilerin

In sql server , my query brings out more than one row of data SELECT * FROM TABLE 1 WHERE COLUMN LIKE 'PARAMETER' Now i am trying to make it in a dtagrid that the datagrid shows allpossible rows that is supposed to show .This is the code Dim objCommand …

Software Development sql vb.net
Member Avatar for Pamilerin
0
855
Member Avatar for cppgangster

Dear all, I have been away from c++ for a while and I have just got back and started reading about "c++ concurrency in action". I found an example where the author gives function witch returns thread instance but I can not understand how you can declare a function in …

Software Development c++
Member Avatar for deceptikon
0
179
Member Avatar for triumphost

I have the following: typedef union { unsigned Color; struct { unsigned char B, G, R, A; }; } RGB, *PRGB; Then I have: RGB Rgb(XYZ Xyz) { RGB Result; double X = Xyz.X / 100; double Y = Xyz.Y / 100; double Z = Xyz.Z / 100; double Red …

Software Development c++
Member Avatar for triumphost
0
954
Member Avatar for valestrom

I was wondering how to **Connect** to a FTP server in the form of it having Address, Username, and Password. Then be able to either edit or upload a file to a specific folder on the server. Because I am designing a website with a current news box on it …

Software Development c++
Member Avatar for thines01
0
321
Member Avatar for cyther

can somebody convert this line to c++? thanks fscanf(in, "%s %s" ,student[x].name, student[x].num);

Software Development c++
Member Avatar for cyther
0
161
Member Avatar for peter20

Hi, I am trying to make 8-tiles problem in prolog but my code is not running . To be more specific when I type an action then I take false. So the new state is not printed. [CODE] move([0, Y, Z], [Y, 0, Z], right). move([X, 0, Z], [0, X, …

Software Development puzzle
Member Avatar for TrustyTony
0
217
Member Avatar for anuj_sharma

Hi, I created an application which allows a user to capture screenshots and save them as images at a pre-defined location. Now, I want to insert the saved images to a word document. I am aware of Apache POI, but that is still under development and it seems that you …

Software Development apache image java open-source
Member Avatar for anuj_sharma
0
1K
Member Avatar for anuj_sharma

am trying to add images to a rtf document. I am able to add images to the document but I can't append any images. This means that when the 2nd Image is added, the first image is removed. I think that whenever the code is executed a new rtf document …

Software Development java
Member Avatar for anuj_sharma
0
1K
Member Avatar for zifina

hai all... i need to add google map to my c sharp project...and also be able to find distance between any two locations on the map... i have no clue how to do it.. i dont know how to use the google map api... please help me with any info …

Software Development api google google-api
Member Avatar for zifina
0
152
Member Avatar for daemonlies

Hey everybody, New to the java scene and having major issues, it would be appreciated if someone could have a look at my coding and see where i'm going wrong. I have a few 1. When i press the 'start new game' button the random number resets but not the …

Software Development java java-swing perl
Member Avatar for NormR1
0
145
Member Avatar for gigglygeckoq

I am new to programming, I am trying to learn how to program in Java through some old programs I found online, and yet I seem to be struggling. This is the program I wrote to fill a linked list with 10 numbers using a loop and then just printing …

Software Development java linked-list
Member Avatar for JamesCherrill
0
112

The End.