199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wwillow

This is my first visual basic 5 project and it's for work not a school assignment. Any help is appreciated. I'm displaying lines from a file in a listbox and I'm highlighting each line according to a timer. I don't want any user clicking in the listbox, but when I …

Member Avatar for wwillow
0
113
Member Avatar for Matt Tacular

Can someone look at this and tell me if it actually is doing what it's supposed to. [php]from __future__ import division counter = 1 while True: li = [] for i in range(1,(counter+1)): if (counter/i) % 1 == 0: li.append(i) if len(li) <= 2: print counter,"is a prime." counter = …

Member Avatar for vegaseat
0
288
Member Avatar for claptrap

I am trying to learn about databases and at the moment starting to read general stuff about multidimensional database design. The trouble is, I don't even know the basics about databases, like what is natural key (same as primary key made of single components?) or surrogate key... Could anyone explain …

Member Avatar for claptrap
0
127
Member Avatar for anud18

hi.......can anyone tell me how do i call a subroutine created inside my dll from another project example:- i hv created a dll having a sub-routine named "initialize" in it .....when i call this sub-routine from my project after having made all the necessary declarations its giving me an error …

Member Avatar for QVeen72
0
152
Member Avatar for kinggarden

Hi everybody: I'm trying to do the practices on the top of forum. I started from beginner's level. This time I will show you my solution to implement a simple database in C++. If you could give some advice on the following aspects or other, it would be so nice …

Member Avatar for Narue
0
207
Member Avatar for meiyantao

Hi,sir.I encounterred a person who said that C++ is an unsafe language.I try the follow code ,but when I input an non-int type,the program will fall in a bad loop.(gcc4.1 in Linux) [CODE] #include <iostream> #include <string> using namespace std; class bot { private: int password; public: bot():password(567){} virtual ~bot(){}; …

Member Avatar for Narue
0
251
Member Avatar for senior_mustafa

please I need Help in this field How to begin What Books , What Prerequists of it ???

Member Avatar for Narue
0
83
Member Avatar for alembic21

Hello, I have generated a group of random numbers but I can not figure out how to display the numbers in groups of 4. Any suggestions? [CODE]srand ((unsigned int) time(NULL)); int i, high, low, number; high = 47; low = 19; for (i=0; i<20; i++) { number = rand() % …

Member Avatar for alembic21
0
126
Member Avatar for krthk_sg

hi ppl,i have a question.I have column which is a primary key.i have inserted a value also to it.Now again if i insert the same value it shouls not give a error.but instead continue.So how to go about it.like vb onerror is there any way that we can write the …

Member Avatar for tinamary
0
103
Member Avatar for jaepi

Hello there, is there a scsipt.h version for Linux? I've been looking for this because I really need that header file.

Member Avatar for jaepi
0
45
Member Avatar for jeanray

Attempting to read the Shoutcast stream using inet. I connect ok, I receive streams. But I can't get anything from "GetChunk" Is it a way to find out what has been sent and received??? [code=VB6] Private Sub Inet1_StateChanged(ByVal State As Integer) Dim txt Dim vtData Dim bdone Select Case State …

Member Avatar for AV Manoharan
0
888
Member Avatar for vssp

hi friends How to display the google map using php? and how to calculate the latitude and longitude using php .Please send me any sample code . Please advise Thanks

Member Avatar for vssp
0
73
Member Avatar for Zorbie

I read somewhere about somebody importing the sys.py module. I can't find the bugger on my system! I have python 2.5.1 installed on this Waxows XP machine. I did a search for sys.py in the c:\python25 folder and sys.py isn't there! Isn't it supposed to be installed by default? If …

Member Avatar for StrikerX11
0
159
Member Avatar for invisal

It is my first time in here and also my first question. I hate to admit it that I got stuck now. I got the Apache set up on my new computer and also the PHP5. After that, I modified the Apache2 httpd.conf file. [i]I added this into my configure …

Member Avatar for Rhyan
0
431
Member Avatar for TheDonDon

I'm completely new to this and have fallen at the first hurdle.:( I'm only playing so its not urgent. Here is my little bit of code: #!/bin/ksh print Content-type: text/html print print '<pre style=font-family:Fixedsys>' [B][COLOR="Red"]gtacl -c 'files $usvol1.ssdxl' [/COLOR][/B]|{ while read line ;do print "${line%%=*}" done } print '</pre>' Don't …

Member Avatar for TheDonDon
0
182
Member Avatar for anibio

Hi, I want to know how can I capture the system date using a java program. I want to run this code automatically when the system is login. I want to capture the system date even if the user change the system date. Kindly waiting for your suggestions Thanking You …

Member Avatar for anibio
0
91
Member Avatar for dmcutaia

Hi - I am just learning PHP. I installed Apache, PHP and MySql on my computer (XP pro) and it is working. I use dreamweaver and when I preview it - my php code works. However, when my code does not work, instead of getting a syntax error, I just …

Member Avatar for Rhyan
0
152
Member Avatar for icesnow

public class GradeSystem { public static void main (String args[]) { ........ public int searchStu(int id){ // problem happen int i=0; for (i=0; i<4; i++) { if (student[i].getStudentID() == id) return i;} return i;} int id; boolean d; id = Integer.parseInt(JOptionPane.showInputDialog("Please input ID number : ", JOptionPane.QUESTION_MESSAGE)); d = Student.isStudent(id); …

Member Avatar for j3p0yz
0
197
Member Avatar for 2thestart

Im working on a project in access and my partner and i are making a who wants to be a millionare kind of thing. the problem is that we want to do an if statement involing an option button but we keep getting an error message saying value not valid …

Member Avatar for QVeen72
0
159
Member Avatar for DenisOxon

Hi I have a VB5 application which will print to both dot matrix and laser printers. Gnerally works fine However with HP laserjet 1020 print job is sent to printer. It appears in queue, the printer warms up and nothing else happens. Sometimes the job dissappears from queue, othertimes it …

Member Avatar for AV Manoharan
0
201
Member Avatar for dmmckelv

I am trying to write a simple Lisp function for my Articficial Intelligence class and am running into a problem. The compiler is seeing the line [inline] format t "Enter a number, press return and enter another number"[/inline] as a an error. It is the placement of the line of …

Member Avatar for indienick
0
136
Member Avatar for nalinibh

Hi everybody, Can anyone among you let me know.how can i find execution time of an algorithm in my c coding!! thanks Nalini

Member Avatar for Ancient Dragon
0
111
Member Avatar for acezrwild817

In the VS command prompt that is part of the VS SDK you can enter the following to generate an xsd file from an xml file: xsd XMLfilename.xml This will generate an xsd file with the same name as the xml file Then you can enter: xsd [.xsd file generated …

Member Avatar for acezrwild817
0
208
Member Avatar for sadaka

I have been stuck on this one problem for sometime now and I have tried looking this up in all my references but was not able to come up with a solution to this error. Can someone help me with it please. My gratitude to you in a thousand years …

Member Avatar for sadaka
0
167
Member Avatar for 6figganigga

Hello, I'm fairly new to Linux and have managed to make this script below work. Basically it gets my current external ip and emails it to me. It works great as a cron job daily but I was wondering if some of you guru's may be able to augment this …

Member Avatar for 6figganigga
0
88
Member Avatar for msi_333

This a problem i faced .When i made applet the access file i faced the following exception: [INLINECODE]java.security.AccessControlException: access denied (java.io.FilePermission text.txt read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) at CheckTopScore.<init>(CheckTopScore.java:30) at MainFrame.<init>(MainFrame.java:200) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native …

Member Avatar for msi_333
0
183
Member Avatar for jenymaru08

please help me i really need this badly i'm trying to write all the possible code but the outcome i needed is not right i write a program that you input a string then the output will be the last letter of you input will come first then follows example: …

Member Avatar for hinduengg
0
100
Member Avatar for bala24

Hi, I was just browsing through some stuff about Initialization lists in C++ and got stuck with a doubt.. Why is it necessary to use initialization lists while giving a value to constants or references ?? Why is it not possible to do so in the normal way..i.e initializing them …

Member Avatar for ~s.o.s~
0
116
Member Avatar for jadeite100

Hi All: I needed to passed an integer value from the following code: <%=ic.getTotalNumOfRecords()%> to an attribute of a custom tag <inquiry:tableClaimHistory numberOfRecords="5" dataAction="claimHistoryViewData.do" emptyKey="error.noData"/> The function getTotalNumOfRecords returns an int. The attribute numberOfRecords expects an string. Here are the different ways I tried in a jsp page but I …

Member Avatar for jwenting
0
112
Member Avatar for happyboy

hi i am a new c++ student .i want to know that after i finish c++ basic that i have read from the internet what should i go on in order to write mmropg game emulator server .thx in advance.

Member Avatar for happyboy
0
63
Member Avatar for fryForever

I am not a complete beginner to c++, I can make programs that only interact with the user via text, and would like to move on to some 2d games. How should I begin to do that? Does anyone know of any good tutorials to get started with this?

Member Avatar for Sturm
0
110
Member Avatar for bops

How would one handle right clicks on a specific control for example, if the user was to right click a static control and I would like to display a menu.. I thought that I could do something like this.. [code=c] LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM …

Member Avatar for bops
0
137
Member Avatar for le0pard13

Situation: I have a working shell script on our file server (OSXS Tiger) to connect to a workstation, which is using a portable home directory (phd), and rsync a user's MirrorAgent.log. I'm not that strong of a scripter, but I would like to add other workstations to this script as …

Member Avatar for le0pard13
0
153
Member Avatar for mithesh

hi can anybody help me i need to get the data from db through php script my code is : <?php $con=mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("poll",$con); echo "DB SELECTED<br>"; $result=mysql_query("select question from pollquestions",$con); echo "QUERY EXECUTED<br>"; echo $result ; echo "<br>DATA DISPLAYED<br>"; mysql_close($con); …

Member Avatar for Rhyan
0
84
Member Avatar for Acidburn

Hello guys, I've got my JSP set up so when I click on a href link it redirects it to a form, the form then takes in user information and has a html:submit and a html:cancel buttons. Actions are associated with these... Anyway my question is that when a user …

Member Avatar for peter_budo
0
84
Member Avatar for matias.germany

Hi, I have a problem with the function [code]i=(abcdario[g]+h)%27;[/code], because i need to add this, but it gives me the error "invalid operands to binary +" The full code is the following [code] #include<stdio.h> //fopen() ,fclose() #include<stdlib.h> //malloc() int main (int argc, char*argv[]) { FILE *entrada, *salida; int caracter(unsigned char …

Member Avatar for Ancient Dragon
0
129
Member Avatar for MDGM

Hi, How do i check for a cookie using javascript, and then say if the cookie is found, write "this" or if the cookie is not found, write "that"? Thanks, Max Mumford.

Member Avatar for GreenDay2001
0
236
Member Avatar for Phoenix777

Hi I am having some problem, trying to cache a user control in my application(am using ASP.Net2.0). Here is a description of the user control 1. The user control is visible for most of the pages in my application. 2. It comes in only two versions. Initially one version is …

Member Avatar for Phoenix777
0
83
Member Avatar for Es Sayen

Hello, I am developing an application in Visual Basic in which i have to enter the details of candidates and after that clicking on the print button, the details of that particular candidate get printed out without using/going to a report. I want to know how can i do that, …

Member Avatar for Es Sayen
0
167
Member Avatar for shortybookit

I currently run your typical city guide web page and for this entire post i am going to use my artsandculture page with in this page i have sub pages of museums,wine,galleries when a user clicks on museums there is a list of all the museums in html format and …

Member Avatar for Rhyan
0
137
Member Avatar for docdoc

Can anyone explain why the OnKeyPress Event does not work with a TButton on the same Form. What am I doing wrong? procedure TForm1.Button1Click(Sender: TObject); begin Label1.Caption:='button'; end; procedure TForm1.KeyPress(Sender: TObject; var Key: Char); begin if Key='a' then Label1.Caption:='OK'; end;

Member Avatar for docdoc
0
117
Member Avatar for blazted

This is the first time I have really done any GUI work. I had a console app in C++ that I rewrote into C# and am trying to make a GUI for it. However I am not sure how to display my classes show methods in the Text box. I …

Member Avatar for Killer_Typo
0
104
Member Avatar for hailat

I am a biggner in vb.net. I need to develop a miniproject. Would u mind helping me in reccomending small academic projects if u have any? thanks

Member Avatar for Marks256
0
77
Member Avatar for pichels

Hi, I have created a convaluted and hacked script here for comparing unix dates. Can someone help me use calc or date w/ julian param or something to look back a week, a month or even a year and compare dates or add/subtract the dates somehow in a shell script? …

Member Avatar for dsmall
0
606
Member Avatar for mariocatch

Hey all: I've been trying to figure out how I would go about doing the following task. Basically, I have a folder with about 20,000 notepad files. My goal is to have one big word document, and append the contents of each notepad file to the word document. Each notepad …

Member Avatar for mariocatch
0
322
Member Avatar for TheWeakGetEaten

[COLOR=#008000]I am having problems with the following program. We are to create a biary tree that takes words form a text file and then create a link list the the number the word was found on. I have the tree created but I am unsure how to incorporate the link …

Member Avatar for iamthwee
0
170
Member Avatar for dummies2

this is a program that i have, i dont know why it doesnt work. Could some one help me? thank you very much [code] #!c:\Python24\python.exe # Fig. 35.22: fig35_22.py # A program to illustrate Python's database connectivity. import MySQLdb print "Content-type: text/html" print print """ <html xmlns = "http://www.w3.org/1999/xhtml" xml:lang="en" …

Member Avatar for BearofNH
0
152
Member Avatar for stanats

i'm having this problem and i would like to ask for some ideas on how i will read a file backwards, that is, from end, read the file backwards(forward, naturally) by line.. thanks

Member Avatar for echobase
0
2K
Member Avatar for Es Sayen

Hello All, i want to add a word/text file in database(MS-Access), for this i am using datatype ole object for that particular column. i am using a text box to catch the file name and the complete path of the file and putting the value of textbox in that table …

Member Avatar for Es Sayen
0
135
Member Avatar for tcyge

[code]class abc { public: virtual ~abc() {} static void operator delete(void*); }; int main(int argc, char *argv[]) { abc _a; return 0; } [/code]

Member Avatar for vijayan121
0
77

The End.