132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Stefano Mtangoo

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
Member Avatar for Stefano Mtangoo
0
290
Member Avatar for clisen

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++
Member Avatar for clisen
0
185
Member Avatar for RobinTheHood

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 …

Software Development dataset vb.net
Member Avatar for samir_ibrahim
0
116
Member Avatar for Xessa

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
Member Avatar for Xessa
0
106
Member Avatar for ramesh_natesan

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
Member Avatar for raman242001
0
355
Member Avatar for tintincute

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 …

Software Development c c# c++
Member Avatar for kvprajapati
0
79
Member Avatar for _Rosie_

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
Member Avatar for stultuske
0
131
Member Avatar for kingarthur

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 …

Software Development gui java
Member Avatar for kvprajapati
0
91
Member Avatar for john_beginner

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++
Member Avatar for indianapple89
0
109
Member Avatar for Kishorey

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
Member Avatar for Kishorey
0
101
Member Avatar for azjherben

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++
Member Avatar for jencas
0
286
Member Avatar for vicky12345

[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
Member Avatar for JasonHippy
0
105
Member Avatar for coolbuddy059

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
Member Avatar for kvprajapati
0
167
Member Avatar for unclepauly

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++
Member Avatar for jencas
0
2K
Member Avatar for coolbuddy059

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
Member Avatar for JamesCherrill
0
101
Member Avatar for rabbitwat2

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
Member Avatar for rabbitwat2
0
158
Member Avatar for grandalf62

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
Member Avatar for grandalf62
0
162
Member Avatar for gauravmishra

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
Member Avatar for gauravmishra
0
72
Member Avatar for kingarthur

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 …

Software Development java sql
Member Avatar for kingarthur
0
136
Member Avatar for lloydsbackyard

[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
Member Avatar for masijade
0
141
Member Avatar for lazlo2000

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
Member Avatar for vb5prgrmr
0
91
Member Avatar for max.yevs

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
Member Avatar for max.yevs
0
91
Member Avatar for Web_Sailor

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
Member Avatar for Web_Sailor
0
290
Member Avatar for timb89

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++
Member Avatar for Stinomus
0
1K
Member Avatar for localp

[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 …

Software Development java sql
Member Avatar for ~s.o.s~
0
261
Member Avatar for c#loser

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#
Member Avatar for rapture
0
161
Member Avatar for jonnytabpni

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
Member Avatar for jonnytabpni
0
115
Member Avatar for Potato.Head

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
Member Avatar for Tekmaven
0
203
Member Avatar for max.yevs

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
Member Avatar for max.yevs
0
175
Member Avatar for Romil797

Is there any way to embed webkit in a .NET form? Can I use webkit.dll or khtml.dll? I heard about something called Charn but it does not seem to exist anymore... Help?

Software Development
Member Avatar for Romil797
0
66
Member Avatar for Kob0724

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++
Member Avatar for siddhant3s
0
174
Member Avatar for eliza2044

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
Member Avatar for eliza2044
0
263
Member Avatar for snyp

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
Member Avatar for Ancient Dragon
0
283
Member Avatar for JaksLax

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++
Member Avatar for Stinomus
0
117
Member Avatar for stewie griffin

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
Member Avatar for stewie griffin
0
157
Member Avatar for sivak

write the program to count the number of lines in a given string ... s="hello,\n+ I am \n+"fine\n: 2.how we can display only last file

Software Development
Member Avatar for sknake
0
71
Member Avatar for mrnutty

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#
Member Avatar for skatamatic
0
399
Member Avatar for JackDurden

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++
Member Avatar for VernonDozier
0
107
Member Avatar for nanoh2001

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
Member Avatar for Vandamn
0
124
Member Avatar for freelancelote

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
Member Avatar for freelancelote
0
6K
Member Avatar for gretty

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++
Member Avatar for yun
0
173
Member Avatar for alexdoc9999

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
Member Avatar for alexdoc9999
0
117
Member Avatar for sonia sardana

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 …

Software Development c# vb.net
Member Avatar for sonia sardana
0
253
Member Avatar for guest7

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

Software Development api c++
Member Avatar for guest7
0
108
Member Avatar for Summer_Intern

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
Member Avatar for Summer_Intern
0
2K
Member Avatar for aceswildab1

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#
Member Avatar for sknake
0
2K
Member Avatar for herms14

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 …

Software Development mysql vb.net
Member Avatar for Vandamn
0
184
Member Avatar for Isy

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
Member Avatar for Isy
0
78
Member Avatar for dumrat

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++
Member Avatar for ArkM
0
129
Member Avatar for osmano807

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++
Member Avatar for osmano807
0
1K

The End.