199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zaki_bwz

Hello. i have a trouble with my php and javascript code. I want to get database from form that use javascript that use onSubmit as form validator. It work when i refer to another page as addDb.php then add to database. I want to stay on current page then php …

Member Avatar for blackhole
0
212
Member Avatar for azegurb

Hi all, I have taken simple CMS script from internet but there are such things that i dont understand them below is the code [CODE]<?php //////////////////////////////////////////////////////////////////////////////////////// // Class: DbConnector // Purpose: Connect to a database, MySQL version /////////////////////////////////////////////////////////////////////////////////////// require_once 'SystemComponent.php'; class DbConnector extends SystemComponent { var $theQuery; var $link; //*** …

Member Avatar for alanwdaniweb
0
123
Member Avatar for chandruswami

In C#.net Application, When i change the resolution, the application won't adjust its windows Size corresponding to Borders of Monitor,.. Even though we change the resolution, the whole application should visible,.. Please help me with ideas,...!

Member Avatar for kvprajapati
0
75
Member Avatar for vardhmansk

Hi , I am trying to create an image-viewing application , wherein the user chooses an image file using a file chooser . I have created a Jpanel ,inside a jframe with a menu bar, which gives the user a variety of options to select from , using combo boxes …

Member Avatar for vardhmansk
0
993
Member Avatar for Anigmalee

I have design a window application form in 1440X900pixel resolution(which I dont aware of this could cause a problem). When I move this application to other PC with different resolution(or shows on a projector that only support low resolution), thing change nasty, all the control is out of shape. Any …

Member Avatar for Anigmalee
0
104
Member Avatar for gjohnsonjr

This is a newbie question. I am creating a simple one-table Movie tracking program. I have dragged a db table onto the simple form creating a dataGridView. I am using a List box and some Text boxes to enter new data. For the life of me, I cannot get the …

Member Avatar for finito
0
399
Member Avatar for usafsatwide

I have to create a word counter function which counts the words of a string. When I run the program, it doesn't end. This is what I have created so far: [code] //-------------Start of Program-------------> #include <iostream> #include <cstdlib> using namespace std; //Function Prototype void stringLength(char *); void reverseString(char *); …

Member Avatar for achieve_goals
0
229
Member Avatar for bbman

Hey, I have the code as follows: [CODE] public Form1() { InitializeComponent(); string[] _args = Environment.GetCommandLineArgs(); if (_args.Contains("options")) { this.Show(); } } [/CODE] This will be a tray app (and close quickly after the work is done), so if I add a notifyicon above the InitializeComponent(), could I move that …

Member Avatar for CFusion
0
374
Member Avatar for brenton_77

I am currently trying to create a live search box that as I type it will start displaying results that match. Here is an example [URL="http://www.w3schools.com/php/php_ajax_livesearch.asp?output=print"]http://www.w3schools.com/php/php_ajax_livesearch.asp?output=print[/URL] but it retrieves its data from an XML file, I need mine to retrieve from a column called FirstName within a table of an …

Member Avatar for digital-ether
0
643
Member Avatar for lstensland

I am new to programming and have been reading a few books on Pyhton but can't seem to grasp what I believe is probably a simple process. I need someone to show me briefly a sample script that would allow me to open a CSV file and edit it line …

Member Avatar for lstensland
0
444
Member Avatar for paddy8788

I just started working on a small tool to search for (heavy) text files using Visual C++ with MFC. Because there are a lot of readings, I'm wondering if ifstream of the standard library is better than CFile of MFC? I don't need portability (the program is for Windows Environment), …

Member Avatar for paddy8788
0
249
Member Avatar for debuggger

Hey - I've been given a gutted version of Minesweeper, and been asked to reconstruct it. I'm taking it piece by piece, and I've got some parts working. What I'm trying to get now is the 'Zone Clearing'. Just quickly: Zone clearing is when you click a 'blank' square, all …

Member Avatar for adams161
0
168
Member Avatar for kalai_c_k

what is the best design practice for this situation? ----- Create a class or set of classes in C++ to represent the birds Create an instance of each type of bird and add them all into a single vector Have each bird hop and then fly in turn Don't have …

Member Avatar for mrnutty
0
121
Member Avatar for insanely_sane

EDIT: This was moved from the Java discussion forum. It seems more appropriate to post it here. This is not exactly a homework assignment. I'm just doing it for fun ^^ Hey guys. I am currently just a 11th grade student but since I'm done the whole curriculum for my …

Member Avatar for insanely_sane
0
208
Member Avatar for commandgeek

Does anyone know if it's possible to have several text fields that place the data into different spots in the same web page. If needed I could just use two pages, it doesn't really matter. I've heard this requires a PHP script, but I'm not sure how to set this …

Member Avatar for diafol
0
127
Member Avatar for mitch9654

I am working on some code for getting user input on what songs they want for a dance. Unfortunately, when running the applet with some html, java opens a window saying [CODE]Java has discovered application components that could indicate a security concern[/CODE] three times, and no matter what you click, …

Member Avatar for mitch9654
0
569
Member Avatar for joinerc

Hello all, I started learning C++ a few days ago, using visual C++. I'm learning from an old textbook. I'm having some errors come up due to heap corruption. The author of this book defined a class matrix and vector (I won't repost the whole thing as it's quite long, …

Member Avatar for NathanOliver
0
383
Member Avatar for Drugarce

Hi, I am new in assembly and i nave some problems. I am working on some project for school i should read text from .txt file. The problem is that i don't now how to get the number of chars contained in .txt file that i need to store in …

Member Avatar for NotNull
0
6K
Member Avatar for PixelatedKarma

Good Afternoon Everyone; Let me first start by apologizing to the moderators in advance if this is in the wrong forum but it is php / mysql related and I cannot find a place suitable for this thread. A few weeks back I had a discussion on these forums about …

Member Avatar for PixelatedKarma
0
105
Member Avatar for ivanCeras

got some questions about .com and .exe files Whats the main difference between the two file types? When two files of the same file name one with .com extension.. the other .exe why does windows give higher priority to the .com file? help me figure it out pls ;)

Member Avatar for NotNull
0
2K
Member Avatar for IS_student

Good evening; I am having a final exam next week and I'm having an issue with this program. the program should user receive from the user 6 marks for each one of four students and then compute the average and finally show the index of the student who has the …

Member Avatar for finito
0
109
Member Avatar for kunkunlol

Hi there, I'm new to c++ and im trying to do a project, wich is a letter soup game (its like a word search in a square with loads of other letters). So far now I have a letter (A-Z) randomizer, wich will put them in an array[l][w] (choosen by …

Member Avatar for ndeniche
0
913
Member Avatar for evanescence

Hi, I'm pretty new to writing stuff in Assembler . Now I'm trying to run some code that puts the odd numbers from an array to a second one, and the even numbers to a third one. I don't really know how to make the transfer. I tried with MOVSB …

Member Avatar for NotNull
0
135
Member Avatar for dilansankalpa

i am writing a c# programming to receive data through serial port. Data receiving is going fine. But first to enable data flow i have to type "[B]datafrm f1a4[/B]" and then press "[B]Enter[/B]" key in the hyperterminal. then i have to run the c# program. Can I get this done …

Member Avatar for Phil2:3
0
139
Member Avatar for kdmuk10
Member Avatar for hatzi8

Hi, i've have just created my first program in visual c++ 2008 express edition and i'd like to know, if I can create an exe file to make this program run independently from visual studio. thanks

Member Avatar for VernonDozier
0
85
Member Avatar for bree9482

Hi guys hope ur are all well! I have a program im trying to finish and its not going well. I am quite new to C++ and am not the greatest. I have code that ill post, but the problem is when i run the program with the readfile(); function …

Member Avatar for VernonDozier
0
151
Member Avatar for Ico.I.Am

Hi,I am new with this forum even if I have been programming in c,c++ for a while. I have never realized any DLL file and I'd like to start now. I think I have basically understood the concepts that stay behind a DLL realization but I still can't make one …

Member Avatar for vijayan121
0
114
Member Avatar for Ragoune

Hi, I'm trying to make a rather simple Visual Basic app with which I can update some tables within my MySQL databases. I've been following [URL="http://www.vbmysql.com/articles/vbnet-mysql-tutorials/the-vbnet-mysql-tutorial-part-3"]this tutorial[/URL] from page 3 on, as the first 2 pages where on how to initialize a local MySQL database. My MySQL database is on …

Member Avatar for Ragoune
0
1K
Member Avatar for j-green.10

In my code i have written: [CODE] std::ifstream stm; stm.str("str100"); double d; stm >> d; [/CODE] and an error comes up saying that: [CODE] 'str' : is not a member of 'std::basic_ifstream<_Elem,_Traits>' with [ _Elem=char, _Traits=std::char_traits<char> ] [/CODE] What should i do?

Member Avatar for j-green.10
0
73
Member Avatar for fawad123

I have tested following code and it works fine in IE but not Mozilla: var ajax = false; if (window.XMLHttpRequest) { ajax = new XMLHttpRequest(); } else if (window.ActiveXObject) { try { ajax = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e1) { try { ajax = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) {} …

Member Avatar for fawad123
0
368
Member Avatar for M_K_Higa

Greetings - I need your help. I have an SSIS package with a [icode]Data Flow Task[/icode] which has the following Data Flow tasks: [icode]Excel Source[/icode] -> [icode]Data Conversion[/icode] -> [icode]SQL Server Destination[/icode]. The data in my Excel worksheet contains strings as well as numbers. (Also has some blank cells.) I'm …

Member Avatar for M_K_Higa
0
207
Member Avatar for comput scince

hi there can any one help me to answer this problem . problem > Imagine you are given a set of input elements where each element is assotiated with a specific access Probability by which each element is likely to be accessed ; e.g; Elements :{A,B,D,K,L,M,N} pi=<0.1,0.15,0.25,0.05,0.2,0.1,0.15> for all 1<=i<=n …

Member Avatar for gusano79
0
82
Member Avatar for sdhawan

Hi Guys , I am trying to load a xml file as follows and i am getting file not found exception even though the file is on the desktop.I have checked the file name and extension they are correct , can anyonehelp please [code] private void button1_Click(object sender, EventArgs e) …

Member Avatar for CFusion
0
113
Member Avatar for CroBoss

hi all, the following code is for a SLR parser... after compiling i got some strange errors - could someone pls take a look, or try compiling it... tnx alot [CODE]#include<iostream> #include<conio.h> #include<string.h> #include<process.h> #include<stdio.h> char in[30]; char T[]={"i+*()$E"}; char prod[4][5]={"EE+E","EE*E","E(E)","Ei"}; char M[10][8]={"sbbsbbg","bssbbab","sbbsbbg", //matrix to store shift, "brrbrrb","sbbsbbg","sbbsbbg", //reduce,error and …

Member Avatar for CroBoss
0
231
Member Avatar for az7_neli

Please, help me! I am a student in Technical University in Plovdiv, Bulgaria. I must finish my graduation work very soon. For the purpose I must create trigger(actually a few triggers) at run time. For my graduation work I use Borland C++ Builder 6. I use BDE palette. I try …

Member Avatar for az7_neli
0
588
Member Avatar for elneco

Hello Daniweb, i am having problems with the second button in my rather simple nav. i looked over the code a couple times but i can't seem to figure out why the hover is behaving teh way it is...perhaps someone with fresh eyes can help me out?? my nav: [url]http://elneco.biz/mynav/yeah.html[/url] …

Member Avatar for elneco
0
103
Member Avatar for sdhawan
Member Avatar for digitalsindhx

I Want To Search Date From .mdb Database file, Table Name is Purchase, and The Field is Purchase Date, its Type is DateTime and Formate is ShortDate in MS Access Database File, I Conceted it to Vb.net Form, and Tryed to Search Date, but it Returns Error. the Code to …

Member Avatar for Netcode
0
279
Member Avatar for erka4444

I've got two member functions: [code=c] //Particle.h class Particle { public: bool isDead()const; static bool isDead(const Particle & par); }; //Particle.cpp bool Particle::isDead()const { return(xPos<=0 || xPos>=SCREEN_WIDTH || yPos<=0 || yPos>=GRASS_HEIGHT); } bool Particle::isDead(const Particle & par) { return(par.xPos<=0 || par.xPos>=SCREEN_WIDTH || par.yPos<=0 || par.yPos>=GRASS_HEIGHT); } [/code] But when a …

Member Avatar for mrnutty
0
191
Member Avatar for wlalth

[code=cs] foreach (ComboBox a in Form1.ActiveForm.Controls) { MessageBox.Show("hello"); } [/code] Hi, i want to add same items to all ComboBoxes, expect one. The part of my code is here. The problem is foreach loop never fire. I never see the MessageBox which is saying "hello". What is wrong in my …

Member Avatar for nick.crane
0
3K
Member Avatar for Sw8Lala

hi every one, I am making KBC game in C++. To store questions and its options in a file, I am unable to write successfully the character string of question in the file due to spaces between question. So,can anyone tell me how to write a character string having spaces …

Member Avatar for Sw8Lala
0
171
Member Avatar for dotnextnewb

Hello, I am using a Menu Control & I have added Items in Menu Item Editor (both root & child). But in the browser the child items are not displaying. Running perfectly when my lecturer showed in his pc. When I searched for this problem, I have seen some solutions …

Member Avatar for dotnextnewb
0
203
Member Avatar for komyg

Hi, I am developing a WSDL file for a Web Service and I am having a problem with the XSD schema associated with this WSDL. The Schema is below: [CODE] <wsdl:types> <xsd:schema targetNamespace="SNIPPED"> <!-- Classes de apoio --> <xsd:simpleType name="resultadoOperacao" final="restriction"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="OK"/> <xsd:enumeration value="NOK"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType …

Member Avatar for komyg
0
285
Member Avatar for SBA-CDeCinko

I have a DetailsView that I use to update some database data. In the footer of the DetailsView is a label I am trying to use as a status message panel. For instance, I display validation errors in this label. After updating a record, which causes a postback, I am …

Member Avatar for SBA-CDeCinko
0
160
Member Avatar for prashanth s j

Hi all, the following code prints garbage values. I want to read from an array two bytes and print then as a short int after doing ntohs. What is the bug in the code? Thanks and Regards, Prashanth [code] #include<stdio.h> struct converter { unsigned short int i; }; main() { …

Member Avatar for prashanth s j
0
194
Member Avatar for perryg30313

Hello Forum, I am new to SQL Server and have inherited a database from another developer. I have a Stored Procedure that I'm trying to use in my vb.net program to fill a form with multiple datagrids. The Stored Proc looks like this: set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go …

Member Avatar for perryg30313
0
120
Member Avatar for shailendra_agra

Hello, Answer me I am adding multiple function onload in the body. IE showing the correct result but mozilla showing the problem like it showing the last function result in all function results. <body id="body" onload="showUser1('taj-mahal');showUser('taj-mahal');showUser2('taj-mahal');"> can anybody help on this,what is the problem??? and how to short out

Member Avatar for diafol
0
75
Member Avatar for ndeniche

Hello guys. I'm building an application that connects to a SQL Server 2008 database via connection string. The thing is, since the computer loading the app (or the user, in either case) is outside the Active Directory domain, I can't use Windows Authentication to connect to the DB. But when …

Member Avatar for ndeniche
0
844
Member Avatar for tyson.crouch

G'day, I'm just looking to clean up some of my code as i know that at the moment it doesnt follow the best practices. I have the following function which calls my database() class. I know that i need to close my connections and statements im just not too sure …

Member Avatar for Stefano Mtangoo
0
87

The End.