43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for samuel_1991

Hi, I would like to know how to write a "Console application" in dll form for a patch installer so that I could call it from the installers and find out the installation of a program. I have created a VB.NET class project and checked the COM Interoperation or sort …

Software Development vb.net
Member Avatar for samuel_1991
0
1K
Member Avatar for KrazyKitsune

[code=syntax]from __future__ import division from math import sin from math import cos from math import tan from math import radians a = raw_input("enter 1 for sin, 2 for cos, 3 for tan") if a == 1: degree1 = int(raw_input("Type in angle value: ") radian = radians(degree3) sin = sin(radian) print …

Software Development python
Member Avatar for Stefano Mtangoo
0
622
Member Avatar for el_vala

I have been doing some research on the net, and found many ways of doing this, but it all leaves me with the same question. Wich one is the better to use? What i want to do, is a simple yet stable configuration system for any of my projects that …

Software Development app-store asp.net vb.net xml
Member Avatar for codeorder
0
436
Member Avatar for creeps

Elaborating on the title, I'm trying to complete an exercice in K.N. King's [i]C Programming: A Modern Approach[/i] which requires me to accomplish the task in the quote below. My idea works, but the program does not return control to the OS. I've nailed the problem down to the do/while …

Software Development c
Member Avatar for Narue
0
158
Member Avatar for gunneronaspooky

Okay...I'm back again for the next program...here's what i have so far [CODE]print "Euclid's Method" a= raw_input(("Enter first number ")) b= raw_input(("Enter second number ")) def euclid(a,b): while b != 0: a, b = b, a%b return a[/CODE] My question is, how do I get it to print out the …

Software Development python
Member Avatar for gunneronaspooky
0
144
Member Avatar for glenak

I know how to write messages and save it as a .txt file (using Input/Output streams). What I want to do now is to be able to click a button and have notepad open the .txt file. How can I do this?

Software Development java
Member Avatar for glenak
0
137
Member Avatar for satishsingh

how kernel interact with hardware.???they says kernelsr mainly written in assembly language n then it is converted to machine language. bt even i cant feel how machine language accomplish our work wot we wish for can ane one explain concept fully or some refrences

Software Development assembly
Member Avatar for Auraomega
-1
122
Member Avatar for TahoeSands

I have written some code that compares two "BufferedImage" rectangles by doing a pixel by pixel comparison. These BufferedImages are of "playing cards" with rounded corners so I would like to exclude those corner areas during the image comparison process since the varied background could cause the comparison to be …

Software Development image java
Member Avatar for TahoeSands
0
90
Member Avatar for TahoeSands

I am writing a Java application that "passively" interacts with a Windows Desktop Application. What I mean when I say that it interacts "passively" is that I perform screen captures to determine the location of "buttons" displayed by this Desktop Application and I use "absolute" x and y coordinates to …

Software Development java oop
Member Avatar for TahoeSands
0
542
Member Avatar for Delu:sional

I just installed eclipse and Pydev. but I can't I can't add Python 2.7 as the interpreter for Pydev. I couldn't find the interpreter file at 'mac/usr/local/bin/' I only see /python 3.1 and some others. Is it because of I have installed 3.1 and 2.7 both? Even then I click …

Software Development python
0
97
Member Avatar for titan5

I am given dates in string format- Eg. 11/09/2010. (11-09-2010 not allowed) How can I convert it into integer dates? I am given two such dates in string format only and I want to find the no of days between them.

Software Development java
Member Avatar for titan5
0
147
Member Avatar for udev

Hi! In every iteration of reading a file I populated a dictionary and appended it to a list . A part of that list looks like this : . . . Key Doc ID freq line number {'Emin': ({'file13.txt': 1}, {'Emin': [38]})} {'Gun': ({'file13.txt': 2}, {'Gun': [43, 71]})} {'I': ({'file13.txt': …

Software Development data-structure python
Member Avatar for udev
0
130
Member Avatar for tennis

I got run-time error in the following simple code, but I don't know what's the problem. can any one help? [CODE] #include "stdafx.h" #include<iostream> using namespace std; void reverse (char * source) { int i=0, j=strlen(source)-1; while (i<j) {char temp=source[j]; source[j]=source[i]; source[i]=temp; i++; j--; } cout<<source<<endl; } void main() { …

Software Development c++
Member Avatar for rje7
0
136
Member Avatar for eduard77

Hello I am reather new in c++ and I try to solve some exercises but i got blocked. Can anyone help me with this? The program should read in values until a negative value is read in. It should determine the largest value that was read in and display that …

Software Development c++
Member Avatar for Ancient Dragon
0
83
Member Avatar for yamini222

Hi all, I wrote a function. The aim of it is ; If the formula is "C12H22" and the str11 is "+H1" then the result should be "C12H23" or if the str11 is "-H1+O1+C1", then the result should be "C13H21O1". It is working all the time but it fails when …

Software Development
Member Avatar for yamini222
0
144
Member Avatar for guptas

Hi all! i am trying to copy a file from 1 location to other location with a new name. The new name should be like "Oldname + date & time". I wrote the following code but getting error that the Given path format is not supported [code] Imports System.IO Public …

Software Development vb.net
Member Avatar for guptas
0
326
Member Avatar for headedtomexico

I have a simple class [CODE]class Info { public: long One[31]; long Two[79]; };[/CODE] i'm reading values from a couple char arrays, when I write to Two[0], it overwrites One[31]. [CODE]CurInfo->One[31] = atol(BufferOne); chatoutf("%d",CurInfo->One[31]); CurInfo->Two[0] = atol(BufferTwo); chatoutf("%d",CurInfo->One[31]);[/CODE] if I feed bufferone a -1, and then buffertwo a 623, I …

Software Development c++
Member Avatar for headedtomexico
0
126
Member Avatar for xtra333

Hi Guys. I am new here. I am trying to run a Poker program that can detect the different hands in poker. here is my code [CODE] class Card: # A card is an Object with a suit and rank # attributes. def __init__(self, rank, suit): # To create a …

Software Development algorithm flash python
Member Avatar for xtra333
0
2K
Member Avatar for Dorayaki

Hello, I Got problem in using delimiter by using vb.net 2008 Please take a look at my code [CODE] Dim array As String() Dim IPaddr as String Dim r As New System.IO.StreamReader("config.ini") Dim rline As String = "" Dim s As String = "" While r.Peek <> -1 rline = …

Software Development vb.net
Member Avatar for codeorder
0
107
Member Avatar for TahoeSands

I found some code that does something that interests me, but I don't fully understand the implementation. The part I am struggling with is where the author "overrides" an "actionPerformed" method. I have a vague idea of why someone would want to override a method that is inherited from the …

Software Development career java java-swing
Member Avatar for NormR1
0
427
Member Avatar for JOSheaIV

Okay first of all thanks for taking the time to read this post. So I took a C# class this last spring semester and love programming with it now. The program I am working on I decided to make for my job that will help with scheduling. Here's where the …

Software Development
Member Avatar for JOSheaIV
0
156
Member Avatar for lordbaddkitty

I'm trying to LINQ two tables based on a dynamic key. User can change key via a combo box. Key may be money, string, double, int, etc. Currently I'm getting the data just fine, but without filtering out the doubles. I can filter the double in VB, but it's slooooow. …

Software Development apple asp.net vb.net
Member Avatar for lordbaddkitty
0
288
Member Avatar for itsmeisuru

[code] #include<stdio.h> #include<conio.h> #include<stdlib.h> int main(){ int i = 2; char a[1]; itoa(i, a, 10); char *command = ("md %s", a); system(command); char *cop = ("copy %s.jpg \%s\%s.jpg" , a, a, a); // want to copy the jpg file in to system(cop); //new made folder the path as (2/2.jpg) getch(); …

Software Development c
Member Avatar for itsmeisuru
0
108
Member Avatar for ryan461

I'm new to perl, some experience in python. I've been tasked to create a script to remove comments in files. So basically id like to remove <!-- comment here --> from every line that has it in an assortment of files in a directory tree. Some comments may span multiple …

Software Development perl regex
Member Avatar for ryan461
0
153
Member Avatar for pixma

Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click conn.Open() Dim cmd As New OleDbCommand("Update (SELECT Employee.empno, Employee.emplname, Employee.empfname, Employee.empmidname, Employee.contactno, Admin.description FROM Admin INNER JOIN Employee ON Admin.adminNo = Employee.adminNo) Set emplname=?, empfname=?, empmidname=?, contactno=?, description=? where empno=?", conn) cmd.Parameters.Add("empno", OleDbType.Integer) cmd.Parameters.AddWithValue("emplname", OleDbType.Char) cmd.Parameters.AddWithValue("empfname", OleDbType.Char) cmd.Parameters.AddWithValue("empmidname", …

Software Development vb.net
Member Avatar for pixma
0
165
Member Avatar for Jiblix

Hey guys, I'm a newbie programmer and I'm trying to create a program which calculates BMI. Weight is in lbs and height is in inches. I've compiled this and its got quite a bit of errors, so I could really use some help. The final result that I'm trying to …

Software Development java
Member Avatar for Jiblix
0
947
Member Avatar for kinniburghc

I want to create a jpg image containg some graphics which I draw using the Tkinter Canvas widget. This draws the image to screen and then I use the PIL library ImageGrab() function to grab it off the screen into a file. It would be much neater to by-pass drawing …

Software Development image python tkinter
Member Avatar for kinniburghc
0
7K
Member Avatar for NewOrder

the class is the same. but there are two methods: first method: if simply returns a string. [CODE]public String FindPiece(String chessPiece) { return name; } [/CODE] name. is a constructor variable. it is a name of the chess piece [CODE]public Pawn(String name){ this.name=name; }[/CODE] second method public boolean isMoveValid(ChessPiece[][] pieces, …

Software Development java legal
Member Avatar for NewOrder
0
94
Member Avatar for Kevin_160

Hi Everybody, FYI (In order to get a feeling with the time it takes to send command strings to signal generators via a GPIB bus, I want to send a voltage level high pulse to an oscilloscope. Ones the RF signal arrives via a detector diode, The pulse and the …

Software Development c session user-interface
Member Avatar for Kevin_160
0
355
Member Avatar for robertmacedonia

OK, so I want to thank all of you that helped me with my little problems within the past few days,I have almost come to the end of this project thanks to your suggestions. Now the thing is, I used ObjectInputStream & ObjectOutputStream to write down whole objects to a …

Software Development file-stream java
Member Avatar for robertmacedonia
0
2K
Member Avatar for abby2589

private static void randomNumber() { int rand; int min = -10; int max = 10; System.out.println(" "); for (int i = 0; i < 10; i++) { rand = (int) (Math.random() * (max - min + 1) ) + min; System.out.print(" " + rand); } System.out.println("\n"); } can anyone explain …

Software Development java
Member Avatar for extemer
0
204
Member Avatar for Isha810

Hello all, I am making one application in which I need to enter the start and stop time in textbox. I have used masked text box. I want to check that Stop time should be greater than Start time and also the time entered should be in valid time format …

Software Development
Member Avatar for Geekitygeek
0
124
Member Avatar for VB 2012

How do get a dll's resources By resources i mean the stuff that you can put in like Images,files,icons ect. How to you call the resources:)

Software Development vb.net
Member Avatar for GeekByChoiCe
0
96
Member Avatar for Tenck

I know it's one of those programming languages thought of as an easy thing to learn (or so it seems like it). My problem is not with the difficulty of learning the language, rather the outdated guides and the problems with Python 3.2. So I looked into a book called …

Software Development python
Member Avatar for snippsat
0
287
Member Avatar for dflatt

is this good practise or even possible as i'm not on my comp. [CODE] class C3dshape { private: int mLength; int mWidth; int mDepth; public: int getlength(); int getwidth(); int getdepth(); void setvalues(); }; int C3dshape::getlength() return mLength; int C3dshape::getwidth() return mWidth; int C3dshape::getdepth() return mDepth; void C3dshape::setvalues() { length …

Software Development c++
Member Avatar for Ancient Dragon
0
133
Member Avatar for bnickerson

Hi, I am writing a program that is to behave as a web server. Both the client and the server code are on my laptop. Ideally, I should be able to type in 127.0.0.1: PORT/index.html in Firefox and the server code should reply appropriately. So far my browser and the …

Member Avatar for bnickerson
0
2K
Member Avatar for brandongood

Hello, I have a class that pulls account numbers from valid_accounts.txt and is supposed to take each number and put it into an array. In my driver program, I should be able to call the method of the class that pulls the information and populate it into my array created …

Software Development file-system java
Member Avatar for Ezzaral
0
120
Member Avatar for Hawkpath

Hello, I made a class and now I want to store instances of those classes in an array. I looked it up and found it was as easy as: [CODE]className arrayName[x][/CODE] When I tried that I got this error: [B]error: no matching function for call to 'archerTower::archerTower()'| [/B] My class: …

Software Development c++
Member Avatar for Hawkpath
0
117
Member Avatar for zachattack05

Has anyone tried this? My general dilemma is having to open and maintain multiple connections across multiple forms. I have an MDI application and I would prefer to store the connection in the parent form and just have the child forms use that connection if it needs it. This normally …

Software Development open-source
Member Avatar for zachattack05
0
117
Member Avatar for bmos31

So I have a program scenario for a postman who carries out an experiment: 1. He has mailboxes numbered 1-150 all of which are 'closed' 2. Starting with mailbox 2, he 'opens' all even-numbered mailboxes, leaving all others 'closed' 3. Next, beginning with mailbox 3,goes on to 'open' every third …

Software Development c++
Member Avatar for bmos31
0
828
Member Avatar for sikais17

hey guys.i have one realy big big problem.. My programming teacher gave my a task to get these functions to work, but i dont know python program so good.. thats why maybe someone of you could help me, and make these 3 functions to work .:).. please!! these lines are …

Software Development python
Member Avatar for sikais17
0
155
Member Avatar for jlego

im going to try and explain this as easy as possible, this is something i have never done with .net before there is a login form at [url]http://www.ritani.com/salespersons/login[/url] it uses the post method to login. i have a web browser control in vb.net that I want to have automatically log …

Software Development first-post vb.net web-browser
Member Avatar for codeorder
0
2K
Member Avatar for Frederick2

For the past 12 years I've lived in mortal, cowering, abject fear of one particular feature of the Visual Studio 6 C/C++ IDE, and that is the 'Find' feature on the 'Edit' menu where you can fill in the textbox to find a symbol in your file, and then click …

Software Development c++ ide visual-studio
Member Avatar for Frederick2
0
202
Member Avatar for Rocanlover1

I need help with this. At the end of the semester, students often wish to know what grade they need on the final exam to get an A in the course. Write a program that prompts for the user’s grades on exam 1, exam 2, and the homework and from …

Software Development python
Member Avatar for TrustyTony
0
148
Member Avatar for choover12

can someone tell me how to get the [U][B]icon[/B][/U] of a webpage. i can get the icon of a webpage and set it as an image but i want to take it and set it as the icon for my application. here is the code to get the icon and …

Software Development dns vb.net
Member Avatar for choover12
0
889
Member Avatar for daudiam

The following assignment would work [CODE]float a=3;[/CODE] But the following won't :[CODE] Float a=3;[/CODE] Shouldn't 3 be automatically promoted to float (as widening conversions don't require an explicit cast) and then Boxed to Float type ? Is it because of a rule I read in Khalid Mogul's Java book ? …

Software Development java
Member Avatar for daudiam
0
129
Member Avatar for SaiBalaji

How can i identify the error whether it is compile error or runtime error ?

Software Development c
Member Avatar for SaiBalaji
0
104
Member Avatar for franchico

Hi, I'm mechanical engineering graduate student in Portugal. I'm familiarized with c++ but I've been having problems with the windows forms. I'm trying to make a form that would compile diferent data with inviscid fluid flow formulas but I've got one major problem. I've done hundreds of google searches and …

Software Development c++ engineering
Member Avatar for franchico
0
5K
Member Avatar for LianaN

Hi! Please, explain me why JTextField: txtFirstName and JTextField: txtLastName are not visible on my JPanel: panfortab?! I can see only JTable: tableDetails. [CODE] private void createBaseRight() { JPanel panfortab = new JPanel(); panfortab.setBounds(330, 150, 650, 795); panfortab.setVisible(true); panfortab.setOpaque(true); panfortab.setBorder(bord); FilterClass fc = new FilterClass(); fc.setVisible(true); panfortab.add(fc); pan.add(panfortab, "Right"); // …

Software Development java java-swing
Member Avatar for LianaN
0
189
Member Avatar for extemer

i am doing a problem.the problems was that what do the following code prints class printing{ public static void main(String[] args){ for(int i=1; i<=10; i++) { for(int j=1;j<=5;j++) System.out.print("@"); System.out.print(""); }} This code prints infinte "@" and after some second the printing starts to slow down. when i do through …

Software Development java
Member Avatar for jon.kiparsky
0
144

The End.