132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for smoore

Okay just started teaching myself python recently and am on to pickling stuff. I just wrote a simple program exactly like the tutorial said (a few different ones actually) and I am getting an error. Here is my code: [CODE] import pickle file = open('./text/pickle.txt','w') list = ['one',2,'three',4,'five'] pickle.dump(list, file) …

Software Development python
Member Avatar for smoore
0
244
Member Avatar for TheWhite

I'm looking for a way to detect when a JFrame is moving (maybe there is some kind of listener). I have a primary JFrame that loads a 2nd JFrame next to it. I want this 2nd JFrame to move simultaneously with the primary JFrame as though it were attached. I …

Software Development java
Member Avatar for Ezzaral
0
137
Member Avatar for sohil.shivani
Member Avatar for goody11

Hey, I'm trying to load a bunch of words and setting them as my text but I they aren't setting for some reason. Here is the code: [code] #include "windows.h" #include "resource.h" #include <fstream> #include <vector> #include <cstring> #include <new> using namespace std; HWND hwndGoto = NULL; HWND hwndGoto2 = …

Software Development c++ file-stream
Member Avatar for Ancient Dragon
0
105
Member Avatar for Mikarinkazaa

Private Sub cmdLogin_Click() Dim comSave As New ADODB.Command Dim sqlAdd As String Set RS = New ADODB.Recordset With comSave [COLOR="red"].ActiveConnection = ConnDB[/COLOR] .CommandType = adCmdText End With ConnDB.BeginTrans sqlAdd = "INSERT INTO UserName (FullName,IDCard,CustomerID,Office,Address,Telephone,UserId,UserPwd)" sqlAdd = sqlAdd & "VALUES('''& txtFullName.Text & ''', ''' & txtIDCard.Text & ''', ''' & txtCustomerID.Text …

Software Development sql visual-basic
Member Avatar for debasisdas
0
98
Member Avatar for slayerace180

ok, so ive rattled my brain for quite some time now and im tired, i need help on my program because as of now, im down to 2 debugging errors "YAY!"... here is what the debugger says... " Line 7: error: too few arguments to function `void nextArray(bool (*)[20])' Line …

Software Development c++
Member Avatar for slayerace180
0
105
Member Avatar for Nathan Campos

Hello, I'm learning C++ and i want to know how i can build a program that play videos, don't take care of types, any type of video, not all, but one, remember that iwant to build a command-line app and i'm using Linux. Thanks, Nathan Paulino Campos

Software Development c++ video
Member Avatar for Nathan Campos
0
66
Member Avatar for pearllyn

Hi, i doing a project. I need to send sms or mms to mobile phone from server. i using visual studio 2008 C sharp. Can anyone please help me with it. Send the source code email to: [email]xiaoice_88@hotmail.com[/email] Thanks

Software Development visual-studio
Member Avatar for Dmennite
0
182
Member Avatar for xVent

Hi guys , i am trying to create a form which will have a scroll pane so the user will be able to use it in order to view what it will be inside the form .. the problem is that i am designing some questions in the form and …

Software Development vb.net
Member Avatar for Zandermander
0
131
Member Avatar for tarakant_sethy

Hi Guys, is there any other way to use shared library in unix and linux platform apart from dlopen() and dlsym(). Thanks.

Software Development c++ unix
Member Avatar for tarakant_sethy
0
83
Member Avatar for penguin22

hi guys i can build and clean the vs solution in python and get the exe's to build but don't know how to create a window installer

Software Development python
Member Avatar for jlm699
0
144
Member Avatar for funfullson

Sorry I am asking a beginners problem between professional discussion.But I realy confused witch one is better.qt, gtk, wx, opengl or one else.please guide me with a clear comparison. Thanks dears. Editor ... moved from Re: Python GUI Programming (rule is: ask question in regular forum)

Software Development gui opengl python qt
Member Avatar for funfullson
0
142
Member Avatar for dgr231

Hey all, I know this is a very newbish questions, but I couldn't readily find the answer on this board so I figured I would ask. Consider the following code snippet: [code=cplusplus] for(i=0;i<5;i++) { int number; int counter; cout << "Enter a number less than 10:" << endl; cin >> …

Software Development c++
Member Avatar for Salem
0
133
Member Avatar for carlcarman

my program needs to have the user enter a string and have it output backwards, not in reverse order. This is what I have so far, any help would be appreciated. I was trying to use memmove but I think I'm going in the wrong direction. Thanks Carl. [CODE] #include …

Software Development c
Member Avatar for wildgoose
0
129
Member Avatar for yara naser

[B]iam write this programe put in run there is problem in pointer please can you help me. to find the place of the problem when you run it press f10[B][/B] [CODE]#include<iostream> #include<fstream> #include<string> #include<conio.h> #include <iomanip> //#include<stdio> //#include<ctype> using namespace std; /**************************************************************** Functions prototype. *****************************************************************/ void Open_File(); void Demage_Lexeme(); int …

Software Development c++ data-structure open-source
Member Avatar for Ancient Dragon
0
152
Member Avatar for rbrt13

I am currently making an IRC bot in C++, and i am getting an error from trying to bind the socket, error 10049: WSAEADDRNOTAVAIL. I am new to sockets in C++, so I was wondering what I did wrong. I am running Windows Vista Home Premium and compiling with Bloodshed …

Software Development c++ windows-vista
Member Avatar for Salem
0
320
Member Avatar for sara9111

Where is the wrong??? Why does not this program work?? [code=cplusplus]#include <iostream> using namespace std; // Function prototypes. int resverseDigit (int); int main() { int num; // Test function resverseDigit(num). cout << "Enter the number: " << endl; cin >>num; return 0; } // End of main // Function Definitions …

Software Development c++
Member Avatar for mrnutty
0
129
Member Avatar for NargalaX

Cross-thread operation not valid: Control 'txtIn' accessed from a thread other than the thread it was created on. I am trying to make a TCP IP Client control and when I receive a message, or basically when the receiver text box is updated, it crashes my client due to cross …

Software Development tcp-udp
Member Avatar for sknake
0
172
Member Avatar for TeejMonster

I am trying to create an application that allows one to browse a .MDB file to add/edit/delete basic personal information for fraternity alumni. It is something that I have been casually doing in my free time with little trouble, however, I have run into a snag recently. I have a …

Software Development delphi open-source pascal
Member Avatar for TeejMonster
0
142
Member Avatar for Dream2code

Can any one suggest me how to read EBCDIC Files (which generally comes form mainframe systems) using C. EBCDIC:Extended Binary Coded Decimal Interchangable Code (not sure about the full form)

Software Development c
Member Avatar for yellowSnow
0
1K
Member Avatar for 4101

I need help.... I have a problem about the program/code for the recursive function for power...for example b to the n power, where b is a float and n is an integer... thank you...hope you can help me with this... I need it tomorrow...

Software Development c++
Member Avatar for siddhant3s
0
95
Member Avatar for laghaterohan

I am developing a windows application wherein i need the application to work in the following way : Say i have a textbox n listbox . Say in a textbox i type R then all the items in the listbox that contains the letter "R" in them should be listed …

Software Development
Member Avatar for DdoubleD
0
150
Member Avatar for nkarvi

Hi everyone, I am new to c# and have come across to this: dataGridView[int a, int b].Value.ToString(); I understand that it takes the values of rows and turns them to string, but I cannot figure out the two integers. Are they the first and last rows respectively? What am I …

Software Development
Member Avatar for nkarvi
0
92
Member Avatar for MrNoob

hello i have last problem with strings i dunno whats wrong with this i dont get sometimes the logic coz when i write the program i do it into smaller stuff but this rlly string stuff drive me insane i hope i m gonna master it in the end anyways …

Software Development c
Member Avatar for MrNoob
0
135
Member Avatar for 4101

please help me with my exercise... please give me sample on recursions with Fibonacci and Lucas number... thank you very much....

Software Development c++
Member Avatar for 4101
0
106
Member Avatar for licktress

Hey guys. I am trying to make a program that prompts the user to enter in a directory path, and then the program goes to that directory and displays what is inside. [CODE]string cString; cin >> cString; system("cd " cString); //this is what i am having trouble with. system("DIR"); system("PAUSE");[/CODE] …

Software Development c++
Member Avatar for Ancient Dragon
0
219
Member Avatar for MV89

I am trying to define an abstract overridable method isKnownWord(), i am recieving errors but i cannot see where they are coming from. Can any one enlighten me. [CODE]public: spellChecker() { wordList=NULL; } void addWord(char* aWord) { int word_size=strlen(aWord) + 1; char* dest=new char[word_size]; strcpy(dest,aWord); wordRecord* newRec=new wordRecord; newRec -> …

Software Development c++
Member Avatar for JasonHippy
0
164
Member Avatar for leanne86

I'm wondering if anyone can help me. I don't know anything about python, but I have done some coding (javascript, PHP and a little bit of C) and I've just started my job and found out there is python installed on our server. A couple of months ago we had …

Software Development apache python
Member Avatar for jlm699
0
192
Member Avatar for denniskhor

As title mentioned, i wan check the process of a application. What i wan is like tat: When i start a process A, then the process A completed, process B will start after that. Once the process B started, then the script will start execute next step. Thanks for help. …

Software Development python
Member Avatar for jlm699
0
125
Member Avatar for 666kennedy

i know that the datetime.utcnow command is to show the date and time of the instant it was called. just say i have this [CODE] int time; time = //27/08/2009 09:00:00 time = time + //15 seconds [/CODE] what is the code or the numbers i need to use for …

Software Development
Member Avatar for ema005
0
191
Member Avatar for licktress

Hey guys. I am using windows xp, and Bloodshed Dev C++ compiler. I am making a simple program. The CPP file and EXE file work fine on my computer, but do not work on any other computers, no matter what OS (Ive tried on xp, vista, linux and 7). When …

Software Development c++ windows-vista
Member Avatar for JasonHippy
0
95
Member Avatar for b_bayaraa_d

hi i'm bayarja. i begin learning phyton. so what editor am i need? sorry for experts my english skill not good i hope you that you understanding my questions.

Software Development python
Member Avatar for snippsat
0
55
Member Avatar for gopi17

I'm juz wondering how do I send a single value to a 8-parameter function... [CODE] void enterdata1(int &row1col2) { cout<<"Please enter the number for Row 1-Columm 2"<<endl; cin>>row1col2; if(row1col2 != 1 && row1col2 != 2&& row1col2 != 3 && row1col2 != 4) { cout<<"Please enter the correct number (Which is …

Software Development c++
Member Avatar for necrolin
0
152
Member Avatar for Tank50

Hi I Create service using C#.I use the coding part of test to create servicee.Once I start the service it gave me message saying "Myservice on local computer started and then stoped.Some services stop automaticaly if they have no work to do,for example ,the performance logs and alerts service" below …

Software Development c#
Member Avatar for DangerDev
0
175
Member Avatar for johnyjj2

Hello! I was looking for the answer here but I couldn't find: [url]http://www.freepascal.org/port.var[/url] . I've got old code in Turbo Pascal and I try to run it on Dev-Pascal 1.9.2. (I also tried Lazarus application, but there was "Error. Project raised exception class 'External: SIGSEGV'."). [code]Free Pascal Compiler version 1.0.6 …

Software Development pascal
Member Avatar for johnyjj2
0
2K
Member Avatar for iceskater2752

Numbers whose sum of digits is divisible by 3 represent numbers divisible by 3. Write a program to verify this famous statement. Input a 5-digit integer n from the keyboard. Find the sum of the digits. Call it sum. Verify that either (a) both n and sum are divisible by …

Software Development java
Member Avatar for sneaker
0
143
Member Avatar for cesarnz

hi all, i have been tasked to write a servlet (java 1.4.2) which grabs a file from a ftp server via sftp. i know how to write a simple servlet but i dont know much about sftp. Couldnt find any api on the suns site either. any help on how …

Software Development api java
Member Avatar for peter_budo
0
134
Member Avatar for ramyking

i ve programmed a postfix calculator it woks fine until if make new calculation e.g: 3+4*2 =11 new try 3+4*2 i get stack empty error does anyboy knows why [code] using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace postcalc …

Software Development
Member Avatar for ylizabeth
0
738
Member Avatar for compubaba

What exactly is meant of by associativity(right to left / left to right) mentioned on p53 of K&R 2nd edition. The book mentions that in X= f() + g() f may be evaluated before g or vice versa . But in the table it has been mentioned that () has …

Software Development c
Member Avatar for Salem
0
168
Member Avatar for spalax

Hi, i'm trying to read a simple email file from a folder in my computer. I find this code but, it's not working. i didn't understand theses lines: what should i write for mail.host? what should i write for "mail.transport.protocol", "smtp"? props.put("mail.host", "smtp.gmail.com"); props.put("mail.transport.protocol", "smtp"); [CODE] import java.util.*; import java.io.*; …

Software Development file-system java session
Member Avatar for spalax
0
3K
Member Avatar for lotrsimp12345
Member Avatar for packrisamy
0
263
Member Avatar for ladines

how can i make 2 digit counter starting from 00 to 99 and will reset when it reaches 99 . . . .

Software Development assembly
Member Avatar for wildgoose
0
40
Member Avatar for Lfmoncur

Hi, I have a problem with a program that shows the contents of a file, but when it process the data to figure out the sum, max, min and average, that values are wrong. Any ideas? Thanks Liam [code]// CO1401 Reassessment 2008/9 //Liam Moncur BSc Computer Networking #include <iostream> #include …

Software Development c++ file-system
Member Avatar for Salem
0
121
Member Avatar for lotrsimp12345

I understand the concept but i don't know when to use and what my teacher expects when he says overload certain operators.

Software Development c++
Member Avatar for lotrsimp12345
0
183
Member Avatar for stella44

[code]public class Intersection { private static String intersect[]= new String[3]; public static void main(String args[]) { // initialize Intersection intersect[0]="A"; intersect[1]="B"; intersect[2]="C"; for (int i=0; i<intersect.length ;i++) {System.out.println(intersect[i]);} Intersection inter= new Intersection(); System.out.print(inter.getIndex("C")); } //get index of intersection public int getIndex(String str) { for(int i=0;i<intersect.length;i++) { if(intersect[i].equalsIgnoreCase(str)) { return i; …

Software Development algorithm java queue
Member Avatar for VernonDozier
0
151
Member Avatar for D.JOHN

I am still new with fstream topic and I have some enquiries about using it. Based on the tutorial shown, I managed to understand a little about it but when I copy the first few lines, #include <fstream.h> void main { ofstream file; file.open("file.txt"); //open a file file<<"Hello file\n"<<75; //write …

Software Development c++
Member Avatar for D.JOHN
0
141
Member Avatar for JackDurden

I was wondering if you guys might help me figure out how to make a vector of vectors like so, The user will name the set say 'A'. And then using 'A' as a key you can then find the set name and add say 'a', 'b' to it. How …

Software Development c++
Member Avatar for Ancient Dragon
0
187
Member Avatar for riyas_26

Going to attend interview in few hours pls i need some basic questions with answers in C Dont send links pls sirs i am fresher..

Software Development c
Member Avatar for DangerDev
0
176
Member Avatar for no_spam_for_dan

I happened to see (and isolate) the following problem and have 2 questions: 1) tkMessageBox is used extensively in my code. How do I make my code work without a significant re-write? 2) how do I tell the wonderful tkinter developers that there is a problem? The problem is seen …

Software Development python tkinter ubuntu
Member Avatar for harishankar
0
190
Member Avatar for sdmahapatra

Hi everyone I couldn't find the actual logic behind below two problems: [code](1) how to capture number of occurrences of 3 between 1 to 100? and (2) assigns a function to a pointer and subsequently call it.[/code]all problems are in c++ As I'm new in this field so,please help me …

Software Development c++
Member Avatar for mrnutty
0
125

The End.