64,152 Solved Topics
Remove Filter ![]() | |
Hi, I have a WebBrowser control that accesses an IP cam on the same network on form load. The camera has a login interface that I don't want to be seen. Is it possible to autocomplete the form once it pops up? Attached is a screen shot. | |
I need some help with inheritance in php. The code below does not produce any output. [CODE] Class Father{ var $car; Function inherited(){ print $this->car; } } Class Son Extends Father{ Function __Construct(){ $this->car='Benz';//I'm assuming here that car is still a property of father. } } $obj= new Father; $obj1= … | |
Hi All, I'm doing some serial I/O in VB.NET for a project at work. I'm new to VB.NET so I'm not sure if I'm doing this correctly. I need to determine what ports are free and which ones are in use. Presently, I try to open the port and if … | |
thanks a lot I need another code where once I enter a text into a text box i need the data to be transferred to MS access without erasing any data(a new record is to be created) | |
Is it possible to print a report in VB using only Data Environment. I mean setting the textboxes only to datasource and datafields in the record I really dont want to use codes (RS, things like that) cause you see, I'm kind of a rushing so i don't have much … | |
When I initialize my grid array I have no problem initializing it changing my row values like so grid[0][0] = 0; grid[1][0] = 0; grid[2][0] = 0; grid[3][0] = 0; ...but when I do this "grid[0][1] = 0;" or "grid[0][2] = 0;" and all the way up to 8 the … | |
Working with some OOP, I had an error that I have now traced to inistantiation of a class when the file in which the class is contained is included in any other file. Is this the default/normal behaviour of php, and how do I get myself out of this? I … | |
Dear All, I have a java application which link to db on another computer on the local lan. The problem I have install jdk_1.6_21 without any problem. Then I have paste mysql-connector-java-5.1.14-bin.jar in /usr/java/jdk1.6.0_21/jre/lib/ext. When I compile my program has no problem when I try to run I get this … | |
[CODE] int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst;[/CODE] but how can i call it , i mean like if i wanna cout << tm_sec ; how can i do that!! :confused: | |
I am trying to print a rectangle using this symbol *. When I print it, it draws an L. What is wrong with my code? [CODE]#include <stdio.h> void rect(int base, int height) { int x = 0,y = 0; while(x < height) { x++; if(x == 1 || x == … | |
[CODE] #include <iostream> #include <fstream> using namespace std; void LOGMSG(string test) { ofstream log; log.open("text.txt"); log << test.c_str(); } int main() { LOGMSG("this is a test"); LOGMSG("this is a test2"); LOGMSG("this is a test3"); } [/CODE] but it's only writes the last line i mean the last time i called … | |
I am getting 2 different compiler errors of the following: AoE2Wide.cpp(1089): error C2679: binary '=' : no operator found which takes a right-hand operand of type 'AoE2Wide::DrsItem' (or there is no acceptable conversion) 1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\vector(599): could be 'std::vector<_Ty> &std::vector<_Ty>::operator =(std::vector<_Ty> &&)' 1> with 1> [ … | |
Hi, I have this struct: [CODE]typedef struct empresa { char nome_empresa [20]; MORADA morada_empresa; int nif; int telefone; int anocriacao; char cae [20]; ESTAGIARIO estagiarios [MAX_EST]; int num_est; } EMPRESA;[/CODE] And an array of this struct: [CODE]EMPRESA empresas [MAX_EMP];[/CODE] My problem is that when i try to, manually assign values … | |
Is it possible to print the .00 in the Part_Price[] so it would say 11.00 instead of 11. [CODE]#include <cstdio> #include <cstdlib> #include <iostream> using namespace std; double Part_Code[10]={1,2,3,4,5,6,7,8,9,10}; double Part_Number[10]={101,202,303,404,505,606,707,808,909,1010}; double Part_Price[10]={5.00,4.00,6.00,8.00,10.00,11.00,15.00,20.00,3.50,12.50,}; double Number_OnHand[10]={20,15,10,50,13,5,9,7,15,6}; int main(int nNumberofArgs, char* pszArgs[]) { int Pnumb,i; cout << "Enter Part Code '1' thru … | |
I've searched all over for an answer to this, including this forum, so sorry if I missed something, anyway, I'd like to get a numerical code from extended characters like ß or ü and so on. I don't use them very much myself, as I'm a native English language user! … | |
So i am sort of stuck with this one, due to the error when compiling, noted in the title. (for uni by the way) But basically the idea is that if your aged between 5 and 18 you get the discount. If your over 18 and below 60 and you … | |
Dear All, I am a total newbie to Python and programming in general. I know I'd find more materials for Python2, but Python3 was a reflected choice. That said, I have gone trough: [URL="http://www.daniweb.com/forums/thread173960-2.html"]http://www.daniweb.com/forums/thread173960-2.html[/URL] and tried to assemble my spell checker, and ended up with the following code: [CODE]#!/usr/bin/python3 # … | |
I need to know if you can add a javascript within [CODE]my_window.document.write( ); [/CODE] as [CODE]my_window.document.write( '<html><head><script type="text/javascript" src="http://somesite.com/xxy.js"></script></head></html>' ); [/CODE] When i add the code as shown above, it gets printed inthe parent window, how do i overcome this, if there's no way to overcome this, please suggest a … | |
Hey I have a application with two forms: Form1 and Form2 now Form1 displays Form2, but how can I go back to Form1, I know it will not help if I create another instance of Form1. What I have Form1 [CODE] private void button1_Click(object sender, EventArgs e) { Form2 FormMain … | |
Hello, I have a program that was executed appropriately via windows command line, however when i separated the classes into different packages and tried to compile i got some errors. (No problems executing it via Eclipse. Compilation via command line is the problem) MyFrame.java:19: package Control does not exist import … | |
Hello all, header files seemed pretty simple when i first learned about them. until i actually tried to use my own. The program that i am attempting to create should simply add 1 to 24, but it is using a function found in a header file as a test. The … | |
Hi all, I'm not sure this thread is in a right category. I have a problem relating to software design. I'm developing a software to manage member ranking of a chess club in C#. The requirement is: "Each member has a title in club. The title of a member is … | |
Hello, I am writing a c++ program for windows using the API. My program needs to be able to get some text from the clipboard, import it to the program's scope as a string, and do work on the string. [what I have tried] [code] cout << GetClipboardData(CF_TEXT) << endl; … | |
Hello I have problem with adding two numbers that are less than 10 and their result is more than 10. [CODE]#include <iostream> #include <sstream> #include <string> using namespace std; typedef class node * node_pointer; class node { public: int num; node *nxt; }; string reverse (string str) { int len … | |
Hello VbForum, I`m migrating access database to vb.net. I have employee database with a few DateTimePickers, textboxes, and comboboxes In access I have formulas in textbox's control source like this, and it works: [code] txtDayCalculation =DateDiff("d",txtDateofHire, txtManualDate) txtYear =Int(txtDayCalculation/365) txtMonth =Int((txtDayCalculation-(txtYear*365))/30) txtDay =((txtDayCalculation-txtYear*365))-(txtMonth*30). [/code] So, I have trying to do … | |
[CODE]#include<stdio.h> #include<conio.h> #include<dos.h> #include<stdlib.h> void main() { clrscr(); while(!kbhit()) { struct time t; gettime(&t); textcolor(random(15)) ; gotoxy(23,3); printf("%d:%d:%0d",t.ti_hour,t.ti_min,t.ti_sec); sleep(1); clrscr(); } getch(); }[/CODE] | |
Hi everyone! I recently created a MySQL table that has three columns: (1) integer ID (2) integer num1 (3) integer num2 Now, I have a C program that waits for the user to input an integer ID and when there is an input, the corresponding num1 and num2 in the … | |
Hello, and thank you for youre time, I have a problem with my jsp application, when i try to get the values from the html form on the jsp page process.jsp, it sets the values of each element but then does not return them to the java page. It keeps … | |
Hi all, In my site, there is timeout session 30 minutes. After 30 minutes as I press on logout. Exception([I]Validation of Mac fialed.If thos applicationis hosted by a web farm or cluster,ensure that <machinekey>configuration specifies the same key and validation algorithm.Autogenerate cannot be used in cluster.[/I]) occurs in my page … | |
Hi Guys, Back again. I'm having an issue with my java with mysql. I have the following query generated through my java, which reads in about 3k records from an excel file and churns out an sql query for me. For the purpose of this forum, ill show the first … | |
I have written a client server program in which the server sends a program to the client, and the client executes the received program. In this case it is a line drawing program in OpenGL. The problem is that on running the server and client the whole program i.e. sending … | |
The code below is what I'm having problems with... The combobox part is getting me angry and i've searched everywhere, code guru, msdn, stackoverflow, daniweb... And I cant figure it out. Its for a game my friend plays. I play and quit on and off.. I decided to do a … | |
I wasnt sure whether or not to put this in the database section but i think the problem is in my php code so i thought it would be best posted here. I intend to use this as a simple search script. I want to compare what the user enters … | |
<script> function close(){ window.open('alert_update.php?id=<? echo"$alertm[id]"; ?>','alert'); document.getElementById("alert").style.display="none"; } </script> The above script is what I am using to send a request as such to alert_update (the file that updates the database which is a small iframe 1px by 1px; but I also need it to onclick hide the div that … | |
Okay so I was having a problem earlier where I could not get my DIV to hide using my script I used some source from google and got the following, I found it to be effective and do the job, however I want it so that when I click my … | |
Hi, i'm trying to understand how actionPerformed is working. I'd like to know how to add more than one action in actionPerformed method. Here is an example of my code. I have two button b and c and the button b must open the gmail.com page. // this first action … | |
So I have a few pieces of code that I want to implement into C++, and I think I understand what they are, but I want to check. I have been using an array of char[] to mimic the byte[] idea. So keep that in mind when helping with these … | |
I am creating a desktop application that will also include a calculator, similar in function to the calculator of the Microsoft Windows OS. I require some assistance in implementing the memory capability such that the user can store a number, recall the number to be used in a calculation or … | |
Hello, I recently started writing a small program for reading multiple xls files from one directory. While reading one file like this,works perfectly: [CODE]wb = xlrd.open_workbook("C:\\path\\FileName.xls") sh = wb.sheet_by_index(0)[/CODE] this one doesn't: [CODE]os.chdir("C:\\path") for fileName in os.listdir("."): wb = xlrd.open_workbook(fileName) sh = wb.sheet_by_index(0)[/CODE] I keep getting the same error: [COLOR="Red"]XLRDError: … | |
Hi all. I am having issues with people not closing an important file in excel. I have a new vb.net based application that i want to close the excel file when i prompt it to. The application checks for specific named files in a hidden folder on a timer event, … | |
Hello, I have a program that displays a frame that uses a canvas to display few rectangles and some images. While executing the program with Eclipse IDE everything seems to work appropriately, when I compile and execute the program using windows command line the images are not displayed. With eclipse, … | |
Well I'm learning the irc protocol by coding a Console client. The client appears to connect to server, set name and nick, But won't join the channel it just says "451 you have not registered". Here's the code Sorry for any lame formatting ect. I'm kinda new to cpp: [CODE] … | |
I am working on a project that stores it's data in serialized files on the hard drive in a custom file format. The server end of the application accepts TCP connections from clients and returns data to the clients based on the query, it's kinda like a light weight, custom … | |
Hello dear programmers! My question isn't unique and i have read many articles about datagridview , but i've understood nothing (( Please - tell me - how to load an array in datagridview ? All i've understood is that for this I should use datasourse property - [CODE]dataGridView1.DataSource = myMap.MapCityMass.ArrayOfCities;[/CODE] … | |
I have ordered yahoo news rss, I use simplepie to separate the news items like title, content, url, date... and then insert them into database. I catch the source every 2 hours with cron. How to judge RSS source, if there has new then UPDATE into database? I mean if … | |
Hi All I am building a web and desktop application where the user fills in a web form that is posted to a MySQL database. The database info is then collected by a desktop application for easy retreival. I know that my clients will want to have a web form … ![]() | |
Hi guys, I am fairly new to JAVA and currently I am trying to do a couple of pre-set graphs. My first task is to create a graph of y=x^2. The code below is what i have come up till now. I am sure that i need help in the … | |
I'm having trouble with nodeValue property. No matter what..it gives me value null. All other propeties are executing fine. XML file: [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <details> <player> <name>MSchu</name> <poles>91</poles> </player> <player> <name>Alonso</name> <poles>25</poles> </player> </details>[/CODE] And I'm running this code: [CODE]<html> <head> <script> function loadXMLDoc(){ if (window.XMLHttpRequest){ xhttp=new XMLHttpRequest(); } else{ … | |
what's up when i call the function below i get an error that says that oledb is not regstered on this machine i am calling the function like this [CODE] ListBox1.Items.Add(getAllTableNames) [/CODE] [CODE] Public Shared Function getAllTableNames() As String() Dim con As OleDb.OleDbConnection Dim com As New OleDbCommand Dim i … | |
In my project each user can upload his logo images. For that am using a static function to FTP files. In that function am using many static variables. Now I want to ask that,is it safe using static functions for functionality like this? |
The End.