43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Syphilis

What's Up? OK, So this has been driving me crazy over the last few weeks, All I need to do is edit a file so that it runs without showing any windows (I.E Runs in background) The window is created by means of Delphi, (So WS_EX_TOOLWINDOW Won't work) The only …

Software Development api assembly delphi windows-api
Member Avatar for MosaicFuneral
0
160
Member Avatar for litchi

Hi :) I was hoping someone could point me in the right direction to create a grid of clickable objects/images/shapes. My problem is this, I have to create a grid of 100+ characters that, when you click on one, appends a JTextArea with a specific, different, character. The only idea …

Software Development java
Member Avatar for litchi
0
1K
Member Avatar for skerdzius

Hello, i've been learning java for a few months now, but i woulld also like to try c++. I tried rewriting one of my exercises in c++, but i cant seem to get objects working. These lines all prodduce errors. Cylinder outer(5,5); Cylinder inner(4,4); cout << "\n" << outer.volume() << …

Software Development c++
Member Avatar for skerdzius
1
339
Member Avatar for Katana24

Considering no one seems to be-able to answer my other thread I'll try simplifying this one. I have created GUI frame which contains a menubar at the top. I have several methods as well as a method which paints 5 circles onto the frame. When I call that method, by …

Software Development gui java
Member Avatar for BestJewSinceJC
0
80
Member Avatar for emilo35

Okay, this might become a monstous post, and I apologize for that. I recently switched from programming Java to C++ like a week ago, and can't seem to get all the pointers right it seems. Maybe all code provided in this post might seem a little overkill for the size …

Software Development c++ ios
Member Avatar for emilo35
0
186
Member Avatar for larrywjr

Hi, I am new to Python. I have written a routine and am trying to compile the code for distribution. I went to [URL="http://sourceforge.net/projects/py2exe/files/"]http://sourceforge.net/projects/py2exe/files/[/URL] and downloaded the file py2exe-0.6.9.win32-py2.6.exe. I am running Python 2.6 on a Win-XP Pro OS. I assume this file is a self-extracting exe. The trouble is …

Software Development file-system python
Member Avatar for jcao219
0
245
Member Avatar for Mathhax0r

Is it possible to have a function run at the beginning of every function of a class without explicitly writing it? I'm going to have a class with 20 or so methods, and though I can just copy and paste, I was wondering if there was an easier way to …

Software Development python
Member Avatar for jcao219
0
11K
Member Avatar for sanchow

Hello, I have a huge file with the following kind of lines: A,B,C 1,2,3 D,E 4,5 What is efficient way to split and get the following output using python? A 1 B 1 C 1 A 2 B 2 C 2 A 3 B 3 C 3 D 4 D …

Software Development python
Member Avatar for sanchow
0
117
Member Avatar for soUPERMan

Im getting errors with this, please advice me on what to do: [CODE]def displayHappy(): numLimit = input("Enter a positive integer: ") countHappy = 0 countUnhappy = 0 liHappy = [] for num in range(1, numLimit + 1): inNum = num while inNum != 1 and inNum != 4: inNum = …

Software Development python
Member Avatar for soUPERMan
0
167
Member Avatar for Acute

How can i move the Rectangle on the form and animate it as it moves? If i want to move it for example to the right, i must increase it's X cordinate, right? I did it (++x) and drawed a new rectangle and overdrawed the old one with background color. …

Software Development
Member Avatar for ddanbe
0
719
Member Avatar for sarfrazashfaq

Hi there I am translating PERL code into python and i am new on both language.I have one question if we have hash key reference in PERL like this way $a->{b} how we can traslate it into PYTHON? and if we have this code $a->{$b} , how we translate it …

Software Development perl python
Member Avatar for sarfrazashfaq
0
179
Member Avatar for abebosco

[CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #define TRUE 1 #define FALSE 0 #define BUFFER_LEN 240 #define NUM_P 50 void str_sort (char *[], int); int main () { char *s[NUM_P]; int count; printf("Enter the number of count:"); scanf("%d",&count); int i = 0; printf("enter the first string:"); scanf("%s",&s[0]); printf("enter the second string:"); …

Software Development c
Member Avatar for abebosco
0
122
Member Avatar for CreativeCoding

So I have looked and looked and wasn't able to find how to retrieve text from a selected option in a combobox. I have just started visual c++ so I don't really understand a lot. But I used to work with Visual C# before. So, is there any way? [CODE]if(comboboxslectedvaluethingy …

Software Development c++
Member Avatar for CreativeCoding
0
164
Member Avatar for phoenix911

I have no idea whats wrong here, i am fairly new to java.. heres my code.... [CODE] private JPanel pnlLogin, pnlFinalLogin,pnlUser, pnlPass = new JPanel(new BorderLayout()); btnLogin = new JButton("Login"); lblUser = new JLabel("Username:"); lblPass = new JLabel("Password:"); pnlUser.add(lblUser, BorderLayout.WEST); //pnlUser.add(txtUser); pnlPass.add(lblPass, BorderLayout.WEST); //pnlPass.add(txtPass); pnlLogin.add(pnlUser, BorderLayout.WEST); pnlLogin.add(pnlPass, BorderLayout.CENTER); pnlLogin.add(btnLogin, BorderLayout.EAST); …

Software Development gui java
Member Avatar for phoenix911
0
112
Member Avatar for yapkm01

i'm newby to C++. Small code as follows: [code] int main(int argc, char* argv[]) { cout << "function main() .." << '\n'; char ch1; int int1; cin >> ch1; cin >> int1; cout << ch1 << '\n'; cout << int1 << '\n'; return 0; } [/code] when i run the …

Software Development c++
Member Avatar for vmanes
0
113
Member Avatar for adity

I have an eclipse application from which i trigger an Swing widget.On click of a button on the SWT composite a window pops out which contains the Swing Table. Now i want a button on this Swing page to show up an eclipse workbench window. Any idea on how I …

Software Development ide java java-swing
Member Avatar for BestJewSinceJC
0
351
Member Avatar for James.Butcher

Hello, I'm new to programming forums so go easy on me :) I'm working on an assignment for school. I have to read a quiz.dat file which cotains info in the format of: TTTTTFFFFFTTTTT TTTTTFFFFF TTTTJoe Jones TTTTTFFFFFT TTFMary Jane ... ... etc. The first line being the answer key …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
324
Member Avatar for sid78669

Can someone please tell me why I might be getting a access violation when doing the following for a double linked list: [CODE=C++] ~DLList() { while(!isEmpty()) //isEmpty is working.. removeHead(); } bool isEmpty() { if(head == NULL && tail == NULL) return true; else return false; } char * removeHead() …

Software Development c++ linked-list
Member Avatar for sid78669
0
954
Member Avatar for ROTC89

ok so i am trying to do a little phone book. i have a class that has information on the individual, the main would read from a file of individuals and ask if the user wants to add or remove , and the last one is array of individuals..here is …

Software Development
Member Avatar for ROTC89
0
115
Member Avatar for kng

So guys for the sake of simplicity lets say i am developing a huge matrix multiplication program using C and i made a data structure which is able to represent this huge matrix into miniature blocks the down side is that this representation of block takes much more memory than …

Software Development c data-structure matrix-multiplication
Member Avatar for abhimanipal
0
146
Member Avatar for esy928

I'm making a game as my project in school. I'm having a problem regarding double buffering, im trying to draw an image (drawImage(,,,,)) into the double buffered image, I can't seem to make it work help please =D [CODE] public void render() { if(doubleBufferImage==null){ doubleBufferImage = createImage(PANEL_WIDTH,PANEL_HEIGHT); // Set Size …

Software Development java
Member Avatar for esy928
0
128
Member Avatar for drichird

[CODE] private void testFunc() { int[] arrayParam = new int[88]; arrayParam[2] = 67; calledFunc(arrayParam); Console.WriteLine("testFunc Done"); } private void calledFunc(int[] intArray) { Console.WriteLine(intArray[2]); //if new array declared, values not changed in testFunc intArray = new int[66]; intArray[2] = 33; intArray[5] = 55; } [/CODE] If calledFunc simply changes array values, …

Software Development
Member Avatar for apegram
0
1K
Member Avatar for doha786

hi, here is my code having return method that working correctly when i print it from inside of the method, but if i call from main method its shows only one output instead all results.. [CODE]public class SearchCompare{ .... public String process(){ String showResult=null; ... .. for (String found: names.keySet()) …

Software Development java
Member Avatar for doha786
0
118
Member Avatar for jallan2010

Sir, I am using the following code in my vb.net while using that code it will show me syntax error. [CODE]Private Sub updateinfo() Dim con As OleDbConnection Dim cmd As OleDbCommand Try con = New OleDbConnection(connectionString) cmd = New OleDbCommand("UPDATE [Lani] SET [First Name] = '" & txtfirst.Text & "', …

Software Development vb.net
Member Avatar for kvprajapati
0
125
Member Avatar for josephe

Will the new WPF 4 support multi-touch development on the HP TouchSmart computers? I know there is HP TouchSmart Developer kit, but it doesn't support the express editions of Visual Studio, and Visual Studio is kind of pricey.

Software Development visual-studio
Member Avatar for josephe
0
113
Member Avatar for Tech B

I posted a snippet about using a microcontroller as a mouse, and it works great, but it moves the mouse as a stepper motion. How would I go about making it velocity driven? Like when I tilt the accelerometer further, the faster the mouse moves. I've seen it on youtube, …

Software Development python
Member Avatar for Tech B
0
126
Member Avatar for BrianWren

In trying:[CODE]string var1 = Something"; Console.WriteLine("{0} ... \{", var1);[/CODE] to get: Something ...{ I get an error: Unrecognized escape sequence. Without the backslash I get an error: Input string was not in a correct format. Using "{0} ... \x7B" doesn't work: Input string was not in a correct format. (\x78 …

Software Development
Member Avatar for BrianWren
1
129
Member Avatar for epicasian

When I try to compile this: [code=C++] //Player Class Definitions #include <iostream> #include "player.h" using namespace std; player::player() { health = 100; level = 1; potions = 10; enemiesDefeated = 0; } int player::attack(int *enemyHealth) { srand(time(NULL)); int randomNumber = rand() % 100; *enemyHealth = *enemyHealth - randomNumber; } int …

Software Development c++
Member Avatar for epicasian
0
327
Member Avatar for epicasian

Hello, What I am trying to do is edit the variable of a class through a separate class function. I have tried to do things like [code=C++] int player::attack(int *enemy) { srand(time(NULL)); int randomNumber = rand() % 100; *consolePlayer.health = *consolePlayer.health - randomNumber; } [/code] and I get the error …

Software Development c++
Member Avatar for epicasian
0
102
Member Avatar for FotG2

delete this, solved, had to do with how a variable was declared

Software Development java
Member Avatar for BestJewSinceJC
0
56
Member Avatar for strmstn

I have three files: main.cpp [CODE]#include "CMain.h" int WINAPI WinMain(HINSTANCE hIn...) { return 0; }[/CODE] CMain.cpp [CODE]#include "CMain.h" using namespace Program; LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch(msg) { case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hwnd, msg, wParam, lParam); } return 0; } CMain::CMain(void) { …

Software Development c++
Member Avatar for strmstn
0
96
Member Avatar for wwsoft

Hello I'm creating a game engine. In order to draw everything correctly I need to sort a vector (vector<game_object*>) by each contents z value I miserably failed to do it with std's sort() so Id like to know what's the most efficient way I could sort this vector [If its …

Software Development c++
Member Avatar for wwsoft
0
110
Member Avatar for Pynolathgeen

[URL="http://i41.tinypic.com/n2ef5k.jpg"]Screenshot.[/URL] Hello, I have a problem already for like a week and I seriously can't get out of it. Take a look at the screen shot. The server sends a packet to the client to spawn an NPC. If you look to the top commandline-window, the client does recv the …

Software Development c++ client-server gui
Member Avatar for Pynolathgeen
0
243
Member Avatar for bunnyboy

So I have the following implementation of linked list: [CODE=c] #ifndef LINKED_LIST #define LINKED_LIST struct Student { char* name; char* surrname; char* signin_number; char* grade; char* date; struct Student* next; }; struct Student* begin = NULL; void push_back(struct Student* student) { struct Student* temp = NULL; if(begin == NULL) { …

Software Development c linked-list
Member Avatar for bunnyboy
0
97
Member Avatar for LeoC++

#include <iostream> using namespace std; int main() { int list[12] = {8,1,11,4,2,9,10,5,3,12,6,7}; cout<<list; return 0; } I run the above code and get this: 0x22fef0Press any key to continue . . . Please help!!! New with C and new with Dev-C++ which my University wants us to use... Running from …

Software Development c++
Member Avatar for rahul8590
0
130
Member Avatar for bgx90

Hello. I am creating a template class derived from another template class to basically mimic the behavior of the STL stack for a school project. I am getting a compile time error when try to use a variable named "copy" when testing the overloaded '=' (defined in the base class) …

Software Development c++ data-structure linked-list
Member Avatar for bgx90
0
114
Member Avatar for josolanes

I'll do my best to be as clear as possible about what I'm trying to do. In short, I'd like to know if a switch statement can check multiple variables simultaneously (I have a feeling it can't, but I'd like to confirm). If it can't, can someone recommend a way …

Software Development c++
Member Avatar for josolanes
0
2K
Member Avatar for Acute

hi everyone, i'm new in c#, so i have some questions: i have this piece of code: [code=c#]Graphics gfx = this.CreateGraphics(); Pen myPen = new Pen(Color.Azure, 1.0f); Rectangle myRec = new Rectangle(10, 10, 30, 30); gfx.DrawRectangle(myPen, myRec);[/code] and i want the rectangle myRec appear on the form1 when i press …

Software Development
Member Avatar for Geekitygeek
0
409
Member Avatar for scru

Does anybody know of any libraries or scripts or even code snippets that can generate HTML code from a diff or comparison of the contents of two files? I know of the HtmlDiff class in difflib, but the format it outputs is not the one I want (it puts both …

Software Development html-css python
Member Avatar for scru
0
117
Member Avatar for sblass92

I'm trying to declare a vector as a global variable, and am getting a linker error. I read up on linker problems with multi-file projects, pretty sure I've included the proper headers, used extern, and #ifdef properly, but I can't get it yet. Here is what we have: [CODE] //in …

Software Development c++
Member Avatar for sblass92
0
113
Member Avatar for domingo

hi i have a problem with datagridview. I have about 5 datagridviews displaying different items. Now my issue is that how will i know which datagridview the user selected and add from that datagridview only? at the moment the user can add from different datagridviews because the first row of …

Software Development
Member Avatar for domingo
0
140
Member Avatar for Acute

hi everyone, i'm new in c# and events handling techniques, and i have a problem: how can i call paint event inside of mouseclick event? [code=c#] private void Form1_MouseClick(object sender, MouseEventArgs e) { Form1_Paint(?, ?); //i need something like this... } [/code] i want to move rectangle(paint event moves it, …

Software Development
Member Avatar for Acute
0
3K
Member Avatar for TofiLuk

Hi I have a problem with this code. I'm trying to save a values in the database.. When I click the save button the table is being updated and showing the new values I entered. But the problem is it is not actually saved in the database, when I re-run …

Software Development vb.net
Member Avatar for TofiLuk
0
123
Member Avatar for PDB1982

I am trying to create a rational numbers program from scratch (I'm a brand new student basically), and I have all my inputs working right now. My problem lies within my showFraction() function, but I can't figure out how to fix it. It should output the inputs from the user …

Software Development c++
Member Avatar for tetron
0
530
Member Avatar for kiLLeR-eyEd_14

Hello peepz..Please try to look at my codes and read every comments i put there..I hope someone could help me with it..Especially those it graduates and higher level to me..I'm only first year college student..We're on visual c++..This is the link to my codes, please [url=http://ke14.emenace.com/Files.zip]download[/url] and post the solved …

Software Development c++
Member Avatar for rahul8590
-6
778
Member Avatar for DoEds

I found this code somewhere on the net... But i dunno how to stop this...Its keeps animating and i dont know when will this stop... [CODE]#include <stdio.h> #include <time.h> void sleep ( long milli ) { clock_t end, current = clock(); for( end = current + milli; current < end; …

Software Development c c# c++
Member Avatar for jonsca
0
114
Member Avatar for garyinspringhil

[CODE]x = self.spinbox37.value() * 40 y = self.spinbox38.value() * 40 printer = str(self.comboBox4.currentText()) print_cmd = 'echo "IN;PU" x "," y | lpr -P %s %s' self.LCDNumber18.display(x) self.LCDNumber19.display(y) #print_cmd = 'echo "IN;PU2100,11300;" | lpr -P %s %s' os.system(print_cmd % (printer, ""))[/CODE] In the above line I'm trying to use the x …

Software Development os-x printer python
Member Avatar for garyinspringhil
0
130
Member Avatar for emilio

hi I'm new to outlook add ins. i developed an outlook 2007 add in project and added a setup project so i will be able to install the add in to other computers. when i install the add in (using the installer from the setup project) it works fine on …

Software Development visual-studio
Member Avatar for emilio
0
107
Member Avatar for endframe

Hi everyone. So here's the case, I am a newcomer in C++ and I have been working on a small begginers program ; it adds 2 numbers after adding 1 to each of those 2 numbers . Let's say if we put 4,5 then it will add 1 to both …

Software Development c++
Member Avatar for BrianWren
0
234
Member Avatar for samurai1200

In C++ using gc++ compiler (netbeans, ubuntu), I am trying to pass a struct into a function (working fine), operate on an array in the struct (fine). But when I leave the function (which is void return value), the struct values snap back to their initialized values. the struct in …

Software Development c++ ubuntu
Member Avatar for samurai1200
0
1K

The End.