199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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, … | |
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 | |
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 … | |
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] … | |
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 … | |
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 … | |
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) { … | |
[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" … | |
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] … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 // … | |
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] … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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....... | |
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 … | |
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. … | |
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 … | |
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 … | |
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... | |
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 … | |
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 … | |
![]() | 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] … |
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 … | |
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 … | |
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 … | |
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 … | |
how could we configure contact grabber with php do any one of have the script | |
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 … | |
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. … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 = … | |
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 … |
The End.