43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for brounemmanuel

Hello I am new in Perl and CGI. I want to write a program in perl that enables me to call executables, some of them maybe GUI. My starting point was to write a small program that would call an interface because this is on a local machine. Ultimately i …

Software Development gui perl
Member Avatar for KevinADC
0
145
Member Avatar for DATABASE

Hi everybody :sad: need help plz how can i list items from a database into a CheckedListBox , using VB.Net and MS Access db ??

Software Development vb.net
Member Avatar for DATABASE
0
327
Member Avatar for Joncamp

I wrote a cgi-bin program to run with Apache/Linux. When I do a form-post operation from a web page to my cgi-bin program, the form fields are not passed to the cgi-bin program? The cgi-bin program runs ok and returns some html through stdout, but doesn't read any form fields …

Software Development apache c++ first-post web-server
Member Avatar for Dave Sinkula
0
163
Member Avatar for CStallion

disclaimer I'm a programming n00b so I may not know what I'm talking about. /disclaimer My question boils down to scopes. Let say I have code [code] { string mystring1; string mystring2; string mystring3; //code dealing with mystring1 //code dealing with mystring2 //code dealing with mystring3 } [/code] versus [code] …

Software Development c
Member Avatar for CStallion
0
151
Member Avatar for yuzhang

:sad: Codes: if (sock!=INVALID_SOCKET) { if(send(sock,s,(int)strlen(s),0)==SOCKET_ERROR) { WSAGetLastError(); } } s is a char pointer pointing to the very first memory location of the data string. While in debugging mode, there was no error from `WSAGetLastError()`, but the data string was not displayed in the server. Why? Thanks

Software Development c
Member Avatar for yuzhang
0
148
Member Avatar for CStallion

[code] int r = rand()%2; switch(r) { case 0: string x[] = "Hi."; break; case 1: string x[] = "Bye."; break; } [/code] Will this code produce a conflict on the string "x"?

Software Development c++
Member Avatar for CStallion
0
96
Member Avatar for drock9975

I've never seen this before and am perplexed beyond belief... by the way I'm using Visual Studio I have a rather large program/game i'm working on right now, and it reads in via ifstream file i/o from binary files in several locations to initialize variables. For some reason for one …

Software Development c file-system visual-studio
Member Avatar for drock9975
0
190
Member Avatar for CStallion

I know how to change the console text color using this code [code]HANDLE hConsole; hConsole = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(hConsole, ###)[/code] But suppose I need to change colors frequently and on different output lines. Is there a shorter way to do it, like [code] cout[color=red] << "text"; [/code] ??? Rant: Google searching …

Software Development c++ google
Member Avatar for CStallion
0
307
Member Avatar for aeinstein

Hi all, I'm transistioning from the networking end of things and moving to the programming side, so, even though I've been around here for quite awhile, I have a pretty basic queston: since the char data type has a minimum range values between -127 to 128, how is a letter …

Software Development c++
Member Avatar for aeinstein
0
173
Member Avatar for gbs

Hi, I am having the problem of running ps2pdf from a python script. From the command line, ps2pdf works just fine. However, when I tried the following code: os.chdir("/tmp/test") # file.ps resides in this dir os.system("ps2pdf file.ps file.pdf") The script generated an empty file.pdf with no pages. Does anyone know …

Software Development pdf python
Member Avatar for G-Do
0
2K
Member Avatar for madloch

Hi All I'm new to Python and have created the below little program but would like to be able to print the loop final count (eg. 8 years) rather than every loop. Any hints on how to do this? def main(): print "This program calculates how long it takes for …

Software Development python
Member Avatar for madloch
0
3K
Member Avatar for NumNut

Hello, I am using fedora 5 and installed wxpython in an effort to program in python/wxpython (installed wxPython-2.6.3.2-1.fc5.i386.rpm, wxGTK-2.6.3-2.6.3.2.1.fc5.i386.rpm and wxGTK-gl-2.6.3-2.6.3.2.1.fc5.i386.rpm). When I run my test script to create a frame, a notebook and an image on one of the pages of the notebook, I get a GDK error when …

Software Development image python
Member Avatar for NumNut
0
223
Member Avatar for Aenima

First of all, hello everyone. My problem is this. In writing a program which accepts multiple user inputs of type [B]int, [/B]during the first run through the program, after the first [B]cout << [/B]statement prints, I have to press enter twice in order for the second [B]cout [/B]statement to display. …

Software Development c++
Member Avatar for Aenima
0
264
Member Avatar for watkins6878

Hi I am trying to fill a combobox with the files from a FileListBox the code i am using is [CODE]Private Sub Form_Load() File1.Path "C:\Images" File1.Refresh If File1.ListCount > 0 Then For i = File1.ListCount To -1 Combo1.AddItem File1.List(i) Next End If End Sub [/CODE] The FileListBox fills with the …

Software Development visual-basic
Member Avatar for watkins6878
0
168
Member Avatar for yyuuvvaall

hi, can someone understand how the new element is being attached to the list in this code? [CODE] void insertSortedList (Node **head, int value) { /* creating a new node */ Node *ptr = createNode (value); Node **pCurrent = head; /* adding the new node to the correct place in …

Software Development c
Member Avatar for dude543
0
343
Member Avatar for Ene Uran

How do you loop through an entire year showing each day's date?

Software Development python
Member Avatar for bumsfeld
0
5K
Member Avatar for newgurl

Hello, Can you please assist, why my Dev C++ program, wont see that I am trying to introduce the string library? Eaxmple: [code]#include <iostream> #include <string.h> using namespace std; ... ... ... int id; string name; int item; float cost;[/code] int is bold, float is bold, but string is not... …

Software Development c++
Member Avatar for WaltP
0
272
Member Avatar for newgurl

Hello, I am new at this. I am trying to work with calling functions here. (Eventually I want to do some simple calcs on cost of going through a station...)but am getting an error on line marked with ***** initialise line within main int(). Can someone kindly suggest why it …

Software Development c++
Member Avatar for WaltP
0
3K
Member Avatar for moloza

Helloe all I have this small program using switch statment. the problem that when I complie this C code using gcc under Linux I get message: switch guantity not integer!! Now, when I use switch(*hello) instead switch(hello), I got run time error: segmentation fault!! I want to know where is …

Software Development c
Member Avatar for Dave Sinkula
0
3K
Member Avatar for CStallion

I need to insert a "é" and other such symbols. At first I just tried using é straight out in C++ and it returned Θ. So I looked at my character map and did the unicode version \u00E9 where I wanted the é and it still returned Θ. I guess …

Software Development c++ google
Member Avatar for Ancient Dragon
0
3K
Member Avatar for rajashreeshinde

Hello All, I am developing a GUI application in wxPython on linux. I have to provide help menu describing tool's usage. I am not able to get any modules realated to this.Can anybody know how to develope help in wxPython? Thx, rajashree

Software Development gui python
Member Avatar for rajashreeshinde
0
379
Member Avatar for Kiba Ookami

There is only so much I can learn from free online sites (though I have learned some important things) and was wondering what books you would reccomend to further my C++ study? Additionally, I've heard bad things about my compiler, Bloodshead DevC++, in that it would be abandoned or is …

Software Development c++
Member Avatar for vegaseat
0
140
Member Avatar for Analogsleeper

Hi all, hoping someone can help me with a bit of code problem. I have this simple C++ program that does some processing on a text file with a bunch of numbers in it. I'm reading the numbers into global structures and then doing some math, then overriting those global …

Software Development c++
Member Avatar for Analogsleeper
0
220
Member Avatar for CStallion

Hi everyone. I'm new, but I'll be here for a while I think :cheesy: . Here is my code so far. The delays are because I wanted to simulate typing =). [code]// #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) { int i = …

Software Development c++
Member Avatar for CStallion
0
112
Member Avatar for whoru

I need to make a high scores list to a game, for class, and it has to be stored using a pickled object. I can only get it to where it stores and prints one score, and then every time you play it the score gets overwritten. How can I …

Software Development python
Member Avatar for G-Do
0
250
Member Avatar for Phaelax

I'm writing an IDE for java and already got the compiler linked into it, but I can't figure out how to read the data on the System.err or System.out streams.

Software Development ide java
Member Avatar for freesoft_2000
0
122
Member Avatar for Phaelax

I'm trying to find all quoted strings in a given text so that I can apply proper highlighting. I've tried various regex but can't seem to get the results I want. [code] String line = "a big \"yellow\" dog! And a \"purple\" bird!"; String[] tokens = line.split("\".+\""); [/code] That cuts …

Software Development java regex
Member Avatar for Phaelax
0
97
Member Avatar for Ene Uran

What is the best way to establish a wxPython event handler for a mouse click, button and so on? I have looked at a number of sample codes and the event handlers differ all over the place.

Software Development python
Member Avatar for Ene Uran
0
382
Member Avatar for EriCartman13

Ok I am confused. I just started python and when I save my program that I edited in the IDE editor as for example helloworld.py I cannot run it when I click it. All it does it come up with a black box, like cmd, and dissappears. Also do you …

Software Development ide python
Member Avatar for EriCartman13
0
208
Member Avatar for jack999

Write a C-Program that swaps the elements of 1-D array (10 elements) : Example: If the given array is: 5 8 9 2 3 1 11 17 43 6 The new array will be: 6 43 17 11 1 3 2 9 8 5 Your program should consist of the …

Software Development c
Member Avatar for Lerner
0
180
Member Avatar for potential

guys, please help me... how do i make clrscr() work? my friend told me to include conio.c, but i think that my version of dev-c++ doesn't have that...so i tried downloading conio.c...but the problem is, clrscr() still doesn't work in my pc but it works in my friend's pc...we're both …

Software Development c++
Member Avatar for Dave Sinkula
0
2K
Member Avatar for russell214

i want to populate the datagrid1 based on the given value below. i'm using VB6 as my frontend and MSACCESS as my backend. how to accomplish this? NET 9,500.00 'Given value INTEREST 1,200.00 'Given Value INT DUE 48 'Given Value IRR 0.69867 'Given Value TERM 25 'Given Value RELEASE 05/02/06 …

Software Development visual-basic
Member Avatar for russell214
0
116
Member Avatar for marten

I need to calculate the time of execution in millisecond, and this function should beAcurrate as possible. I asked one of my friends and he gave me one good function that do that and accurate, but there is linking Error, because this function works under Linux and I am works …

Software Development c encryption
0
107
Member Avatar for russell214

i have a 2 textbox and 1 listbox. i'm using vb6. how can i populate the listbox based on the given below? begindate.text = "05/02/06" 'begindate.text + 7 noofinstallment.text = 25 this should be the output in listbox control. 5/2/06 5/9/06 5/16/06 5/23/06 5/30/06 6/6/06 6/13/06 6/20/06 6/27/06 7/4/06 7/11/06 …

Software Development visual-basic
Member Avatar for russell214
0
122
Member Avatar for wanda

When using the modulus, if a<b, then a%b = a. But why, if a is negative, does -a%b = -a? According to the division algorithm, the remainder r must be >= 0 and <|b|.

Software Development algorithm java
0
93
Member Avatar for xenophobia

I had a MDI form. I need a function that are going to create a MDI child form when i call the function. But things is i want to clone the MDI child form, because the child form that going to be create are all the same form. [U]Example:[/U] 1st …

Software Development visual-basic
Member Avatar for xenophobia
0
123
Member Avatar for ilikerps

Hello, I am trying to write a simple updater program (in Java). A client would connect to the server, which would hand out any files it needs updated. One example would be updating a Java .class file. I have tried to just copy a class file, to see if that …

Software Development client-server java
Member Avatar for ilikerps
0
161
Member Avatar for Cool Nanu

Please help me with my problem.I have created a prog in C++ for use in a librar. But there are certain errors in it that i am not able to understand can u please correct this program for me.:rolleyes: This is my "till now" Program. [PHP]#include<stdio.h> #include<conio.h> #include<io.h> #include<fcntl.h> #include<string.h> …

Software Development c++
Member Avatar for Cool Nanu
0
214
Member Avatar for Confucius

Im sort of new to python, and I have been looking at some tutorials, manuals, etc. and I saw how to find prime numbers, so I thought it would be a good place to start, so I added some stuff to hopefully allow for user input, and it doesnt work. …

Software Development python
Member Avatar for Ene Uran
0
310
Member Avatar for purplegerbil

Hi, I have a toolbar on an MDI form, this works fine. I am trying to add a Buttonmenu to one of the buttons on the toolbar to add extra options. This is the problem, I cannot get it to work. Any ideas? pG

Software Development visual-basic
Member Avatar for purplegerbil
0
168
Member Avatar for swapnamishra

How can we execute the commands on one file in a such a way that the results will get saved in another file? Do we have any such built in method which we can use?

Software Development file-system python
Member Avatar for pythonguy
0
122
Member Avatar for pythonguy

I am using automnation desk to run my python scripts. It supports interpreter ver 2.2 I have some script common for almost all other script files of my application. this common script is saved as CommonCalls.py and is on python search path. I am using some ref. to a file …

Software Development python
Member Avatar for pythonguy
0
139
Member Avatar for janeane_tho12n

can anyone help me w/ this one? code: [CODE] dim msg as boolean msg = msgbox ("Save this one?", vbyesno) if msg = true then 'code goes here else 'code goes here end if [/CODE] when i run this one my code jumps to [U]else[/U] though i choose yes to …

Software Development visual-basic
Member Avatar for janeane_tho12n
0
634
Member Avatar for Avner .H.

hello everybody, I've started to learn pyGTK and glade for a program i'm doing, and i've run into some problems: 1. Is there no way to change the size of a specific text when using glade? for example, a window title, a label text etc. 2. In the Gnome widgets, …

Software Development python
Member Avatar for JoeM
0
180
Member Avatar for jlouang

can someone help me i can't seem to find my temperature problem [CODE] /**************************** * functions *****************************/ float c2F(float); float f2C(float); /**************************** * gloabal variables *****************************/ int main () { float inTemp; float newTemp; char inCode; cout << "please enter the code (a 'C' of 'F'): "; cin >> inCode; …

Software Development c++
Member Avatar for jlouang
0
112
Member Avatar for G.Host

Hello to all of you. My name is Greg. I am currently running Mac OS X ( my homeschooling computer). Anyways, I'm having trouble downloading Python to my Mac. Every python file I've downloaded and decompressed with StuffIt Expander, just seems to be nothing but files that I don't know …

Software Development os-x python
Member Avatar for G.Host
0
158
Member Avatar for JoeM

Hello!! I'm really new to python and pygtk and Glade, I'm sorry I'm still on the dark side using Windows 2000 :-( What I'm trying to do is a simple Testing Program Simulator, that means that I will press a button and then I'm supposed to show a cross or …

Software Development gui image python xml
Member Avatar for vegaseat
0
305
Member Avatar for monkeyphonics

Ok this is a homework program and this is my first JAVA course I am stuck on how to pass double values from one method to another I have a menu that appears with this code [code] public static int menu(int curmenuselection, double curitemprice) { while(curmenuselection != 5) { double …

Software Development java
Member Avatar for monkeyphonics
0
154
Member Avatar for bucodi

Hi, I would like to configure my wxcombox in a way that when it gets the focus, it automaticly opens his listpart. Any ideas ? tia Rony

Software Development python
Member Avatar for bucodi
0
120
Member Avatar for puppy

Hi. If I want to generate random numbers between -1 and 1, do I need to write a function to do that or is their something in the stdlib that can do it? Thanks.

Software Development c
Member Avatar for puppy
0
178

The End.