132,726 Archived Topics
Remove Filter ![]() | |
Ok, so my app basically checks multiple mail accounts for incoming messages every 5 minutes. I know about threads but have never coded a multi threaded application. What's the best way to go about this? Start the thread, have it call an instance method to check for mail, and then … Software Development | |
I have SQL Compact installed, and I'm using VS C# 2008 Express. I'm kinda confused though. I try to add: [CODE]using System.Data.SqlServerCe;[/CODE] And get an error. It don't even pop up in intellisense. I've tried adding reference paths to the DLL's (not sure if I'm doing it right) but still … | |
Hi! I am having some problems with using the operator= on an dereferences object. I have the code... [CODE]Julian j1(2319,1,7); Date * dp = new Gregorian(2319,1,23); cout << (*dp) << " " << typeid(*dp).name() << endl; *dp = j1; cout << (*dp) << " " << typeid(*dp).name() << endl; j1 … Software Development c++ | |
I want to develop this program through the arrays to work on more than how Server؟ [CODE] /////////////////////////////////////////////////// /// Program For Simulation 2 server in 2 line //// /// Create By :Anakonda-ksa //// //////////////////////////////////////////////// #include<iostream.h> #include<stdlib.h> #include<cstring.h> int main() { int na=0 ,nb=0; float time=0,total_time,no_of_completion_a=0,no_of_completionb=0, total_area_a=0,event_time_a,total_busy_time_a=0,total_area_b=0,event_time_b,total_busy_time_b=0, Ra,Rb,Xa,Xb,Ua,Ub,Na,Nb,prev_event_time_a,prev_event_time_b; string event_type; { … Software Development c++ | |
hi, Is it possible to query WMI to take only the owner of the processes? My test, but it does not work: [CODE=C#] ObjectQuery query = new ObjectQuery ("Select * from Win32_Process where Owner = 'LolaLola'"); [/CODE] Software Development | |
Hi guys, first of all let me say that I'm a Delphi guys, but I've been cleaning up some old legacy C++ code without any real issues. The following piece of code however baffles me! It looks like it simply copies the binary input file to another file bit by … | |
Hello everyone, I'm having a really strange problem and I can't figure out why. [CODE=java] public void readEmpregados(ArrayList <Classe_Pessoa> list) throws IOException, ClassNotFoundException { FileInputStream file; try { file=new FileInputStream(this.empregados); } catch (FileNotFoundException e) { this.empregados.createNewFile(); return; } System.out.println("I'm here"); try { ObjectInputStream out=new ObjectInputStream(file); Object prototype=out.readObject(); if (prototype instanceof … Software Development java | |
1) i have a group of data and equations that have been formulates in microsoft excel. Is it possible for VB to directly read my formula from excel or i have to copy the formula and place it in VB coding? how to code it? 2) can VB read my … Software Development visual-basic | |
im using the python command prompt to enter these commands and after the window is shown. it becomes "not responding" which makes all later commands to it do absolutly nothing, including simply trying to resize the window with the mouse. this is how the code starts out... [CODE]import os, sys, … | |
I have a problem reading in data from a CSV file using tabarray (see code below) because the CSV file has a incomplete fields in the last record of the file. As a consequence I get the following error: [COLOR="Red"] File "build\bdist.win32\egg\tabular\io.py", line 170, in loadSVcols assert (Lens == Lens[0]).all() … Software Development python | |
First of all, Happy new year!!! [CODE]import java.io.*; public class Main { public static void main(String[] args) { int input = 0; switch (input) { case 1: System.out.print("one "); break; case 2: System.out.print("two "); break; case 3: System.out.print("three "); break; case 4: System.out.print("four "); break; case 5: System.out.print("five "); break; … Software Development java | |
Hi all, I have a picturebox with scalemode pixel dim height as integer dim width as integer height = picbox.scaleHeight width = picbox.scaleWidth picbox.PaintPicture pic, 0, 0, height, width, 0, 0, picheight, picwidth note: picheight and picwidth are the height and the width of pic (in pixel) that has been … Software Development visual-basic | |
Hi, Im new here and to java programming in general. I've been given an assignment to write a sorting algorithm and then test it using JUnit tests. The problem is when I try to compile the tester class i get a ".class expected" errors followed by three "; expected" errors … | |
[B]The project :[/B] Deisgn and implement an application that reads an integer value and prints the sum of all even integers between 2 and in the input value, inclusive. Print an error message if the input value is less than 2. Promt accordingly. [B]Query :[/B] I'm not sure how I … Software Development java | |
I've written a DLL with keyboard hook inside, how do I load the dll in my code and like activate it, the hook function inside dll writes keyboard presses to a file, I would like to activate it from my exe. Software Development c++ | |
Hi and I am having trouble with one of the very most basics of java applets. That is putting the applet into a webpage and in that webpage specifying some parameters. The below is my code: [CODE=html]<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" ARCHIVE="chatroom$1.class, chatroom$2.class, chatroom$3.class, chatroom.class, extender$innerclass.class, extender.class" width="500" height="480"> <PARAM name="archive" value="chatroom$1.class, chatroom$2.class, … Software Development java | |
Good day! My codes stated don't have errors, it run well, BUT, though this program is saving in notepad as .out and .txt, when i closed the dos console and then run the program again, it is not reading the added items in .out and .txt file. That's the problem, … Software Development java | |
Hi, How can I create a program that detectes plagarism lets say we have two files and we want to compare them and at last to have the percentage of smilarity I am aware of strcmp and compare and I know how to use them it's just the methodology that … Software Development c++ | |
someone please help me out on this linked list code. it seems not to work out. it is sort of a doubly linked list. look it out. [CODE] #include<stdio.h> #include<stdlib.h> int count = 0; struct node_ptr{ int value; int no; struct node* back; struct node* next; }; struct node_ptr* root; … Software Development c linked-list | |
I have been working on an Picture adjusting/cropping/resizing/emailing app. Its concept is pushed toward looking similar to Adobe Lightroom, in that none of the adjustments affect the original images, and all the adjustments are reversible and appear on the main screen as a sidebar. The goal of the app it … Software Development adobe | |
Greetings all! I have a question which after hours of googling i could not find an answer to. In a winsock enviroment, how does one get the udp packet's checksum from the header? thanks! Software Development c | |
I wonder what is the name of his widget. It manages wxFrames whose in turn manages wxNoteBooks. It is like wxAUI but its Frames has maximize windows. I wonder what is equivalent wxWidgets/wxPython for [URL="http://www.swordsearcher.com/features/screenshots/swordsearcher-screenshot-full.png"]this [/URL] see here Thanks Software Development python | |
Hi , so far i have been concentrating on programming aspects. now its time to learn some internals of C -compiler. Lexical Analyzer Parser Hashtables Syntax Checkers Expression Evaluators Symbol table : etc please share me some info related to symbol table what are the contents of the symbol table … Software Development c | |
Okay, being a Linux guy, I absolutely hate it when applications are not cross-platform (Windows only). So, I decided to write myself a cross-platform media player. I have spent quite the bit of time making it look great on Linux, but I am unable to do the same on Windows … Software Development python | |
Hi, I was playing around last night with having one main frame that contains several windows you can open under the window menu. For example you might have a chat window and you might have a game board window. I want these windows contained by one larger frame that represents … Software Development java | |
![]() | Hello, I am making a console application for a window home computer. The application will search for factors of a number that the user enters. Everything works fine up to about [10^10 = 10000000000]. I am unsure if C++ has a maxium number allowence. If this is the case can … |
I've have tried to make a function that reads process memory in another process. I have made a function that writes memory which works perfectly, but when i run the function ReadProcessMemory it comes with the error: "Access Violation". The weird thing is it works fine when I do it … Software Development assembly | |
Hi! I don't have much experience with python, so I hope you could help me. I have to do a program that delete all the punctuations of a input txt document, but i can't figure out how to input the name(of the xy.txt) in the function. Function [CODE]import string def … Software Development python | |
hi everyone, i have been asked to make a basic calculator but my calc only holds two integers like 2+2 it cant do more than 2 operations so id reaaly be glad if someone could take a look at my code and see what the problem is asap.im still a … Software Development java java-swing | |
Major a/v sync issues using Logitech webcams and directshow and dspack Followed various MSDN methods and other peoples thinly described methods on the net and still to no avail. Im using a logitech quick cam pro 4000 and CANNOT get the audio and video in sync. Ive tried tonnes of … | |
[code] void read (std::istream & _input) { string linijka; vector<string> entry; string laaa, naa; int ii=0; while (getline(_input,linijka,'\n')) { cout<<"current line:"<<linijka<<endl; while(linijka[ii] != ',') {laaa+=linijka[ii]; ii++;} entry.push_back(laaa); ii++; cout<<entry[0]<<endl; laaa.clear(); while(linijka[ii] != '\n') {laaa+=linijka[ii]; ii++;} entry.push_back(laaa); //doing something with entry ii=0; laaa.clear(); linijka.clear(); entry.clear(); } } [/code] my csv file … Software Development c++ | |
hey guys! do you have idea how to print a * and in a square symbol like this ***** * * * * * * ***** i have my code in here but it didnt follow like that | |
I would like to know how to loop a connection or close an existing connection. heres the code i have to connect [CODE]Imports System.Net.Sockets Public Class Form1 Dim clientSocket As New System.Net.Sockets.TcpClient() Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try clientSocket.Connect("ServerIp Goes Here", Server port … Software Development client-server socket-programming vb.net | |
Basically what is the system level difference between language C and C++ ? | |
Hey all, I've tried many times to write a C++ class around a C library to make a nice clean interface to that library. Now I keep on getting the same problem: Once in the class, I initialize the C library, and then the C library complains that EG: error … Software Development c++ | |
Hello, I'm writing a music player and I'm having trouble with one of the most important concepts of it: remembering songs you add to your "Library". The main draw of my music play is being quick and efficient at everything, and keeping that in mind, what would be the best … Software Development python | |
Hi dears.I want start making a web with python but I know nothing a bout web.and so don't know from where a have to start. I need a point to start and a few knowledge about webs programing foundation.please introduce me a suitable source for beginning. Thanks. Software Development python | |
Hi I'm developing a WCF service, which defines a callback contract through which the server can call a method on the client. Below is a sample code: [code] [ServiceContract(SessionMode = SessionMode.Required, CallbackContract = (typeof(ISampleServiceCallback)))] public interface ISampleService { [OperationContract(IsInitiating = true, IsTerminating = false, IsOneWay = false)] bool Register(int controllerId); … Software Development client-server | |
[CODE] while(1){ system("clear"); gotorc(10,30); printf("\n1. add records"); printf("\nyour choice"); fflush(stdin); choice=getchar(); switch(choice) { case'1' : fseek(fp,0,SEEK_END); another='y'; while(another=='y') { printf("\n Enter name, age and basic sal"); scanf("%s%d%f",e.name,&e.age,&e.bs); fwrite(&e,stsize,1,fp); printf("\n add another record(y/n)"); fflush(stdin); another=getchar(); } break; [/CODE] [QUOTE] hi friends i am working on one menu driven program and used … Software Development c | |
Hello guys. I just want to ask how to convert this code to python. I am just a beginner in this code. [CODE] String output = "The number is: "; int num= 12; output+=num; System.out.println(output); [/CODE] in my python code, i try to do this: [CODE] output = "The number … Software Development python | |
Can anyone explan the main idea of using set and get function , because im confusing between them .:-/ Software Development c++ | |
![]() | I'm trying to learn how to send forms using python 3.1 and it doesn't go well. I've made a simple site with a POST form. it got user and pass fields, and it will save the data into a text file. (for debugging) The site is working, I can type … Software Development python |
In the following program, what is the "values" function? [CODE]for tank in tanks.values(): if tank.alive: print tank.name, "is the winnter!" break[/CODE] I looked it up using Wing IDE and this is what I found. [CODE]def values(self, arg): """ D.values() -> list of D's values """ return [][/CODE] Thanks for any … | |
Hi, I am trying to make and use my own DLL within a C++/CLI project. The DLL project contains an header utc.h file with the following declaration: [code] namespace utc { __declspec(dllexport) void dthr (int dt[3], int hr[3]); }[/code] The source of the dthr.cpp file starts with: [code] namespace utc … Software Development c++ | |
Hello guys, I'm trying to make this work [CODE]all: daemon client daemon: cd ./daemon; make daemon client: echo going in cd ./client; make client clean: cd ./daemon ; make clean cd ./client ; make clean[/CODE] But I'm having 2 problems: 1) Make ALWAYS tells me there's nothing to be done. … Software Development c | |
Why when I save a float value into database (the data type is float as well), for example 24,62 in database is writen as 24,6200008392334. I have entered only 2 decimals, but in db there is plenty of them. This is how I have: [CODE]string Together = textBoxAmount.Text; string[] Seperated … Software Development | |
I have a file that contain data structure as below: L,13206,11,02,06,000,3981.100 19,22,25,26,19 END L,13207,11,02,06,000,6561.000 22,24,7,8,9,25,22 END K,[COLOR="Red"]1[/COLOR],P [COLOR="red"]-18970.811,53728.643[/COLOR],BKL,,e-Coord,M END so how can i extract 1 and -18970.811,53728.643 and export it into a new output file with new structured as below: C [COLOR="red"]1 [/COLOR] [COLOR="red"]-18970.811 53728.643[/COLOR] For your information, the value … Software Development data-structure file-system vb.net | |
Hi all :) Currently I have a console for my program, which in short words, executes the function named what you write. The thing is, the functions needs, for several reasons, to be members of a class. Currently I have the code below. Manager is a class that needs to … Software Development c++ |
The End.