199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for smdhas

m a newbie to vb.net and aspx and m trying to validate a login (employee id and date of birth) to a sql database and comin up with the following error ([B]CommandText property has not been initialized[/B]). thanks for the help.... [CODE]Protected Sub btn_memberlogin_Click(ByVal sender As Object, ByVal e As …

Member Avatar for smdhas
0
254
Member Avatar for watery87

Hi guys, im experimenting with vector functions, but are unable to come up with anythin constructive. basically i have this file that contains information. sorta like a friends list. I need to store in an array, and i decided to use vectors for this. Any help please? data.txt [code] <div …

Member Avatar for watery87
0
79
Member Avatar for mhelal

Hi I have Fedora Core 5 2.6.17-1.2174_FC5 with gcc version: gcc (GCC) 4.1.1 200 60525 (Red Hat 4.1.1-1) everything compiles well, and run smoothly on my machine. But the actual production machine is Linux 2.4.20-46.9.legacysmp with gcc version gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) on the production machine, …

Member Avatar for swatithakur
0
214
Member Avatar for Dhilip.S

Plsssssssssss help me. i want to retrieve duration of audio file like .wav .dss .mp3 using vb.net code... i m in midst of project .... unable to complete coz of this.. so anyone pls help me

Member Avatar for Dhilip.S
0
205
Member Avatar for King_Alucard

I have this code and I am having trouble figuring how to make it run without any errors, can anybody give me some pointers on how to fix it [CODE]#include <iostream> #include <string> #include <iomanip> using namespace std; class TicTacToe { private: char theBoard [3][3]; public: TicTacToe(void); void playOneGame(void); void …

Member Avatar for VernonDozier
0
463
Member Avatar for farhan386

I have a string contains sequences of 0 and 1. I need to replace all zero sequences whose length less than 5, into number 1 with same length. The zero sequences with length 5 or more should be left as is. For example source : 11000001100010011000001 result : 11000001111111111000001 [CODE] …

Member Avatar for farhan386
0
176
Member Avatar for hari.sarvothama

The aim of the program is to read contents from 2 files and store it in struct variables.(This is actually a part of another program which stimulates pass2 of two pass assembler) [B]This code works fine.[/B] [code=c] #include<stdio.h> #include<stdlib.h> #include<string.h> struct optbl { char opco[10]; int value; }o_tbl[100]; struct symtbl …

Member Avatar for hari.sarvothama
0
2K
Member Avatar for ceesdaname

Ok Im new to shaders and I am using glew... okay here is my code #include <iostream> #include <gl/glew.h> #include <gl/glut.h> float angle = 0.0f; //global shader handle GLhandleARB g_shader; char * LoadShader(char *file) { FILE *f; fopen_s(&f,file, "r"); if( f == NULL) return NULL; fseek(f, 0, SEEK_END); int size …

Member Avatar for PsychoLogic
0
245
Member Avatar for iWalletMobile

I am getting this error in my script. The error is in the bolded line of the script. Can anyone help? [CODE]<?php if($_REQUEST['app_id']) { $app_id=$_REQUEST['app_id']; } else { $app_id=$_POST['fb_sig_app_id']; } $referral_rate=$referral_cut/100; $con=mysql_connect($sql_location,$sql_username,$sql_password); mysql_select_db($sql_database, $con); $ref=$_REQUEST['ref']; $item_id=$_REQUEST['item_id']; $referral_id=$_REQUEST['referral']; $current_time=time(); $ajax_timeout=$ajax_timeout*1000; if($_REQUEST['action']=="new") { $referral_id=100000120560309; } if($user_id) { $public_info=$facebook->api_client->application_getPublicInfo($app_id); $dev_count=count($public_info['developers']); $dev_array=array(); if($dev_count>0) { …

Member Avatar for chrishea
0
290
Member Avatar for HotRodU2

[CODE] <table id="items"> <tr> <th>Item #</th> <th>Description</th> <th>Unit Cost</th> <th>Quantity</th> <th>Price</th> </tr> <tr> <td><center><input type="text" name="itemNum1" maxlength="20" size="20"/></center></td> <td><textarea onkeypress="return imposeMaxLength(this, 65);"></textarea></td> <td><input type="text" name="cost1" class="cost"/></td> <td><input type="text" name="qty1" class="qty"/></td> <td><input type="text" name="price1" class="price1" onclick="this.value=compute20();" value=""/></td> </tr> <tr> <td><center><input type="text" name="itemNum" maxlength="20" size="20"/></center></td> <td><textarea onkeypress="return imposeMaxLength(this, 65);"></textarea></td> <td><input type="text" name="cost2" …

Member Avatar for HotRodU2
0
107
Member Avatar for SVR

I have a parser that builds a list of variables and a list of expressions. I put those into a block expression and compile ... [CODE] var blk = Expression.Convert(Expression.Block(Parser.m_Vars, Parser.m_Expr),typeof(CVar)); var expr = Expression.Lambda<Func<CVar>>(blk); var result = ""; try { var actionX = expr.Compile(); result = actionX(); } [/CODE] …

Member Avatar for SVR
0
174
Member Avatar for 3d0army

I am making a new program (obviously). And I need some help. In this program, I have up to 23 text boxes. They are meant to edit a file. Not any type of file, just a file, with no extensions. There is text inside the file though. I have tried …

Member Avatar for 3d0army
0
207
Member Avatar for pallavigupta117

Ive made this calculator using java swing.I want to add new buttons to my frame if user selects 'Scientific' from file menu and remove buttons frome the frame if user selects 'Standard' from the menu. By default it is selected to standard. Write now a new window pops up above …

Member Avatar for mikeNIkesT
0
124
Member Avatar for Tcll

hey... I know this is real easy to do and all... but I just can't remember how to do it... I have a textarea named 'code' and a completely empty div [CODE] <div> </div> [/CODE] the textbox get's filled with html code... (dynamically of course) and now I need to …

Member Avatar for Tcll
0
160
Member Avatar for jeffsbaker

Does anyone know why the following subquery is using filesort and scanning all rows in the table according to EXPLAIN? I am trying to get the total of the top ten scores and the result is fine. [CODE]EXPLAIN SELECT SUM( score ) AS top10_total FROM ( SELECT score FROM answers …

Member Avatar for tesuji
0
1K
Member Avatar for Sismetic

Hi all, Im new to this website, and mostly to any type of programming. Recently Im trying to learn C++(Game Programming), and my father wants me to make him a web-based application, that flashes the window wether there is any sound playing(I believe it's called an audio visualization), I talked …

Member Avatar for PixelExchange
0
245
Member Avatar for captainSheepdog

Hi, everybody! I'm currently building a C++ Forms application for my supervisor to track employee sick/vacation time. The program reads each employee's information from a file, and I want to be able to display each employees information in a label. (The binary files have been created successfully and the file …

Member Avatar for captainSheepdog
0
103
Member Avatar for DeadLikeMe

Hi, i have a problem with this code. I wanted to add the values of the parameters at the beginning to the URL entered in the code. i already tried confirmation.php?username=$username added the ?username=$_GET[username] but the Url in the browser is displayed like it's written in the php file and …

Member Avatar for DeadLikeMe
0
200
Member Avatar for seularts

I stumbled on this code by accident and used it on one of my scripts, but it has a 'flaw', I can't make it include empty folders in the backup zip filer, nor make it to force download it after the creation of the zip. Any suggestions!? [code] <?php // …

Member Avatar for seularts
0
126
Member Avatar for dflatt

hi, i've writen a function to get a sub array from another array [code] subarray(int* Array, int start,int end) { typedef int* ptr; ptr sub; sub = new int[end]; for(int i=start; i<end; i++) { int j = 0; Array[i]=sub[j]; j++; } for(int l=0; l<end; l++)//added as an after thought cout<<sub[l] …

Member Avatar for dflatt
0
90
Member Avatar for Mujahid158

I'm coding my own blog which is almost completing. I'm facing a problem on one thing. How can I insert comma separated tags in mysql table? I want to insert every comma separated tag as the new entry in the table. I would be thankful if anyone will help me …

Member Avatar for metalix
0
161
Member Avatar for kiranpvsr

Hi, I get the following output : I dont understand why after the decimal point, the values start changing from 0.13223. The line in the code is temp = temp - 0.001; For the file0 the value of temp is 0.14623 For the file0 the value of temp is 0.14523 …

Member Avatar for NormR1
0
135
Member Avatar for gretty

Hello [B]Would anyone like to share their tips & tricks for debugging functions & whole programs in C++. [/B] I find I suck at debugging :P & really dont look forward to having to go through my functions again to see if there are any loopholes etc so if anyone …

Member Avatar for Dingbats
0
157
Member Avatar for blocblue

Hi, I have two databases (live and staging). Extra columns have been added to various tables within the staging database by another developer while they were extending the websites functionality. Now has come the time to put the new functionality live, which means taking the staging database schema, creating a …

Member Avatar for blocblue
0
901
Member Avatar for nekogda

Here's a simple question. Need: => to use scipy special package function in my python prog (python2.6). 1. Downloaded & intalled numpy for python2.6 2. Downloaded & intalled scipy (scipy-0.8.0-win32-superpack-python2.6.exe) tested: import numpy import scipy - everything's ok According to scipy docs, a package needs to be loaded before a …

Member Avatar for nekogda
0
211
Member Avatar for Nandu Das

WAP to read 'n' numbers and print the biggest and smallest number. Pls help me with this. The program should be done with without using arrays.......

Member Avatar for NathanOliver
0
197
Member Avatar for fekioh

Hello, I need to store data in large lists (~e7 elements) and I often get a memory error in code that looks like: [code=python] f = open('data.txt','r') for line in f: list1.append(line.split(',')[1]) list2.append(line.split(',')[2]) # etc. [/code] I get the error when reading-in the data, but I don't really need all …

Member Avatar for ultimatebuster
0
2K
Member Avatar for gahhon

how can i use the switch statement to find a value in a range? example like, [CODE]#include <stdio.h> void main() { int monthly_sales; double monthly_income; printf("Enter your monthly sales amount > "); scanf("%d", &monthly_sales); switch(monthly_sales) { case 50000: // i want make this in a range, greater than or equal. …

Member Avatar for Adak
0
178
Member Avatar for denguru4

Hi, i was trying to use the fstream library to create a programme that serves someworth like a data base i.e it stores some information that will be used in the shortest possible time but the problem is that it does not work for me does any one have an …

Member Avatar for denguru4
0
71
Member Avatar for acrocephalus

Hello! I am trying to creat an "About box" with wxpython. I have defined this function [CODE]def OnAboutBox(self, event): info = wx.AboutDialogInfo() info.SetIcon(wx.Icon('icons/exit.png', wx.BITMAP_TYPE_PNG)) info.SetName('Watermark Image Processing') info.SetVersion('1.0b') info.SetDescription(info) info.SetCopyright('(C) 2010 Daniel Valverde') info.SetWebSite('http://www.acrocephalus.net') licenseFile = open('license.txt') info.SetLicence(license) info.AddDeveloper('Daniel Valverde') info.AddDocWriter('Daniel Valverde') info.AddArtist('Daniel Valverde') info.AddTranslator('Daniel Valverde') wx.AboutBox(info)[/CODE] I know that …

Member Avatar for acrocephalus
0
433
Member Avatar for Jollyyy100

Hi, can anyone help me with the code for a print button in vb.net. I tried researching on the code but could not find it, can anyone help me out. PLease and Thanks...

0
104
Member Avatar for miturian

So, I am sure everybody has been here, but just to describe it properly, a short story: I am writing a (to me) somewhat complicated program. By changing the input parameters I suddenly start getting a run-time error. After several hours of placing more or less meaningful printing-commands around the …

Member Avatar for miturian
0
151
Member Avatar for yup790

I have noticed that there isn't a thread where you are given puzzles. So i going to change that! Your puzzle is to make an exacutable c++ program that outputs "hello world" 20 times (try to be exciting). Rules: it has to be c++ it has to work I look …

Member Avatar for mrnutty
0
221
Member Avatar for nssltd

Hi sorry about this kind of nooby question but i have started learning java and i am making a Chat Application, i am making it using the killer game programming in java book. But i have ran into a problem. The Code asks me to import [CODE]import javax.servlet.*; import javax.servlet.http.*;[/CODE] …

Member Avatar for Ezzaral
0
132
Member Avatar for Ultratermi

Hey. Ive searched for a while now and Im finding every time the same. -> e.g. [url]http://www.daniweb.com/forums/thread223715.html[/url] Okay - sounds good. Its transparent, but not click through-able. Why? In the thread I wrote above it is. I found many other sites which tell me the same. It should be click …

Member Avatar for Ultratermi
0
77
Member Avatar for vicG

Hi all, User table has an ipAddress column, & userid column as pk...maybe more than one user has the same ip! UserActivity table has userid as fk, and activityid which is fk to activity table So, I'm trying to get a count of how many rows in the user activity …

Member Avatar for vicG
0
143
Member Avatar for newton_LA

C program to construct a divided difference table for f(x) = cos x based on five points which are 0,1,2,3,4. Use the coefficient ak (k, cos k). Round up to 7 decimal places. Derive p1(x), p2(x), p3(x), p4(x). Please I need any help I can get on this program. Whatever …

Member Avatar for tito4life
0
1K
Member Avatar for Rizzuti

I was wondering if you guys can help me with this! I'm trying to display data on the items_Deltails.php page from classifieds1.php page using $_GET. I'm able display all data from [B]items[/B] table without any problem, however when i try to display the field pix from the [B]images[/B] table it …

Member Avatar for Rizzuti
0
152
Member Avatar for infosoft

how could we configure contact grabber with php do any one of have the script

Member Avatar for raju_boini525
0
82
Member Avatar for raylein

I don't know what I'm doing wrong, but it won't update ever. I know all the variables work because I've posted them in several places, I've echoed them out, copied that and put it into the query and it's worked, and I've copied it to an entirely different page and …

Member Avatar for raju_boini525
0
87
Member Avatar for musicalsailor

I'm running on a Linux machine and can't get FTP uploads working. Here's my script: HOST='ftp.name.com' USER='username' PASSWD='mypwd' FILE='f1020811' DIR='/data_dir/send' echo ************************************************************** echo * Attempting FTP * echo ************************************************************** ftp -n -u -d ftp.name.com <<END_SCRIPT quote USER $USER quote PASS $PASSWD put f1020811 END_SCRIPT I noticed using $HOST was rejected. …

Member Avatar for musicalsailor
0
98
Member Avatar for Danny_501

Hi all, I need to get a random number from the following: [CODE]#define RAND(min,max) ((min)+(int)((double)(max-min+1)*rand()/(RAND_MAX+1.0)))[/CODE] but when I print it out it just prints the value of min. [CODE]printf("%d", RAND(10000000,99999999));[/CODE] please help! thanks in advance.

Member Avatar for Danny_501
0
144
Member Avatar for Tarkenfire

Okay, so in all honesty, I began learning Python about 2 days ago, so this is a rather noobish question(well, I've programmed in other languages, so it's not THAT noobish), but I'm making an IRC bot and can't figure out how to make it so that a line of code …

Member Avatar for Tarkenfire
0
216
Member Avatar for sg552

Hello everyone, I have a working page in PHP. What this page do is student will keyin his/her ID and press Papar (Display in English) and th result will be shown in the same page in a lightbox. The problem is (well not really a problem) the page need to …

0
56
Member Avatar for mrkaran

i have a code to check lexeme is keyword or not: [CODE]void Is_Keyword_Or_Not() { char *keywords[]={"INCLUDE","VOID","MAIN","i","var","cin","cout","if", "then","else","and","or","not","loop","exit","when", "while","until"}; int j=0; flag=0; for (j=0;j<18;j++) //search for keyword & # of keywords = 18. { if (strcmpi(lexeme,keywords[j])==0) { temp.assign(lexeme,INCLUDE); flag=1; break; } } } [/CODE] i have defined macros like: INCLUDE 1 …

Member Avatar for mrkaran
0
88
Member Avatar for HansK

Hi there, most interesting forum and I hope I can get some help here. I have 2 record sets, one which looks up a product by SKU and the table contains a field with "related SKU's" in a comma separated text field. I have created a Var with the "related …

Member Avatar for HansK
0
132
Member Avatar for cyman73

Hello all, How can the sound card be Enabled/Disabled with Vb Code? Is this possible through API call? or maybe registry edit? My app. needs to disable sound card while running then enable afterward. This app will be running on a dedicated system. Using "black box" object. The object's method …

Member Avatar for samju
0
268
Member Avatar for Mylsamy

Hi all, I want to display the Number values instead of String. For example, if the User gives the Input as fifty, i displayed the Output as 50. Is any existing method in Java to call for displaying Numbers? Or how can i solve this problem? Thanks in advance and …

Member Avatar for javaAddict
0
136
Member Avatar for Aanchal89

[code]import java.sql.*; import javax.sql.*; import javax.swing.*; import java.applet.*; import java.awt.event.*; import java.awt.*; public class Display extends JFrame implements ActionListener { JLabel l1; JTextField t1,t2; JButton b1,b2; public Display(String s) { super(s); l1 = new JLabel("user name"); b1 = new JButton("submit"); b2 = new JButton("reset"); t1 = new JTextField(20); t2 = …

Member Avatar for JamesCherrill
0
105
Member Avatar for JamesCherrill

I have a problem involving Generics. Here's a simplified version: Suppose I have a generic method to add a new element to a (possibly empty) ArrayList, like this: [CODE]<T> void addNewTo(ArrayList<T> list)[/CODE] What I need to do is to determine the correct class for the ArrayList elements so as to …

Member Avatar for JamesCherrill
0
192

The End.