199,114 Archived Topics
Remove Filter ![]() | |
Alright... So I created a strange little query that takes an abbreviated currency amount and converts it into raw numbers. It you were to enter $2.5k, it would give you "2500" in return. Unfortunately, I'm having an issue passing values into the function. Previously, I was just having an InputBox … | |
Is there a systematic method to analyze the time complexity of a program strictly from output data such as run-time, the number of data swaps, data comparisons, etc? For example... [icode] Data Size | Run Time | Comparisons | Moves --------------------------------------------- 1000 | 0.00 | 15448 | 23965 10000 | … | |
Hi, How to add an [B]existing form [/B]of old project to a new project? Which extension type files to be added to work that existing form correctly? I actually need [B]frmContacts.vb[/B](because a lot of textboxes and other controls are there) which I have added now to my New Project. Since … | |
Hi I am getting error Error 1 Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (are you missing a cast?).Error is at the line string def = hash[elem.Word];.Can anyone help me with this . Thanks [Code] public Hashtable AllWords() { Hashtable hash = new Hashtable(); SimpleFrenchEnglishDictionary arr … | |
I have some white text I am putting over a very light background. Is there anyway to outline the text in black? After some googling it looks like there are some pretty complicated solutions, but I am looking for something like a check box that says "outline". Is there such … | |
im my java SE application i have a messagebox prompting asking the user to press OK. i want to make the user wait a certain time and the messagebox will automatically close in a certain time. i read on swing.timer about this. but im bit confused with the implementation. how … | |
Hello I made a program that submits a paragraph to a webpage, using mechanize. Its all working great, except when I view the paragraph, all the newlines have disappeared and it makes all the paragraphs all block up together into one long sentence. But when I open up the page … | |
Bleh, that title seemed a bit too long to me...couldn't really think of a shorter way of wording it though. Right, I'll try and encapsulate the problem as best I can. I'm currently, as per the title, attempting to create a c++/DirectX multiple windowed swap chained system which can handle … | |
Hi all, I want to make a string like this: [QUOTE]SELECT * FROM "Alexander de Groot"[/QUOTE]. So i can later execute that sql statment. Im only having a problem creating the string. Let me show you: [CODE]string sTableName; char *SqlTableName; sTableName = DBLookupComboBox1->Text.c_str(); SqlTableName = new char[sTableName.size()+ 20]; strcpy(SqlTableName,"SELECT * … | |
I have this very weird project that my boss gave me. Given my cws.sql file inside "C:/", i need to create a batch file wherein it will automatically create database cws; and use cws; in MySQL Server. Hope Someone can help me. :'( | |
I have been given a report that is generated by running the following query from a macro ( slightly edited to simplify )and I have not had a great deal of experience with Access. The report is grouped by Data.Type and sorted be Data.Date [ICODE][COLOR="Green"] SELECT DISTINCTROW Data.Type, Data.Date, Data.Code, … | |
I set the .Interval of a timer to "10", which I believe means 10 milliseconds. Since there are 1000 ms in 1 second, if I count to 100, I should have 1 second, right? The problem is, if I use a physical stop watch and compare it to my program, … | |
can anyone pls tell me how can i read the contents of a file in reverse order....ie i'm storing the num from 1 to 100 in a file but i wen i read thre content it shouls start from 100 99 to 1..i tried to sort /r but it does … | |
How, in C++, can i convert a video from 1 format to another? Currently the only way i know how is by using an external exe called FFmpeg and using the function [code=c++]system("ffmpeg -i file.avi file.mp4");[/code] | |
Basically i want to make an online shop, only with like 5/6 products in it. but i dont want a checkout, i basically want it were the buyer can add something to a cart, enter their name, and 2 other information fields (ie phone number and collection date) and then … | |
I'm learning JavaScript for software that I'm learning it's SDK. I have a weak understanding of programming and because of that I would like to know the basic JavaScript foundation when coding that applies to no matter what your scripting in this language. A Anyone have any guidelines PDF or … | |
hello to all, i am learning c++ and while looking at some code, i came upon this: *(float*) and *(DWORD*). for example [ICODE]#define adress_1 0x00AA8B20 *(float*) adress_1 = 5000000; [/ICODE] so can you explain what the *(float*) and *(DWORD*) do. and i did try and search on google but didnt … | |
hi i am doing code on single linked list in that i hav to save elements of my list to a file and then load it. The file is not loading pls check this code [CODE]#include<stdio.h> #include<stdlib.h> struct llist { int info; struct llist *next; }; typedef struct llist linked_list; … | |
Hi. I have this strange idea and I want to know if it's something. It's supposed to be a solution for hosting files/sites or running web services without a server (so that you don't have to use a costly server or have to keep your pc turned on all the … | |
Hi, I am new to this website (and C++) so pls forgive any newb errors / convention mistakes. I have a project that contains both a normal source file (PB.cpp), associated header (PB.h) and a windows form (GUI.h). I'm trying to pass a variable from the form to a function … | |
hi everyone. i get this error in my porject at runtime.actualy it was working fine. i added the jdbc jar to my project and here what i get at runtime [QUOTE]java.lang.NoClassDefFoundError: de/vogella/mysql/first/test/Main Caused by: java.lang.ClassNotFoundException: de.vogella.mysql.first.test.Main at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown … | |
I am wondering if there is a way I can create affiliate tracking links that let me know when a user has filled out a form and came from an affiliate site. Heres my situation...on my site I do not charge fees up front. The client fills out a form … | |
hey guys, this is me once again moving around data access. my problem now hide in the import process of an excel file that would be inserted into sql db. the problem is the excel file may be updated or changed and i have to periodically import it and perform … | |
I've created a second form for my project.How can I show it? I find it's different from the VB6.The form.show , visible = true ... are not working now. How can I do this? | |
Hi, I have a button with an image in it. When I reduced the width of the button, the image was centered in the button which I do not want to happen. I want it to be left-aligned in the button but have no idea how and searching hasn't yielded … | |
I found an application that gets the source from a webpage. That worked fine. I tried converting it to an applet, and it works great in netbeans. The problem is when I try to run it in a browser, it does nothing. As you can see from the code, I … | |
I would like to know how to pass object array (object[]) between classes with the code bellow, which now sends string only: [CODE]public delegate void MessageDelegate(Object sender, MessageEventArgs e); public class MessageEventArgs : EventArgs { public string Message; public MessageEventArgs(string msg) { this.Message = msg; } } public interface IController … | |
Hi there, so im trying to get something done for my class. Im supposed to implement something where you can enter details of a person, validate them, then store them as a array, and allow you to add more later. What I dont understand is how to store a group … | |
hai all, i want to rewrite url in myproject. the actual url is [URL="http://test.com"]http://test.com/cat_product.php?cid=2[/URL] i want this url change to [URL="http://test.com"]http://test.com/cat_product.php[/URL] how do i write .htaccess file. i tried like this [QUOTE] <FilesMatch "\.(htm|html)$"> SetHandler application/x-httpd-php </FilesMatch> <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine on RewriteRule ^cat_product-([0-9]+)\.php$ cat_product.php?cid=$1 </IfModule>[/QUOTE] but it is … | |
Hi all, I'm using a while loop and looping through data in a database. When I loop through, instead of looping through once it loops through several times. How can I get it to just loop once per field for each user? [CODE]$query = 'SELECT persinfo.userId, persinfo.url, persinfo.email, men.password FROM … ![]() | |
My task is to create a translation.xslt file that will use the wordlist.xml as input to transform into another XML file(translation.xml). I have attempted some coding but stuck how to do the rest. I am not sure how to create a <total>, he value of <total> is the total number … | |
Hi to all, I am new to java script.I want to highlight the search terms in text area.I want to do this by using regular expression.When eve i give the value to regular expression directly it works well.But if i give it frim variable it doesn't work well.My code is … | |
Hi all... I am a developing a website using a joomla. I need to display a content but the should filter according to the date. I need only display content which are in between current date and before 30 days. my current mysql quary is SELECT * FROM events WHERE … | |
hi.. im having a problem with a MDI forms..Im building an app where i need to call an MDI form in a MDI form.for ex., if MDI1 is my first MDI form, then i want to call the second MDI form, say MDI2, in the MDI1..that is MDI1 should work … | |
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\xampp\htdocs\phplogin_v2.3\register.php on line 108 Insertion Failed: The Code [CODE]include 'dbc.php'; $err = array(); if($_POST['doRegister'] == 'Register') { /******************* Filtering/Sanitizing Input ***************************** This code filters harmful script code and escapes data of all POST data from the user submitted form. … ![]() | |
hello...i am using wamp server. i donot know how to rewrite url. i dont have a bit of knowledge to use .htaccess. please tell me how to write. first of all can we change any thing in apache2 folder which is server? and next i was directly placed .htaccess.txt file … | |
here I have [CODE] //functions.php <?php session_start(); function loggedin(){ if(@$_SESSION['username']){ @$username = $_SESSION['username']; return true; } elseif(@$_COOKIE['username']) { @$username = $_COOKIE['username']; return true; }else { return false; } } function getuid($username) { $res = mysql_query("SELECT id FROM users WHERE username='$username'"); if(mysql_num_rows($res)) { $row = mysql_fetch_assoc($res); return $row['id']; } } function … | |
Hi, I have difficulties to get variable from other class. See class Mod01 and Mod02 below, in class Mod02 I will get ct1=0, but I want ct1=250. Any help will be gratefully. Thank you. --------------------------------------- [code] final class Mod01 extends FullScreen { int ct,coba; String hits; [B][COLOR="Red"]public int test() { … | |
Hi guys, I am using this tutorial: [url]http://www.w3schools.com/ajax/tryit....=tryajax_first[/url] where if you click a button, the the content of my div container is replaced with a message saying thank you for your submission. However, you cannot assign this to a submit button as it just ends up refreshing the page. I … | |
Hey guys, Could you help me understand how to implement [CODE]mysql_real_escape_string[/CODE] to prevent injection in this code ? [CODE] <?php if(loggedin()){ echo "You are already logged in."; } else { if($_POST['submit']){ if($_POST['username'] && $_POST['password']) { $username = $_POST['username']; $password = $_POST['password']; $password = md5($password); $res = mysql_query("SELECT * FROM users … | |
Hi friends, Is this possible. i want to make link in this list. if you know pls say your suggestion. <select> <option>Report</option> <option><a href="program.php">Billing information</a></option> </select> | |
I am going some exercises and just want to make sure I am doing it right. It says for the following...Assume StackType is sent to int and STACK_CAPACITY is set to 5. Give the values of myTop and the contents of the array referred to by myArray in the stack … | |
hi.can anyone give some suggestion on this? I need to do for a system that calculate the marks. At first, I had created the radio buttons and textboxes for user to insert the marks, but it seems not so user friendly. So I decide to change them into automatically calculate … | |
i write in a.jsp page [code=java]String s1="amrita"; session.setAttribute("ana",s1);[/code] after some statements i write [icode]out.print=(String)session.getAttribute("ana") //it prints the value[/icode] in page b. jsp [icode]out.print=(String)session.getAttribute("ana") //it prints null[/icode] | |
I am having a proplem checking the stu_uid for a specified stu_password. I am not really sure what error is. When I build the db for the first time and login as a student it says that unknown user name but it is all in the table and passed to … | |
Hello Everyone, I know that you pas variables with the $_GET method, but i am unsure as to how or why. When is this action called for? Thanks for helping me clear up my confusion. David ![]() | |
I have added a reference to dll file in VS 2008. Yet I still get an error. Not sure why, do I have to do some other changes to get it to work? | |
Hey guys, recently i've tried to compile this command line email program I get the error: cannot find -lobjc ld returned 1 exit status Here's my code. Any Help Appreciated. [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <winsock.h> #define NETWORK_ERROR -1 #define NETWORK_OK 0 FILE *fp; char buffer[200000]; char … | |
heyyy..i wana develop game in open gl using C++..bt cant gettng any idea... plz gv suggestion...abt car race game oor any other | |
i've backup data in text file and it needs to be restore on previous database using vb, is it possible? |
The End.