199,114 Archived Topics
Remove Filter ![]() | |
My program is acting really weird, it will run fine sometimes and other times it will just go into a constant loop and screw up. Heres the code of the part thats screwing up. void AmasiVillage() { CharacterLocationID = 1; system("cls"); cout << "\n"; cout << "\n"; cout << "\n"; … | |
Hi everyone and thanks for reading. I've been making a news section for a client's site and now I'm trying to make a little box for the front page to show the five latest stories. Everything is fine in that aspect; I know about using the LIMIT keyword in the … | |
Dear all, as always I am back with yet again a simple question. I have developed an application in vb.net which has VB interface as front end and access 2003 as backend. The application path which I setup initially is : [CODE] Dim MyConn As ADODB.Connection MyConn = New ADODB.Connection … | |
Hello there, again! Well, once I solved the stupid bug I had in my first Python class ever, now I'm getting results I wasn't expecting. The problem is: I instantiated two objects of this class but, apparently, one of the objects is just a copy of the other. And if … | |
Hi guys, How can i convert code below into INNER JOIN style. Thanks [code] UPDATE def_1 SET Valid = 'Yes' WHERE id IN (SELECT id FROM def_2) AND paid IN (SELECT paid FROM def_2) AND valid IS NULL [/code] | |
Hello, does anybody know what is the difference between thies two codes? [B]1- With this code I get "NullPointerException at process1.getCurrentNode();"[/B] public void signal(ProcessEntity process) { ProcessEntity process1 = getEntityManager().find(ProcessEntity.class, process.getId()); if (process1 == null) { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } signal(process); } NodeEntity currentNode … | |
In my application i have requirment, I have 3 textboxes i wich i am entering empid,empname,depid i wnat store this thing in listboxes tempvarily. how can i do this pls send me sample code this very urgent (only one listview box) | |
I have a login control, when user presses login I want to check if he exists in the table. I made a connection to database, and now how do I check if he exists? Protected Sub Login1_Authenticate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.AuthenticateEventArgs) Handles Login1.Authenticate Dim sqlstring As String … | |
hi guys i need a concept to develop a VB project. it like a mediaplayer concept. actually i need to run a mediaplayer in full screen mode but should not support the mediaplayer feature. then same time in that same mediaplayer i need to run diferent file when i click … | |
jt = new JTabbedPane(JTabbedPane.TOP); jt.setTabPlacement(JTabbedPane.TOP); //panel1 jp.setPreferredSize(new Dimension (50,50)); jp.setLayout(new BorderLayout()); jp.setBackground(Color.BLACK); jp.setPreferredSize(new Dimension(60,50)); jp4 = new JPanel(); j = new JButton("Draw The Graph"); j.addActionListener(this); jp4.setBorder(BorderFactory.createRaisedBevelBorder()); jp4.setPreferredSize(new Dimension(180,40)); jp4.add(j); jp.add(jp4,BorderLayout.EAST); String[] a = {"select "}; lab = new JLabel("x parameters"); lab.setLocation(700,700); jp4.add(lab); jcb= new JComboBox(a); jp4.add(jcb); lab1 = new JLabel("Y … | |
Hello, I am trying to write a login script for a windows network that gets the groups that a member is part of from active directory in order to determine what drives to map. I am attempting to use Tim Golden's active_directory module to do this however when I try … | |
Hello, I am working on two separate programs because I was trying one differently. I got my other program’s issue solved but now I would like to complete this one. But I am little lost on the error because the data it is complaining about is part of the class. … | |
Hi all. I'm trying to write a "simple" program for a word game (something somewhat similar to Scrabble) and I got stopped by the task I tought to be easy enough to start with. I have a text file (Italiano.list) wich is a collection of italian words listed alphabetically as … | |
Hello I want to make pairs between random number and non random numbers. so that random number will come twice to its corresponding value. I think it is better to see the output so it will give the idea. Like the first column have the numbers from 1 to 25 … | |
We want to integrate sms gateway with our website based on asp. We are looking for vendors for the same. any help? we want to enable the advertisers on our site to receive customer inquiries by sms | |
Hi this is scorpionz I am having a problem regarding time in PHP. I want to insert time in my mysql DB as for example 10:12 AM or 10:12 PM As a matter of fact mysql will not accept this format, so i am taking a field as VARCHAR but … | |
hai..i have problem.. my problem is when checked radio button and click submit , the radio button not disabled and user can check again . what i want is i want that radio button disabled when click submit. i hope you all can help me....i'm very tension...:'( | |
I am trying to translate the PHP script into Java. If anything please advise what or how this translates? PHP: [code] if(isset($_GET['getClientId'])){ $res = mysql_query("select * from tableOne where clientID='".$_GET['getClientId']."'") or die(mysql_error()); if($inf = mysql_fetch_array($res) ... [/code] My attempt in Java and it is giving me errors with getClientId part … | |
Hello, I have 3 major problems: 1) I am not sure if I am doing my static test method correctly. 2) I am not sure if the wagering class is actually checking the bankBalance and the wager 3) I have the following error, which I am not sure how to … | |
Hey everyone, I'm new to the forums here, and also new to C++ and hoping to get some help. In my code, I want a random number to be displayed but in between two numbers. (ex. with my code, it generates a huge random number in the thousands, I only … | |
Hi can any help me how to call a Crystal report 10 in JSP? Please provide me sample codings if you have. [B]Thanks[/B] in advance | |
I need help to find a code that will hide the file location on the server, like instead of showing: [url]http://cbuy.webs.com/file.html[/url] I would want it to show: [url]http://cbuy.webs.com/[/url] for the whole site. can and will anyone help me please? | |
Hi all, I have done a word search within a text file and managed to find it on a particular line, but i dont know what to do so as to get the word/number directly after the searched word. e.g content with the text file sdakodjskfjsdkfjasook sample1. : ihavemakeit sdofjsdfjasfjsdkf … | |
hello.. I m designing a STATISTICAL SUMMARIZER in C.. This software will create the summary of a text file submitted by the user.. The first step is to separate line in the text file.. I hav almost completed this step.. but there are some limitations.. Suppose if text file hav … | |
[CODE] GetWindowText(hwContact, szContact, 256); strcpy(&szContact[strlen(szContact)], " - Conversation"); FindWindow(NULL, szContact); break; [/CODE] once its found the window of szContact, how can i bring that window to the front | |
Hooked Procedure Early Return In/External Trigger Hello, I've hooked into an application succesfully using WH_CALLWNDPROCRET or WH_CALLWNDPROC both give the same issue detailed below. In the hooked callback function I trigger my code by waiting for a spceific window message. Once the hooked callback function receives this message, my code … | |
Hey guys, new to the forums, and was hoping to get a bit of help on some C++. I am looking for a few professionals who know a lot on the code, and have a little patience. When you just started to learn how to code, what did you do … | |
Hi, I have created a project in VB6. How can make it SETUP / INSTALL kit? I have added some refferences and components as well. Thanks | |
I have a code for a doubly linked list, and I need to print it in reverse. I can't seem to figure out what I'm doing wrong, or maybe I just don't fully understand what I'm doing. The part that I'm questioning is in the printList function. The while statement … | |
hi i have an application made of several dialogs each has its own exit button my question: whan i press the exit button ... iwant to exit the whole application (not exit the present dialog and return to the Previous one ) how can i do that .....please help me … | |
Hello! I'm studying Python and wrote a very simple class to work with bidimensional arrays - just as an exercise. Before writing te class I played around with functions and they worked fine. When I tried to do the same using a class, things became strange... Okay, I wrote this … | |
I have two programs both do the same thing but both when run gave totally different results. I am sure there is a lesson to learn from this and that will teach you a fundamental difference between the ‘if’ and the ‘while’. Can anyone explain to me why both the … | |
I'm just learning python and i'm trying to make a game where someone puts in 3 numbers and the program picks one of them at random [ICODE]import random print "Enter 3 numbers and i'll choose 1 at random" a = 0 b = 0 c = 0 nmlist = [a, … | |
I am using Windows XP SP II and Visual Studio 2008. I've created a little program that I'd like to run when the computer boots. Here is the code: [code=cplusplus] // dummy1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <fstream> #include <string> … | |
Hi all, This is my website url [url]www.resourcepoint.net[/url]. i'm looking for browser compatibility. if u don't mind then visit this site in ie.firefox. this site is working fine in ie but not in firefox. floating menu has been fixed but in ie if u will click top submenus for inner … | |
Hi all! I have a list of contacts with checkbox in every row. I want to delete multiple contacts via the checkbox but with no success. It would be greatly appreciated if anyone could help. Thanks in advance. <form name="form1" method="post" action=""> <p> <?php $cName = trim($_POST['cname']); //echo "Cname is … | |
I would be very grateful for any advice on this. The business I work for want all their paper data stored in Access 2000, and to be accessible through a small network - server, 3/4 PCs running XP. The main question is: Is there any reason not to use VB6 … | |
Hi there, I have had a script on my web site which opens a popup window when clicked. It works in Firefox and I am sure that it worked in IE6 - but it does not work in IE7. The javascript part is from Eric King who posted the script … | |
Hi everybody! Could you teach me how to get back the “primary key”: (“id”), from an “insert query”? * [code=coldfusion]<cffunction name="insertData" access="public"> <cfargument name="formData" type="struct" required="yes"> <cfquery name="qInsert" datasource="mydata"> INSERT INTO mytable (email, firstname, name) VALUES ('#formData.email#', '#formData.firstname#', '#formData.name#') </cfquery> </cffunction>[/code] * How could I get back the primary key:”id” … | |
Hello All, OK I am not sure if any of you here are also coming from the C++ forum, but I finished my C++ class, got an A, thanks to all your help, and now I am onto Java. I am still a beginner in both Java and C++ and … | |
This is partly PHP, partly javascript, so I wasn't sure where to stick it, but I'll stick it here. I'm sorry if this is a bit confusing, but I hope I can explain myself well. The below code queries a table in my database, and prints out a table with … | |
Can we initialize an array of objects to unique values without using constructors.... can anyone provide me a program to demonstrate this if it is possible? | |
1st off, I'm new to JAVA/NETBEANS, and my experience lies mainly in C and the Sparc assembly language. The above problem is one I've solved in C (input a string of hex characters and then convert it to a binary array for the purposes of bit manipulation, namely for debug … | |
hi all, i've searched everywhere on the net but i couldn't find. anyone can help me for this? I have an exam on monday. q1 : with pic16F877 and assembly codes, maze solving robot's program and circuit q2 : with pic16F877 and microcontroller, bicycle's speed program and circuit thank you … | |
plz help me i wanna read following to capture some specify values... plz hepl me &l4H (s3B (s16901T (s12HCharges Summary For the Mobile Service No 0712069069 (Mr. . .) of Account 1863480 _________________________________________________________________________________ Service Package Description : Corporate package for 750 CommBill No : 7810912 (s0B &d#DCall charges &d@ Outgoing … | |
I use a page that pulls the content from a database, including the title of the document. How can I make that title to also be the browser title (content in the title tag)? Thanks! | |
I know this is a really sad question to ask, but please tell me... how and when should I ever use extern? I recall an example that Narue showed me but even if I read through the definition from MSDN.com as well as other sources, I still can't quite understand … | |
Hi, [code] INSERT INTO table1 (supid, paid) VALUES ( (SELECT supid FROM def_1 WHERE id IN (SELECT id FROM def_2)), (SELECT paid FROM def_1 WHERE id IN (SELECT id FROM def_2)) [/code] This code returns more than 1 value, teherefore i can not execute it. Is there any other way … | |
Run this...: [CODE=PHP] <?php function recrusion($array, $return, $pid=0, $level=0) { foreach($array as $id=>$parent) { if( $parent===$pid ) { $return[$id]= $level; /* remove "unset" for correct results */ unset($array[$id]); recrusion(&$array, &$return, $id, $level+1); } } } /* input array as id=>parent */ $array= array(1=>0,2=>1,3=>2,4=>3,5=>2,6=>2,7=>6,8=>6,9=>0,10=>0); $return= array(); recrusion($array, &$return); /* return array … | |
Ok, I would like to use a regular expression that I create dynamically to search and replace words in a file. For instance: import re fl = re.compile('abc|def|ghi') ts = 'xyz abc mno def' n = fl.search(ts) print n How would I find all matches in the string? So far, … |
The End.