43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for PixelExchange

Hi all. I need help "binding" to a specific IP address. My program is able to "bind" when using inaddr_any, but I can't seem to bind to a specific IP address using inet_addr("...."). I am basically trying to "bind" a socket to MY home pc's IP address, and a random …

Software Development c++
Member Avatar for Ketsuekiame
0
149
Member Avatar for wyssen

Hey everyone I have this huge program which comes with different directories like lib, include, test, modules, services etc. Every directory has a -Makefile -Makefile.am -Makefile.in The root directory has the following files -missing -Makefile -Makefile.in -Makefile.am -configure -configure.ac I added two classes with 2 header files and one of …

Software Development c++
Member Avatar for wyssen
0
252
Member Avatar for fire_

Hello. I'm using this constuction to write to file: [CODE]#include <iostream> #include <fstream> using namespace std; int main () { char data [50]; cout << "Enter data\n"; cin >> data; ofstream file("data.txt"); if (!file) { cout << "File opening error"; cin.get(); return 1; } file << data; file.close(); cout << …

Software Development c++ file-system
Member Avatar for abdelhakeem
0
131
Member Avatar for kdmuk10

I am trying to do a program which does simple maths by scanning using provided three items (two number and an operator) then let the program do the calculatin and printout the result. The way i have attempted it so far (below is the code) the value of the operator …

Software Development java
Member Avatar for kdmuk10
0
167
Member Avatar for AngelicOne

Could someone tell me how could setting up index would affect my select statement? I read that it boost performance especially for finding specific values, but how?

Software Development sql
Member Avatar for Geekitygeek
0
179
Member Avatar for gauravk_bhanot

this code shows the second oval only when maximize is pressed otherwise only the one oval is shown and the first oval does not go to the getHeight() where as the one appearing after maximizing repaints correctly [CODE][/CODE][code]import javax.swing.*; import java.awt.Graphics; class drawpanel extends JComponent implements Runnable { int i=10,startx; …

Software Development java java-swing
Member Avatar for tong1
0
312
Member Avatar for Softwarez

Hi, this is going to be a very broad question and any info or suggestions are welcome! I am writing an application which uses a Mon-Sunday approach with times slots from 9.30am till 7.30pm. These time slots can be filled in with data (a single string). Currently this data is …

Software Development xml
Member Avatar for Softwarez
0
289
Member Avatar for fire_

Hello. I'm writing DOS program with Visual C++ 6 and i want to log date and time to file. I'm new at programming so please tell me all #include <> and full syntax :) Also I tried time() but i recieved error: error C2064: term does not evaluate to a …

Software Development c++
Member Avatar for fire_
0
6K
Member Avatar for paeez

Hello I am writing a class Test. I considered a field “int age” to see how long each instance of this class has been created. In other words i want to know the age of each instantiated object of this class. I assumed i should use the Timer class. I …

Software Development
Member Avatar for Geekitygeek
0
117
Member Avatar for tong1

I am interested in Current threads, such as : rare program :s [url]http://www.daniweb.com/forums/thread300723.html[/url] how to create 2D array of enumeration values [url]http://www.daniweb.com/forums/thread300738.html[/url] which have a common goal: to store the names of Enums objects in a 2D array of String. For example, we have a pack of porker cards defined …

Software Development api daniweb-api java
Member Avatar for ~s.o.s~
0
2K
Member Avatar for jackabascal

Say I have a tab control with tabs Tab1 And Tab2. How do I switch the selected tab programmatically, say on button1 click event. Sample code would be appreciated. Thanks in advance.

Software Development
Member Avatar for Ketsuekiame
0
921
Member Avatar for cintojose

I have stucked up with an issue.For my date time picker control I want the day as 1st on any value selected by the user.(day of date part should be 1 for any date).Please help me regarding this......Thank You...

Software Development vb.net
Member Avatar for Luc001
0
88
Member Avatar for omGac0W

Whenever I try and run this my compiler shows a random error and a bunch of binary numbers. I have no idea what is wrong. Am I missing something? Its a program to check if a number is a palindrome. [CODE]#include <stdio.h> #include <math.h> int palindromecheck (int number) { int …

Software Development c
Member Avatar for Ancient Dragon
0
100
Member Avatar for new_programmer

I have basic idea about malloc and calloc i heard about falloc and dlmalloc, can any one explain about it?

Software Development c++
Member Avatar for new_programmer
0
179
Member Avatar for Peter_TARAS

Hi! I designed a class in Python to do stuffs related to genetic algorithms. I have a method in this class, which should provide a sort of log to keep the track of the populations during the evolution. I mean, I provide the filename as a string argument to this …

Software Development python
Member Avatar for vegaseat
0
17K
Member Avatar for Archenemie

Hi, id like to set values for a botton is wxpython by taking that value from a text file. For this code [CODE]button = wx.Button(parent, label = “x”)[/CODE] and for example on the 1st line of the text file id like to read x. Ive played about with this a …

Software Development python
Member Avatar for Archenemie
0
115
Member Avatar for jackabascal

[CODE]private Bitmap _picture = new Bitmap(@"<C:\Users\Jack\Documents\Visual Studio 2010\Projects\Animotion1.0\DefaultCharPic.jpg>");[/CODE] as a datamember to a class? Can I just not assign Bitmaps as members?

Software Development file-system visual-studio
Member Avatar for Zinderin
0
220
Member Avatar for comSysStudent

Below is code taken from [URL="http://download.oracle.com/javase/tutorial/java/javaOO/QandE/enum-answers.html"]Sun Java Tutorial[/URL]. From my reading of the code the first time this loop executes should it not populate cards[1] with the first card skipping cards[0]? I've tested the code in eclipse and it seems to work properly first populating card[0] so I'm hoping somebody …

Software Development java oracle
Member Avatar for comSysStudent
0
102
Member Avatar for figuer25

Hi so I am just trying to figure out what is wrong with my program. I am trying to implement the node class in C++. All I want to do is learn how to implement it and get it working. I am not trying to use it to create a …

Software Development c c# c++ linked-list
Member Avatar for figuer25
0
1K
Member Avatar for tundra010

Hello all As the title suggests, I have tried to write a sorting program in C++ The code compiles right, but does print the sorted numbers, but rather prints a list of zeros. I have tried to find the cause of this error for a while, but I can't seem …

Software Development c++
Member Avatar for tundra010
0
203
Member Avatar for Grusky

I am trying to create a simple matrix class. When an object of class matrix is created it should be able to create any nxn size matrix. The problem I am finding is that there doesn't seem to be a simple way to make a class with a dynamic 2D …

Software Development c++
Member Avatar for r.evrard
0
168
Member Avatar for sudoku43

any idea how to create a loop if user input wrong characters..?? i tried to do while loop but it never works.. anyone..?? [CODE]#include <iostream> using namespace std; int main () { double input_x, number; cout << "Insert value: "; cin >> input_x; char choice ; choice = 'D', 'R', …

Software Development c++
Member Avatar for r.evrard
0
164
Member Avatar for Jollyyy100

Am working on a project using vb.net and i have connected a database to it. I have an employee table within that and now i want to create a search box in vb.net where by if i type the employee-number of the employee i can get access to his or …

Software Development vb.net visual-basic
Member Avatar for Jollyyy100
0
2K
Member Avatar for joshalb

Hello. I'm trying to store a child class into it's a pointer of it's baseClass, like this: [code=cpp]baseClass*test = new subClass;[/code] Which works and all, except I'm having trouble using 'delete' to destroy the newly created subClass. So something like this: [code=cpp]baseClass*test = new subClass; delete baseClass;[/code] Here's a more …

Software Development c++
Member Avatar for arkoenig
0
161
Member Avatar for discovery-power

Hi All, I have written a sub routine for a Save>Menu option for a MDI Text Editor, Please see my code below [CODE] Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click Dim f As Form2 If f.Text = "Text Editor V.2 - New Document" Then SaveAsToolStripMenuItem.PerformClick() …

Software Development vb.net
Member Avatar for ÜnLoCo
0
137
Member Avatar for comSysStudent

Hi guys, Just a quick question, I'm working on a general stack class for use with my card game and rather than creating an overloaded constructor for every single object and primitive type I'm wondering is there a way to supply the data type when invoking a basic constructor? Basically …

Software Development data-structure java
Member Avatar for comSysStudent
0
140
Member Avatar for jrcagle

So I was thinking that there would be a simple Pythonic way to delete a directory structure. My app creates and deletes user accounts, which may contain any number of subdirectories and files. Hence, I wanted to do something like: [code] os.rmdir(user_directory) [/code] BUT...that throws an error when user_directory is …

Software Development python
Member Avatar for pythonista
0
141
Member Avatar for Trekker182

Hello everyone, I'm trying to connect to a access 2007 database with VB 9 and am having some problems. I went to Data and then selected add new datasource. Then I clicked on database and selected Next. I click on new connection, change the datasource to access database file and …

Software Development vb.net
Member Avatar for chirag.makwana
0
238
Member Avatar for Don_leon

how do I populate a datagrid in a smart device with data from a sql database(not SQL CE)

Software Development
Member Avatar for AngelicOne
0
70
Member Avatar for reza.adinata

Hi all, I am trying to make an array of folders and want to basically take all files inside the folder. However, I got an error saying "missing a $ loop variable". I have add a $, and worked around with this codes, but still did not work .. Is …

Software Development perl
Member Avatar for reza.adinata
0
117
Member Avatar for Don_leon

I have 4 buttons on my smart device form and I am trying to put elements of a string array in to my buttons as button text. string[] str1 = new string[8] { "aaa", "sss", "ddd", "dff", "fddd", "ffggg", "bbbb", "gggd" ,"shehs"}; there is up and down buttons below the …

Software Development
Member Avatar for Don_leon
0
169
Member Avatar for Xufyan

hello, i want to write a program that store subjects and days in two enumerations and their values in rows and coloumn using 2D array. how can i do this ? see the image below: [url]http://img718.imageshack.us/img718/3967/sufyan.jpg[/url] So far i've done this, [CODE] class EnumProg { enum Days {Monday, Tuesday, Wednesday, …

Software Development java
Member Avatar for java_programmer
0
422
Member Avatar for student_

I am a student about 4 weeks into learning python, so i do not know a lot, and am hoping someone can help me understand what i am doing wrong, here is the code: [code=python] def main(): name = "TEST" age = 50 makename() makeage() print "You are" ,age ,"years …

Software Development python
Member Avatar for student_
0
83
Member Avatar for Xufyan

Check my program....i'm printing the values of 2-D array in a ladder form. [CODE] int [][] TwoDArray; TwoDArray = new int [4][]; TwoDArray [0] = new int [1]; TwoDArray [1] = new int [2]; TwoDArray [2] = new int [3]; TwoDArray [3] = new int [4]; [/CODE] This is working …

Software Development java
Member Avatar for tong1
0
123
Member Avatar for timrichardson

The python module python-gdata includes an pretty comprehensive example of using python to fetch google calendar events (calenderEvents.py) No matter what I do, I only get 25 events returned. This is the default value of the maximum number of records returned. The example script includes these comments [code] In reality, …

Software Development google python seo
Member Avatar for timrichardson
0
360
Member Avatar for GregMaClean

Hello, I am new to printing in vb.net. I have a project (not from school) where I need to be able to print content that is entered by users. The rest of the app is already made. I need to print the following: A [B]Title[/B] with a line under it, …

Software Development vb.net
Member Avatar for GregMaClean
0
266
Member Avatar for Jazerix

Hey there I'm quite new at c#, nevertheless today I tried to make a little application and I ran into a little problem. Well, I got this form that i want to close when i click the button and then open a new one, not just hiding it. first I …

Software Development
Member Avatar for Jazerix
0
7K
Member Avatar for priyanka.js28

if i want to dereference an object(using delete operator) of DERIVED class which is being referenced using a BASE class reference, which destructor would b called automatically?? BASE class destructor or DERIVED class destructor??

Software Development c++
Member Avatar for arkoenig
0
264
Member Avatar for WildBamaBoy

In this program I have a lot of game directories in a list like so: [CODE]base = "C:/Program Files/Game" expansion = "C:/Program Files/Game/Expansion" Games = [(base, "Base Game"),(expansion, "Expansion 1")] Installed = [][/CODE] The program then sees if they are installed like this: [CODE]for path, name in Games: #For every …

Software Development python
Member Avatar for WildBamaBoy
0
117
Member Avatar for jenunique

First of all, yes this is for an assignment. I need to know HOW to do this so that I can perform this operation in the future. I have two list boxes that I am sending the data selections to ONE text box. My problem comes along when I am …

Software Development vb.net
Member Avatar for finito
0
118
Member Avatar for cocoll

hello. i need help with combobox in vb.net. i try to add several columns in the combo,so i want when i select one item in the combo (this item is composed from 3 words for example),so i want the text in the combobox not to be composed from these 3 …

Software Development vb.net
Member Avatar for Oxiegen
0
93
Member Avatar for codedude

I have developed a vb.net database application(desktop application with sql 2005).I managed to create setup files(.msi) which is running on my pc.but when i install this application on my client system the application is running but all database operations fails.Pls any one suggest a solution. Thanks in advance.

Software Development vb.net
Member Avatar for Oxiegen
0
283
Member Avatar for Shreya J

Can someone help me in connecing the windows using java...? I am doing a project in virtual class..So i need to link the windows. Please help... Thanking u all in advance. Regards, Shreya.

Software Development java
Member Avatar for NormR1
0
68
Member Avatar for imso

Because i had to transfer my project to my lecturer but what the file location that works for my computer does not necessary work for my lecturer computer. Althought i transfer my wav file to the project workspace Alarm clock in the bin section. So how to allow my wav …

Software Development c#
Member Avatar for Alexpap
0
380
Member Avatar for kdgeiger

I am trying to create an array of 20 values the have 4 methods that 1st will create a total of all values listed, 2nd search the array and return all values less than 5.00, 3rd return the average of the values using the output method from the first method …

Software Development java
Member Avatar for kdgeiger
0
203
Member Avatar for nocookies92

I'm relatively new to Java and I was trying to make one my programs more accessible to my non-computer savvy friends with java web start. I took my .class file and archived it with the command: [TEX]jar -cf TabbedLatinHelp.jar TabbedLatingHelp.class[/TEX] I then created a .jnlp file and uploaded the .jar …

Software Development java web-server
Member Avatar for nocookies92
0
2K
Member Avatar for intes77

here's my code, i wanted to add another button that would have its own ActionListener. NOTE: its in object oriented style. i wanted to add these codes in my main class for my additional buttons, but my problem is i dont know how to make their ActionListeners. [CODE]myButton2=new Button("GET DIAMETER"); …

Software Development java java-swing
Member Avatar for JamesCherrill
0
220
Member Avatar for punchinello

I am trying to write a program using vb6.0 with sapi's speech recognition support. When I tried English everything came out alright. But when I swithed to Chinese, there's always this error when loading grammar and rules from an xml file. Why could it be? Anything to take special notice …

Software Development xml
Member Avatar for punchinello
0
81
Member Avatar for mrkaran

how can i read character by character from a text file using isrteam. i use : istream s; char *next; next=new char; s.open("example.txt"); s.read(next,1); but this gives me each character with some dummy symbol.

Software Development c++
Member Avatar for mrkaran
0
99
Member Avatar for fizzle

As I posted before I'm totally new to C. In bash i can use [CODE]IP = "`wget -O - -q icanhazip.com`" echo $IP[/CODE]= and it returns my ip. However I'm trying hard to get this via curl although I don't quite understand how it works yet. I determined it is …

Software Development c file-stream
Member Avatar for mitrmkar
0
184

The End.