132,726 Archived Topics
Remove Filter ![]() | |
Hi, I have never been into sockets, so I decided to dive in. With some help from devshed, I managed to make a server as shown below. But I cant get it receive data from client. Please correct me :) ERROR: socket.error: (10057, 'Socket is not connected') [CODE=python] import socket … Software Development client-server python | |
Hey everyone, I'm relatively new to C++, cant seem to find a solution to my problem. I'm trying to randomly generate an array of class objects. I'm using rand() to generate a number 1-3, for the number of objects to generate. For some reason when I use: [code] int c_gen … Software Development c++ | |
Hi all I previously developed in Access and have recently decided to move over to SQL server back-end and vb2008 front-end. My Everest of problems which I can’t solve is the how to filter records by a user selected parameter. However, if the parameter is null then all records should … | |
Hello people. I seem to connect and select the data i want from a specific and big table. But when the information to be selected is small, everything is allright. But when i try to select information that is not that much small. For example when i select from 3000 … Software Development java | |
Using vbscript I want to create a runtime html login page on the fly. The html page should have username/pasword form and I will use this username/password to connect to a sql database. Is there a way to create this runtimehtml page using vbscript and them collect the username/password from … Software Development html-css vbscript visual-basic | |
Hi I'm designing a code where one can guess the Magic Number. In my code I have this part here where I declared the randomNumber after the class Form1. (the green mark below). Can somebody tell me what's the name of this part here? Is it static variable? And what … | |
write an application that finds the smallest and average of twenty floating point numbers entered by the user.Use a for loop to capture the user input and store the numbers in an array. display the smallest number and the average of the numbers entered i urgently write this program can … Software Development java | |
Hey everybody, i am writing a "database based" application. i organized my GUI with different frame- and panelobjects, which need database information (connection, uernames etc). is it possible, to define those information in an external files and just import these data (like in php)? i tried a solution with an … | |
hello, i'm new to cpp & I wanna know that in C++ if there is multiple inheritance is done suppose, Class A & Class B public,protected member is inherted in Class C like, [code] class A { protected: int no1; public: void get_a(void) { cout<<"Class A"; } }; class B … Software Development c++ | |
HI, Can Someone help me to do the refresh operation in Java.I need to refresh the panel in java every 5 seconds ..can someone help me provide the code Software Development java | |
I'm getting an error where it says I'm trying to use a null pointer. Then when I click ignore another error saying I tried to read or write protected memory. Any idea how to fix? [code] private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { using namespace System::Runtime::InteropServices; using namespace System; using … Software Development c++ ![]() | |
[CODE]def who_knows(a, b): """ a and b are lists """ c = [] for i in a: if is_mem(b, i): c.append(i) return uniqify(c) def is_mem(a, elem): for i in a: if i == elem: return True return False def uniqify(arr): b = {} for i in arr: b[i] = 1 … Software Development python | |
I've been writing code to develop gatepass system for my college. I've to made space for taking the photograph of the visitor taken by the camera at gates and then save the whole page in the database(actually the structure is already defined). Please suggest what to do.The code I've made … Software Development java java-swing | |
im making a singleton class in c++ and have a couple of questions. first, heres my .h and .cpp files: [CODE] // Singleton.h class Singleton { public: static Singleton GetSingleton(); void DoSomething(); ~Singleton(); private: Singleton(); static Singleton* _instance; }; [/CODE] [CODE] //Singleton.cpp Singleton* Singleton::_instance = 0;// initialize pointer //********************************************************************************************* Singleton::Singleton() … Software Development c++ ![]() | |
is it possible to implment OLE in java. Can you send the link where I can know about it + (if possible)then ways to implement it. Software Development java | |
Hello Everybody, I am working on a project and i want to compose one main string out of several substrings in C. for example: I have 3 variables: Float Vx=1,66 Float Vy=1.55 Float Vz=2.3 My first step is to convert them to character arrays usin snprintf. Then i want to … Software Development c | |
This may be be a silly question, but its baffling me. If I set up a receive interrupt, process the data and clear the flag. All works well. The problem is I need to use printf. I realize that this will of course also generate an interrupt, I handle this … Software Development c | |
hi, i want to make a program that highlights java buttons present on a frame just by bringing mouse over the buttons and this frame may not be part of this program ie it can be from another program but i dont know how to proceed any suggestions..... Software Development java | |
Hi over there, is it possible to execute several SQL Statements with one(!) command? For example something like that: [code] Statement s = con.createStatement(); sql= "CREATE DATABASE MeineDb+ SHOW databases+ USE MeineDb+ CREATE TABLE MeineTestTabelle ( i INT, c CHAR(3), s VARCHAR(8), dt DATE )+ CREATE TABLE MeineAdressen ( Name … | |
[code=java]import java.io.*; public class bonus{ public static InputStreamReader reader=new InputStreamReader(System.in); public static BufferedReader input=new BufferedReader(reader); public static void main(String[] args) throws Exception{ double salary,bonus; System.out.println("Enter Employee's Monthly Salary: "); salary=Double.parseDouble(input.readLine()); if(salary>=6000){ System.out.println("The bonus is 6000"); } else { bonus=salary*.5; System.out.println("The bonus is "+bonus); } } } } // It only … Software Development java | |
![]() | I am using vb 6.0 I am fairly new to VB, my question is: On my main form I have a command button that has 40 procedures and it loops through them about 1,000 times and then exits. Nothing is passed and all of the variables are private. I have … Software Development visual-basic |
this is another pretty simple question, but i've been trying to do it, and cant get it basically what i need is pretty simple, its like say you have a list of 5 numbers. now you need to print out all the lists of possible 3 numbers from those 5 … Software Development python | |
Hi Ezzaral... As per my last problem which is solved. So as I told you that I want to add GradiantPaint. This is the code that I came up with. This code is compling but giving me some runtime errors:. Please find the error report below- [CODE] import java.awt.BorderLayout; import … Software Development java java-swing | |
10 marks Write a RECURSIVE function which when passed a string s will return true if s is a palindrome and otherwise false. A palindrome is a string which is the same if reversed eg radar, rotor, noon, racecar. past paper question which im doing at the moment as got … Software Development c++ | |
[code] try { //1.Load the database Driver class Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //2.Make a connection to the database Connection conn = DriverManager.getConnection( "jdbc:odbc:MyDataSource"); Statement stmt = conn.createStatement(); String x = jTextField1.getText().toString(); [COLOR="Red"] String sqll ="UPDATE Patient_Comp SET taken='Taken'WHERE ID="+x ; ResultSet rs = stmt.[COLOR="Green"]executeQuery[/COLOR](sqll);[/COLOR] [/code] This is what i wrote to update a … | |
i new learner in c# , i have basic understanding in c# , now i try to create a basic program that let user key in input and save in a excel format ,i try found some resurce but dont work , can any oe help me?? Software Development c# | |
Hi folks, I have a Client (A Till) and a server which I am developing in C#. I wish to implement some sort of network queuing system. So basically, when a method wants to send some data to the server, it will try first and if it fails, then add … Software Development client-server hard-drive queue xml | |
Hi to all, I'm working in a application that needs to replace a certain string from a file. I need to create like a dictionary, I'll explain my self. 1. I need to search the string 'class.type=' 2. The string can be in the file like: class.type=var; or class.type =var; … Software Development | |
im sorry this is kind of a silly question i know, but does anyone know any succesful ways to change a .py into a .exe? like so that someone without python installed on their computer can run it? i've seen this topic in a couple places but everything i've tried … Software Development python | |
Hey guys, I have what I would consider a fairly unique problem. I'm not even sure where to start looking for a solution. I have template class that uses a typedef to define a map. But when I go to make an iterator for that map, I get a compile … Software Development c++ | |
Hey guys, I've been developing an application which transforms files generated by an aircraft transponder into KML files that will be loaded on Google earth. As these KML files are more or less XML files I'm trying to parse XML files. I have downloaded and the xerces library. According to … Software Development c++ ide visual-studio xml | |
hi, i am not really that good at c++. i have created an application which dynamically loads dll's as types of 'plugin' the problem i am trying to overcome is linking back to code in the application from the dll. i am currently within the scope of a function of … Software Development c++ visual-basic visual-studio | |
Here is my code: [CODE] #include "Poly.h" int main(){ Poly p; int degree = p.degree(); cout << degree << endl; int coefficient = p.coefficient(5); return 0; } [/CODE] [CODE] #include<iostream> using namespace std; class Poly{ public: Poly(); //constructor int degree(); //Returns the degree of the polynomial int coefficient(int); //Returns the … Software Development c++ | |
hi, im working on java on some client server project... in the project the client and the server can send files, but im failng to do so, the resiver get only part of the file... here is my code sender: [code] public void uploadByteFile(String fileNameToGet, File fileDst) { try { … Software Development client-server java | |
I just started a few days ago. I am troubled with the input in c#, even though I got it to work. Any comment would be helpful. Its a Number Guessing game and a tic-tac-toe game. [code] using System; namespace GAME { #region NUMBER GUESSING GAME public class Number_Guess { … Software Development c# | |
Would someone be so kind as to help me with this insert. The function insert takes two numbers, num and num2. num is the number to insert in the tree and num2 is the number of children to the parent node where num is inserted. I am getting errors for … Software Development c++ | |
Hi all Sorry- The title was wrong, My problem is when I type a the ID number in the text box for updating the record, it gives me an error "Data type mismatch in criteria expression." Could anyone help me please in solving this problem? This is my update code. … Software Development open-source sql vb.net | |
Hi, I'm having trouble with the following simple test program to extract 10 random numbers from 0 to 5. [CODE=java] import java.util.*; public class TestRandom { public static void main(String[] args) { Random rand = new Random(); for (int i = 0; i < 10; i++) { int j = … Software Development java | |
Hi I am studying for my C++ exam coming up & I have this practice question thats confusing me? [QUOTE]Given enum months{Jan = 1, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec}; write a C++ function that takes currentMonth of type months as the parameter, and returns … Software Development c++ | |
Hello all. I am new to this discussion forum and would greatly appreciate anyone's help on this one. This is a great site!! Thank you all for being here. Here's my problem: I'm working on an application that has a JPanel that is a grid layout with three columns of … Software Development java | |
Hey frnds, I m comparing two images in VB.Net..I get the code in C# & dat code is working 100 % Correctly..Now want to convert dat code to vb.net..& i need help in just converting two lines- C# EXAMPLE [code] private void Form1_Load(object sender, EventArgs e) { Bitmap img1= new … | |
Hi, I have a c++ program which uses the api's of a utlitiy. As per the document I have to include the path of binaries for the utility in my code. I am not sure why that is required and how to inlcude that. Any help is appreciated Thanks | |
Hello, I am trying to embed a html file (a report from sql) in to a word document in a particular location. I am trying to get this done using the Office Interop. 1) How can I embed a html file in to a word document ? 2) How can … Software Development file-system html-css python | |
I'm trying to open a command prompt through the program and then run bcp. Here is the code. System.Diagnostics .Process proc = new System.Diagnostics.Process (); proc.StartInfo.FileName = "bcp"; proc.StartInfo.Arguments = @"select * from dbname" queryout C:\filename.csv -S servername\instance -U sa -P password –N; proc.Start (); On the queryout I get … Software Development c# | |
ho do i store information to a mysql database? what i am trying to do is to fill out some students information and when i try to click save it should be saved to a mysql database.... here is my code but every time i click save it couldn't connect … | |
I have created a mobile game in netbeans and need to connect to web sevice through Java ME web service client, I get the proxy setting error which does not allow me to connect. Has anyone come-up with this problem? Software Development java java-netbeans | |
Hi, I wrote the following macro: [CODE] #define COM " #define GET_VAR_LINE(var, type) COM var = %type COM, var [/CODE] So, this code : [CODE] int main() { int x = 0; printf(GET_VAR_LINE(x, d)); }[/CODE] expands to [CODE] int main() { int x = 0; printf(" x = %d ", … Software Development c++ | |
Hello, I need to get remote file size through the url to a function. The problem is that I'm not getting! Trying with the functions of libcURL, but I am not getting. Is there any way to get the size of a remote file by url? Software Development c++ |
The End.