132,722 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for slingblade

I'm trying to mod a python script that reads the OS X Dock plist. I've never seen python code before this and I can't seem to figure out if I'm encountering a formatting error or a syntax error or both... Here is the original code snippet, which returns a formatted …

Software Development os-x python
Member Avatar for slingblade
0
161
Member Avatar for tron_thomas

I have a situation whereby I need to copy the contents of an STL vector into a memory buffer provided by the system. One might think that given: [CODE]std::vector<ObjectType> source; // Initalized to hold the objects ObjectType* target = reinterpret_cast<ObjectType*>(buffer); // Points to system provided memory buffer[/CODE] someone could do …

Software Development algorithm c++
Member Avatar for tron_thomas
0
593
Member Avatar for sutanu_halder

How to import Xml file into a table in MS-ACCESS database using Visual Basic 6.0? Please Help Me.....

Software Development visual-basic xml
Member Avatar for DWOffutt
0
2K
Member Avatar for mommabear

Hello again. For the current lab, we're working with strings and pointers. I'm trying to keep this one simple and get one step working right before I move on to the next. However, if I have subsequent issues with this lab, I'll just use this same thread rather and make …

Software Development c++ motherboards-cpu-ram
Member Avatar for mommabear
0
109
Member Avatar for falconwise

Original Problem I have an existing 2D array that is already filled with data for a matrix. I also have a structure that has a pointer looking like this double ** pointer. That being said. Here's a miniature version of the problem [CODE]#include <stdio.h> int main (){ int stuff [2][2]; …

Software Development c data-structure
Member Avatar for falconwise
0
114
Member Avatar for rtirak

Here is what I have to do. 1)Read integers from a file 2)If it cannot be opened, display an error message and exit the program. 3) Otherwise, read an integer from the file (there is guaranteed to be at least 1). 4) If that count is 0, display an error …

Software Development c file-system
Member Avatar for rtirak
0
167
Member Avatar for frogboy77

Hey there, this code was supposed to work out th GCD of 2 numbers added cout line in function and code seems to be running fine but it returns 4249024 instead of 29 this is probably a basic error on my part but can anyone tell me why? thanks for …

Software Development c++
Member Avatar for arkoenig
0
103
Member Avatar for Stefano Mtangoo

Hi, I'm trying to develop application with separation of UI/BL/DAL. I have read a lot of theories and I'm trying to develop a blue print for my application. I have no problem in UI thing. But I have problem with designing Data Access Layer. It will basically be a SQLite …

Software Development c++ sqlite xml
Member Avatar for Stefano Mtangoo
0
910
Member Avatar for angel392004

i'm currently working on my thesis e-voting system. and i need to modify my search candidate and search voter form. the data from my database is already loaded in my listview when the system. what i want to do is while i am typing in the search text box, at …

Software Development listview vb.net
Member Avatar for Alexpap
0
2K
Member Avatar for PeDz08

Here's the problem... I want to create a table about the stack like this: [code] ((A+B)-C) Symbol Postfix Stack ( ( ( (( A A (( + A ((+ B AB ((+ ) AB+ ( - AB+ (- C AB+C (- ) AB+C- [/code] But i don't know how to …

Software Development java
Member Avatar for NormR1
0
98
Member Avatar for challarao

Hi! I wrote a program on iteration of numbers means-- if n=10 ---n=10/2=5 5 is odd so 3(n)+1 upto getting 1. Here is program [CODE]#include<stdio.h> main() { int i,n,c=0; printf("n= "); scanf("%d",n); while(n!=1){ if(n%2==0){ n=n/2; } else{ n=3*n+1; } printf("%d\t",n); c++; printf("%d\n",c);/*printing no of iterations of n*/ } }[/CODE] I …

Software Development c
Member Avatar for Ancient Dragon
0
135
Member Avatar for qwest21

Hi everyone I have to write client/server client/client chat program for at least three machines(users) connected together to chat using java My questions are 1. Do i need to have a server installed ina one of the machines. 2. Do i have to run the server side onf the application …

Software Development client-server java
Member Avatar for masijade
0
365
Member Avatar for glenak

Hey guys, I have two questions. I have a multithreaded server that is able to process requests from more than one client at a time. However, my server has a habit of shutting down after a while, despite that I have an infinite while loop to keep it accepting connections. …

Software Development client-server java
Member Avatar for glenak
0
186
Member Avatar for xiansen

You are to write a program that plays the game of “Guess the Number”. Your program is to randomly choose a three-digit number, allow the user to guess, provide feedback indicating if the users’ guess was too high or too low, and count the number of guesses the player makes. …

Software Development c++
Member Avatar for Duki
0
294
Member Avatar for MivanF

where i can download the c++ free???? :S

Software Development c c# c++
Member Avatar for Nick Evan
0
108
Member Avatar for Rajkamalwin

//i am writing a code that read from a file and store words in an character array but //in the wriiten by me,it is compiling but not extracting words in the array. [CODE]#include<iostream> #include<fstream> #include<string> #include<string.h> using namespace std; int main() { ifstream fin; char ch; int j=0; string line; …

Software Development c++
Member Avatar for Ancient Dragon
0
90
Member Avatar for D33wakar

I was using winsound module for the first time to use it on one of my small app,and it didn't even gave me a BEEP!. I imported winsound module first. [CODE] >>> import winsound >>> [/CODE] then [CODE]winsound.Beep(37,10)[/CODE]leads to nothing! Any kinda help is appreciated.

Software Development python
Member Avatar for vegaseat
0
9K
Member Avatar for redyugi

I have recently redid an earlier version of my version of Pong. However, I am having a slight issue with it. Whenever the ball hits the opposing paddle and then hits the bottom, the ball travels along the bottom until the player paddle hits it. I have tried for days …

Software Development os-x python
0
103
Member Avatar for kashy!

I have created a small app in VB.Net, Its was working well, I published it twice or thrice as well but now when I tried to publish it again I got following error, ________________________________________________________________________________________ Error 3 An error occurred while signing: Failed to sign bin\Debug\app.publish\\setup.exe. SignTool Error: ISignedCode::Sign returned error: …

Software Development vb.net
Member Avatar for kashy!
0
653
Member Avatar for Empireryan

I am writing code for a guessing game program. The game is supposed to generate a random number, 3 digit number and let the user guess what it is, providing feedback for every wrong input. It is also supposed to perform 10 iterations, keeping track of the number of guesses. …

Software Development c++ gaming
Member Avatar for Fbody
0
531
Member Avatar for phouse512

Hello, I've looked all over for the solution to this problem, but they all present a similar solution to this one and they all don't work. I've created the JFrame in the constructor for the class that this method is contained in. [CODE] public void print() { JPanel panel = …

Software Development display image java
Member Avatar for phouse512
0
77
Member Avatar for ozlem.a17

So i have to write a program that designs a basic Home CAD System. The user will be able to build a house, add/remove rooms and items, etc. I have began writing the program and all seems gravy, i decided to use an ArrayList for the list of rooms the …

Software Development java
Member Avatar for NormR1
0
142
Member Avatar for yap_1991

Hi all Im experiencing problems whereby my codes can only read one file instead of all files in my directory. Does anyone know anything regarding this? Below are my codes: [CODE]import java.io.*; import java.util.*; public class extractionn { public static void main( String[] args ) { File dir = new …

Software Development java
Member Avatar for NormR1
0
134
Member Avatar for GAME

How can I remove all the items of a list? I do not know any thing about how the items get indexed, thats why I cannot provide a better code except this.. [code] for (int i = 0; i < _Cars.Count; i++) { } [/code]

Software Development
Member Avatar for Geekitygeek
0
95
Member Avatar for sabeeh ahmed

hii QUESTION: Take any 4 integers add them and print the first and last digit of the answer the restriction is that i can only use scanf command and data types.. I AM VERY THANK FULL IF SOMEBODY SOLVED MY PROBLEM

Software Development c
Member Avatar for sabeeh ahmed
0
93
Member Avatar for sam1

Hi, I have browser embeded, How would i fire and even whenever a browser field is clicked. basically i have this website where when you click on a fieled it will show a button. i want to capture that button's click. any help would be appreciated thanks

Software Development
Member Avatar for Geekitygeek
0
100
Member Avatar for IDC_Sharp

I made this code: [CODE] private int a; private int b; private void Form1_Resize(object sender, EventArgs e) { adrBarTextBox.Width = b + this.Size.Width - a; } private void Form1_ResizeBegin(object sender, EventArgs e) { a = ((Form)sender).Size.Width; b = adrBarTextBox.Size.Width; } [/CODE] when i open the program and i maximize the …

Software Development
Member Avatar for Geekitygeek
0
162
Member Avatar for gertails

please help me on my problem about visual basic 6.0 my problem is how to add music background .... please give me some code or some idea thank you....

Software Development visual-basic
Member Avatar for AndreRet
0
502
Member Avatar for drake10k

Hello, I'm receiving an error message (ArgumentException was unhandled - Parameter is not valid) when I'm trying to capture a portion of the screen with a rectangle. It works great when drawing the rectangle with clickPoint.X < lastPoint.X and clickPoint.Y < lastPoint.Y, but when lastPoint.X or/and lastPoint.Y is lower than …

Software Development
Member Avatar for Geekitygeek
0
133
Member Avatar for NH1

Im trying to change the color of a row when the value of one of my columns is changed to [icode]Terminated[/icode]. for example when an employee is termiated i want the color of his record to be red. this is the code i have so far. [code=c] foreach (DataRow dr …

Software Development programming-construct
Member Avatar for Geekitygeek
0
298
Member Avatar for bbman

Hey, I am creating a usercontrol, and I would like an Items property, like in ListView.Items. How would I do this? Cheers, Jacob Edit: I'm making a static menu, that won't disappear. Would it be better to just skin a listbox? There will be events for the items.

Software Development listview
Member Avatar for Geekitygeek
0
123
Member Avatar for erfanjan

i write one program that have mant textbox for entry data into database but i want when user enter data in textbox and press 'Enter' ,change focus to another textbox. can anyone have idea for hep me? thanks.

Software Development
Member Avatar for Geekitygeek
0
141
Member Avatar for dayju

#include<stdio.h> #include<stdlib.h> #include<conio.h> typedef struct { char fname[30]; char lname[30]; char MI; }stud_name; typedef struct { unsigned long idnum; stud_name name; char course [10]; int yr_level; }studtype; typedef struct { int grpnum; char subj[24]; int time_sked; int day; int units; char rmnum; }class_sked; --sir, is this a correct definition?i have …

Software Development c linked-list
Member Avatar for dayju
0
144
Member Avatar for jjf3rd77

Hello all I am new to this community have found help on it without even joining however I cannot find a solution to my specific problem... Write a program that reads five numbers (each between 1 and 30). For each number read, your program should print a line containing that …

Software Development c++
Member Avatar for hupy
0
858
Member Avatar for wb4whd

ok, I am working on a program for work and I am stuck on trying to make a new XML file from VB.NET 2010. I have the old code which was done in C# and it works but even using a C# to VB converter didn't help. I will paste …

Software Development session vb.net xml
Member Avatar for GeekByChoiCe
0
179
Member Avatar for VBNick

I have a simple web server built, and I created a status window that runs on a separate thread. If I have a list of structs being updated by the main thread, is it ok to read(only read) from those structs from the second thread for the purpose of getting …

Software Development c++ web-server
Member Avatar for mike_2000_17
0
187
Member Avatar for Garee

I recently wrote a short program for an exercise in a textbook. After completion however I re-structured the program to use methods instead of one long main method. My question: Which way of programming should I be using? I am leaning more towards the methods as it is much more …

Software Development algorithm java
Member Avatar for JamesCherrill
0
86
Member Avatar for anoop4real

Hi, I have an sqlce query where I dynamically constructs the string by appending different strings. I have a field where I append a product name and its subname. Say for example main name "Pepsi" and Subname "Large", there are some instance where the Subname is empty and the subname …

Software Development oracle
Member Avatar for anoop4real
0
115
Member Avatar for erogol

I am searching about programming languages to choose for improving myself in one of them in the way of my aims. Thus, I want to learn what is special for python and what is the general purpose of using this language, it is suitable for what kind of programs. Please …

Software Development python
Member Avatar for snippsat
0
146
Member Avatar for AutoC

Hi, I have a string that looks like this \\x\\y\\z-Select * from x where y=z I need to split this at the '-' into two strings. When I use substr as, [code] string s = "\\x\\y\\z-Select * from x where y=z"; size_t p = s.find("-"); if(p!=string::npos) string query = s.substr(p+1); …

Software Development c c# c++
Member Avatar for AutoC
0
251
Member Avatar for sourisengupta

Hi, Can anybody give the list of environment variable functions list. For eg. getenv() is one function which can catch the environment variable from the system. Thanks for your help in advance.

Software Development c
Member Avatar for sourisengupta
0
100
Member Avatar for Dupron

Recently I have made a simple chatting application(in Java). It has two classes one for client and one for server.On compiling it is not giving any error but on running, it is not giving desired result. So, It will be grateful if you come ahead and try out helping me …

Software Development client-server java java-swing
Member Avatar for yasuodancez
0
573
Member Avatar for Dhammakirty

hiiii i have to open .ppt,.pps files in vb.net web page with background music to .ppt files Its very urgent , anybody can help me ? ? ? Thanks in Advance

Software Development vb.net
Member Avatar for vikash511987
0
98
Member Avatar for zahnsoftware

When is it appropriate to use abstracts as opposed to interfaces to define base class behavior? What is the most common, practical usage for each? For instance, if I were to write a database applications that required to read a wide variety of database formats, would I define by database …

Software Development user-interface
Member Avatar for embooglement
0
191
Member Avatar for shrublet

Hello, all! :) Let me preface this by saying that I am a computer science student with only a rudimentary introduction to C++ so far, having worked mainly in Java up until now. I apologize if this is an overly simplistic question. A relative of mine has asked me to …

Software Development c++ image opengl
Member Avatar for NicAx64
0
158
Member Avatar for patton228

I have to add inputs just in case i have up to nine lines that i need to add feet values too. but im curious if i only have 5 lines to input is there a way to bypass the other inputs cause if i in put zero it has …

Software Development python
Member Avatar for patton228
0
156
Member Avatar for Davish

I want to write a program that accepts date from the user in the for mm/dd/yy and then displays it in the form yymmdd Enter a date(mm/dd/yy): 2/17/96 You entered the date 96021? The program should be in C language.....thank u!!

Software Development c
Member Avatar for kings_mitra
0
97
Member Avatar for sadaka

Hey how's it goin' every body, I am pretty new to opengl so please bear with me a little k. Here goes... I downloaded glut.dll,glut.lib and glut.h. Placed them in the following directories: glut32.dll to windows system32 directory, glut32.lib to dev-cpp lib directory, and glut.h to dev-cpp gl directory. Yet …

Software Development c++ opengl windows-vista
Member Avatar for sadaka
0
155
Member Avatar for chris forgeard

Here is my code excuse me if it seems a bit off i've only been coding for a day :) What I want it to do is in the comments at the top [CODE]/*====================================================================== IN THIS PROGRAM I WILL TRY AND SCRIPT A CONVENTIONAL CALCULATOR WITH THE USER ENTERING THE …

Software Development c++
Member Avatar for embooglement
0
157
Member Avatar for codedude

Hi friends, I have a windows application(vb.net) in which i want to retrieve informations from 3 websites(after authentication).here i have a list of customer details.based on the customer details application have to decide where to retrieve data(i mean among the 3 websites).now i am able to retrieve informations by giving …

Software Development vb.net
Member Avatar for codedude
0
218

The End.