132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for evilguyme

is there a way to get the pixel color that is under the mouse? i heard of ways where i can turn it into bmp's a.. but even then i can't get the color of the pixel under mouse.. D: i just need a thing to make it get the …

Software Development c++
Member Avatar for William Hemsworth
0
143
Member Avatar for argio

Access violation (Segmentation fault) raised in your program. I received this error when I ran my program after compiling it. I can't find the error in my code. main.cpp [CODE=c]/* Main.cpp source file. Main module. Copyright 2009 (GNU CC Licence) Madcow Deity Productions */ #include <cstdlib> #include <iostream> #include "System.hpp" …

Software Development c++ ios open-source
Member Avatar for StuXYZ
0
113
Member Avatar for mseck

:confused:Hey I just started a programming class and stuck in a section of my assigment. i would like to know if someone could guide me to the right direction. Last instruction: " Write a script that reads an integer and determines and output XHTML text that displays whether it it …

Software Development java
Member Avatar for mseck
0
113
Member Avatar for NinjaLink

Hi, I have two seperate programs below writing a short program for each. My programs run, but sometimes when I rearrange things in my program to try to get it to work, I will receive an error. I am tried to figure it out since last night, but I am …

Software Development c++ linked-list
Member Avatar for verence
0
3K
Member Avatar for scrace89

I am new to python and programming this is my first time using the code (first assignment). I need help with writing a program to convert the code message entered by the user into ascii numbers, then find which number occurs 12% of the time, and have it represent the …

Software Development python
Member Avatar for willygstyle
0
278
Member Avatar for aladar04

I can't reverse the inputted word... Here is my code... Please correct it... Sample Output: Type word(s): hello The reverse is: 'olleh' [CODE=c]#include <stdio.h> #include <conio.h> #include <iostream.h> #include <ctype.h> #include <stdlib.h> #include <string.h> char orig [300]; char rev [300]; int len; void original () { cout << "\n\n\tType word(s): …

Software Development c++
Member Avatar for aladar04
0
156
Member Avatar for omotoyosi

hello all, I have an access database and working with vb 2005. I have one date column which is in MM/dd/yyyy format but my problem now is that if i search for date less than (it will use the month alone.) here is my code for search criteria. [CODE] search …

Software Development vb.net
Member Avatar for TomW
0
76
Member Avatar for coolice

Hi ! Could somebody help me how can I import email addresses from Windows Address Bok (wab) file programatically ? The simplest code would be the best one, as I was able to found several but far too hard code to understand the hole issue. Many many thanks for anybody …

Software Development c email
Member Avatar for William Hemsworth
0
242
Member Avatar for KirkPatrick

Alright I have created an object, its a simple object. Basically just textfields and a combobox. I have them all in a gridbag layout with weightx and weight y set to one so that they fill out the panel I place them on. [B][U]Question 1:[/U][/B] What I'm wanting to do …

Software Development gui java java-swing
Member Avatar for KirkPatrick
0
99
Member Avatar for shopnobhumi

I need to write a program where it will ask the user to write a sentence and count the upper case and lower case alphabet 'e'. I.E- number of lower case e is say 4 and number of upper case E is 3. Every tree is not an Elm,Emile. and …

Software Development java
Member Avatar for tux4life
0
183
Member Avatar for leegeorg07

Hi, I have this code: [code=python] import urllib2 as url import webbrowser def extract(text, sub1, sub2): """ extract a substring from text between first occurances of substrings sub1 and sub2 """ return text.split(sub1, 1)[-1].split(sub2, 1)[0] start="http://xkcd.com/" permlist=[] textlist=[] for i in range(1, 638): temp=start+str(i) permlist.append(str(url.urlopen(temp).readlines()[88])) textlist.append(str(url.urlopen(temp).readlines()[77])) for i in permlist: …

Software Development python
Member Avatar for ov3rcl0ck
0
207
Member Avatar for Simzz

dear all, I have a problem at the following code that causes a segmentation fault and don't know the reason: [CODE] char * cString (char letter, char * string) { char *first= string; char *point= string; while(*string!='\0') { if (*string!=letter) { *point=*string; //segmentation error point++; } string++; } return first; …

Software Development c
Member Avatar for Simzz
0
76
Member Avatar for catcit

Hello! As the title suggests I need some help regarding an "open directory" dialog box. I tried this code but every time I run the module it appears a blank window in the back of the dialog box and normally after I select the directory it should disappear but it …

Software Development python tkinter
Member Avatar for vegaseat
0
24K
Member Avatar for hou01087

I need to write a program that create some process by select number from menu. And then, if I select 4, ALL process created by this program will be terminate. So, I'm using processBuilder to create process. The problem is how can I destroy the process? Thank you. Here's is …

Software Development java
Member Avatar for quuba
0
5K
Member Avatar for htndrum

I'm having trouble getting this program to keep going through the lines in the first loop. It just prints out the output for the first (searchline) and stops. Can anyone help me to figure out why it won't keep reading the lines in the birthday file? [CODE] import string def …

Software Development python
Member Avatar for foosion
0
106
Member Avatar for arcticM

I have a struct WRITER and I made [CODE]typedef WRITER* WriterPtr;[/CODE] also there is another struct called BOOK and a [CODE]typedef BOOK* BookPtr[/CODE] in my BOOK struct I have a [CODE]WriterPtr writerPtr; //pointer to the writer struct[/CODE] now I have a func: [CODE]void choiceA(BookPtr parr, int n,WriterPtr *pWriter, int *psize)[/CODE] …

Software Development c
Member Avatar for Dave Sinkula
0
113
Member Avatar for jcmeyer

I need a back-end that can: -be used in python -handle multiple-users reading and writing to a database at the same time -can be accessed on a mapped share drive I have used sqlite but I have read that it is not recommended for multi-user use. I have looked into …

Software Development python sqlite
Member Avatar for ov3rcl0ck
0
236
Member Avatar for squareff255

I'm trying to write a python program that guesses a number that the user chooses between 1 and 1000 in no more than 10 guesses and I can not figure it out for my life! I know it's super beginner and there are a lot of problems, but please be …

Software Development python
Member Avatar for snippsat
0
92
Member Avatar for tksrules

How to move pointer in display to beginning of line.I don't want to create a new line.I want to take the cursor/pointer to the beginning in same line. I have taken help of all possible combinations of System.out.print statements. For example in the code below i want to print 70 …

Software Development java
Member Avatar for jmaat7
0
119
Member Avatar for chandagondhali
Member Avatar for siddhant3s
0
65
Member Avatar for NT.

Hi, I am thinking about something that I heard in a discussion and I am not sure whether it is really like that or not. Calculating a shortest path on a graph can be done either using dijkstra's algorithm , basically DFS or by BFS. There might be some other …

Software Development algorithm java matrix-multiplication
Member Avatar for NT.
0
105
Member Avatar for soulrider

Hi all, I'm fairly new to programming in Python, and I have been getting on pretty well. I had a little working program compiled from old code snippets I had found online, converted to working 3.x code and combined together with some of my own ideas to create simple apps. …

Software Development microsoft-windows python
Member Avatar for vegaseat
0
293
Member Avatar for akie2741

How can i extact the personal address from html file.. After i get the source from the html file using read() method,what pattern should i consider if i wanna extact the address? Currently i think is use the compile() method to set the matching the address' pattern, but what rule …

Software Development html-css python
Member Avatar for jice
0
141
Member Avatar for akie2741

My code is: [CODE] import re import urllib import urllib2 webURL="http://www.sc.iitb.ac.in/~bijnan/personal-details.htm" #the website is connect=urllib.urlopen(webURL) #connect to this website htmlDoc=connect.read()#get the html document from this website patternIN="Permanent Address" # Where to begin to keep the text patternOUT="</tr>" # Where to end to keep the text (after the begining) keepText=False # …

Software Development html-css python
Member Avatar for vegaseat
0
160
Member Avatar for facadie

I have two form. Form 1 and Form 2 In form 1, i have a few textbox and and combo box. and BTNOk [to save] and BTNCancel[when BTNCancel is click, user are prompt whether to save file if there is changes in entry] Form 2 is the file where BTNCancel …

Software Development encryption gui
Member Avatar for Geekitygeek
0
217
Member Avatar for RehabReda

hi all i have made a small online game but i am facing a problem the server will be on my lap ok then if anyone press the connect key on the game a message box will be appeared saying that machine refused the connection so someone advised me to …

Software Development
Member Avatar for sknake
0
138
Member Avatar for blackdove

I'm new to recursion and object oriented programming, but we have been assigned the knight's tour problem. This is where the knight's piece has to travel to every space on a chess board and land on each spot only once. I pretty much have my program done, except i'm having …

Software Development c++ first-post
Member Avatar for RehabReda
0
2K
Member Avatar for cjjack88

Hi, i am using vb.net2008 and mySql 5.1.36 to do an assignment. I need to count the number of seat available in a table in my database. When i run my code, the error [COLOR="Red"] MySQL :: invalid attempt to access a field before calling Read()[/COLOR] occurred in the code …

Software Development mysql vb.net
Member Avatar for TomW
0
882
Member Avatar for jdam7459

I am having problems with traversing a parce tree. I need to do an in order traversal recursively. Here's the class's private section... [CODE] template <class data> class BinaryTree { private: struct tNode { data info; tNode *left; tNode *right; }; tNode *root; public: }; [/CODE] I'll be calling inOrderTraversal() …

Software Development c++
Member Avatar for jdam7459
0
101
Member Avatar for m_sam6

hiii i m working in a cross platform video conference application using java media framework but i faced many problems with JMF especially in camera detection since it can detect VFW cameras only and detect default camera when connect more than one except u disable default camera from device manager …

Software Development java video
Member Avatar for quuba
0
119
Member Avatar for nateuni

I am getting this error message, but I am not sure what I am doing wrong? Here is a edited snip-it of my code - [code=c] void WriteProgram(clientProgram *ptrToProgram, int *ptrTotalWkOuts, int *ptrNumOfEx) { int wkOut = 0; clientWorkout *ptrToWorkout; int *autoPopulate = (int *) calloc(1, sizeof(int)); clientWorkout *ptrToFirstWorkOut = …

Software Development c
Member Avatar for Tom Gunn
0
675
Member Avatar for gianrocks

hey everyone i need help with navigating images in a database, i was able to insert image to a database. btw, i am using sql server 2005 and visual studio 2008. i only converted a sample code of visual c to .net and i was able to do so, but …

Software Development image open-source vb.net visual-studio
Member Avatar for gianrocks
0
144
Member Avatar for chico2009

Hi All I am working on the project detailed below and need some help please. The flow diagram is the best I could do, I'm afraid. I need some direction as to what function to use to undertake the pointing to various lines of text and also the instruction to …

Software Development python
Member Avatar for jice
0
163
Member Avatar for snakay

Hi all, I have ms office2003 installed on my machine. Therefore I use Excel 11. I have excel export button which worked perfectly well before I installed VS2008 SP1 . After the installation I'm getting exception from my excel export button saying " Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" I delete and …

Software Development microsoft microsoft-office
Member Avatar for serkan sendur
0
471
Member Avatar for bsewell

Hi, I'm developing a VB6 application connecting to a MySQL database. I'm getting run-time error 3001: arguments are of the wrong type, are out of an acceptable range, or are in conflict of each other. I'm using the ODBC driver from MySQL. I would appreciate if anyone could spot where …

Software Development mysql visual-basic
Member Avatar for AndreRet
0
665
Member Avatar for erloumervie

Hi to everybody! Is anyone can help me how to add a row in datagrid in vb 6.0. I have three text box of data displayed in datagrid using a button addtocart. The problem is when i click the addtocart button data in text box were displayed in datagrid but …

Software Development visual-basic
Member Avatar for AndreRet
0
552
Member Avatar for squareff255

Sorry guys! Last time I posted, I didn't know about code tags! I put them in. SO, I'm trying to write a python program that guesses a number that the user chooses between 1 and 1000 in no more than 10 guesses and I can not figure it out for …

Software Development python
Member Avatar for JasonHippy
0
160
Member Avatar for mrmodest

The basic concept is that you have a VB form to input two distiguishable words into a single text box. The two words have a length specification were the first word must be 5 characters long and the second must be 6 characters long. A single character seperates the two …

Software Development vb.net
Member Avatar for Vineeth K
0
111
Member Avatar for leverin4

I have to write a very simplistic password cracker for a Security Class...Basically, the professor gave us a binary file with five encrypted passwords and a list of 354984 possible words. The first part of the assignment was easy, I can crack the 5 passwords in under a second. But …

Software Development java
Member Avatar for JamesCherrill
0
118
Member Avatar for fulvio1981

I want to detect when connectivity with SQL Server fails, so i can fire an alert for the user. Does anyone know a bit of code that will help me detect when connectivity with the SQL Server fails (SQL Server goes down, network cable is unplugged etc). I try with: …

Software Development sql visual-basic
Member Avatar for AndreRet
0
2K
Member Avatar for sonali.terse

How to Change Default exe Icon in vb.net Windows Application it is not from project- properties- application- icon. when form is in run mode then its showing visual studio icon on task bar i want to change that icon, and i also want to change icon for setup.exe. pls its …

Software Development c# vb.net visual-studio
Member Avatar for Vineeth K
0
222
Member Avatar for jtabak2

I am new-ish to python and need to write a short program which will take a file with many lines of sets of coordinates alongside a defined variable of a series of letters and out a 3 columned file with columns x, y, and letter. the input file has each …

Software Development python
Member Avatar for jice
0
156
Member Avatar for Gaiety

Hi , i am using the following function to verify whether a given tree is balanced or not. its working for some inputs and not working for others 1) 15 2) 15 10 3) 15 10 25 ( the above are balanced ok) 15 10 25 7 12 16 11 …

Software Development c
Member Avatar for dkalita
0
112
Member Avatar for pilsdumps

Hi, I've created a base user control from which I want to inherit to create custom controls. This control will be used for data entry and includes a tablelayoutpanel control and panels. When I inherit from the base control, the derived control will not allow the dragging and dropping of …

Software Development vb.net
Member Avatar for pilsdumps
0
846
Member Avatar for Nishara

I am new to vb.net and I'm doing a small project from vb.net.I want to insert values to a sql server database table from a windows form.I have written a vb class called OrderedItem.vb to add a new data row and assign variable values to that table.In the Form, for …

Software Development vb.net
Member Avatar for Ramesh S
0
167
Member Avatar for royaloba

Hello guys, i been searching this for a month still cannot find anything. is there any way to copy mysql table to ms access? Best Regards

Software Development mysql visual-basic
Member Avatar for AndreRet
0
454
Member Avatar for sysenm

Hi All! I am VERY NEW to Python and I am trying to make a program that can generate random words from a list of letters given to it. The command line can be: [I]program.py abcdefghi[/I] and then as a result the program will print all possible 9 letter words. …

Software Development python
Member Avatar for sysenm
0
104
Member Avatar for JimD C++ Newb

Good evening, all! My current assignment is a small Appointment Book written in Java. It should scroll through the times of the day, and display the appointment (if any) for that particular time of day. I can scroll through the different times with no issue, but I can't seem to …

Software Development java
Member Avatar for javaAddict
0
2K
Member Avatar for Abhishek227@msn

hi, I am new to c# and SQL server. I am currently using SQL management tool to create tables and have added table to data gridview visually while I can enter the data the table as well as the data base is updated but I cannot delete rows from the …

Software Development
Member Avatar for Abhishek227@msn
0
77
Member Avatar for hardik.rajani

I was trying to run a spring program with different style. I am new to this framework. I tried to load configuration file with types of loader. like [CODE] (1) BeanFactory factory = new XmlBeanFactory(new FileSystemResource("spring.xml")); (2) ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml"); (3) ApplicationContext context = new FileSystemXmlApplicationContext("/spring.xml"); [/CODE] But …

Software Development java spring-framework xml
Member Avatar for hardik.rajani
0
136

The End.