132,722 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
//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++ | |
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 | |
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 … | |
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 | |
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. … | |
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 = … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
#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 | |
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++ | |
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 … | |
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 | |
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 … | |
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 | |
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 | |
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); … | |
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 | |
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 | |
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 | |
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 ![]() | |
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 … | |
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 | |
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 | |
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++ ![]() | |
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 |
The End.