132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zack_falcon

I'm a newbie C# programmer, and I would like to ask for help on this error. I was trying to get a button to change its image when it is clicked, a task that sounds so simple, I know, but whenever I run the program and click said button, it …

Software Development c c# c++ image visual-studio
Member Avatar for Geekitygeek
0
211
Member Avatar for potato4610

Using nested for loops, how do I write a program that asks the user to input an integral number and then displays a diagonal line with that many dots on the console screen starting in the column? An input of 4 would display four diagonal periods, while an input of …

Software Development c
Member Avatar for Liyaan
0
97
Member Avatar for ChocoCrisp

anyone knows where i can DL it??...i just prefer video tutorials than ebooks..hehe

Software Development video visual-basic
Member Avatar for abu taher
0
104
Member Avatar for PM312

hi I am trying to add numeric text with [B]thousand seperater format [/B]in three textboxes. Problem is amount after thousand seperate get ignored i.e if text1.text is 1,250.00 text2.text is 3,500.00 and text3.text is 2,100.00 the result in text4.text is 6.00 instead of 6,850.00 Text4.Text = Text1.Text + Text2.Text + …

Software Development visual-basic
Member Avatar for AndreRet
0
205
Member Avatar for jellybeannn

I've got a DropDown which I populate from a database. When an item is selected I want to redirect to another page with the selected id, but the problem is it passes "1" no matter what was selected. [code] protected void Page_Load(object sender, EventArgs e) { Populate(); } public void …

Software Development open-source
Member Avatar for jellybeannn
0
113
Member Avatar for Tech B

This bot has some common functions, along with some not so common. I've been using this code to text my wife from work when my phone dies. Requirements: [LIST] [*]Gmail account (for texting) [*]xgoogle (for lang translation) [/LIST] I know it is messy, and the variables are named poorly; sorry. …

Software Development python
0
482
Member Avatar for kandarpa

Hi All.. I have developed a tool in C++ and I want to check the performance of the tool using [COLOR="Red"]callgrind[/COLOR]. For the first time I have executed my tool with different input sets and I have taken the number of instruction cycles as the referance for further usage. Following …

Software Development c++
Member Avatar for kandarpa
0
94
Member Avatar for djenoe

i know i need to post properly using (code) (block codes),, this is my understanding of that rule if i'm wrong pls teach me, i will abide. thank you I have been trying to get this code right for 4 days, i am losing hope. i know you'll understand me. …

Software Development java
Member Avatar for djenoe
0
113
Member Avatar for djenoe

this is my whole code hi NOrmR1 would you give me a hand mate please [CODE] import java.util.*; class Property { private String ID; private String description; private String location; private double weeklyRR; private char status ; private boolean visibility; public Property (String pID, String pDesc, String pLOc, double weeklyR …

Software Development java
Member Avatar for djenoe
0
104
Member Avatar for maj13205

I am using Xcode on a mac osx with c++ and std project, I get the following error when I try to compile Build OpenCLCpp of project OpenCLCpp with configuration Debug Ld build/Debug/OpenCLCpp normal x86_64 cd /Users/mohammadjeragh/Documents/MyResearch/OpenCLCpp setenv MACOSX_DEPLOYMENT_TARGET 10.6 /Developer/usr/bin/g++-4.2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/mohammadjeragh/Documents/MyResearch/OpenCLCpp/build/Debug -F/Users/mohammadjeragh/Documents/MyResearch/OpenCLCpp/build/Debug -filelist /Users/mohammadjeragh/Documents/MyResearch/OpenCLCpp/build/OpenCLCpp.build/Debug/OpenCLCpp.build/Objects-normal/x86_64/OpenCLCpp.LinkFileList -mmacosx-version-min=10.6 …

Software Development c++
Member Avatar for maj13205
0
116
Member Avatar for thekilon

Are they any tool that can help build nice looking , easy to use installer, that will be strictly GUI based, no command line magic, for my end user for a programm I am building. If it is possible I would like to bundle inside my installation python and pygame, …

Software Development gui python
Member Avatar for thekilon
0
194
Member Avatar for jackiejoe

Was researching this but could only find how to use a datagrid which is displaying from a database? I currently have a for loop which goes through a 2d array and prints out all the things I want into a textbox but, what I want is to be able to …

Software Development display vb.net
Member Avatar for oric
0
2K
Member Avatar for HaveFun

Hi All, I need help. I want to make a background processing program. The idea is, the program will start in start up and every about 10 seconds the screen will pop up something. I wrote the code below. The program is starting when simulator begin. In console the timer …

Software Development api java
Member Avatar for Jayavardhan
0
211
Member Avatar for dsrepublic

I'm currently doing MIT Opencourseware's Practical Programming in C. I'm finding pointers a little bit confusing. Here are some questions: 1) int *pa=arr Suppose char * pc = (char*)pa; what value of i satisfies (int *)(pc+i)== pa + 3? [Answer:i=12] I get that the address is 12 bits down because …

Software Development c
Member Avatar for Ancient Dragon
0
120
Member Avatar for selle05

How to read per row in a table in mySQL as the database? i want each username when they login, they will go to their respective forms. Like for example, there are 3 users and each user have their different forms. can someone help me with this... thank you! This …

Software Development mysql vb.net
Member Avatar for Teme64
0
81
Member Avatar for ChroNoS

I am using the following function to convert ascii to hex, but it is not working properly. [CODE]Private Function HexString(EvalString As String) As String Dim intStrLen As Integer Dim intLoop As Integer Dim strHex As String EvalString = Trim(EvalString) intStrLen = Len(EvalString) For intLoop = 1 To intStrLen strHex = …

Software Development visual-basic
Member Avatar for Teme64
0
5K
Member Avatar for KhairilSyahrin

Hi, I'm a student from Malaysia and I am trying to do a program where the program will run and then when it reaches a certain part, it will show a message and pauses the program until the user clicks done/continue/yes button at the message. Flow: Programme running-->Message-->"Please close all …

Software Development visual-basic
Member Avatar for KhairilSyahrin
0
266
Member Avatar for lewashby

[CODE]from Tkinter import * import tkMessageBox import pygame.mixer # create GUI window app = Tk() app.title("Head Frist Mix") sound_file = "50459_M_RED_Nephlimizer.wav" # start the sounds system mixer = pygame.mixer mixer.init() # create function def track_toggle(): if track_playing.get() == 1: track.play(loops = -1) else: track.stop() # create function volume def change_volume(v): …

Software Development gui python tkinter
Member Avatar for vegaseat
0
277
Member Avatar for Mrinny

Hi people, This is my first post here. It really is a nice community, especially for people who are not "qualified" programmers with the "attitude". I am a programmer by hobby and did not like being in any community previously. There are some really nasty folk. Great job guys! This …

Software Development vb.net
Member Avatar for Mrinny
0
707
Member Avatar for gunbuster363

I want to crawl my gf's xanga's post into my computer for better reading but it require me to login before viewing the post I am wondering ,can python crawl this password protected webpage? I already have the id and password, because that is my id. the login webpage, for …

Software Development python
Member Avatar for gunbuster363
0
682
Member Avatar for parijat24

hey, thanks to all of them who helps me in learning this language, again there is one text file file 1.txt >[B]sp|P81928[/B][/B]|140U_DROME 67 198 Tim17 8.9e-19 No_clan >[B][/B]sp|P20905|5HT1R_DROME 179 507 7tm_1 1.1e-97 CL0192 >sp|P28285|5HT2A_DROME 243 805 7tm_1 3.2e-73 CL0192 >sp[B][/B]|P28286|5HT2B_DROME 107 588 7tm_1 7.2e-82 CL0192 * here the number represents …

Software Development python
Member Avatar for jcao219
0
198
Member Avatar for trimbley

I want to get a ListView to display some items with a different color. I have been setting the forecolor of the item in the lv_SelectedItemChanged event, by using item.ForeColor = Color.Red; This all works fine, except that when the item is selected, it defaults to using the system norm …

Software Development listview
Member Avatar for trimbley
0
4K
Member Avatar for linuxoidoz

Hi, I have a window and open another window with a button. Then, when the other window is closed I need to update some fields in the first one. Here's what I currently do: MainWindow: [code=python] ... self.connect(self.actionCustomFactors, SIGNAL("triggered()"), self.OnCustomFactorsTriggered) ... def OnCustomFactorsTriggered(self): self.customWin = CustomWindow(self.factorsFile) self.customWin.show() self.connect(self.customWin, SIGNAL("destroyed()"), self.OnCustomWinClosed) …

Software Development python
Member Avatar for linuxoidoz
0
13K
Member Avatar for andrewb

I need to register to a site programmatically and I used an object named webbrowser1 The problem is that there is some object with the same name in the web form like this [CODE] <p><input type="submit" value="Continue" [B]name="submit" [/B]style="width:250px;"></p> <input style="font-size:8pt; background-color:#221e1f; color:#e7e7e9;" type="submit" [B]name="Submit"[/B] value="Login" />[/CODE] so I can't …

Software Development
Member Avatar for GDICommander
0
104
Member Avatar for AngelicOne

I'm almost finish with my project that was made in visual studio 2008 using C#, so i want to ask this ahead of time. I want the project to be an executable file, this is my first time so how could I do it? One more thing, my form has …

Software Development visual-studio
Member Avatar for Lusiphur
0
322
Member Avatar for Brian Perrigan

Hey guys I've tried searching the internet for an answer on this and have come up short. I was hoping someone that does this could help me out setting it up. I want to write C++ using Mac OS. I tried going the Xcode route but found Xcode to be …

Software Development c++ ide operating-system
Member Avatar for iamthwee
0
180
Member Avatar for khaled mohamed1

i want to delete an element of array structure to use it again to more understand look to the part of this code [CODE] struct patient { int ID; char name[100]; float age; char sex[7]; char adress[100]; char hometelephone[12]; char mobiletelephone[11]; char workingtelephone[12]; char date[12]; char time[13]; } patients[100]; void …

Software Development c++
Member Avatar for Aranarth
0
117
Member Avatar for ultimatebuster

something like this: open red box with key or open red box to be broken down to open as .group("verb"), red box as .group("object"), with as .group("preposition"), and key as .group("indirectobj") my current pattern is [icode]"^(?P<verb>open)\W*(?P<object>\w*\W{1})\W*(?P<preposition>with|\Z)\W*(?P<indirectobj>\w*)"[/icode] it's not working, and i'm kinda out of ideas.

Software Development python regex
Member Avatar for ultimatebuster
0
133
Member Avatar for thilangane

Hi, I am working on a project and when I run my code, I get a segfault. I checked it with valgrind, and it says that I am trying to access a memory location that I maybe not malloc'd, stack'd or recently free'd. The only 'mysterious' thing I'm doing is, …

Software Development c++
Member Avatar for thilangane
0
234
Member Avatar for prem2

Hi , I want to get a String from command line argument and add the values. [code] class Sample { public static void main(String args[])throws IOException { String Given_Id=args[0];//Getting input int Add=0;; int Store=0; System.out.println("The length of the String is "+Given_Id.length());//Calculating length for(int i=1;i<Given_Id.length();i++) { Add=Given_Id.charAt(i); Store=Store+Add;//Adding values } System.out.println("The …

Software Development java
Member Avatar for kdmuk10
0
520
Member Avatar for bonett09

Whats wrong with my program? class Hw7{ public static void main (String args[]){ String s = "Hello"; int v = String s; System.out.println(v); } } This is the error thats brought up: --------------------Configuration: <Default>-------------------- C:\Users\Stephane\Documents\JCreator Programs\Hw7.java:5: ';' expected int v = String s; ^ C:\Users\Stephane\Documents\JCreator Programs\Hw7.java:5: not a statement int …

Software Development java
Member Avatar for WargRider
0
93
Member Avatar for kdmuk10

Here is my code, i am getting the following error message. How do i handle it? [code]package simp; import java.io.*; public class fCase { public static void main(String [] args) throws IOException { BufferedReader readObject = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter your expressions here"); String userEntry = readObject.readLine(); String [] toki …

Software Development java
Member Avatar for kdmuk10
0
1K
Member Avatar for blueman:-0

i have alot of forms , when i press in button that's open the other form in new one how i can make it open in the same form & not open it in new one

Software Development java
Member Avatar for WargRider
0
167
Member Avatar for AngelicOne
Member Avatar for AngelicOne
0
172
Member Avatar for job2

So, I have this code snippet where I read a text from a TXT-file: [code] file = open('test.txt', 'r') content = file.readlines() file.close() print(content) [/code] The printout: [code] ['My name is x.\n', 'I am 45 years old.\n', '\n', 'My girlfriends name is y.\n', 'She is way too old for me.\n', …

Software Development python
Member Avatar for TrustyTony
0
140
Member Avatar for Hektzu

My c++ code [CODE=c] string map = "111111111111111111111111111" for (int i = 0; i < 20; i++) { int number = atoi(map[i]); } [/CODE] Gave me error: cannot convert parameter 1 from 'char' to 'const char *' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style …

Software Development c++
Member Avatar for Hektzu
0
217
Member Avatar for askreiyna

i want to make image detection system using java. dont know the specific area yet...anyone have any idea??? please help me..=)

Software Development image java
Member Avatar for askreiyna
0
144
Member Avatar for p@rse

I am trying to set the checkbox to be grey. If the user clicks one box and its arguments over ride the other boxes then those will be greyed, but I have searched everywhere for this and cant find it, anyone have a solution? All i have seen was indeterminate …

Software Development vb.net
Member Avatar for p@rse
0
99
Member Avatar for Dingbats

Hello Everyone, my first post - so please don't shoot me if it goes wrong! I'd been looking for this for some time now and have seen a number of related queries but no solutions. I cannot take credit for the whole code here, but I did adapt it to …

Software Development c++
0
625
Member Avatar for ankush chander

/* * hello−1.c − The simplest kernel module. */ #include "/usr/src/linux-headers-2.6.31-16-generic/include/linux/module.h" /* Needed by all modules */ #include "/usr/src/linux-headers-2.6.31-16-generic/include/linux/kernel.h" /* Needed for KERN_INFO */ //#include "/usr/include/linux/module.h" //#include "/usr/include/linux/kernel.h" int init_module(void) { printk(KERN_INFO "Hello world 1.\n"); /* * A non 0 return means init_module failed; module can't be loaded. */ return …

Software Development c linux-kernel storage
Member Avatar for ankush chander
0
462
Member Avatar for Viruthagiri

Hello friends, I have text file which contains more than million phone numbers. Here is the example. I want to extract all numbers and put it in a excel single row file. [QUOTE]07748362656 07532517142 07946132831 07532135934 07880531707 07816820456 07879181057 07928483273 07735721101 07668889152 07925787076 07041438421 07524774407 07948383594 07927231600 07796044906 01679953124 01615331860 …

Software Development shell-scripting
Member Avatar for cfajohnson
0
146
Member Avatar for trippinz

I use Visual Studio and when I go on Properties->Settings, I cannot seem to find the setting thingy for background image. I do not like .XML files for user settings so I use settings instead. I want to change the background image of a menustrip and then when the application …

Software Development c# image visual-studio xml
Member Avatar for trippinz
0
266
Member Avatar for CanYouHandstand

Hi All I'm using SetWindowsHookEx to hook the keyboard. The connection is made and I am able to trap key presses. I'm also trying to call GetKeyboardState to obtain the state of the other keys at the time of the key press (to identify if shift, ctrl etc is pressed). …

Software Development c++ operating-system qt queue
Member Avatar for CanYouHandstand
0
670
Member Avatar for mrnutty

From project euler : [code] By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. [COLOR="Red"]3[/COLOR] [COLOR="red"]7[/COLOR] 4 2 [COLOR="red"]4[/COLOR] 6 8 5 [COLOR="red"]9[/COLOR] 3 That is, 3 + 7 + 4 + …

Software Development c++
Member Avatar for iamthwee
0
138
Member Avatar for RoyMicro

Hai In visual studio 2008 designer, the buttons tab controls etc are having smooth corners. But when we run the application the corners are sharp and edges are not smooth. Is there any property in controls to smooth edges and corners? Thank you

Software Development gui visual-studio
Member Avatar for xpentor
0
255
Member Avatar for mrnutty

Look [URL="http://www.spoj.pl/problems/ADDREV/"]here[/URL] for a complete description of the problem. Your code should follow the coding standards, good names, spacing, easy on the eyes...etc. Make sure you handle all test case and boundaries. Good Luck, and happy coding. Although this is a C++ forum, it would be nice to see some …

Software Development c++
Member Avatar for iamthwee
0
343
Member Avatar for amass

Can u pls help me solve this problem iam using vb6.0 and sql 2000. when i insert the currnt date (as Now()) in the dbase with a colunm datatype date/time, it inserts the date 01/01/1900. In MSAccess it works by putting a # b4 and after the date e.g. #25/06/2010# …

Software Development sql visual-basic
Member Avatar for Ionelul
0
295
Member Avatar for Nekrowizard

I started reading up on C++ yesterday, and I am a person who learns best by doing rather than just reading theory, so I wanted to create a small game where you are presented with dialogue, and thereafter have 3 options which each will lead you to another piece of …

Software Development c++
Member Avatar for Nekrowizard
0
108
Member Avatar for Darkicon

How do I make my app have a description in the Processes tab of the Task Manager? Changing the assembly description doesn't do it apparently. Right now the description is just it's name.

Software Development assembly vb.net
Member Avatar for Teme64
0
83
Member Avatar for +_+man

hello everyone plss tell me whats wrong with my code[code]#include <iostream> #include <cstdlib> using namespace std; int main(void) { int choice; do { cout<<"Welcome To Hayzam's TimeTable\n"; cout<<" press 0 to quit\n"; cout<<"1- Sunday\n"; cout<<"2- Monday\n"; cout<<"3- Tuesday\n"; cout<<"4- Wendesday\n"; cout<<"5- Thursday\n"; cout<<"6- Friday\n"; cout<<"7- Saturday\n"; cin>>choice; } while (true); …

Software Development c++
Member Avatar for tesuji
0
160

The End.