132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for oxxxis

Hi, I am new to java programming, but i have this problem: I open an image, i put ir in array 2 dimensional, teh idea is like this array[count][0]=x; array[count][1]=y array[count][2]=red; array[count][3]=green; array[count][4]=blue; array[count][5]=alpha; I do so becaude i need to work with colors, but later on i want to …

Software Development image java
Member Avatar for stultuske
0
131
Member Avatar for Psychoticus

Hey Guys, Ok so here is my problem, i have written a failrly long batch file that automates a lot of the jobs i have to do to new machines when built (im a PC Tech) and one of the things it does is tells you your processor arcitecture type …

Software Development vb.net
Member Avatar for vbnetskywalker
0
126
Member Avatar for cwarn23

I know how to make 64 bit integers but how do I make 64 megabit integers? That is a bit rate of (1024^3)*64 bits. Is this a simple job as I don't know where to begin. I thought somebody might know of a library/script that will allow custom bit rates …

Software Development c++
Member Avatar for cwarn23
0
143
Member Avatar for Jarq

Hi I need to insert a flat text file into a SQL Server table using C#. The text file lines are 500 characters long and I will need to break it up into columns. Column 1 – 6chars, Column 2 – 1chars, Column 3 – 8chars I’ve managed to read …

Software Development sql
Member Avatar for Jarq
0
3K
Member Avatar for pith

So I tried making my first program but it didn't work, but I can't figure out what is wrong with it. I have added some commentary with the code: [code]#!/usr/bin/env python import sys from random import randrange, shuffle, choice, sample DOORS = ['ant','ant','ant','bee','bee','bee','car','car'] def pickdoor(picked): """Returns a number representing the …

Software Development python
Member Avatar for Gribouillis
0
188
Member Avatar for RoyMicro

My application is being developed in VS2008. Target frame work is .Net 2.0 This is a Desktop application. My application collects some information from User, Name of company address etc. Those are to be included in the report I am generating. I need to save these information and some other …

Software Development
Member Avatar for sknake
0
179
Member Avatar for team_ferrari22

Hi, We are designing a windows application where we need to 'Get tables and columns from existing sql server snapshot file or backup file' . Does anybody know how it can be done. Please provide help. Thank you.

Software Development sql
Member Avatar for sknake
0
196
Member Avatar for punter999

hello seniors, i am in need of getting some good tutorial or any helping example by which i can get an idea about how to serialize the objects in wxpython. your help will be highly appreciated. Regards Punter

Software Development python
Member Avatar for punter999
0
111
Member Avatar for Hawkpath

Hi, I'm just learning win32 and i wanna know: is it really necessary that i memorize all of the syntax. Is that what professionals do? Or can I just copy and paste it every time and just know what it does. Thanks, Hawkpath

Software Development c c# c++
Member Avatar for Rajesh R Subram
0
159
Member Avatar for bords

Hello everyone...can anyone modify my code below....i have a database named "Database1.accdb" with a table "Applicants"...The columns are ID(auto incremented),Name,and Age.... on this code, i can display the data from my database... My problem is that how can i add a new record to my database...or delete a record... I …

Software Development microsoft-access open-source
Member Avatar for bords
0
136
Member Avatar for Yomet

Hi community, I have the weirdest error happening in my VB6 program when I try to execute an "INSERT INTO" query. Here are the premises: [code=VB]Public conn as ADODB.Connection Public rs1 as ADODB.Recordset[/code] - the database is Access 2003 this will be migrated to SQL server later. - conn has …

Software Development visual-basic
Member Avatar for Abhi1443
0
3K
Member Avatar for ahmed hashmi

//i have written this code in package p1:: //address of this file is:::C:\p1 package p1; public class balance{ String name; double bal; public balance(String n,double b) { name=n; bal=b; } } //and now i want to import this file in this code //address of this file is:::C:\Program Files\Java\jdk1.6.0_11\bin import p1.*; …

Software Development java
Member Avatar for musthafa.aj
0
86
Member Avatar for josephkn

I have compiled a java program in suse10 without a problem but it comes to running it i encountered this statement :Exception in Thread "main" java.lang.No such method Error :main

Software Development java
Member Avatar for musthafa.aj
0
80
Member Avatar for JaceDBN

Hi, Im building a database in Access with the use of VB. If I have 2 tables, both of which will be used as a subreport/form: 1 - Invoice Details a - Invoice Number : Integer b - Item: String c - Quantity - Number d - Rate/Cost/Wateva - Currency …

Software Development visual-basic
Member Avatar for enelra
0
316
Member Avatar for aszopinski

I am relatively new to C++ and am currently taking a course for it. One of my assignments is to make a calculator for hourly wages and figure gross and net pay based on a fixed percentage for taxes. I am able to compile the code if I change the …

Software Development c++ visual-studio
Member Avatar for Rajesh R Subram
0
184
Member Avatar for 21KristianN

Dear freinds, I have a big issue which I have been struggling with for days now. I have a richtextbox where users Can input text and print it. My problem is that i don't want to allow more than one page to be printed so i need to prevent the …

Software Development vb.net
Member Avatar for 21KristianN
0
175
Member Avatar for eikal

hi, i'm working on a little project i made for myself, i want to create a menu with 4 choices and i want to use an array cause im struggling to understand how write them, now ive started to do it but i've lost myself in the code and don't …

Software Development java java-swing
Member Avatar for Zaad
0
82
Member Avatar for johnsamuel1

I am a beginner in visual basic programming.I need guidance for the approach needed to make a program.Its part of my study. I have a song book(in paper) containing hymns in various languages.I want to make a program that displays the hymns when given a search query like the beginning …

Software Development visual-basic
Member Avatar for ankush.mukherje
0
134
Member Avatar for java..

i want to set some initial level parameters before calling main method... how to do... within main i can set it first but it have no effects...

Software Development java
Member Avatar for java..
0
93
Member Avatar for Psychoticus

Hi guys, Just wondering if there is a way to detect the windows version, form say 95 to win7, in vb.net? pardon my ignorance but im not a big coder and norm only do python. Thanks in advance. Cheers, James

Software Development microsoft vb.net
Member Avatar for apegram
0
1K
Member Avatar for TommyTran

Hi everyboy! I ran into this assignment that asks me to "create an application that allows the user to enter a word or phrse, then the Label should display that word or phrase backwards in all lowercase. For example, I enter "I read" Then the label should display "daer I" …

Software Development display vb.net
Member Avatar for Ranx
0
94
Member Avatar for TommyTran

I just have an assignment that tells me to do the following things. Create a button. When that button is clicked, an InputBox will appear to let the user enter a word or phrase. Then, there are 2 radio buttons: Encode & Decode When Encode is checked "True", the label …

Software Development vb.net
Member Avatar for vbnetskywalker
0
133
Member Avatar for tqmd1

Dear Experts Table gpass has data as gate-----date-----c----bno----acccode----tittle----weight-------qty 1----18/01/2010---a----2--------2----------abc-----10.00-------15 Then there are two textbox having values as txtgat.text=1 txtdat.text=18/01/2010 I these codes and it generates error message as [CODE]ArgumentOutOfRangeException was unhandled. Idex was out of range. Must be non-negative and less than the size of collection. Parameter name: Index [/CODE] …

Software Development display vb.net
Member Avatar for vbnetskywalker
0
141
Member Avatar for DIPY

Hi, I have the listbox filled with data like : /abc/xyz/inst1 I need to view the complete path in the listbox.but there is no autosize property for a listbox. How can i view the complete path ?

Software Development
Member Avatar for sknake
0
1K
Member Avatar for johndoe444

"How to declare an array of N pointers to functions returning pointers to functions returning pointers to characters? Declare it this way char *(*(*a[N])())(); Even this seems to be correct (char*(*fun_ptr)())(*func[n])();" Is this syntax correct? If so is there any thing more confusing than this? Why do people invent something …

Software Development c
Member Avatar for Dave Sinkula
0
320
Member Avatar for elcaro.miao

This is going to be somewhat a lengthy post, i do hope someone here can help me with this problem that i've already spent a gazillion brain cells on. >.< I AM a student asking for help as i cannot seem to be making this work with my atrocious programming …

Software Development c#
Member Avatar for elcaro.miao
0
303
Member Avatar for rgpii

[CODE=c] int main(int argc, char** argv) { char c[999]; char alpha[2[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','e','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; int pos[26]; int i=0; for(i=0;i<26;i++) { printf("%c\n",alpha[0][i]); } } [/CODE] This code is giving me an "error:exit code with return 1" and a lot of warning saying "excess elements in array initializer". I have kept searching the web and …

Software Development c
Member Avatar for gerard4143
0
2K
Member Avatar for SteveyD

Greetings again. I'm encountering an error with the following section of my script. If I include the commented section my program returns the following error; "(Router -Startup) the URL cannot be empty. Parameter name : url" With it commented out like below, the .dll functions correctly. [code] public List<Form> Startup() …

Software Development c c# c++
Member Avatar for SteveyD
0
818
Member Avatar for Dudesup

Not sure if this is the right place to put this as it's my first post, so if it's not I apologize. I'm wondering if there is a way to put an image into the background of my applet. I've searched all over the place and just can't seem to …

Software Development html-css image java
Member Avatar for Dudesup
0
125
Member Avatar for SasseMan

Hi! I'm writing a java app with a swing gui. The problem is the following. I am developing on a mac, where it runs fine. but when I run it on Windows Posready09 (Windows XP), which is the platform the app is intended for, or Windows7, half of the window …

Software Development gui java java-swing
Member Avatar for SasseMan
0
216
Member Avatar for atticusr5

Hello all I am a second year C++ student in college and I am running into some issues with a code assignment I am writing. *Note: I realize that there may be better ways of doing the code but I am following my instructors guidelines so please no posts about …

Software Development c++ ios
Member Avatar for SasseMan
0
142
Member Avatar for buzzykerbox

Code for changing font through menu selection like "Arial"????

Software Development vb.net
Member Avatar for apegram
0
110
Member Avatar for JohnPhilipps

Hello, I have a VB form with 2 comboboxes and a textbox in which a user can type into. I would like my mouse cursor to move from my 2nd combobox selection directly over to the textbox that I have on a VB form. 2nd comboboxe name: "CodeComboBox" Textbox name …

Software Development vb.net
Member Avatar for JohnPhilipps
0
402
Member Avatar for johndoe444

Hi, Where does a static function reside? We know that static variables reside in BSS. So does a static function also reside in any particular place? Again is there any classification of functions like there is for data like heap, stack, BSS. Moreover, is function pointer similar to data pointer? …

Software Development c
Member Avatar for gerard4143
0
1K
Member Avatar for chukka32

Hi all, I am a beginner to C++ and am having problems with data validation in a project. The program is a oylmpic diving score program and is working ok only for when I input an invalid character the for loop seems to continusal run. Is there an easy for …

Software Development c++
Member Avatar for chukka32
0
270
Member Avatar for germ

I just went through some python coding and tutorials lately. For me I am going to use python in a database environment, so what I wanted to ask is doesn't anyone here have some information that will sharpen my python programming knowledge very quickly with some get straight to the …

Software Development python
Member Avatar for Ene Uran
0
96
Member Avatar for RoyMicro

Hello My application creates and reads files from the same folder. So I am using appliaction.startuppath property to get the current path so far. Now I have included a open file dialog box to browse and load another file from other folder. But after this dialog loads the file from …

Software Development
Member Avatar for sknake
0
501
Member Avatar for Bagleys

Hi i am trying to delete a file(s) from a checked list box, when i click a button. This is the code i have: [code] Dim item As IO.FileInfo For Each item In CheckedListBox1.CheckedItems Try item.Delete() Catch : End Try Next item [/code] But i get the error: Unable to …

Software Development vb.net
Member Avatar for Bagleys
0
194
Member Avatar for gedas

hey guys, im working on a little program that would ask the user to input file name and would ask the user again to specify the output file so the contents of file one would be transferred in to the file 2. i have been working on it for few …

Software Development c file-system
Member Avatar for gedas
0
181
Member Avatar for iamai

i get 1 error Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class. here is my code [CODE] Public Class test Private _course As String Public Shared Function function1(ByVal data As String) As Boolean …

Software Development vb.net
Member Avatar for iamai
0
85
Member Avatar for campkev

I know how to use System.Web.Mail to send emails. Anybody know how to send encrypted emails?

Software Development email
Member Avatar for Lam4
0
162
Member Avatar for BoB3R

Hello, I am trying to do a program that is reading for example a.txt file that have 5 lines and i want him to show me for example line #3 only, i know i need to use fgets but i rly dont know how to start it a.txt [CODE]1;27.01.1957;8;12;31;39;43;45; 2;03.02.1957;5;10;11;22;25;27; …

Software Development c
Member Avatar for Dave Sinkula
0
128
Member Avatar for deonis

Hello ! I am trying to make a little program, which would go through the string content, find some keywords inside of it and return their position in the text. Unfortunately my program does not work for the duplicated words like "AFIX" or "CONF" (see example bellow). Is there simple …

Software Development python
Member Avatar for deonis
0
138
Member Avatar for DavidDD

Hey! Alright, I am working a program in C++ (obviously ;P). I have been working on this game a very long time and took a break from it. I actually forgot how this line works: [CODE] vector<string> sWords(1); int a = 0; ifstream myfile("words.txt"); if(!myfile) { cout << "Error opening …

Software Development c++
Member Avatar for DavidDD
0
351
Member Avatar for C++ Beginner

Problem: Write a program that has an array of at least 20 integers. It should call a function that uses the linear search algoritm to locate one of the values. The function should keep a count of the number of comparisons it makes until it finds the value. The program …

Software Development algorithm c++
Member Avatar for hag++
0
2K
Member Avatar for baskar007

hi friends, I am building a small web application for linux in python lang. I am using httplib for the web interface. and currently i using the following exceptions in httplib. [QUOTE] httplib.HTTPException socket.error socket.herror socket.gaierror socket.timeout [/QUOTE] so i need error codes and descriptions for the exceptions. I have …

Software Development python
Member Avatar for baskar007
0
152
Member Avatar for stevetaylor15

I'm trying to return anattribute an identify if it has null or emtpy value. I know if i give the attribute a value it returns it find, but if it has no value it returns "object reference not set to an instance of an object"! How do i identify an …

Software Development
Member Avatar for stevetaylor15
0
259
Member Avatar for phil750

I have code that outputs data as so [code] Input file name: file.txt Input text: Process id 1, Quantum No 2, Priority 0 Process id 2, Quantum No 3, Priority 1 Process id 3, Quantum No 3, Priority 0 Process id 4, Quantum No 1, Priority 2 Start of processing …

Software Development c
0
89
Member Avatar for P00dle

I need help with jFilechooser. I've already made the jFilechooser. The problem is that I want to change the text of the "save" butten to "Ok", as I need it to perform a save function, as well as a read function, on different occasions. Changing the code where the jFilechooser …

Software Development gui java
Member Avatar for P00dle
0
173
Member Avatar for leeba

I want to read he source file of the .exe I am writing. For example if I am running test.exe I want to read test.c Also if the name of the file changes it still had to open it. what i have tried is: [code] FILE *fp=fopen(*.c,"r") [/code] Can someone …

Software Development c open-source
Member Avatar for leeba
0
675

The End.