199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for 1manik

Hi, I want to ask you, how I can set up a path of monitored object in this source code: [url]http://msdn.microsoft.com/en-us/library/st80atsf.aspx[/url] I want to do it in Visual C++. Thank you

Member Avatar for 1manik
0
117
Member Avatar for barabass

Hello everybody, I'm new to Python wx and I'm trying to make an application which requires the use of database content. I've already made the input data frame. I need to make a frame where to list the database content. I need to create a label for each row like …

Member Avatar for barabass
0
385
Member Avatar for stewartmatheson

Hello I am new to C++ and I am trying to understand the subject observer pattern. Here is what I have been working on based on an example form the design patters book. [CODE] #include <vector> #include <iostream> class Subject; class Observer { public: virtual void notify(Subject* s) = 0; …

Member Avatar for Banfa
0
175
Member Avatar for KevT

Hmm...I haven't had much luck using a combination of functions to get this working like file() etc. so I instead of boring you with unsuccessful code, I was wondering if anyone had thoughts on this? NEED Have a file I append IP's of visitors to a site. I want to …

Member Avatar for KevT
0
139
Member Avatar for tulsi_apr03

In my VB6 project i have a text area field, iwant to insert data which i give in that text area wants to insert into Access database. For that which data type i need to take for that column. 1) If i take Memo or text as datatype: only singleline …

Member Avatar for Dan08
0
1K
Member Avatar for kobalt

Hi, I'm having trouble implementing a FileSystemWatcher.Changed event. I have been searching for solutions over the past week and am of the opinion (correct me if I'm wrong!) that what I want to do may not be entirely possible. I have setup a FileSystemWatcher to monitor 1 file. This file …

Member Avatar for kvprajapati
0
213
Member Avatar for Privoxy

So doing my first year of software engineering at Uni and am having a little trouble with the old Java, Basically I need to use the Calendar class to call todays date, and then store it in a variable, Iv stumbled upon this bit of code but don’t really understand …

Member Avatar for ~s.o.s~
0
110
Member Avatar for solomon_13000

[CODE]public class Testing { static void calculate(Integer... i) {} public static void main(String[] args) { calculate(12); } }[/CODE] What does the ... in the calculate method argument indicates?

Member Avatar for AndreiDMS
0
77
Member Avatar for danielagaba

hi i wanted to inquire about two things. First, is it possible to connect two phones that both possess wireless cards to each other without there necessarily an access point, if so how could i, in theory, use it to design a messaging application in J2ME. thanks

Member Avatar for peter_budo
0
94
Member Avatar for gt.ang

As above, can JSP do "live feed", as in if the DB has newly added items, a display page will auto add this item without polling the DB. Or this has to be done other language? Thanks in advance.

Member Avatar for ~s.o.s~
0
105
Member Avatar for Samuelandjw
Member Avatar for BrandonB

I have created a function to determine the lowest out of 5 scores, I'm not too sure as to whether or not it can be simplified... the function is as follows: [code=C++] void findLowest (int & minScoreP, int score1P, int score2P, int score3P, int score4P, int score5P) { minScoreP = …

Member Avatar for BrandonB
0
124
Member Avatar for Dan08

Each time I create a new GUI, the bit that I always hate, is the bit where the buttons and entries look like I am working on a Windows 98 machine, isn't there a way to make my buttons and entries look like Qt would look like? They're well squary …

Member Avatar for snippsat
0
124
Member Avatar for gkaykck

[CODE] #include <stdio.h> #include <stdlib.h> int det(int); int minor(int); int main() { int mat[10][10],dim,a,b; printf("Please enter an integer for matrix dimensions(1-10):"); scanf("%d",&dim); for (a=0;a<=dim-1;a++) { for (b=0;b<=dim-1;b++) { mat[a][b]=rand()%10+1; printf(" %d",mat[a][b]); } printf("\n\n"); } printf("Determinant for the matrix is: %d",det(mat)); return 0; } int det(int mat[10][10]) { int a,b,temp,length; length=0; …

Member Avatar for gkaykck
0
145
Member Avatar for Kruptein

I have a code in which the user should pass something through raw_input, this works fine for strings less then one line, but when I copy-paste a longer string, only the first line is passed by raw_input, how can I also past the rest of the string?

Member Avatar for Kruptein
0
2K
Member Avatar for theideaofevil

I am trying to write a method that will remove all characters that aren't letters or integers from a string that is input by the user. As of now what happens is that as soon as a character designated for removal is encountered, it just chops off all of the …

Member Avatar for theideaofevil
0
3K
Member Avatar for SCoder1

Where do I save my data? I've been at this for hours!!!!! Where's Doc_Root located?

Member Avatar for sting23
0
87
Member Avatar for boogahubba

Hello,I just started learning grep at school and I can't figure out why my syntax is incorrect.I have to solve the following problem using grep: Find all the computer science students in the first three years of study, belonging to odd numbered groups. The usernames of the computer science students …

Member Avatar for gerard4143
0
112
Member Avatar for Dan08

Hello everyone, I currently doing a database project, which is part of my coursework, and I am having some difficulties. So, I am making it in Microsoft Access 2003. In my form, I want have to tabs (Client and Music Store), and I already have 2 tables, for each tab. …

Member Avatar for Dan08
0
210
Member Avatar for coderGh

My code is giving me problems can't add items to may stack Array Here is the code i have written public class MyStringArrayStack implements InterfaceStringCollection { public String[] stackArray = new String[0]; public int top; public int newSize; public boolean setMaxSize(int newSize) { if(newSize <= 0){ return false;} else{ top …

Member Avatar for coderGh
0
79
Member Avatar for Kruptein

I'm using the rsa module (easy_install rsa), and if I use it from command line: [code=python]import rsa public,private = rsa.gen_pubpriv_keys(3) cipher=rsa.encrypt("test",public) rsa.decrypt("cipher",private)[/code] this will return test again. (like expected) but in my code it gives a zlib error -3 incorrect headers [code=python]def RSA(txt): global crypt if crypt=="en": key=raw_input("Public key:") ciphertext=rsa.encrypt(txt,eval(key)) …

Member Avatar for Kruptein
0
112
Member Avatar for iamai

Hello guys i want get one value of my enum and then converted into hex but i got a warning Warning 1 Runtime errors might occur when converting 'String' to 'System.IFormatProvider' for example [CODE] Public enum myenum myvalue =0 end enum sub mysub() console.writeline( myenum.myvalue.tostring("X2")) end sub [/CODE] How can …

Member Avatar for kvprajapati
0
162
Member Avatar for rue64ja

Hello, I'm trying to write a method that resets a string to a default value (previously defined in a class) if the value inputted is not a valid. Because I know the format or structure of a valid input, I should easily be able to do this. The string is …

Member Avatar for javaAddict
0
75
Member Avatar for musikluver4

The code below is the file for the constructor method and the get methods [code] //Date: 3/18/2010 public class Taxpayer { private int socSec; private double yearlyGross; public Taxpayer(int taxPayer, double income) { socSec = taxPayer; yearlyGross = income; } public int getSocSec() { return socSec; } public double getYearlyGross() …

Member Avatar for javaAddict
0
178
Member Avatar for amitshrivas

Hi.to all This is Amit.. i have one website in which i m using (html,aspx) pages. i uploaded also to my domain. [B]HTML[/B] pages works properly but when i request for [B]ASPX [/B] page it shows ::::::::::::::::::: ------------------------------------------------------------------------------------ [B][COLOR="Red"]"Description: An application error occurred on the server. The current custom error …

Member Avatar for amitshrivas
0
106
Member Avatar for David22

Hi all. I am up to the final stage of my system, and it requires use of the observer/observable pattern, something I haven't a clue about! Basically, I now have a functioning "WatchList" system with which to store specific objects (Locations). Now, these objects have a number of fields relating …

Member Avatar for JamesCherrill
0
134
Member Avatar for sweetsasthi

Hai Can any one give some real time applications of multitasking.. thanks in advance..

Member Avatar for cwarn23
0
208
Member Avatar for bikeha

Hello members, I am a new member here, i would like to draw a parabol graphs: y=x^2 in C++. But i don't know how to write it, anyone can help me?Thank you so much.

Member Avatar for bikeha
0
287
Member Avatar for TimCereja

How is it that a string, or specifically a part of a string, can be isolated and put into its own integer variable? For example, a user is asked to input a date, such as 12/31/2000, which is saved as a string. How can the "12" the "31" and the …

Member Avatar for TimCereja
0
362
Member Avatar for NeedHelpWithC++

Hi, New to this forum, but been browsing a few threads and seems like the best place to seek help. I have an assignment to complete. What I need to do is read in values from a .txt file and place these values into a matrix. I have the values …

Member Avatar for creative_m
0
200
Member Avatar for kiransadani

Hi I am developing an online admission website for my project....I hv a table in php page with 2 columns(student id, student name)...when some1 clicks on any row, then the detail information of that student should be retrieved from mysql table n result should be displayed in the form of …

Member Avatar for Krstevski
0
1K
Member Avatar for lotrsimp12345

When i run main it prints out gibberish not sure why. main.cpp [CODE] #include <iostream> #include <string> #include "phrase.h" #include "EA.h" #include <cstdlib> #include <time.h> int main() { phrase a; EA b; std::string phrase; int populationsize; std::cout<<"enter a population size\n"; std::cin>>populationsize; std::cin.ignore(); b.setpopulationsize(populationsize); std::cout<<"enter a string\n"; getline(std::cin,phrase); a.setphraselength(phrase); b.setlength(phrase); std::cout<<"the …

Member Avatar for lotrsimp12345
0
85
Member Avatar for saphireina

pls help me with this problem......its for my exam for finals...pls help me.... here are the instructions: Create a Class of the ff: (focus on payroll) 1. EmployeePay (parent) define: attribute: salary(net), gross, rate, no of hours worked, tax=20% constructor: (2) method: setters/getters, reset()-set number of hours work to 0 …

Member Avatar for saphireina
0
137
Member Avatar for mewa_ashika

i am making a high score table for my whack a mole game. variable Score on frmGame is [CODE]Public score as integer[/CODE] then in frmHighScore table i have [CODE]Dim numbers As Integer numbers = frmGame.score[/CODE] however variable Numbers comes back as a empty variable for some reason. Help? thanks

Member Avatar for peter_budo
0
518
Member Avatar for Mahen
Member Avatar for peter_budo
0
281
Member Avatar for rajabca

Server Error in '/online shopping' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered …

Member Avatar for humillmca
0
112
Member Avatar for bdrkb
Member Avatar for Ron2794

hi all frnds m not able to use javac command in my command prompt the command prompt is saying that javac is not recognised as valid but i have installed java plz help how to solve the problem

Member Avatar for musthafa.aj
0
89
Member Avatar for pearle

Another recursive problem. I'm trying to write a function that reverses an int value recursively. I think I've got the algorithm right, but I can't get the base case right. So my program ends up printing 5 infinitely... Here's the code: [CODE]#include <iostream> #include <cmath> using namespace std; void reverseDisplay(int …

Member Avatar for WaltP
0
158
Member Avatar for txwebdesign

I have a [B]dB named "txbDb"[/B] I have a [B]table called "txbUpdates"[/B], in that table I have the following [B]cols: ID, LOCATION, MODELS, PHOTOGRAPHERS.[/B] "LOCATION" refers to a page name or URL; i.e. may1toJun12009.php and ID is simply the current row I'm on, right now I have 46 rows so …

Member Avatar for txwebdesign
0
309
Member Avatar for DealthRune

Well, I'm making this script that deals with numbers that can go up to some VERY large numbers. Like 1.0E+150 I have tried [CODE] <?php echo number_format(1.0E+10); ?> [/CODE] But that returns 10,000,000,000 I want a way to show that number, but without the comas. Can anyone help?

Member Avatar for DealthRune
0
143
Member Avatar for lotrsimp12345

I am trying to create a double pointer. never done it before. Problem is currently in intializepopulation(); Error C2106 left of operand must be l-value. EA.h [CODE] #ifndef EA_H_INCLUDED #define EA_H_INCLUDED #include <string> #include "phrase.h" #include <iostream> class EA:public phrase { public: EA(); ~EA(); void setgenerationnumber(int generationnumber); int getgenerationnumber(); void …

Member Avatar for lotrsimp12345
0
110
Member Avatar for winecoding

just starting to learn C++, and sort of confusing about the following section of code: [CODE]int *getCharCountArray(char *str) { int *count = (int *)calloc(sizeof(int), NO_OF_CHARS); int i; for (i = 0; *(str+i); i++) count[*(str+i)]++; return count; }[/CODE] In specific, do not quite understand how the following two work? [CODE] for …

Member Avatar for mrnutty
0
96
Member Avatar for krish_kooll

how to obtain query execution time? i need for mysql query in java... does anyone know

Member Avatar for linzyxer
0
921
Member Avatar for techie929

Hi, I need to read 4 bytes from file to form a 32-bit unsigned integer X. The first byte you read goes into the most-significant byte of X, the 2nd byte you read goes into the 2nd most-significant byte of X, the 3rd byte you read goes into the 3rd …

Member Avatar for WaltP
0
2K
Member Avatar for gabz16

Please help me add actionlistener ect. to my puzzle program so that i can move the tiles into ascending order..Here is my code.. [code]import javax.swing.*; import java.awt.*; import java.util.Random; public class Rand { private JButton btn[]=new JButton[16]; public static void main(String args[]) { Rand app=new Rand(); } public Rand(){ JFrame …

Member Avatar for gabz16
0
235
Member Avatar for limengfang77

Need help on this array problem, thebolded part is what I'm really confused, How can I check if the user entered a negative value? and How can I return the [B]count [/B]to the previous cout? thanks 2. Write a function to read in numbers and put them into the array. …

Member Avatar for WaltP
0
150
Member Avatar for mks200

hi, this is the problem, i wrote what i could but i dont know what im doing wrong 1. Write a function to read in numbers and put them into the array. The function should continue to read in numbers until either: the user types a negative number, or 5 …

Member Avatar for WaltP
0
254
Member Avatar for lotrsimp12345

its it skipping. This is the part of the code. :( cout<<"enter a string\n"; getline(std::cin,phrase); [CODE]#include <iostream> #include <string> #include "phrase.h" #include "EA.h" #include <cstdlib> #include <time.h> int main() { phrase a; EA b; std::string phrase; int populationsize; //int percentmutation; std::cout<<"enter a population size\n"; std::cin>>populationsize; b.setpopulationsize(populationsize); //std::cout<<"enter the percentage you …

Member Avatar for jonsca
0
87
Member Avatar for michael123

I try to use PHP GD library to resize image to thumbnail size, however I found the small converted image has bad quality(distorted color), how can I improve the image quality by using PHP GD library: [code] $first=imagecreatefromjpeg($uploadfile); define(MAX_WIDTH, 180); define(MAX_HEIGHT, 135); $width = imagesx($first); $height = imagesy($first); $scale = …

Member Avatar for fahad.mahmood
0
158

The End.