199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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(){}; … | |
please I need Help in this field How to begin What Books , What Prerequists of it ??? | |
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() % … | |
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 … | |
Hello there, is there a scsipt.h version for Linux? I've been looking for this because I really need that header file. | |
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 … | |
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 | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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 … ![]() | |
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); … | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
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 … | |
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. | |
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? | |
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 … | |
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 … | |
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); … ![]() | |
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 … | |
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 … | |
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. ![]() | |
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 … | |
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, … | |
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 … ![]() | |
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; | |
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 … | |
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 | |
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? … | |
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 … | |
[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 … ![]() | |
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" … | |
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 | |
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 … | |
[code]class abc { public: virtual ~abc() {} static void operator delete(void*); }; int main(int argc, char *argv[]) { abc _a; return 0; } [/code] |
The End.