43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sciwizeh

is there a method in the mouse listeners or any other event handlers that utilizes the tilt wheel, either tilt or scroll, i can't find anything edit: found scrolling no tilt yet

Software Development java
Member Avatar for sciwizeh
0
99
Member Avatar for TofiLuk

What's wrong with my code? Can somebody help? Thanks! [CODE]import java.io.*; public class Array { public static void main (String[]args) throws IOException { BufferedReader myinput=new BufferedReader(new InputStreamReader(System.in)); int Arr1[]=new int[5]; int Arr2[]=new int[5]; int SumArr1=0; int SumArr2=0; int x=0; int y=0; for (x=0;x<Arr1.length;x++) { System.out.print("Enter Array1: "); Arr1[x]=Integer.parseInt(myinput.readLine()); SumArr1=Arr1[x]+SumArr1; } …

Software Development java
Member Avatar for ~s.o.s~
0
143
Member Avatar for Nemoticchigga

I am trying to open 2 forms when I start my vs2005 project. The main form, and a second form whose class is created, and then ->show. It shows both forms, but you can control either one. What I want is the main form to be "locked" until the "OK" …

Software Development c++
Member Avatar for Nemoticchigga
0
307
Member Avatar for &rea

Hello, I have got a problem with an initialization. [code] #define TAB 1000 int table_collision [][TAB]; void function() { for(int i=0;i<2;i++) { for(int j=0;j<TAB;j++) { table_collision[i][j] = 0; } } } [/code] When I look each value I see that the initialization doesn't work. For example table_collision[0][0]=20125560 table_collision[0][1]=20133568 table_collision[1][103]=1429512 there …

Software Development c++
Member Avatar for jencas
0
80
Member Avatar for memnac

Hello All, I have two multi-select listboxes, 'listFrom' and 'listTo'. I want to be able to copy mulitple selections from 'listfrom' to 'listTo' and delete those selections from 'listfrom'. To copy over multiple items is no problem but when i introduce the 'removeitem' line to delete the selection, it deletes …

Software Development visual-basic
Member Avatar for memnac
0
357
Member Avatar for ninjaneer

Calling any multi-thread wizards. Here is a copy of the relevant parts of my main function... [code] CWinApp theApp; [COLOR="Red"]//the application's handle? not sure...[/COLOR] using namespace std; UINT callProcessThread(LPVOID minutesSpent); //worker thread function, process output UINT initializeProgram(LPVOID flag); //worker thread function, load MCR void inputCalculateOutput(void); // function that sorts data …

Software Development c++
Member Avatar for ninjaneer
0
464
Member Avatar for Graham_Saint

Greetings, I am writing a Delphi application that uses Absolute Database. When the user presses a button the application fills in some values in a second form and then displays the form. Last night I added a DBGrid to the second form to display a small Absolute Database table. Hitting …

Software Development delphi pascal
Member Avatar for Graham_Saint
0
301
Member Avatar for integer*09

Hi all, I need some help on creating a file with name from user input like from textbox. i have the following code with the filename in textBox2->Text but i dont know how i can get it done. [CODE]string::size_type j = line.find_first_of( " \t", iter ); string found; found = …

Software Development c++
Member Avatar for integer*09
0
166
Member Avatar for klay.martens

Hi all, Could not work out if this belonged in the c++ forum, or the python forum.... Basically, I am writing an application in c++ which embeds python. The annoying thing is that I have no way of knowing in advance what version of python will be installed on a …

Software Development c++ python
Member Avatar for klay.martens
0
169
Member Avatar for SteveDB

Hi all. I have found some tutorials online, I believe they were from some university classes, and one from a guy named Juan Soulie. I seem to have solved the bulk of my issues, yet have one last one-- that I can identify. For some reason that I still don't …

Software Development c++
Member Avatar for SteveDB
0
254
Member Avatar for k2k

hi, does anyone know how to check if certain character is contained in the argument? for example: > foo /home/myname how should I check if the argument contains a "/" character? thanks

Software Development shell-scripting
Member Avatar for k2k
0
150
Member Avatar for wcmport

my program is supposed to be an 11 X 11 grid where a mouse is placed on the center square. I am to count all the squares touched (or untouched) until the mouse has occupied every square. I also need to count the number of times the mouse touches the …

Software Development c++
Member Avatar for wcmport
0
82
Member Avatar for Gold dragon

I am almost finished making a black jack game and I was wondering how to solve this problem i have tried everything i know and it is all unsuccessful... I will copy and paste my code and show the problem see text below the code... Public Class Form1 Public YourCards …

Software Development vb.net
Member Avatar for morrock
0
138
Member Avatar for Brent.tc

Hi, I need to know how (if it is possible) to determine the sizeof a function... [code=c++] #include <iostream> using namespace std; int theFunction(); int theFunction() { int x = 0; return x; } int main() { cout << sizeof theFunction; cin.get(); return 0; } [/code] The above does not …

Software Development c++
Member Avatar for Duoas
0
96
Member Avatar for wcmport

I have written code that is supposed to be an 11 X 11 grid. A mouse is placed on the center spot and until such time that it touches each and every square, the program will continue to run. I also need to count how many times the mouse touches …

Software Development c++
Member Avatar for wcmport
0
110
Member Avatar for Q8iEnG

Hi developers :) Actually, I'd like to introduce myself first, I'm Mohd. *Computer Engineer* still student :/ Actually, I really like this community, and I think I'll be active in the C++ section as I like it xDD back to my question :) Please can anyone help me doing this …

Software Development c++
Member Avatar for Q8iEnG
0
118
Member Avatar for tones1986

Hey guys... this is my first time working with assembler, so please be patient with me! I am currently taking a course in assembler and have had a couple of basic assignments so far (mainly number systems, adding subtracting, two's complements etc etc). This is my first major (you may …

Software Development assembly storage
Member Avatar for tones1986
0
198
Member Avatar for LaurenceB

Hi, this is my first post. Ive made a number game which is written in python 2.5 and have some problems with it: ------------------------------------- import random # You've got to guess 4 numbers between 0 and 30, if you one right the program will output "WINNER" and tell you the …

Software Development python
Member Avatar for LaurenceB
0
90
Member Avatar for Greyspectre

Hello, I have been writing a piece of code to pull a set of numbers out of a text file and store them in assorted int and double variables and int and double arrays. Currently my program does this and successfully stores all the values, however it returns a large …

Software Development c++
Member Avatar for Greyspectre
0
125
Member Avatar for evaristo

dear bunch of developers, i have this JTable and i'm contructing it with a model object extended from a DefaultTableModel. The way i'm passing the data to it is by means of a vector: [CODE]public void setData(List<Object> data) { myTableModel.setDataVector(data); }[/CODE] ...and in my table model i have something like …

Software Development java
Member Avatar for evaristo
0
148
Member Avatar for cam875

My program is acting really weird, it will run fine sometimes and other times it will just go into a constant loop and screw up. Heres the code of the part thats screwing up. void AmasiVillage() { CharacterLocationID = 1; system("cls"); cout << "\n"; cout << "\n"; cout << "\n"; …

Software Development c++
Member Avatar for ninjaneer
0
120
Member Avatar for marcosjp

Hello there, again! Well, once I solved the stupid bug I had in my first Python class ever, now I'm getting results I wasn't expecting. The problem is: I instantiated two objects of this class but, apparently, one of the objects is just a copy of the other. And if …

Software Development python
Member Avatar for marcosjp
0
154
Member Avatar for QuantNeeds

Hello, I am working on two separate programs because I was trying one differently. I got my other program’s issue solved but now I would like to complete this one. But I am little lost on the error because the data it is complaining about is part of the class. …

Software Development c++
Member Avatar for QuantNeeds
0
2K
Member Avatar for mrboolf

Hi all. I'm trying to write a "simple" program for a word game (something somewhat similar to Scrabble) and I got stopped by the task I tought to be easy enough to start with. I have a text file (Italiano.list) wich is a collection of italian words listed alphabetically as …

Software Development c++
Member Avatar for mrboolf
0
595
Member Avatar for QuantNeeds

Hello, I have 3 major problems: 1) I am not sure if I am doing my static test method correctly. 2) I am not sure if the wagering class is actually checking the bankBalance and the wager 3) I have the following error, which I am not sure how to …

Software Development c++
Member Avatar for QuantNeeds
0
305
Member Avatar for k2k

hi, i had a few unix questions that I am not sure about the answers. if anybody can give a try... that would be great. 1. In sed, when you do pattern matching, the largest pattern is always matched first, left to right. True or False 2. The command tr …

Software Development file-stream shell-scripting unix
Member Avatar for masijade
1
533
Member Avatar for integer*09

Hi all, I have done a word search within a text file and managed to find it on a particular line, but i dont know what to do so as to get the word/number directly after the searched word. e.g content with the text file sdakodjskfjsdkfjasook sample1. : ihavemakeit sdofjsdfjasfjsdkf …

Software Development c++
Member Avatar for integer*09
0
340
Member Avatar for FTProtocol

[CODE] GetWindowText(hwContact, szContact, 256); strcpy(&szContact[strlen(szContact)], " - Conversation"); FindWindow(NULL, szContact); break; [/CODE] once its found the window of szContact, how can i bring that window to the front

Software Development c++
Member Avatar for FTProtocol
0
109
Member Avatar for n00b3

Hooked Procedure Early Return In/External Trigger Hello, I've hooked into an application succesfully using WH_CALLWNDPROCRET or WH_CALLWNDPROC both give the same issue detailed below. In the hooked callback function I trigger my code by waiting for a spceific window message. Once the hooked callback function receives this message, my code …

Software Development c++ gui
Member Avatar for n00b3
0
129
Member Avatar for veledrom

Hi, I have created a project in VB6. How can make it SETUP / INSTALL kit? I have added some refferences and components as well. Thanks

Software Development visual-basic
Member Avatar for veledrom
0
125
Member Avatar for marcosjp

Hello! I'm studying Python and wrote a very simple class to work with bidimensional arrays - just as an exercise. Before writing te class I played around with functions and they worked fine. When I tried to do the same using a class, things became strange... Okay, I wrote this …

Software Development python
Member Avatar for marcosjp
0
315
Member Avatar for Alex Edwards

I know this is a really sad question to ask, but please tell me... how and when should I ever use extern? I recall an example that Narue showed me but even if I read through the definition from MSDN.com as well as other sources, I still can't quite understand …

Software Development c++
Member Avatar for Alex Edwards
0
5K
Member Avatar for s7plc

Ok, I would like to use a regular expression that I create dynamically to search and replace words in a file. For instance: import re fl = re.compile('abc|def|ghi') ts = 'xyz abc mno def' n = fl.search(ts) print n How would I find all matches in the string? So far, …

Software Development python
Member Avatar for sneekula
0
6K
Member Avatar for mike issa

i have a header file and one of the function prototypes is [CODE]extern "C" LONGBOOL _stdcall LT360LIB_CmdValue(LONGINT Handle, LONGINT CmdID, char * ParamValue);[/CODE] and there is an example of using this code [CODE]z=LT360LIB_CmdValue(0, lt_Goto_CCW, "5.5");[/CODE] when i try this code it compile and builds correctly but when i run the …

Software Development c++
Member Avatar for mike issa
0
344
Member Avatar for Gold dragon

I am making a Black jack game and i am trying to make it so that when my label which shows my current randomized valued which is "2,11" if this label = 10 then i would like it to randomize so that my picture box displays one of 3 randomized …

Software Development vb.net
Member Avatar for Gold dragon
0
83
Member Avatar for emilio

is it possible to pass custom eventargs in mouse click or double click eventhandler ? when i tried , it gave me an error about no overload method for double click in the designer.

Software Development
Member Avatar for yilmazhuseyin
0
106
Member Avatar for k2k

first of all, what can i do to make my command works like the "ls, cp, mv" ? I always do vi myScript.sh and then chmod +x myScript.sh and I have to execute it like ./myScript.sh ,,, simply typing $myScript at the command promp will not work. Second question for …

Software Development shell-scripting
Member Avatar for k2k
0
142
Member Avatar for Vega_Knight

hi all, i try to make array here but i didn't know how to make it? please help me.. best regards..

Software Development pascal
Member Avatar for Clive29
0
135
Member Avatar for prasu

Please Check the code and reply what is wrong in the update code Try block is executed successfully........but it is not being updated. Public Class Form3 Dim cn As New Odbc.OdbcConnection("Driver={MySQL ODBC 3.51 Driver};Server=localhost;Database=attend_ap; User=root;Password=;") Dim cmd, cmd2 As Odbc.OdbcCommand Dim adp, adp2 As Odbc.OdbcDataAdapter Dim ds, ds2 As New …

Software Development dataset vb.net windows-server
Member Avatar for prasu
0
158
Member Avatar for dmanw100

I was wondering if anyone could recommend a powerful library for communicating with USB jump drives? My attempts to locate a solution on Google have not provided much in terms of usefulness. I would simply like to read and write to the drive, perhaps even find the size of the …

Software Development c++
Member Avatar for dmanw100
0
167
Member Avatar for new_2_java

Hi all, I have to write a synchronization utility which synchronizes a target folder with a source folder: i.e. I have the following source directory structure and would like to synchronize it. [code] C:\source\ | +----Folder_A | | | +---Folder_A1 | | | | | +---File_AA1.txt | | | +---FileA1.txt …

Software Development java
Member Avatar for new_2_java
0
159
Member Avatar for Shaun32887

Just to introduce myself again, My name is Shaun and I'm a 21 year old engineering student with about... six weeks of c++ experience. I main concern isn't my ability to get the job done. I have enough Matlab experience and logical thinking to accomplish this task. My worry is …

Software Development c++ engineering visual-studio
Member Avatar for Shaun32887
0
212
Member Avatar for mike issa

hi all i was a able to create a .def file from lt360lib.dll using Borland C++ (impdef.exe) [CODE]LIBRARY LT360LIB.DLL EXPORTS LT360LIB_CloseLink @3 LT360LIB_Cmd @7 LT360LIB_CmdIndexValue @9 LT360LIB_CmdString @10 LT360LIB_CmdValue @8 LT360LIB_GetDllVerDate @1 LT360LIB_GetUsbFirmwareVerDate @6 LT360LIB_LinkedCnt @2 LT360LIB_OpenLinkCOM @5 LT360LIB_OpenLinkUSB @4 LT360LIB_ReadBinary @12 LT360LIB_WriteBinary @11 [/CODE] how can i convert this …

Software Development c++ visual-studio
Member Avatar for mike issa
0
3K
Member Avatar for ninjaimp

Hi i have a listview which is populated with a number of 'Appointments' and when selected this fills a number of lables with information. now on the first click it works fine and everything gets populated but when a different row is selected i get an error. the code im …

Software Development listview vb.net
Member Avatar for ninjaimp
0
209
Member Avatar for ThomYork

Hello All! I have a program in C# and I am trying to write it in C++. Somewhere in my app I have to run a command. In C++ I am trying to do it using system() To run the command I have to give the absolute path. For example: …

Software Development c++
Member Avatar for ThomYork
0
164
Member Avatar for Vao

[code=C]#include <stdio.h> #include <stdlib.h> void showBoard(int pLife[],int pType[]) {// WORKS NO-TOUCHY! int i; printf("\n*-----------------------------------*\n"); printf("| | | | | | |\n"); for(i=0;i<=5;i++) {printf("| %d-%d ",pLife[i],pType[i]);} printf("|\n"); printf("| | | | | | |\n"); printf("|-----+-----+-----+-----+-----+-----|\n"); printf("| | | | | | |\n"); for(i=6;i<=11;i++) {printf("| %d-%d ",pLife[i],pType[i]);} printf("|\n"); printf("| | | | …

Software Development c
Member Avatar for ssharish2005
0
153
Member Avatar for sciwizeh

simple questions, hopefully simple answers: How do i give a JButton the capability to accept a right click? When a JButton is being clicked it changes to a darker color, is there a way to make it a completely different color? i cannot find these answers in the API or …

Software Development api java
Member Avatar for Ezzaral
0
218
Member Avatar for ederX

Ok, I posted earlier and your suggestions worked fine, I had to rework the program a bit but it compiles now. The only problem is that it segfaults right away now. This is the gdb backtrace: [code] (gdb) backtrace full #0 0x95082630 in std::istream::sentry::sentry () No symbol table info available. …

Software Development c++ ios
Member Avatar for ederX
0
136
Member Avatar for jaytheguru

Morning All, I would like to set a limit to a text box so that end user only can enter numbers from 1-32 and not more. I have setup a validation on keypress to make it only work with numbers i.e digits and nothing else however I am not sure …

Software Development vb.net
Member Avatar for naz82
0
160
Member Avatar for lomo

I have to store my input values from function 1 into another array caled namesMore in function 2. Not to sure how to store into second array #include <iostream> #include <string> using namespace std; const int NR_PLAYERS = 4; void inputInformation(int goalsP[], int cardsR[], string names[]) { for(int i =0; …

Software Development c++
Member Avatar for lomo
0
79

The End.