132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for oscargrower11

I've been strugglin with this all day. I'm trying to use python to walk through a registry key and delete all the values it finds. I've succeeded in getting it to find all the nested values, but as soon as I try to delete one, I'm met with "WindowsError: [Error …

Software Development microsoft python
Member Avatar for oscargrower11
0
1K
Member Avatar for pilipino93

Hi, I'm a bit rusty with my C# but I'm trying to write a program for this website I am making. It's just a little something to help me edit certain texts in my website faster than what I normally do. Anyway the program I am making, I want it …

Software Development file-system html-css
Member Avatar for pilipino93
0
263
Member Avatar for kjk86

What I'm trying to do is take a source file and only pull specific lines out and display those lines to a label/textbox/etc. What's happening is I am able to pull the first line, however my loop is terminating and I do not receive the rest of the results. Here …

Software Development display vb.net
Member Avatar for TnTinMN
0
391
Member Avatar for bluehangook629

Hello again my friends, I am trying to figure out how to code a function which will pause the system until the user presses the key. I did some googling and I was able to find this function called getch() for c++ but no luck for vb.net. Is there a …

Software Development vb.net
Member Avatar for Rango1239_2
0
1K
Member Avatar for natehome

how would you add a scroll bar to this code [CODE] import site # for exemaker import tkMessageBox from Tkinter import * import os, sys TITLE = "Pydit" class RoomEditor(Text, object): def __init__(self, master, **options): Text.__init__(self, master, **options) self.config( borderwidth=0, #font="{Lucida Sans Typewriter} 14", #font="{OCR A Std} 14", font="{Terminal} 14", …

Software Development python tkinter user-interface
Member Avatar for vegaseat
0
423
Member Avatar for testname123

Ok, this is a little hard to explain, i basically am making a miniature operating system and there is a notepad feature. I am allowing a save in this operating system. I have a hidden button on the mainscreen than shows itself when the save is clicked on the notepad …

Software Development operating-system vb.net
Member Avatar for testname123
0
152
Member Avatar for Labdabeta

I want to be able to make a program that emulates what a human at a computer can do. IE: I want to be able to read the visual information of a window (a 2d array of colour would be perfect) and be able to send virtual key syms and …

Software Development c++ microsoft
Member Avatar for Labdabeta
0
123
Member Avatar for WDrago

All, I am working on my first forms app (using NetBeans). I don't like to mix GUI code with app code, so I have my main class, GUI class and core code class nicely seperated. When the user clicks a button on the GUI form it calls a method in …

Software Development gui java java-netbeans
Member Avatar for WDrago
0
216
Member Avatar for hhm_pro992

Private Sub cmddelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmddelete.Click If Not acsconn.State = ConnectionState.Open Then acsconn.Open() End If 'sql statements strSQL = "DELECT * FROM Table1 ([Item Code], [Item], [Sale Price], [Purchase Price]) values ('" _ & txtid.Text & "','" _ & txtname.Text & "','" _ & …

Software Development vb.net
Member Avatar for hhm_pro992
0
242
Member Avatar for antoinette.boulevard

I've figured it out but I want to know HOW. When I do code I try and figure out the math behind it on the side so I know exactly what is going on. But this time has stumped me. I know what the code is suppose to be, so …

Software Development c c# c++
Member Avatar for pasx
0
3K
Member Avatar for Dev.Waleed

Hey there! I am a new student that wants to be a GOAT of Developing, I don't know anything about Java. But by watching I downloaded Eclipse IDE for Java Developers but don't know how does it work :D I have also downloaded Java Program or Files from http://www.java.com/ Can …

Software Development ide java java-swing
Member Avatar for stultuske
0
236
Member Avatar for Suzie999

Hi I'm hoping to get some starting points here in a subject that scares me, RegExp. I've looked at a couple of tutorials but they all seem to be based on std::string. I'd like to use std::tr1::regex but I don't know where to start or even if it's possible without …

Software Development c++ regex
Member Avatar for Suzie999
0
2K
Member Avatar for danifj

My name is Danielle Jacob and I am a Masters (through) Research student at Bangor University, North Wales. *[email removed]* I have been using Python now for about 3 months (but only once a fortnight for a few hours at a time...so I am still very new) My supervisor extracted …

Software Development python
Member Avatar for Xantipius
0
152
Member Avatar for hemanth.balaji

I am getting the following exception when I am running my Swing Application. But the program continues and does not terminate abruptly unlike general Exceptions Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.plaf.basic.BasicTreeUI.paintRow(BasicTreeUI.java:1399) at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1189) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142) at javax.swing.JComponent.paintComponent(JComponent.java:742) at javax.swing.JComponent.paint(JComponent.java:1005) at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963) at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916) at javax.swing.JComponent._paintImmediately(JComponent.java:4859) at javax.swing.JComponent.paintImmediately(JComponent.java:4666) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451) …

Software Development java java-swing
Member Avatar for JamesCherrill
0
759
Member Avatar for Codaholic

objCommand.Connection = objConnection objCommand.CommandText = "UPDATE tblEnrollment" & _ "SET dateOfHIVDx = @dateOfHIVDx, " & _ "CD4CountAtDx = @CD4CountAtDx, " & _ "WHOStgAtDx = @WHOStgAtDx, " & _ "ptInitiatedART = @ptInitiatedART, " & _ "ARVRegimen = @ARVRegimen, " & _ "recentWHOStg = @recentWHOStg, " & _ "dateOfRecWHOStg = @dateOfRecWHOStg, " …

Software Development vb.net
Member Avatar for Codaholic
0
151
Member Avatar for sarah.mathieson.7

I am trying to read lines of input from a BufferedReader and output them in sorted order without any duplicate lines. I think that using a TreeSet would be my best option. Unfortunately I don't know how to get my input from the BufferedReader into the TreeSet. This is what …

Software Development java
Member Avatar for NormR1
0
356
Member Avatar for Dendei

How do I code if I am coding what will happen if I press a button. and then ask a question and want to wait until either of two others buttons are pressed like an yes or no question say i code something and to continue i need the answer …

Software Development gui
Member Avatar for ddanbe
0
266
Member Avatar for ysmtek

*Hello people of the DaniWebs! It's been a long time since I've been talking and asking here, under the name of **katmai539**. I've lost account information and also the email address linked to it. I haven't been active in the software development-branch for the past few years but recently I …

Software Development c++ ide
0
228
Member Avatar for honeybee2090

i want creat a login client application have webbrowser1 ,text1 = username , text2 = password, button1 = login and here is link , but user name and pas is wrong http://188.165.91.36//login.php?username=honey&password=333 i dont want to use http post method i want to use web browser

Software Development visual-basic web-browser
Member Avatar for AndreRet
0
96
Member Avatar for Suzie999

I am getting results from a routine which are unexpected from me. here is athe code. void MyTestFunc(){ u_char MyTest_u_char[10] = {'a','b','c','d','e','f','g','h','i','j'}; u_char * MyTest_u_char2 = new u_char[8]; memcpy(MyTest_u_char2,&MyTest_u_char[1],sizeof(u_char)*8); int raw_len = sizeof(MyTest_u_char2) + 1; string std_str(MyTest_u_char2, MyTest_u_char2 + raw_len); cout << std_str << endl; // expecting bcdefghi . getting …

Software Development c++
Member Avatar for deceptikon
0
145
Member Avatar for DaveTran

I have two settings classes one abstract base class from which the second settings class derives public abstract class BaseFooSettings { public int a; public int b; public float c; } public class DerivedBarSettings : BaseFooSettings { public float d; } I then have two classes one base class and …

Software Development
0
76
Member Avatar for Dendei

*CardsNumber = myObject.HandleString(Cards);* if i have a method like this all i want is CardsNumber to change not Cards *myObject.HandleString(**Cards**);* change too i need it to be the same? why does it change? if i specify ***CardsNumber =** myObject.HandleString(Cards);* should'nt that only change? i hope you understand what i mean …

Software Development
Member Avatar for Mike Askew
0
117
Member Avatar for daniesmith

First, if I am not in the correct place, please let me know. I am a novice needing help. I have a single DB (Contractor) with 17 various fields. The purpose is to track the type of license they have, i.e. plumbing, electrical, HVAC, general, etc..... One contractor can have …

Software Development visual-basic
Member Avatar for AndreRet
0
210
Member Avatar for sss93

Ive just started going through and developing basic applications using the win32 API, and couple of times I have come across people mentioning that directly using win32 is not wise...I've just started using the library and personally think its nice and easy to use. However Ive been seeing things like …

Software Development api c++ gui qt windows-api
Member Avatar for deceptikon
0
240
Member Avatar for imaan fatima

i'm not getting beep in my code... can anyone help?

Software Development
Member Avatar for nmaillet
0
70
Member Avatar for semicolon

Is ther a fastest way to retrieve data from sql server like the sqlbulkcopy the fastest way to insert large data.?

Software Development
Member Avatar for Mike Askew
0
77
Member Avatar for Dendei

hey just wondering if you can make an method that you input a string and convert it in the method and return a int? something like public string[] ConvertString(string[] Cards) { int[] intCards = new int[52]; for (int a = 0; a <= 51; a++) { int.TryParse(Cards[a], out intCards[a]); } …

Software Development
Member Avatar for Dendei
0
228
Member Avatar for nitigya

How to write a method in Java to compute the 'Letter Grade' given a percentage number grade. Method signature: public String checkRange(int grade)

Software Development java
Member Avatar for JamesCherrill
0
48
Member Avatar for DelphiGuy

Basically I have a Delphi application which downloads some data on run time, it basically executes Form.OnCreate; and then ENABLES a TTimer component to do the downloading. This has been working fine for me as at least the user sees the interface whilst it's loading but now I have a …

Software Development delphi pascal user-interface
Member Avatar for pritaeas
0
505
Member Avatar for deepthought

Hi All, I have a list of hex values that originated from a text string that was downloaded having now created a list of thes values approx 804 of them, when i run the list items through a loop to conert hex into dec had an error looking at this …

Software Development python
Member Avatar for deepthought
0
404
Member Avatar for sundog1

Hi Guys - newbie here.. I have been working with OLEDB connection for the past few weeks and now have this connection in ADO and i'm not sure how to proceed. **The Connection information is the following:** private ADODB.Connection adoConn = new ADODB.Connection(); private ADODB.Recordset adoRS = new ADODB.Recordset(); and …

Software Development
Member Avatar for sundog1
0
157
Member Avatar for deriweb

Hi everyone just wanted to ask: 1) How to transmit captured data through the internet from point a(sender), then get it to point b(receiver) in steady but fast format? "probably simmilar to Http or voip and close to ATA voice adapter without to much coding and hardware involved" I think …

Software Development c
Member Avatar for np complete
0
163
Member Avatar for Tomi1988

I have a class (Point2D), and an instance variable (double tav) in this class. I would like to compare different Point2D objects (based on variable "tav") by the relational operators (<,>). (a < b) means that (a.tav < b.tav). Is there any way to solve this problem? public class Point2D …

Software Development java
Member Avatar for JamesCherrill
0
142
Member Avatar for sai.ayilavarapu

Hi Guys, While i managed to add rows and save them in the grid. I want to know the syntax for Update the data in the grid directly. Thanks Sai private void btnUpdate_Click(object sender, EventArgs e) { string col2 = dg[1, dg.CurrentCell.RowIndex].Selected.ToString(); string col3 = dg[2, dg.CurrentCell.RowIndex].Value.ToString(); string col4 = …

Software Development
Member Avatar for Mike Askew
0
103
Member Avatar for rahul.ch

Is it mandatory to handle an exception that is thrown using the `throw` keyword? If so is there a separate rule for Checked and Unchecked Exception, as in who should be mandatorily caught? public void met() { throw new ArithmeticException

Software Development java
Member Avatar for stultuske
0
183
Member Avatar for ShEeRMiLiTaNt

Hello, I need to write a function that would take a string and break it up into tokens (ie words, numbers, and punctuation). First it needs to break up the string and store them into an array called Token[]. Obviously a for loop needs to written however should I just …

Software Development c++
Member Avatar for ShEeRMiLiTaNt
0
129
Member Avatar for kshahnazari

HI , everyone can you please write a program for me , I have a set with 5 things in it thats line a={1,2,3,4,5} but it could be everything possible and there are subsets like b={1} c{1,2} d{1,2,4,5} but I cant write the progam so if you can write a …

Software Development c++
Member Avatar for np complete
0
124
Member Avatar for sai.ayilavarapu

Hi need help i setting up both Adding and Updating datagrid cells in the Save_Click event. Right i used seperate click events for Add_Click and Updating_Click but i want to both of them in the Save_Click event rather than seperately. Thanks in advance Here is my code using System; using …

Software Development dataset open-source
Member Avatar for Rogachev
0
193
Member Avatar for phorce

Hey, I might be having a blonde moment but here goes.. I'm trying to split a massive 1D vector into blocks at different places (If that makes sense), it should basically go like this: 0 201 401 601 801 .. .. .., 57201 2 202 402 602 .. .. .. …

Software Development c++
Member Avatar for L7Sqr
0
2K
Member Avatar for JanraeMendoza

//==============================================================================// // RPS (Rock Paper Scissors) // Author: SoulPour777 / Janrae Mendoza // A Simple C++ Game // =============================================================================// #include <iostream> #include <cstdlib> #include <ctime> using namespace std; string player; string player2; int wins; int loses; int roll; int draws; void error(); void gamePlay(); void Scene_Result_Display () { cout << …

Software Development c c# c++
Member Avatar for rubberman
0
523
Member Avatar for brylle

how can i trap my textbox that allows numbers and letters only, no space no special characters e.g (,./;'[]-=\`<>?:"{}_+|~!@#$%^&*())

Software Development vb.net
Member Avatar for TnTinMN
0
103
Member Avatar for sasdap

How to run shell commands from python. eg. How to use 'echo $a' commands? where a is any variable.

Software Development python
Member Avatar for Jimleeeel
0
159
Member Avatar for sateal8

Im trying to get my program to look like the following Welcome to the 64th Primetime Emmy Awards! ============================================================================== The nominees for Outstanding Comedy Series are: [1] Write In [2] The Big Bang Theory, CBS [3] Curb Your Enthusiasm, HBO [4] Girls, HBO [5] 30 Rock, NBC [6] Veep, HBO …

Software Development perl
Member Avatar for 2teez
0
124
Member Avatar for Krokcy

Hey! So i have started learning c, quite refreshing when i normally code in Java :) I have this task where i need to store three int values in an unsinged int via bitwise operators. Its for a RGB picture where the colour is limited to 256. I have done …

Software Development c
Member Avatar for WaltP
0
203
Member Avatar for Faiza akmal
Member Avatar for nitin1
0
99
Member Avatar for sruthi atluri

*hey... i want a c code for problem of SUDOKU...*

Software Development c c# c++
Member Avatar for nitin1
0
136
Member Avatar for equation

Hi everyone. My question is how to copy values of 2 arrays from one function into 2 new arrays into another function? Copy data from arraay1[i] into arraay3[8] and from arraay2[i] into arraay4[8] ? int onefunction(int araay[]){ ....... ....... arraay1[i]; arraay2[i]; } int twofunction(int araay[]){ arraay3[8] = {0}; arraay4[8] = …

Software Development c c# c++
Member Avatar for nitin1
0
174
Member Avatar for testname123

Can someone please tell me how to control a windows form from another form? I have one form (form2) which has a button. When this button is clicked, I need my other form (Form1) to hide a button. I know all the code except for how to make form2 access …

Software Development vb.net
Member Avatar for testname123
0
1K
Member Avatar for rmbrown09

Hello, I am trying to create a program that will allow me to find a certain phrase, (always between brackets and always with a "'0" in it) and replace it. Basically I have something like [ k '0 ir e ] and what I need to do is use regular …

Software Development python regex
Member Avatar for TrustyTony
0
242
Member Avatar for bghh

Hi. Does anyone know how I can create a new printer port in C#? At the moment I've got this, which uses WMI (System.Management): [code=C#] ManagementClass portClass = new ManagementClass("Win32_TCPIPPrinterPort"); ManagementObject portObject = portClass.CreateInstance(); portObject["Name"] = portName; portObject["HostAddress"] = "174.30.164.15"; portObject["PortNumber"] = portNumber; portObject["Protocol"] = 1; portObject["SNMPCommunity"] = "public"; portObject["SNMPEnabled"] …

Software Development c# printer
Member Avatar for yitbarek
0
3K

The End.