199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for treyb

I am trying to ftp on a windows system using a file with the settings in it. This is what is in the file: Address.to.device username password "quote" "site reboot" quit This will reboot a camera and it works. I even have it running on powershell script and it works. …

Member Avatar for treyb
0
326
Member Avatar for krm08

Hello Everybody, I want to I want to perform dos command (copy) in vb.net.I want to do it on button click event.Invoking the command using .bat format is not suit for me, because the source and destination of copying depending upon the selection of source and destination(that's done by users …

Member Avatar for mirza.imran
0
2K
Member Avatar for chudapati09

I doubt this is the right place to post this question, but I didn't know where else I can put this. It does kinda involve PHP, but I've asked this question on Stack Overflow and didn't get much help. If this is the wrong place to put this, please do …

Member Avatar for pritaeas
0
842
Member Avatar for VengefulToast

Okay, so I have a text file like this: I Did It Your Way, 11.95 The History of Scotland, 14.50 Learn Calculus in One Day, 29.95 Feel the Stress, 18.50 Great Poems, 12.95 Europe on a Shoestring, 10.95 The Life of Mozart, 14.50 And, as you can see, there are …

Member Avatar for NormR1
0
254
Member Avatar for rlord3534

My program won't run.. I keep getting a nullPointerException but I have no idea why.. Thanks! The program is supposed to create a simulation for a line ---------------------------------------------------------------------------- public class Prog5 { /** * @param args */ public static void main(String[] args) { Simulation simulation = new Simulation(10); simulation.run(); } …

Member Avatar for NormR1
0
207
Member Avatar for JQadrad

Hey all, I am working on a project with an FPGA but I need serial communication between the FPGA and the desktop since the memory of the FPGA is limited and I need to be able to send longer inputs to the FPGA by using buffers on the desktop. After …

0
175
Member Avatar for nicolemarie

class P3 { public static void main (String[] args) { makeP3Picture(); } public static Picture makeP3Picture(Picture source) { String fileName = FileChooser.pickAFile(); String sourceFile = FileChooser.getMediaPath("butterfly1.jpg"); Picture sourcePicture = new Picture(fileName); Picture targetPicture = new Picture(source.getWidth()*3, source.getHeight()*2); source.explore(); source.copyPhoto(); source.show(); return sourcePicture; } } im getting the error: "makeP3Picture(Picture) in …

Member Avatar for stultuske
0
788
Member Avatar for bo0ga

Say I have a website with a form. The user would fill out a review about my company in my form. When the user presses submit, the data from the form on MY website then gets sent to an external review website like Google Places and gets submitted there. Is …

Member Avatar for Biiim
0
211
Member Avatar for magicmarkuk

I am trying to incorporate a number of small pieces of php code into a Wordpress database (for banner ads). Unfortunately the template I am using is not designed to take php code but rather html or javascript. I wondered if there is a way to amend the template file …

Member Avatar for Biiim
0
143
Member Avatar for rrahulrroshan

Hi I want to have 2 select dropdown based on the value of 1st drop down without submit button. But I m not getting dynamically the selected value in 1st drop down eg: year , so that i can use it for next selection. can anyone plz help me Eg: …

Member Avatar for gokulllrajjj
0
214
Member Avatar for gotboots

Hi All Im trying to get this to work, but can only get it to work without putting the form tags in, and wont work with more than one set of the inputs. the below is the result when i use ajax to search for item names, then want to …

Member Avatar for gotboots
0
3K
Member Avatar for iRamble88

#//Here is my simple class for MyCar# public class MyCar { private int odometer; private int speed; private int gear; public MyCar() //send values to member variables in this default constructor { odometer = 0; speed = 0; gear = 0.0; } public MyCar(int od, int sp, int gr) //constructor …

Member Avatar for JamesCherrill
0
257
Member Avatar for jinglylime

Hi,I have encountered a problem while doing the animation for my program. I wanted keep adding a another shape on top of another. But for evry second image the background changes to black. Can you point out what I've done wrong. Thanks. #include <stdlib.h> #include <stdio.h> #include <time.h> #include <GL/glut.h> …

Member Avatar for emilo35
0
240
Member Avatar for sonicx2218

[Link Anchor Text](http://oi44.tinypic.com/bwfaf.jpg) Hey dudes! I'm pretty crummy with Java layouts, so I was wondering if anyone had time to help me. The rather crude drawing I made is the layout I had in mind. I wanted 3 rows, with 1 gridlayout on the top and bottom, and in the …

Member Avatar for JamesCherrill
0
189
Member Avatar for ponkan20

hi. i have this problem on how to calculate the amount due in our system in VISUAL BASIC.NET . in returning module, (this is for penalty purposes), if the borrower didn't return the book on time, the system must automatically generate the amount due . one daY is equivalent to …

Member Avatar for poojavb
0
1K
Member Avatar for Sudha Granger

void doc::add_title() { doc d; fstream f; int med_lic,flag=0; char new_title[20]; cout<<"\n\t\t\tADD NEW DOCTOR TITLE\n"; cout<<"\nEnter the Doctor's medical license number :\t"; cin>>med_lic; f.open("doctors.da t", ios::binary|ios::in|ios::out); while(f.read((char*)&d,sizeof(doc))&&flag==0) { if(d.ret_med_no()==med_lic) //d is an object of class doc { cout<<"\nEnter the new title:\t";//ret_med_no() is an accessor function used to return a value …

Member Avatar for Sudha Granger
0
288
Member Avatar for worldindus

hello all! I have this SQL code that I am supposed to write and am worried that my code may be wrong. I am fairly confident that the first 2 questions are correct but after that......who knows! I have attached an ER diagram( which is acutally really messed up...but whatever) …

Member Avatar for poojavb
0
280
Member Avatar for Vega_Knight
Member Avatar for Jx_Man
0
391
Member Avatar for ing

Hi, I can't figure out what I'm doing wrong here. It must be the simplest thing, but the script is meant to add asterisks only after the numbers 1, 2, or 3. Instead it is appending one to each number. Please help. <SCRIPT LANGUAGE="JavaScript"> var number=1; var is1or2or3; function checkIf1or2or3(n){ …

Member Avatar for ing
0
113
Member Avatar for jhedonghae

does anyone know how to make reports in vb.net become a daily, weekly and monthly basis?

Member Avatar for poojavb
0
160
Member Avatar for hwoarang69

iam trying to use only one function to get the value of add and sub. if there is a label i want to ignore it. file.txt ------------------------ label: add $1,$2,$2 sub $1,$2,$2 ----------------------- int main() { char line2[20]; char tem_line2[20]; char *tptr; while(fget...line2) //read one line and store in char …

Member Avatar for histrungalot
0
255
Member Avatar for tendaimare

I ve got a propertyin my class that I have given the task of holding the username of the person that logged in and I would want to access that username in another form anoother time.How do I go about this? this is the code for my property: Private _LogInUser …

Member Avatar for poojavb
0
106
Member Avatar for nee_88

why is the output of the below program is coming out as 'unequal' ??can anyone please explain?? #include<stdio.h> void func(char *); void main() { char *q; char *p; p="hello hii"; func(q); if(p==q) printf("equal"); else printf("unequal"); } void func(char *pi) { pi="hello hii"; }

Member Avatar for rubberman
0
105
Member Avatar for hay123

This is my code so far: #include <iostream> #include <cmath> #include <cstdlib> using namespace std; int main() { float numbers[15]; float sum, lowest, highest; float min, max, range, stDev, mean, median; int indexOfMin; float above = 0, below = 0; sum = 0; for(int testNum = 0; testNum < 15; …

Member Avatar for histrungalot
0
260
Member Avatar for DaveyboyPurcell

I have the following xslt which copies selected element of xml but omits the root node how do i get the root node output as well? <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:output method="xml" indent="yes" version="1.0" encoding="iso-8859-1" /> <xsl:template match="/"> <!--<xsl:copy-of select="itemList" />--> <xsl:for-each select="itemList/saleItem"> <xsl:variable name="status"> <xsl:value-of select="status"/> …

0
117
Member Avatar for triumphost

I have a button created as follows: ~~~ HWND License; HBITMAP MainButtons; Case WM_CREATE: License = CreateWindowEx(WS_EX_TRANSPARENT, L"Button", L"License", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_BITMAP, 26, 77, 75, 23, hwnd, (HMENU)ID_LICENSE, hInst, 0); MainButtons = (HBITMAP)LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_MAINBUTTONS), IMAGE_BITMAP, 0, 0, LR_SHARED); SendMessage(License, BM_SETIMAGE, IMAGE_BITMAP, (LPARAM)MainButtons); break; ~~~ …

0
75
Member Avatar for renzlo

Hi All, I hope someone can help me. I have loaded a page in my webBrowser control, the page has a table, please see attached for screenshot and partial page source code. I want to load specific column of that table to datagridview, how can I do that? Thanks in …

Member Avatar for renzlo
0
138
Member Avatar for phorce

Hello, I'm having trouble with something.. I have a vector of doubles and I need to convert the vector to an unsigned char so then I can write the contents to a text file. I can do this when reading the data from a text file, just not from a …

Member Avatar for m4ster_r0shi
0
136
Member Avatar for Rasool Ahmed

Hi gueys, I am programming a class compenent liberary in C++ CLR, but I have a problem with exception throwing. this is the code that call the exception: `throw gcnew ReadStreamException(Error);` and this is the exception class: public ref class ReadStreamException : Exception { ReadStreamException(String^ Message) : Exception(Message) {} }; …

0
115
Member Avatar for VengefulToast

Will someone please tell me why I keep getting my custom file not found exception? The file is spelled correctly and is in the same directory of my java file. I am programming on Eclipse on Mac OS X. Here is my source: // Dillon Sheffield // Lab 10a // …

Member Avatar for VengefulToast
0
284
Member Avatar for jwill222

I meant to post this in the C forum and not the C++ forum. Below is the link to a picture of the debug error window [url]http://www.flickr.com/photos/7629837...in/photostream[/url] It's a program that i'm doing and I keep getting this error here's a link to the programming problem. Its' Number 3 [url]http://books.google.com/books?id=bSy...%2B%2B&f=false[/url] …

Member Avatar for jwill222
0
276
Member Avatar for _Nemesis_

Hi guys, I have been trying to implement the A* algorithm in C++ and would like to make use of the priority_queue structure to hold the open and closed lists of nodes. The problem is, all of the algorithms that I have found use the equivalent of a "search/contains" function …

Member Avatar for _Nemesis_
0
1K
Member Avatar for userct

Stack-based Evaluation and Simple Subroutine Linkage Hello, I have to Write a program that evaluates 3x2 – 2y2 – 5xy + 20x – 16y + 100 for integers x and y that the user enters. Prompt the user for x and y. Use pread from chapter 26 for this. Use …

0
79
Member Avatar for nee_88

Please refer to the code below.It is used to extract files from a given directory, for further processing. #include <dirent.h> #include <stdio.h> #include <string.h> int main(void) { int i=0; struct dirent *direntry; dir = opendir("E:/muzikk"); if(!dir) { printf("Error: directory did not open!\n"); return 1; } while((direntry=readdir(dir))!=NULL) { printf("%d %s\n",i,direntry->d_name); i++; …

Member Avatar for nee_88
0
251
Member Avatar for frivolous

Hi, i am trying to run this code. previously it was giving error that "No module wx". then I download wx module and now it is giving this error : Traceback (most recent call last): File "C:\Python24\player.py", line 2, in -toplevel- import wx File "C:\Python24\wx\__init__.py", line 45, in -toplevel- from …

Member Avatar for ZZucker
0
695
Member Avatar for Labdabeta

I have an array of data of the form: union colour { unsigned int argb; struct{ unsigned char a; unsigned char r; unsigned char g; unsigned char b; }bigendian; struct{ unsigned char b; unsigned char g; unsigned char r; unsigned char a; }littleendian; }; struct sprite { int w,h;//stores the …

Member Avatar for Labdabeta
0
700
Member Avatar for Violet_82

HI there, I run into a very annoying problem. On one of the sites I am working on, I have a series of landscape and portrait pictures to show. The landscapes are ok as you can see from here if you click on the first thumbnail http://antobbo.webspace.virginmedia.com/petras/test/egypt.htm but if you …

Member Avatar for Violet_82
0
92
Member Avatar for f4fjks

hi guys! today i tried file writing through VC++ 2010. suddenly a point stroke in my mind to create a file which may not be read by notepad or it gives error or some wrong output as it is mostly seen on opening a pdf file in notepad. for this …

Member Avatar for NathanOliver
0
251
Member Avatar for Behseini

Hi Everyone, I am trying to creale an application which is supposed to display some line trace.What I have is the lenght of lines and the angle (Azimut) degree of the Line for example 45 degree. Can you please let me know how I can do this? I also have …

Member Avatar for Behseini
0
10K
Member Avatar for triumphost

I'm trying to clip my Button with the following code but it does not work at all.. #pragma comment(linker,"\"/manifestdependency:type='win32' \ name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \ processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") #pragma comment(lib, "Gdiplus.lib") void RegionCloseButton(HWND hwnd) { CloseRegion = GetDC(hwnd); CloseRegionMem = CreateCompatibleDC(CloseRegion); Gdiplus::Graphics graphics(CloseRegion); Gdiplus::FontFamily fontFamily(L"Courier New"); Gdiplus::GraphicsPath path; Gdiplus::PointF Origin(5, 5); path.AddString(L"X", …

0
192
Member Avatar for jamie6441

I'm currently writing a program where the program reads in words from a .txt file and stores the data into an array. The user then has the ability to enter in entries into array and the program then writes everything to the txt file where it can be read again. …

Member Avatar for jamie6441
0
3K
Member Avatar for djbuclkle

Hey guys, can't see what is wrong with my code, I keep getting the error Status: 500 Internal Server Error Content-Type: text/html <html><body><h1>500 Internal Server Error</h1></body></html> [CODE]import httplib import sys import time #Initial connection to the server def connectingToServer(port, message, path): connection = httplib.HTTPConnection('rpc248.cs.man.ac.uk', port) headers = {'Content-type': 'application/xml', 'Accept': …

Member Avatar for bishisht
0
321
Member Avatar for frivolous

Given below is the error which I am getting while running the code (which is in my previous post http://www.daniweb.com/software-development/python/threads/419674/import-wx-error ) in python 2.6. Can anyone tell about this error? .. i am unable to understand it. Traceback (most recent call last): File "C:\Python26\music_player_v1\player_skeleton.py", line 153, in <module> frame = …

Member Avatar for bishisht
0
245
Member Avatar for ganeshrnet

Friends, kindly help me how to update the progress bar in WX Widgets python while copying folder in windows... i tried searching a lot.. please do help me out.. Thanks in advance! Ganesh R

Member Avatar for bishisht
0
893
Member Avatar for Mariel Pineda

Please help what is missing here i cannot get the data of row that I check on the checkbox? <? include("connect.php"); include("home_order.php"); echo "<div><table border=0 cellspacing='15' align=center id=table1> <tr> <th>Title</th> <th>Price</th> </tr>"; $code = $row['Code']; $getcheck=$_GET['check']; if ($getcheck){ $result= mysql_query("SELECT * FROM books where Code='$code'"); while($row = mysql_fetch_array($result)) { echo …

Member Avatar for broj1
0
389
Member Avatar for Mariel Pineda

I cannot update row datas.I cannot find what is wrong because my query in updating is 100% right for me.I hope so..But here is my codes so you can help me. this is home_admin.php <? include("connect.php"); include("addfunc.php"); echo"<link rel=stylesheet type=text/css href=design.css />"; echo"<center><img src=top.png></center>"; if(isset($_GET['add'])){ echo "<table align=center id=table> <tr …

Member Avatar for fobos
0
160
Member Avatar for madhan

Hi – I have an inline jQuery function that selects the table cell data onclick. The jQuery part works well. I have added code snippet of jquery. $(function(){ $("#myTable td").click(function() { $row = $this.closest('tr'); case "name": alert($row.find(".name").html()); break; etc Instead of displaying the name on the client –side alert message, …

Member Avatar for blocblue
0
2K
Member Avatar for orar

#include <iostream> #include<string> using namespace std; struct people { string fname; string lname; void input() { cin>>people.fname>>people.lname; } void output() { cout<<people.fname<<people.lname; } }; struct birthday{ int day; int month; int year; void output() { cout<<day<<birthday.month<<birthday.year; } void input() { cin>>day>>month>>year; } }; int i; int main() { cout<<"Birthday Program"<<endl; …

Member Avatar for orar
0
374
Member Avatar for rikb53

guys - i cannot figure this one out. i keep getting the "wrong number or types of arguments in call" error & for the life of me can't figure out why. i've got dozens of other programs doing way more difficult stuff than this so, i'm officially stumped. 4 parameters …

0
103
Member Avatar for longsaver

I had been code so far for the class of Calculator program (attacked zip file) Here is my code below:**Please Help!!!!** namespace Calculator { public class Calculator { public class Calculator { public decimal currentValue; public decimal displayValue; public decimal btnNumber; public decimal newValue; public string Add; public string Subtract; …

Member Avatar for Mitja Bonca
0
155

The End.