199,113 Archived Topics
Remove Filter ![]() | |
I am working on an application where I am presented a string that has some information, its always in the same order, but not always the same length with no special separators, here is an example "May 30 10:08 am ARRIVAL AT UNIT WILMINGTON DE 19850" I need to be … | |
I've constructed an inventory program that relies on a database for information. Previously, I've used Access 2007, because it is easy and n00b friendly. Unfortunately, I'm not so sure Access can handle the requirements (Multiple simultaneous users over a LAN connection). So I switched to SQL Server 2005 Express. And … | |
Hi, Could anyone tell me the best way to implement a propertygrid? currently I'm doing it like this but I'm having truble setting the value of the private variable with the values returned but a single SqlDataReader: [CODE] [DefaultPropertyAttribute("ObjectTypeID")] public class ObjectType { private int _objTypeID; private int _stateType; private … | |
Hey, this is the first program I've tried writing using any GUI and I have gotten everything so far, except every time I click my button to try and run my program it just freezes and does not do anything. import javax.swing.*; import BreezySwing.*; public class piGUI extends GBFrame{ private … | |
Can any one help me with this exercise . . ! I did not understnd it . ? [B] A number is called a proper divisor of N if M < N and M divides N. A positive integer is called perfect if it is the sum of its positive … | |
I am working on an ASP.net 2.0 application written in C#, pulling data from an Oracle 10g database on a remote server (i.e. the application and database are on different servers). The data is pulled via a SqlDataSource control. When I run small, quick queries, everything works fine, but when … | |
thanks guys.. please clear one more doubt.. lets say, i have a table(Name) with fields first_name, mid_name and last_name. records in the table are as follows: 1. tom-robert-hanks 2. angel-diva-hanks 3. nick-kick-hanks 4. jingle-doll-bond 5. james-cool-bond 6. john-mac-bond now i want to fetch all the first_name having last_name as bond … | |
hi frens, i have a weird doubt haunting me. please clear it for me.. lets say i have a table(EMP) containing fields emp_name and emp_dept, n there are around 10 records in the table. now i want to print all the emp_name. i know we can do as follows $empname=mysql_fetch_array($result); … | |
I can't get my winning to not be zero. And I don't see why. [CODE]import java.util.*; public class Foothill { public static void main(String[] args) { int loop = 1; int winnings =0 ; while ( loop != 0) { String s1 = PullOne(); String s2 = PullOne(); String s3 … | |
in vb6 we can declaration arecord like this [COLOR="Green"]Type x a As Integer b As String End Type[/COLOR] and deal to this record by dim s as x s.a=1 s.b="hi" but i cant do that in vb.net any one can help me please | |
Hey Guys, Currently, I am doing a project. I don't know how to pass a value from one windows form to another windows form using c#.net. Suppose, I have two forms parent form and child form. Parent form consists of a combo box & button and I want to pass … | |
Hi all, i have a small email database (32k emails) and i want to create a newsletter system. Unofortunately the script where handles those 32k emails to send a html text times out as request exceed the default value and i dont wish to chagen that. I tried breaking the … | |
Hello All! Please i designed a website and hosted it. The problem is, it displays the custom error page whenever i try to view the registration page which is meant for data entry. What could be the possible error because it works perfectly when tested on the LAN | |
i am currently using the following code so that when the cursor is over an object, it displays a description. [CODE]Private Sub txtSearchbox_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) frmeObjectDescription.Visible = True lblSearchCriteria.Visible = True End Sub[/CODE] however, i dont know how to make it … | |
<html> <head> <script type="text/javascript"> function loadXMLDoc() { var xmlhttp; var txt,x,xx,i; if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { txt="<table border='1'><tr><th>Title</th><th>Artist</th><th>COUNTRY</th><th>COMPANY</th><th>PRICE</th><th>YEAR</th></tr>"; x=xmlhttp.responseXML.documentElement.getElementsByTagName("CD"); for (i=0;i<x.length;i++) { txt=txt + "<tr>"; xx=x[i].getElementsByTagName("TITLE"); { try { txt=txt + "<td>" + xx[0].firstChild.nodeValue + "</td>"; } … | |
I m trying to print the prime numbers using Sieve of Eratosthenes But, my output is 0 for all. please tell me where i m wrong. Thanks for help [code=c]#include<stdio.h> #include<conio.h> int main() { int arr[100],i,j=1,val=0,mod,num=0,k,l; for(i=0;i<100;i++) { arr[i]=j; j++; // printf("\n %d",arr[i]); } for(k=1;k<100;k++) // checking number and replacing … | |
I am developing a search engine that match keyword search for game title and category game that is limited for three keyword search.i am facing some problem that need to swap among the keywords more than using one keyword search.Any guys can help me or give me some guide on … | |
I have below xslt file and want to implement code for altenet color row. I'm implementing below code, but it will color out coloumns and not the rows. I think I'm applying style on <TableCells>...where need to put code..please help..thnx [CODE]<xsl:if test="position() mod 2 = 1"> <BackgroundColor>#e0e0e0</BackgroundColor> </xsl:if> <xsl:if test="position() … | |
My chat application have icon at the taskbar which displays messages as balloon text for the user when the application is minimized. My problem is when the message contain smiley or emotion like this ':D:D:)' the smiley does not display in the balloon text. Any help on how to add … | |
Hi All, I have an xml file like [CODE]<?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet type="text/xsl" href="InProcess1.xsl"?> <Rowsets DateCreated="2011-02-14T12:24:00" EndDate="2011-02-14T12:24:00" StartDate="2011-02-14T11:24:00" Version="12.0.2 Build(88)"> <Rowset> <Columns> <Column Description="BatchNumber" MaxRange="1" MinRange="0" Name="BatchNumber" SQLDataType="12" SourceColumn="BatchNumber" /> <Column Description="VersionCode" MaxRange="1" MinRange="0" Name="VersionCode" SQLDataType="3" SourceColumn="VersionCode" /> <Column Description="MaterialType" MaxRange="1" MinRange="0" Name="MaterialType" SQLDataType="12" SourceColumn="MaterialType" /> <Column Description="LotNumber" MaxRange="1" … | |
[CODE]#include <stdio.h> #include <string.h> void proba(char *test) { int i; char det = *test; printf("%s", det); } int main(void) { char datar[] = "asds"; printf("%d \n", datar); proba(datar); return 0; }[/CODE] printf("%s", det); is the problem. When its turn to execute its trowing me out from the app. With "wrong … | |
USE [DIAMDBF] GO /****** Object: StoredProcedure [dbo].[STOCKREPORT] Script Date: 01/21/2011 11:32:40 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER OFF GO ALTER PROCEDURE [dbo].[JEWELLSTOCKREPORT] @SELDBNM SYSNAME, @FILENO1 nvarchar(7), @FROMCODE nvarchar(20), @TOCODE nvarchar(20), @START nvarchar(12), @LAST nvarchar(12), @DATE1 nvarchar(12), @DATE2 nvarchar(12), @DATEFORMAT varchar(12), @GROUPCODE char(10), @FROMLOT nvarchar(10), @TOLOT nvarchar(10) AS Declare @execstring … | |
Hi - i have been trying to create a linked list in C using structs and there are a couple of things i am stuck with how to declare the node front and back and do i keep repeating myself? Also in the function push back how can i use … | |
My homework is Write an applet that draw the house shown on the left in Figure 14-32. When the user clicks on the door or windows, they should close. The figure on the right shows the house with its door and windows closed. I basic want a java applet that … | |
Hi all Does anyone know if it is possible to open a firefox webbrowser in a form. Or does it take you default web browser as the webbrowser to open in form. Eg - My Default Browser is Firefox - so does that mean the webbrowser control would be a … | |
Hello, I'm using PythonWin and I have a problem. i don't know how to run script from Python shell Pythonwin Interactive Window). For example I wrote this code (from tutorial): [code] import sys print 'Begining... now...' for x in sys.argv: print x [/code] and I save it as Script.py in … | |
I want to convert a kind of a large MSSQL table to text -- ideally CSV. One crude way would be to use SQL Developer to do a SELECT * and do a copy-and-paste. But there must be a more precise and efficient way of doing this. Perhaps SQL Developer … | |
Hi, I'd like to get the value of a column from a datagrid and insert that to a table. I get an error "Object reference not set to an instance of an object." Here's my code: [CODE] Imports System.Data.SqlClient Imports System.Data Public Class Class1 Public Shared Sub insertrecord(ByVal query As … | |
I have 3 tables; Group, MemberOfGroup and Graduates. GroupID is a primary key for Group and MatricNo is a primary key for Graduates. Both GroupID and MatricNo are composite key for MemberOfGroup. I want to show the group lists according to member size. Below is my sql. [CODE]Select g.GroupName, count(m.MatricNo) … | |
![]() | Hi, I would like to know if there is a way to sort data in a table, not when selecting it, but the actual data in the table. I would like to sort it by 2 columns though. For example the "topic" should go from A-Z and then inside all … ![]() |
how to find tomcat server log for godaddy.com plz tell me how to run server at godaddy.com...plz | |
#include <iostream> #include <fstream> #include <string> #include <cctype> using namespace std; const int num=1000; int main(int argc, char *argv[]){ if (argc == 2){ ifstream file; file.open(argv[1]); } else cout << "You typed only one file" << endl; ifstream file; file.open(argv[1]); string space; char word; int i=0; int w=0; int s=0; … | |
i am currently working on a survey project and the answer should be something like that Poor,Average,Good,Very Good,Excellent and their value will be 1 2 3 4 5. but i can't bind them into my database, the questions show using datalist, and i got no idea how to fix this.. … | |
Hi everyone, As the thread title suggests, I am trying to think of the best way to maintain and synchronise local and remote databases. To explain this more clearly, I'll outline the scenario and my thoughts for tackling the problem. I have a website on a remote server, which obviously … | |
i want to know that from which pages my current page has been called in ASP.net As for example I want the track of page named "hero.aspx" and it has been called from "Zero.aspx" and "Zero.aspx" has been called from "one.aspx" So i want output as whole page called hierarchy. … | |
[CODE]Imports System Imports System.Drawing Imports System.Windows.Forms Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click End Sub End Class[/CODE] Hello, I have a textbox and I have a button. Okey, when the button is clicked I want my mouse to go and click a … | |
Hi, I have recently finished a windows desktop application for a client that connects to a sql server database. Throughout development while the server instance was on my local machine the application and server communicated fine with the connection string below [CODE] <add name="myString" connectionString="Data Source=myServerName;Initial Catalog="myDbName";Integrated Security=True" providerName="System.Data.SqlClient" /> … | |
What is the procedure in Python for opening a very large binary file in read/write mode, and overwriting individual bytes or sequences of bytes? I'm working with huge files that are many GB, and I would like to seek(arbitrary_long_integer), and overwrite what's there (instead of appending or inserting). I need … | |
Here is simple C program for analog clock. Comipler: TurboC | |
Hi, I would like to know if its possible to edit a properties file after the project is deployed. I tried editing the values in the properties file using a classloader. [CODE] ClassLoader classLoader = this.getClass().getClassLoader(); prop.load(classLoader.getResourceAsStream("test.properties"));[/CODE] It reads the values properly but I couldn't write it back to the … | |
Hello, I am not sure if this is the place to ask. I develop an algorithm in C++ under Windows XP with Visual studio 2008, the algorithm is proved to be linear ( O(n) ), there is a usage of memory during the algorithm ( all of it is being … | |
Hello, I just started learning c++ and I'm dabbling with file input/output. But now I have encountered an issue with this code: [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main() { ifstream inFile("values.txt", ios_base::binary); string Value1; int Value2; int Value3; int Value4; if(inFile) { inFile.read((char*)&Value1, sizeof(string)); inFile.read((char*)&Value2, … | |
Hi All, I have the following program to convert Lower case character to uppercase letters org $4000 Alph equ 26 26 Alphabets begin lea LC,A0 store lowercase to A0 lea UC,A1 store uppercase to A1 move.b #Alph,d1 sub.b #1,d1 loop move.b (A0)+,d0 convert LC to UC sub.b #32,d0 move.b d0,(A1)+ … | |
Im writing a blackjack program to train one to count cards using the Hi-Lo System. I found the engine online ( it was open sourced.) Instead of the code here using only numbers and Letters, i want to add only pictures of the cards instead of the numbers and card … | |
Hi Guyz, i just wanna know how to fix my problem, or rather fix my code and simply my code base on my MODULE. heres the error " You have an error in your SQL syntax; check the manual that corresponds to your mysql server version for the right syntax … | |
Hi all. I am having trouble with these inside a loop I have. The loop is used to fill a struct and I want to check each input before it is accepted. It works fine if the input is what is expected but doesnt if it is incorrect input. Here … | |
[CODE] #include <iostream> #include <iomanip> #include <cstdlib> #include <ctime> using namespace std; int main () { int arr[9][9], n; srand(time(0)); for (int i=0; i<9; i++) { for (int j=0; j<9; j++) { n = rand() % 9; if (arr[i][j] == n) { n = rand() % 9; arr[i][j] = n; … | |
[CODE]echo ("<tr id='$a' bgcolor='B0C4DE'>"); echo ('<td>'.$row['idbook_code'].'</td>'); echo ('<td>'.$row['b_name'].'</td>'); echo ('<td>'.$row['b_author'].'</td>'); echo ('<td>'.$row['b_avail'].'</td>'); if($row['b_avail']>0) { if (!$_SESSION["valid_user"]) { // User not logged in, redirect to login page echo("<td>Available</td>"); }else echo("<td><INPUT TYPE=button id=show name=show value=add></td>"); }else echo("<td>No stock of book</td>"); echo("</tr>"); ?>[/CODE] i have my search area when i search it output … | |
Hi im trying to calculate the average of an inputfile using a 2d array. I tried to calculate the average per row and add them all together but my code gives me an average of zero. I was wondering if anyone can see what im doing wrong or a better … | |
Quick (really) question about windows services. According to the documentation, services require a minimum of 2 methods OnStart() and OnStop() to be useful. OnStart() cannot contain the main execution code, it shouldn't loop, block or otherwise prevent the OnStart() method from returning quickly. The Question: If the above is true...it … |
The End.