64,152 Solved Topics
Remove Filter ![]() | |
I have a page which displays images for products whose product IDs are stored in a database table. The images are named by the product IDs. I have constructed a basic CMS so that my client can upload product prices etc and she then uploads files using FTP software. The … | |
whenever i run the below program it asks me to type in a password and it should go through all that could possibly be the password but if i type in a password of 2 or more digits it only displays the first letter of the password. [CODE] #include <iostream> … | |
I've been trying all day to make an executable from python file using pygame too. I was doing okay until it got to the mixer module which is where it failed quite epically. I then searched the web a bit and came up with this as it was on the … | |
Dear DaniWeb, I am working on a source code editor using Scintilla and am currently having some issues with the CreateFile() function. It does not return an error when I am saving as a new file, but when I am saving changes to the current file, it returns INVALID_HANDLE_VALUE. I … | |
This is a very simple problem, but for some reason I can't get it to work. I need to empty a variable ( char fileName[MAX_PATH] =""; ). It needs to be to where when I use this that it sees if it equals "", this wont work if it equals … | |
Does anyone know of a decent Geo Ip Tool locator? I used to use GEOIPTOOL.com. It appears to no longer work. Have tried some others, but nothing was as close as the one above. Not even sure where to ask this, this was my best guess. Sorry if I'm in … | |
Hello, I am trying to completely remove everything from a table. I want to delete all of the rows which I am able to do. But when I delete all of the rows and add rows in again there is whitespace at the top of the table and I can't … | |
I have what I thought was a straightforward program. [code=Perl] #!/usr/bin/perl -w use strict; $a = 6; $b = 9; $c = 7; print $a . "\n"; print $b . "\n"; print $c . "\n"; [/code] I assumed this would display: [code] 6 9 7 [/code] and it does when … | |
I am new to Java, I am six weeks through a nine week class. I am having problems extending a class in my program. My assignment is as follows: Modify the Inventory Program by creating a subclass of the product class that uses one additional unique feature of the product … | |
it keeps saying theres an error on line 17, it says: "no match for 'operator!=' in 'a != password'" [CODE] #include <iostream> #include <cstdio> #include <cstdlib> using namespace std; int main() { string password; cout << "Type in a password: "; cin >> password; char a; a = 'A'; cout … | |
hey frnds, I want to add all the favorite names & its URL in litsview.I m able to get favorite names but not its urls. Can somebody know how to get URLs. Code below gets the favorite names- [code] Private Sub GetFavorites() Dim di As DirectoryInfo Dim lPos As Integer … | |
I made a program in Visual Studio that reads an End-Of-File signal. When you run in the debug mode, sending the signal closes the program. Running without debugging with ctrl + F5 means you can send the signal. However, when I compile in release mode and run the exe it … | |
I'm just starting python and it seemed reasonable to go ahead and learn the new version. I read that numpy wont be available for python3 until at least 2010. All I need is a basic "vector", "matrix", and some basic functions like matrix/vector multiplication. Is anything like this available for … | |
I am writing a program to compute the fastest/shortest path between locations (stored in a directed graph represented by an adjacency list). I am trying to create this adjacency list ("al") as an array of pointers to Vertex class objects, but I get the error " 'al' was not declared … | |
could anyone tell me if the last lines of the following are true or false? 1) int arrA[3] = {1,2,3}; int *ptrToarrA = arrA; int *anotherptrToarrA = arrA[0]; 2) int arrB[2] = {1,2}; int *ptrToarrB = arrB; int *anotherptrToarrB = *ptrToarrB; | |
Need you help. I want to use [COLOR="Red"]List [/COLOR] and I don"t know how I make definition and fill it Thanks Sergey | |
Hi, I need to know how to continue execution of code after throwing an exception. Has it got to do with where I place the throw statement? Thanks in advance. | |
Hi I have a bool function that should find whether a year was a leap year or not. But the function is not returning the correct years as a leap year. [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; bool is_leapyear(int year); int main () { int a = … | |
Hi, I am new to python. I am working on parsing text from a smi file . I want to extract only dialogues and want to ignore the timestamps (lines starting with <SYNC) for one case, e.g. Below is part of smi file <SAMI> <HEAD> <Title>ÁŠžñÀ» ÀûŸî ÁÖŒŒ¿ä.</Title> <Style TYPE="text/css"> … | |
Hi I stumpled upon some c-code, which syntactically is different from what I've seen before. [LIST=1] [*]first [CODE=c] void strreverse(char* begin, char* end) { char aux; while(end>begin) aux=*end, *end--=*begin, *begin++=aux; } [/CODE] Would this be the same as [CODE=c] void strreverse(char* begin, char* end) { char aux; while(end>begin){ aux=*end; *end--=*begin; … | |
So, I had a quick question about having multiple arguments being read into a bash script. In the following script, if I type "./myscript -h", it returns "Hippo.". However, if I type "./myscript -h -k", the script returns only "Hippo." I would like to know how to have the script … | |
Hi frnds.. i want to split a string into two parts.. example: $string="hyderabad,india"; i want to divide this based on , ... $string1= "hyderabad"; $string2="india"; plz help me asap...how can i get the output above... | |
I Am Using VB.NET 2008 Express Edition, and am trying to make a program that controls the mouse position with a joystick on the a nintendo classic controller, which returns a value between [ -.54 ] and [ +.54 ]. I wanted so that the position vertically of the mouse … | |
im a first time programmer learning python from books and so far ive learnt how to create and define functions but once ive saved them, im not sure how to call them so that i can use them. it works fine when i type in the function name but only … | |
I have that funtion for generate sequence to the style 'hqhzaw', 'ebcpm', 'qtch', etc. (only letters) and according to 'lenght' [code=cplusplus] string random_letter(int length) { string s; for (int i = 0; i < length; i++) { s += char(rand() % 26 + 97); } return s; } [/code] I … | |
I m trying to find the biggest number in the array but problem is that it keeps returning one [code] #include <stdio.h> int FindBiggest(int *arr,int choice) { int i; int num=0; for(i=0;arr[i]<=sizeof arr;i++) { if(num<arr[i]) num=arr[i]; } return num; } int main(void) { int arr[]={0,5,3}; int result; result=FIND_NUM(arr,BIGGEST); printf("%d\n",result); getchar(); … | |
[B]If you have seen igoogle,[/B] you will know what i am doing! The idea is that it [B]saves the co-ordinates of the box [/B]that you can move [B]into two text files :[/B] usercoord.txt-x axis & usercoord2.txt-y axis! can anyone tell me [B]how i can load the coordinates back, from the … ![]() | |
I have written a program that is supposed to take a string via a socket connection and echo it back. This program is also run as a service. I can get a client program to connect to the service if the client program is on the same machine as the … | |
do you know any win32 smart device project tutorial? | |
Hello once again, I've continued my engine somewhat and the rendering functions are now working fine thanks to Stinomus (feel free to applaud). However to enable it to load data I must use files containing strings describing objects in the game world. That in turn works perfectly and passes the … | |
Greetings, I'm new here and new to php. I've always just written in basic html but now want to utilize global header, footer, and left nav bar. From what I've seen I should be able to accomplish that with php. (My contact with siteaction suggested that I use Frames, but … | |
| |
i need to install 3 different cabs for my pocket pc application; .net framework, device specific SDK, application it self, respectively. i want to create a single cab and i want to install these three with that single cab. i know it is possible but i couldnt do it. please … | |
is it possible to use windows application as a custom action for setup project? All the custom action examples i have seen so far were class library applications. i wonder if windows application is also possible? | |
Hey all, I have a dumb question to ask :(.. I want to know how to create a shell script that reads input from the STDIN as default, but when [-o inputFile] is entered as an option, it will read the input from the inputFile. I want to do this … | |
Hey all, I have a problem with using the grep command... Im trying to parse lines in a file and read only characters t,c,a,g lower or upper case...but i keep getting trouble in the outcome: for example axxxxtc should return atc but it doesnt... heres my code: result=`echo $line | … | |
Hi all, I know how to drag and drop an image from one control to another. Code enough out there. It works fine, but I find the user interface a bit poor:'( I want my image to follow the mouse while held down. Found nothing that serves my needs on … | |
I am designing a website using ASP.Net 2.0 and C#2005. I have used a stylesheet for the background and the horizontal menu bar. I am dsplaying 4 menu items horizontally and below that I am displaying a Flash (.swf) banner. The page is being correctly rendered & displayed in IE8, … | |
I am getting the error in the title of this post when I try to run my ColorFactory class. Can someone tell me where Im going wrong? Heres my code: [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class ColorFactory extends JFrame { //Fields of the class private JLabel messageLabel; … | |
hi, my form combo box has a problem. the textbox in my combo box dropdown-textbox list does not validate any error at all. when i am pressing the submit button. when the fields have no given value the script that i embed does not validate the error at all. please … | |
im having problem setting values into a String array.. it must be with a setter method (yes this is homework). i have created a Person class which u can set name, age, gender and then i created a Teacher class which extends person and further allows you to set ( … | |
Hi All, I am using the .search function. [code=python] strValue="XXX" strTemp1="YYYXXX" strTemp= strTemp1.search(strValue) [/code] Python is not able to recognise the .search function. AttributeError: 'str' object has no attribute 'search' What should I import for this? Please help! | |
I made a database project. when I run it another pc it was run. but when I see the report (in my project) it show a error msg. it is : error number: 713 application defined or object defined errro. another thing it is exe when i run it another … | |
i have a code which Send updates to members in my site to their email Address. it working all the time,Suddenly i noticed its no longer working.. what might be the Course of this.... i used the function to send different updates to members and in all the sectors its … | |
Inorder to list all the workstations on a LAN, i have used NetServerEnum() after importing it. On running the program, it seemed to work fine. The two existing machines were detected correctly. However, i want the list to be refreshed whenever required (some refresh button). So i detached the wire … | |
hii.. I want to use a scriplet variable in javascript. i used <%! int i;> <% i=0; %> <input type="text" id="itemValue" onchange=changeValue('<%i%>')> it works fine if i give alert(i) in changeValue function. Otherwise it gives error i is undefined. Plz help me. I don't want to bother user by increasing … | |
Hi I am using jmf to build some music player and im want to add some equalizer that will "jump" up and down according to the music, how can I do it? | |
Hey I'm working on this program that tests you on a few questions. I enter the answer to one and it comes back and displays correct. For some reason though when the next question comes on it already comes back with a response saying the answer was incorrect. Here's the … | |
my basic question is that can i use the jquery insted of php syntax ? For example i developed a site in simple php, now i want to change the code for security perpose in jQuery.. Can I ?? |
The End.