132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for chikool

error C2106: '=' : left operand must be l-value for (int m=0;i<4 && i%2==0; m*m =i) { cout<<"Multiplication of all positive even numbers which are greater than N: "<<i<<endl; }

Software Development c++
Member Avatar for dgr231
0
112
Member Avatar for jen140

Hello all. I get a small problem compiling it. And get the next error: \client/windows/handler/exception_handler.h(72) : fatal error C1083: Cannot open include file: 'client/windows/crash_generation/crash_generation_client.h': No such file or directory So how i proceeded : Installed mozilla-build 1.4, reinstalled the windows sdk(to the latest version), and have Visual Studio 2008 Professional …

Software Development c++ open-source visual-studio
Member Avatar for jen140
0
148
Member Avatar for kessenchu

I don't want to disturb you, but I don't understand how works the properties. I mean, using this simple code: #!/usr/bin/env python2.6 def cosas(self, width): return "cosas" class Rect(object): def __init__(self, width, height): self.width = width self.height = height self.area = 0 print "Adios" @property def _area(self): return self.width * …

Software Development python
Member Avatar for jlm699
0
523
Member Avatar for franksmule

Hi, I am having a problem trying to get a callback function to work within a class. Its from the DXUT Direct X source code example. I'm basicly trying to get a callback to call a function within a class. I'm stuck, been reading around looking at all these pointers …

Software Development c c# c++
Member Avatar for Tom Gunn
0
136
Member Avatar for terence6203

Hey guys. I am new to Java programming and I am having a lot of difficulty figuring out how to get the proper functionality out of my first, last, next, and previous buttons. First, I was wondering if my button setup is correct: // helper method that creates panel for …

Software Development java
Member Avatar for terence6203
0
681
Member Avatar for dzhugashvili

I have this code: [CODE] #include <iostream> #include <string> #include <vector> #include <algorithm> #include <fstream> #include <stdlib.h>//(for atoi to work) using namespace std; void usage() { cout << "Usage: <input1> <input2> <output>\n"; cout << "\n see README for more details.\n"; exit(1); } int main(int argc, char *argv[]) { cout << …

Software Development algorithm c++ microsoft-access
Member Avatar for dzhugashvili
0
144
Member Avatar for nalasimbha

In my project there is a need to for multiple inheritances and I have figured out that i need to inherit base classes virtually. The code that I have works fine, but I would like to know in particular what happens internally during inheritance. The classes that i use and …

Software Development c++
Member Avatar for nalasimbha
0
91
Member Avatar for eliza2044

Hey guys, I've been working with KML files for displaying placemarks on Google Earth. Through my C++ application I need to insert new placemarks in a generated file. Some example code follows and may give you an indication on what kml is and what i want to do. As the …

Software Development c++ xml
Member Avatar for eliza2044
0
174
Member Avatar for Jason123

Hi, i would like to know if list is able to achieve these : 1) to get the range of elements such as .. A list of 10 elements beginning from value 1 to 10. I would like to get the range from element 3 to element 5 and add …

Software Development c++
Member Avatar for Tom Gunn
0
100
Member Avatar for darkocean

I want to research an ID on a sheet in a Excel file and found it and delete this ID from excel file and save this file. I want to remove a register from my file. ID is a fisrt column and I must be research this column and find …

Software Development
Member Avatar for darkocean
0
105
Member Avatar for Xessa

[code] package mypackage; import java.security.SecureRandom; import java.util.Random; public class SecureRandomTest { /** * @param args */ public static void main(String[] args) { SecureRandom sr1 = new SecureRandom(); System.out.println("1. SecureRandom object 1. nextInt() result :" + sr1.nextInt()); System.out.println("1. SecureRandom object 2. nextInt() result :" + sr1.nextInt()); System.out.println("1. SecureRandom object 3. nextInt() …

Software Development java
Member Avatar for Xessa
0
321
Member Avatar for tatainti55

Hey guys. I was just following lazyfoos' SDL tutorial when i got stuck on lesson 08. Everytime i try to compile and run the source code the program closes immediately and a window pops up that says "An access violation(segmentation fault) raised in your program.". :S The compile log: Compiler: …

Software Development c c# c++ open-source
Member Avatar for daviddoria
0
200
Member Avatar for get2tk

pls i need help!I am writing a code to turn on and turn off a light bulb between a client side and a server side using sockets in java.The thing communicates but i am having problem puttin it on gui radio buttons .I called the method to sendMesage from the …

Software Development client-server gui java java-swing
Member Avatar for JamesCherrill
0
140
Member Avatar for esesili

When I compile the code below it generates more than 30 syntax errors. It does not make sense. The problem is probably somewhere in [CODE]Patient(string name_of_patient, int age_of_patient, string address_of_pat, double visit_duration_ofp, string ssn_of_patient, Doctor &doc);[/CODE] but I could not figure out the problem. I know it is not convenient …

Software Development c++
Member Avatar for StuXYZ
0
130
Member Avatar for SFletch

Hi, I have SQL Server on a server. I need an applet, to appear within other peoples web sites that has read and update access to my database on my server. I would like it to be written in C# as the rest of the application is C# and I …

Software Development c c# c++ web-server
Member Avatar for SFletch
0
119
Member Avatar for valleymorning

Dear all, I'm a newbie learning Java. Could you please help me on how to find the length of the longest group of duplicates in an array using Java. Let's say we have an array of integers as follows {9 7 7 7 7 3 2 1 1 5 5 …

Software Development java
Member Avatar for valleymorning
0
109
Member Avatar for ivanyeates

Im getting an: ERROR: findSuppliersCandy(): Column not found error in my program. i have two related tables. One supplier table and one candy table for different types of candy. the method below is trying to retrieve all the candy entries related to a specific supplier by passing a supplier id …

Software Development java
Member Avatar for veejo
0
100
Member Avatar for axeeffect2002

Hi, I want to develop a desktop application in which I want to render different views on button click. What should I use to achieve this? I thought of going for Swing but I don't have much idea about it. Can we show different views in Swing on button click?

Software Development java java-swing
Member Avatar for axeeffect2002
0
73
Member Avatar for Rezant

I've been working on a project for a few days now and have hit a part of the project that I don't know how to fix. I have a propertygrid control on the form and buttons that create controls when pressed. Here's how I am creating the controls:[CODE=C#] private void …

Software Development
Member Avatar for Rezant
0
156
Member Avatar for Democles

Basically the idea is to center a string. I selected the total length to equal 80. I know there is no fail safe placed into this program. I know there is another way to do this. I am stuck in a way. The program works, but I think I am …

Software Development c++
Member Avatar for TimeFractal
0
13K
Member Avatar for DAWNIE

Hi guy, I currently having problem saving my drawing into the sql database. Can I get some help here pls. my current codes: [CODE] Imports System.Data Imports System.Data.SqlClient Imports System.IO Imports System.Drawing Imports System.Drawing.Drawing2D Public Class Page_2 ' for GCS TABLE Private value_GCS As Integer = 0 Dim value_Eyes As …

Software Development open-source sql vb.net
Member Avatar for DAWNIE
0
2K
Member Avatar for sniper1983

Hi.. I am trying to update a webcontrol on a main site from a usercontrol but how can this be done. Let's say I want to update an asp:textbox from a usercontrol on the page, but how is this done most respectfully. The usercontrol does ofcause not know the controls …

Software Development
Member Avatar for mcjohn87
0
130
Member Avatar for kuaimun

Recently I've encountered an error which I'm not sure how it's supposed to be done given my very basic knowledge of Solaris. After building and running the project, this are the message which appear on my output... init: deps-jar: Compiling 1 source file to C:\Documents and Settings\Administrator\SimpleRead\build\classes compile: run: Caught …

Software Development java
Member Avatar for Nathan Campos
0
88
Member Avatar for yuguang

My program doesn't make it pass these lines on one computer: [code] import re, os, glob, time os.chdir('/Software/xampp/htdocs/catalog/temp') file_list = glob.glob('Full-EP*.txt') file_dict = dict([(os.stat(a_file).st_mtime, a_file) for a_file in file_list]) date_list = list([key for key, value in file_dict.items()]) s = file_dict[max(date_list)] datePattern = re.compile(r'^Full-EP(\d{4})(\D{3})(\d{2})-(\d{2})(\d{2}).txt$') webdate = datePattern.search(s).groups() metadata = os.stat('WEB-Price-List.txt') dbdate …

Software Development python
Member Avatar for yuguang
0
117
Member Avatar for Vermillion

I'm trying to make a simple program to improve my use of pointers (because I suck very badly at that), and I was doing fine, until I found this problem: -- HEAP CORRUPTION DETECTED: after Normal block (#155) at 0x007D18F0. CRT found that the application wrote to memory after end …

Software Development c++
Member Avatar for mrnutty
0
1K
Member Avatar for eaon21

our task is to determine how the computers should be connected into such a chain to minimize the total amount of cable needed. there are 20 terminals each has a corresponding coordinate(x,y). the user will just choose which terminal he will put his pc's. 1. you wil ask the user …

Software Development c c# c++
Member Avatar for eaon21
0
150
Member Avatar for esesili

Hi all, I have two classes [B]C[/B] and [B]D[/B] these classes are inherited from [B]B[/B] class. My question is how can I use a member function of [B]C[/B] at[B] D[/B] and at [B]D[/B]'s child classes? I tried to do it with a regular function but it does not work in …

Software Development c++
Member Avatar for esesili
0
143
Member Avatar for ryno365

Hello. I'm a new c++ user after having used Java for a few years as well as php. I'm having trouble with strings and how they can be used with classes. This is what my runner.h file looks like [CODE]#include <string> #include "TestApp1.h" #ifndef RUNNER_H using namespace std; class Runner{ …

Software Development c++ visual-studio
Member Avatar for ryno365
0
113
Member Avatar for getkiran1

Hi, Im Kiran. Can any one help me with the C# code for denying access to the local drives?? when anyone try to access a drive ( thru cmd or double clicking the drive directly) it shud nt b allowed.. for that.. So hw can we do that programattically..??? Plz …

Software Development c c# c++
Member Avatar for Diamonddrake
0
232
Member Avatar for zahidaiub

Hi, I want to retrieve the hardware information (CPU info, RAM size, HDD info, VGA info) for dos platform. Anybody can help me with Turbo C or C++ source Code? Any help will be greatly appreciated. Thanks

Software Development c++
Member Avatar for Salem
0
196
Member Avatar for MrDiaz

I can connect from the services window but whenever I try to set the code myself on my app it tells me it cannot connect to the database. Here's my code: [CODE=java]import java.sql.*; public class LogBook { public static void main (String[] args) { connectToDB(); } // Connect to the …

Software Development java mysql
Member Avatar for MrDiaz
0
177
Member Avatar for ragnarok511

I am not writing this to spam people. I am trying program that will send the message "What's Up" to all the people on my friends list that are online in AIM. The main problem is how do I get Java to read the friend list, open up the message …

Software Development java open-source
Member Avatar for Dukane
0
80
Member Avatar for Stefano Mtangoo

I have read a little bit on XML and I will need it to get some information from already available XML files. I would like to learn it by making very small playlist. However I have encountered the two beasts. I don't know much of XML, especially with python. So …

Software Development python xml
Member Avatar for Stefano Mtangoo
0
130
Member Avatar for deepugtm

I have already studied C, and C++. I googled for the best programming languages. Somewhere I found c# also. I want to know that, what type of programming language is this. I heard that C is useful in writing operating systems, C++ in gaming and i also used it in …

Software Development c# gaming operating-system
Member Avatar for darkocean
0
144
Member Avatar for MrDiaz

Hi, I've been thinking of ways of creating an application that involves working with data, what would be the best way to accomplish this? With the JavaDB, MySQL or plain text files? The project is fairly simple, the idea at least. It's a set of records for students, each student …

Software Development java
Member Avatar for MrDiaz
0
79
Member Avatar for rimig88

I am trying to write to a file using StreamWriter, but for some reason it is cutting off my data. I have set up a simple problem of what is going on below: [CODE]TextWriter TestOut = new StreamWriter("test.txt"); for (int i = 1; i < 1001; i++) { Console.WriteLine("i = …

Software Development
Member Avatar for DdoubleD
0
74
Member Avatar for Alexar93

Hello i'm new here and I hope you can help me :) I've made a bootloader in assembly that's starting up my kernel. The code for the bootloader looks like this: [code] ; 3.ASM ; Load a program off the disk and jump to it ; Tell the compiler that …

Software Development assembly
Member Avatar for Alexar93
0
107
Member Avatar for chrischavez

hello im not very experienced with python so sorry for any bad code i am running ubuntu 8.10 and using pyserial i have made a script that reads the serial input from an arduino if you are not familier with an arduino here is there website [URL="http://www.arduino.cc/"]http://www.arduino.cc/[/URL] for some reason …

Software Development python ubuntu
Member Avatar for woooee
0
202
Member Avatar for jchilley

I am attempting to set a ulimit inside of a script to be run by TWS/Maestro. Can't figure it out. Does anyone have any ideas? :-/

Software Development shell-scripting
Member Avatar for Fernando3
0
1K
Member Avatar for 666kennedy

i have a tag; XXX32353.mv i need to be able to change the mv to something else, and the number of characters to the left of the . is not always constant. therefore i need to cut from the right, as the .mv is always the same, what is the …

Software Development c#
Member Avatar for ddanbe
0
144
Member Avatar for Geekitygeek

Hi, This may be a simple issue, but im gettin nowhere trying to fix it. I have a form with a picturebox, the picturebox shows a map of our greenhouses. I want to be able to create clickable areas on the image. I have created a class to store each …

Software Development
Member Avatar for ddanbe
0
119
Member Avatar for darangho

Hi, all Is there a way to get strings line by line from tk Text box? I know there is readline for files, but i don't see anything like that for tk Text box. Only thing i see is text.get(float(index1), float(index2)) but it seems unhelpful in my case, although it …

Software Development python
Member Avatar for bumsfeld
0
130
Member Avatar for 666kennedy

i have 2 arrays controllerlist[11] and taglist[5] i need to compare them so that i can find any elements that match, is there a way of doing it instead of nested for loops?

Software Development
Member Avatar for wildgoose
0
267
Member Avatar for spoinkgeek

hello im doing this assgment.need a solution urgently! Animal Show is organized. There are 2 sessions for the show, which are 2pm-4pm and 8pm-10pm per day. There are only 50 tickets available per session per day. For the show, a ticket for an adult sells for RM10 while for a …

Software Development c++ session
Member Avatar for mypicturefaded
0
378
Member Avatar for tankeetanx

[CODE]import java.io.*; public class Calculator{ public static void main(String[] args){ BufferedReader dataIn=new BufferedReader(new InputStreamReader(System.in)); int x=1, y=1; String Str_1,Str_2; System.out.println("Enter an Equation: "); try { Str_1=dataIn.readLine(); System.out.print("Enter another Equation: "); Str_2=dataIn.readLine(); x=Integer.parseInt(Str_1); y=Integer.parseInt(Str_2); x = x+y; x = x-y; x = x*y; x = x/y; } catch(ArithmeticException e) { System.out.println("Divide …

Software Development java
Member Avatar for VernonDozier
0
178
Member Avatar for etm9413

Hi all, here is a simple question. How would you get a C# STRING representing the current time in the following format: YYYY-DD-MM I am currently using DateTime.Now but that gives me something like this: 8/13/2009 12:57:47 PM So I want to 1) remove the houre (I need date only) …

Software Development c#
Member Avatar for etm9413
0
118
Member Avatar for vanathi_vb

Hi, please guide me how to use crystal reports in vb6.0.anyone can explain with small example.say for example select the db and tables and fiels and links between tables ,sorting fields..how to call that report using vb.. Thanks in advance, vanathi

Software Development visual-basic
Member Avatar for kashy!
0
113
Member Avatar for sotvisal

import java.util.*; class Matrice { private int[][] a; private int row; private int col; public static Scanner in() { return new Scanner(System.in); } public static void out(String m) { System.out.print(m); } public static int readInt(String m) { out(m); return in().nextInt(); } public Matrice() { row=2; col=2; a=new int[row][col]; } public …

Software Development java
Member Avatar for JamesCherrill
0
164
Member Avatar for digitalbeat

I'm working on a program that first launches a frame with various text fields. After they are filled in, the information is submitted by simply clicking the submit button. I have the frame down, the text fields and the buttons, and I have the class where all my data and …

Software Development gui java java-swing
Member Avatar for TheWhite
0
154
Member Avatar for katwalatapan

Hello, Could anyone assist me in starting out with pointers. I know that pointers direct to the memory location where a value is stored, but I am having some issues with understanding the concept with arrays. Could you suggest a simple startup code, where a pointer points to a memory …

Software Development c
Member Avatar for Tom Gunn
0
118

The End.