132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
Hi Guys, is there any other way to use shared library in unix and linux platform apart from dlopen() and dlsym(). Thanks. | |
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 | |
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) | |
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++ | |
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 | |
[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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
please help me with my exercise... please give me sample on recursions with Fibonacci and Lucas number... thank you very much.... Software Development c++ | |
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++ | |
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++ | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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# | |
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 | |
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 | |
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 | |
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 | |
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 | |
Please explain. Does it automatically include the default constructor? Software Development c++ | |
how can i make 2 digit counter starting from 00 to 99 and will reset when it reaches 99 . . . . Software Development assembly | |
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 | |
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++ | |
[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; … | |
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++ | |
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++ | |
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 … | |
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++ |
The End.