43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for zaphoenix

I am trying to install pyHook 1.5.1 for my windows 7 64 bit operating which has python 2.7 installed , but i get this error " python not found in registry" , when i try to type the python path,it does not allow me type into the modal gui ,please …

Software Development gui operating-system python
Member Avatar for tony75
0
3K
Member Avatar for Ann95

I have a datagridview and I want to print my datagrid but the problem is I want to remove the horizontal line of the table. How can I do it? Here is my code Module DataGridViewPrinter Public DataGridViewToPrint As New DataGridView Public DefaultPageSettings As PageSettings = New PageSettings() Public WithEvents …

Software Development printer vb.net
Member Avatar for Ann95
0
432
Member Avatar for robinlrandall

It seems like a simple problem but I can't seem to find the solution. Basically I have a wx.TextCtrl on a wx.ScrolledWindow and I want to expand the TextCtrl to fill the window - a simple editor if you will. I have the "Proportion" as "1" and I've used a …

Software Development python
Member Avatar for robinlrandall
0
622
Member Avatar for Aerigon

Well at this point I think it's safe to say coding is not my thing, have another problem I am working on, have the code close to correct I believe, problem, when one of the radio buttons is selected, there should be another groupbox that shows (depending on which radio …

Software Development vb.net
Member Avatar for tinstaafl
0
634
Member Avatar for alice.cooper.18659

I am trying to make a histogram that represent the number of letter grades that are calculated. So the program reads in a csv file, pulls out the name, average grade and letter grade. From there it creates a histogram based on the letter Grades. Input: Alicia Marks,89,90,100,95,75,85,94,100,90,92 Bobby Ricks,98,79,87,79,9,98,7,19,98,78 …

Software Development java
0
100
Member Avatar for SirMahlon

#include <iostream> #include <ctime> #include <cstdlib> #include <iostream> using namespace std; For all 6-digit numbers from 100000 to 999999, find the numbers that, if you add the top three digits to the bottom three digits, and square the result, it will equal the original number. For example, for 123456, you’d …

Software Development c++
Member Avatar for SirMahlon
0
202
Member Avatar for wschamps42

I have a few code snippets from a tutorial Im reading my friend gave me to learn c++, and a lot of it is written in shorthand but I cannot fully understand the shorthand code. return c < Cnt ? &foo[c]:NULL;; this: return (cc > 0 && cc <= mCnt)?&foo[cc-1]:NULL; …

Software Development c c# c++
Member Avatar for wschamps42
0
177
Member Avatar for Asotop

Hello good sirs. I'm currently working on a project where I'm simulating a patientmonitor. Im using background worker to update the values every second. I got a treshhold on the values receives, so lets say that pulse = 140, its > 120, so it sends an alarm message to the …

Software Development
Member Avatar for Asotop
0
127
Member Avatar for DarkLightning7

I could not get c function calls to work inside of nasm so i wrote my own read integer procedure. Im sure its inefficient and could be greatly imporved but right now I'm interested in where the negative sign went. Any help is greatly apreiciated. ;---------------------------------------------------------; ;reads a 64 bit …

Software Development assembly
Member Avatar for Assembly Guy
0
233
Member Avatar for kyle.mace.35

can someone please help for me to change this function to iterative? int recursive(int n) { int total = 0; if(n>=3) return recursive(n-1) + 2*recursive(n-2) + 2*recursive(n-3); else if(n>=2) return total + recursive(n-1) + 2*recursive(n-2); else return total+1; }

Software Development c++
Member Avatar for tinstaafl
0
120
Member Avatar for ChargrO

Hi guys I've been making a simple program using arrays and would like to add a function for a password instead of it being stored in one chunk of my button code. I'm not real good at functions yet and was wondering if someone could help me out. My code …

Software Development pay-per-click vb.net
Member Avatar for ChargrO
0
200
Member Avatar for ChemE_Programma

Hello everyone, I am trying to set a global variable in a module so that I can call it from any form or command button. I thought that I would declare the vairable by "public x as double" then set "x = 45" But how do I use "x" in …

Software Development visual-basic
Member Avatar for tinstaafl
0
260
Member Avatar for Violet_82

Hi all, I have just finished with my tict-tac-toe program, and I thought I'd post it here if anybody fancy giving me any feedback. Also, I have a problem with printing the board, probably due to my lack of knowledge in using `printf` as opposed to `println`. Anyway this is …

Software Development java
Member Avatar for Violet_82
0
237
Member Avatar for gobiking

Hello, I have been messing around and writing more and more intricate calculator programs on MVE C++. The issue I am having right now is my program is not running unless I give my add, sub, etc. a value. When I try to just leave them as int add; or …

Software Development c++ programming-construct
Member Avatar for gobiking
0
226
Member Avatar for LeNenne

Hi and thanks for all help. How to erase a file file.Delete (App.Path & "\backup\PhoneTel.mdb") it do not work. Or do like this instead that the file phonetel.mdb is uppdating evry time you press enter.

Software Development visual-basic
Member Avatar for Jx_Man
0
124
Member Avatar for gobiking

Hello, I am new to C++ and I was trying to write a simple calculator program that has a do-while loop and also includes a series of != statements. Even though I make the statements with all the appropriate keystrokes it keeps giving me my invalid sign statement. Also, I …

Software Development c++
Member Avatar for Labdabeta
0
296
Member Avatar for somjit{}

this is the problem code : import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.io.IOException; public class Prepared { public static void main(String[] args) { try { readerHelper r = readerHelper.GET_INSTANCE; System.out.print("enter username: "); String user = r.is().readLine(); System.out.print("enter password: "); String pass = r.is().readLine(); Connection con …

Software Development java mysql sql
Member Avatar for somjit{}
0
225
Member Avatar for SLMQC

I am trying to write the information below (name, employee no., etc.) to a file using StreamWriter. I'm able to enter the data, click the save button, enter/change the save location and file name and save the document. When I open the saved document, its blank and none of the …

Software Development file-system visual-basic
Member Avatar for SLMQC
0
167
Member Avatar for somjit{}

the following is taken from joshua bloch's effective java. pg 82: public class InstrumentedHashSet<E> extends HashSet<E> { // The number of attempted element insertions private int addCount = 0; public InstrumentedHashSet() { } public InstrumentedHashSet(int initCap, float loadFactor) { super(initCap, loadFactor); } @Override public boolean add(E e) { addCount++; return …

Software Development java
Member Avatar for somjit{}
0
176
Member Avatar for ses03

here is my code: this is my select query where I concatenated the firstname, lastname, and middle initial..(and display it on the data grid) Private Sub DisplayListOfPosition() query = "SELECT profNo as 'No', CONCAT(profFName,', ', profLName, ' ', profMI,'.') as 'Name', profAddress as 'Address', gender as 'Gender' FROM tbl_professor_bs" FillDBGrid(query, …

Software Development vb.net
Member Avatar for ses03
0
208
Member Avatar for de Source

hi, i have a drop down list populated with column names of tbl_student and a text box for searching specific value coresponding to the value selected in drop down list i do not have much knowlewdge about qureies might b m lacking there error is Incorrect syntax near '=' my …

Software Development sql
Member Avatar for de Source
0
838
Member Avatar for yksrmc

Hi Perl Experts, I'm new for perl. Thanks to give some time for my question.I have extract shared positions between two files and now I have one file like following. File is tab delimited Chr1 position QUAL GT_1 GT_2 1. chr1 478493 595 G/T G/C 2. chr1 879243 700 A/T …

Software Development file-system perl
Member Avatar for yksrmc
0
2K
Member Avatar for bumsfeld

I was trying to come up with a dictionary of functions, but get it not to work.

Software Development python
Member Avatar for Kyss
0
240
Member Avatar for Rahul47

vi is basically used independently .....but what if vi commands are used in shell script ? I am trying to accomplish functionality of mv command using a shell script. what I want is to yank whole text of one file1 and paste it in file2. this all should happen in …

Software Development shell-scripting
Member Avatar for Watael
0
271
Member Avatar for MasterHacker110

I have this code but I only eccepts one client at a time: #include <iostream> #include <conio.h> #include <winsock2.h> #include <string> using namespace std; int main() { WSADATA wsadat; WORD rVersion; rVersion = MAKEWORD(2,0); if(WSAStartup(rVersion, &wsadat) != NO_ERROR) { cout<<"WSA initialization failed.\n"; WSACleanup(); return 1; } //Creating the welcome socket …

Software Development c++
Member Avatar for rubberman
0
4K
Member Avatar for Etniespr101

Hey guys, I am incredibly new to c++ and need a little help on a matrix multiplyer program... [code] #include <iomanip> #include <iostream> using namespace std; int main() { int **mat1; int **mat2; int **result; int row,col; cout<<"Please enter row/col"<<endl; cin>>row>>col; mat1 = new int *[row]; mat2 = new int …

Software Development c c# c++ matrix-multiplication
Member Avatar for Musa_Jutt
-1
625
Member Avatar for dancks

I'm having trouble with a binary tree algorithm. A test program I wrote calls for the top node to only be altered in another method outside main (A simple guessing/learning game scenario). I wrote a smaller test of that exercise here: #include <stdlib.h> #include <stdio.h> #include <time.h> struct binary { …

Software Development algorithm c
Member Avatar for dancks
0
281
Member Avatar for Unused Mass

Hello. Could somebody explain why this code snippet is not working? The arrow (<----) points to where it's going wrong. It goes wrong when building, with the error of: "An error occurred creating the form. See Exception.InnerException for details. The error is: Index was out of range. Must be non-negative …

Software Development vb.net
Member Avatar for ricky.subiantoputra
0
229
Member Avatar for MRehanQadri

[code]#include <iostream> #include <fstream> #include <conio.h> #include <ctime> using namespace std; //////////////////////////////////////////////////////////////////////////////// class account{ public: account(){ i = 0; balance = 0; transaction_during_one_day = 0; one_month_balance = 0; minimumBalance = 99999999999999; startTime = clock(); } //```````````````````````````````````````````````````````````````````````````````````````````````` void depositBalance(){ cout << "Enter Amount to Deposit: "; cin >> depositAmount; balance += …

Software Development c++ ios linked-list
Member Avatar for MRehanQadri
0
85
Member Avatar for delta_frost

I have had a hard time setting up OpenGL to work with Visual Studio 2010,but no luck so far.I included `glut.h`,`gl.h`.I have linked the requisite `.lib` files in the Project Properties,but still I get this error `error LNK2019: unresolved external symbol _glutMainLoop referenced in function _main` ind six more like …

Software Development c++ opengl visual-studio
Member Avatar for delta_frost
0
337
Member Avatar for game06

i am using xammp database. and i want to get last ID from my database so that i can insert new stuff in it. the code below doesnt get me the last it. its prints it is adding one next to last it. ex 7, 71, 711, 7111, 71111, but …

Software Development java
Member Avatar for JamesCherrill
0
164
Member Avatar for wolwayne

I am making an examination system desktop application in Java Swing. I have a frame named 'show_class_question' frame. This frame is used to display questions and four options from database. Whenever user clicks 'Next' button I am calling this same frame (show_class_question) again and agian from itself (self - refrencing) …

Software Development java java-swing oracle
Member Avatar for stultuske
0
408
Member Avatar for zehrah.sayed

Hi there. I am fairly new with python and programming altogether. I'm having a problem dividing elements of two lists, and appending the results to a new list. The problem is, the second list may contain a zero, and obviously we can't divide by zero. If it happens that we …

Software Development python
Member Avatar for zehrah.sayed
0
379
Member Avatar for taekiewzz

Windows Application Form I have a user control called 'ucForm', this 'ucForm' have a button to pop out a windows called 'pForm', I want to code it like this, when I press the 'Next' button it will close the 'pForm' and pass the textbox value in 'pForm' to 'ucForm' textbox. …

Software Development microsoft-windows
Member Avatar for taekiewzz
0
257
Member Avatar for Papa_Don

Group, I've learned to find the index number of a specific character within a string by writing dIndex = myText.IndexOf("|") Obviously, this start counting left to right. But I'd like to do the same but start counting from the right side of the string to the left to find the …

Software Development vb.net
Member Avatar for Papa_Don
0
8K
Member Avatar for rishu pal

i make my project set up but when i install it on another computer it gives error that " can not find data in c:/document and settings.how we an solve it plz tell me

Software Development visual-basic
Member Avatar for imBaCodes
0
95
Member Avatar for subrata.roy.7583992

I've a field, say "Invoice No.", i want to be this as an auto-generated number. like DLP/001/2013-2014 DLP/002/2013-2014 DLP/003/2013-2014 . I use vb6 and Access.how can i do this?

Software Development visual-basic
Member Avatar for subrata.roy.7583992
0
195
Member Avatar for abrarsyed

hi, i m new to programming and i m trying to create a setup and deployment package for database application. after sucessfully creating setup, when i install it on my system, i m getting a error. i changed the permissions of the installed application folder, and it workd fine. is …

Software Development sql vb.net
Member Avatar for abrarsyed
0
177
Member Avatar for Stuugie

Hi All, I am attempting to execute a dtsx package using Java and I have the following line Process executionProcess = Runtime.getRuntime().exec("dtexec/f\"C:\\Projects\\EconAnalysisConferenceBoard\\EconAnalysisConferenceBoard\\EconAnalysisConferenceBoard\\ConferenceBoardETL.dtsx\""); I keep getting an error saying the file cannot be found but if I run the dtexec in command prompt with the exact same paths and file name …

Software Development java
Member Avatar for Stuugie
0
687
Member Avatar for ZeroZen

Hey Folks I've created a template and storyboard that applies to all buttons in my application. When you click the button, it drops to the right and down a bit, then snaps back up. The problem is, when I handle the click in code, it executes before (or during?) the …

Software Development asp.net vb.net
Member Avatar for ZeroZen
0
611
Member Avatar for joseph.lyons.754

I have been tryin to get this to work for the past week if not two >:( with no joy. Worst of all its such a trivial problem. The program asks you to choose a town name from a combo box when you choose the location you shoud be brought …

Software Development java mysql sql
Member Avatar for JamesCherrill
0
426
Member Avatar for Sturdy

Hi all, I need to read my text file that contain first name, last name, age and blood types. All of it separated by semicolon sign. Eg: `Trudy;Canavan;41;AB` What i need to achieve is read the text file into different arrays. Please help me. Thank you

Software Development visual-basic
Member Avatar for Sturdy
0
2K
Member Avatar for dancks

So, as an exercise I wanted to make a simple binary tree as practice before moving on to other, harder things. I tried to implement a binary tree in a simple guessing game scenario. I can't test it due to issues I'm having with taking in input. But I can't …

Software Development c
Member Avatar for dancks
0
134
Member Avatar for taekiewzz

Form1 is a pop out windows from Form2. Form1 has a listbox1 with items and when I clicked the 'Continue' button in Form1, it will pass all the items in the listbox1 to listbox2 which is located in Form2. I would like to ask how the button_click in Form1 will …

Software Development
Member Avatar for tinstaafl
0
2K
Member Avatar for blaze007

i have a text file which contains a single line like 1,2,3,1,2. how do i read this text file and move integers to an array such that array contains only 12312.

Software Development
Member Avatar for ddanbe
0
341
Member Avatar for ram619

Hello, I need to write a python script for performing telnet between two windows machine, that is Host and Client. After doing Telnet Successfully I need to run some application on other machine and there in that application I need to give commands via my script aswell after giving command …

Software Development python
Member Avatar for ram619
0
13K
Member Avatar for patrickgormally

I'm writing a program in .asm which prompts the user to enter a sentence. I have no problems with this but one requirement of the program is to change the format of the sentence by replacing all the spaces (" ") with underscore characters ("_"). How do I go about …

Software Development assembly
Member Avatar for Assembly Guy
1
6K
Member Avatar for game06

i have two classes. Main class and tester class. I have to create a textfield so your can enter there name. The problem is that in tester class i am getting error on add() method. is there simple fix for this? i want to create the textfield in tester class …

Software Development java
Member Avatar for bguild
0
144
Member Avatar for Violet_82

Hi guys, I am not sure this is right or not. If I have one variable whose value is true or false and I want to use it in an if statement I could easily do if(variable1){ //do this and that } but I want to check 2 variables I …

Software Development java
Member Avatar for Violet_82
0
195
Member Avatar for Jdan2388

Hey all im working on a program that has gives you the option of converting a message(string) into 3 different schemes: Prime Shift Encoding scheme, Shifty Encoding Scheme, and a Reverse Encoding scheme. I have figured out how to encode and decode the prime shift scheme and reverse scheme, but …

Software Development c c# c++ file-stream
Member Avatar for plenty.groover
0
363

The End.