64,152 Solved Topics
Remove Filter ![]() | |
am want to develop a file transfer program in vc++.. normal text file it is possible.. but is it can read for multimedia file.... like java here byte read is possible... | |
![]() | This is a mess. What I want to do is make 1 program with the 3 loops in it do something different and produce an output of what each loop does. Do loop: print out every other character For loop: print out the string reversed While loop: print out in … ![]() |
Hello, I am creating a basic Java program that will store music. musicID Track Name Track Artist I have chosen to do this through a text file, to store and view my data. My text file output currently looks like this: [CODE] 1 TrackName1 Artist1 2 TrackName2 Artist2 3 TrackName3 … | |
Hey everyone, So this is sort of complicated but I will try to make things as clear as possible. I have a registration page that processes all of the information and sends an automated email to the user with their username and password and a link to activate the account … | |
Hi, I'm having a data base which looks like this patient(pk_id)--(fk_pat)appointment(fk_doc)--(pk_id)doctor(fk_spe)---(pk_id)specialty The goal is to select all the patients which had an appointment with a doctor with 'dentist' speciality. I made 2 requests, one is correct and the other is incorrect correct one: [CODE] select distinct patient.name from pataient, appointment, … ![]() | |
Hi Guys, Can someone help me. I am using FCK Editor when I add a new news article to my website. When entering each new article, I have included an option where there is a drop-down list to select a particular news category. In the front-end of the website the … | |
I am trying to catch error on file input/output. The try functions works fine but as it pass to the next line my code breaks. How can I exit gracefully when the 'infile' doesnt exist? [CODE] try: infile = open ('Book1.txt', "r") except IOError: print "input file %s is missing" … | |
Plz help me in writing a prog that coverts a integer values to respective hexa value and store it to a file eg: in file i need like this 15 0xf(0x mandatory), 255 0xff 254 0xfe | |
The result of this code is 65535 But I believe that for && both sides must hold true (rather one side being true is enough for ||) so how come the result is 65535 ????? when after 5++ the first condition becomes false ????? Thanks in advance [CODE=c]#include<stdio.h> #include<conio.h> void … | |
Hi :) there is a way to save versions of my solution easily in .NET C#? what i am doing currently its copy the solution folder onto a backup folder and change its name to SOLUTION_NAME_X.X while X.X its the version number. i guess the Microsoft dudes had thought of … | |
hey guys this code is not working [CODE] Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Do Until X = TextBox6.Text X = TextBox5.Text + 1 Label4.Text = X Me.Refresh() WebBrowser1.Document.GetElementById("subject").SetAttribute("value", TextBox3.Text) WebBrowser1.Document.GetElementById("message").SetAttribute("value", RichTextBox1.Text) WebBrowser1.Document.GetElementById("btnSubmit").InvokeMember("click") WebBrowser1.Navigate("http://forum.ea.com/uk/pm/sendTo/" & X & ".page") ReaderTimer.Interval = 5000 ' In thousands … | |
I currently need to be able to read through an XML document, find certain nodes and either delete them (and child nodes) or edit the nodes name and possibly value. What would be the best way of going about this? XPath? XSLT? XMLReader/XMLWriter? My Code/XML contents cannot be posted though. | |
VB.net 2010 How I want the date: 2012-01-24 11:48:40.000 How I my program is exporting the date: 1/24/2012 11:48:40 AM currently I am using the sqlreader myreader.GetDateTime(10) which is giving me the format of 1/24/2012 11:48:40 AM | |
How can I add a table around my code. I am new to php and I am woring on an assignment for Uni. When I try to add the table tags the layout gets messed up. Can some please help? [CODE]<form action="gradebook3.php" method="post"> <H4>Exam and Coursework Marks and Comments for … ![]() | |
Here is my assignment: In Chapter 5, you created a lottery game application. Create a similar game using check boxes. For this game, generate six random numbers, each between 0 and 30 inclusive. Allow the user to choose six check boxes to play the game. [B][U](Do not allow the user … | |
Hi, I am trying to write a program that - Generates 3 unique random numbers between 1 and a number entered by the users in an InputBox - Displays the 3 random number results in labels - Count the number of Loops So far I wrote this code but I … | |
I have a class called "Vindu" and a class called "Innlegg". I am adding a object from "Innlegg" into an ArrayList called al. But when i try to get the text out from al i only get text like this: "Innlegg@5de9ac4" Is this the memory address or something? How can … | |
Im making a program that has to call on a method when space is pressed,note it is the first time I'm doing a keylistener To do this i did [CODE]public void keyPressed (KeyEvent e) { int key =e.getKeyCode (); int space = 32; if (key==space) { } } [/CODE] and … | |
I'm writing a dayType class program and I'm having trouble with comparing two different days to each other. Here is what I have for them: bool dayType::equalDay(const dayType& otherday) const { } and here is main: if (day.equalDay(newday)) cout << " equal days" << endl; else cout << "not equal … | |
Hopefully I don't have to put all my code in. I have 3 separate pages of php set up. I want a user to be able to go to my website and search a bunch of criteria to find a good school for himself. There are checkboxes, radio buttons, text … | |
[CODE] function displayResult() { var damn = document.getElementById("textyar").value; document.getElementById("oneforty").innerHTML = damn; var newDIV = document.createElement('div'); newDIV.className = "tweets"; var newspan =document.createElement('span'); newspan.className = "imagespanleft"; var img = document.createElement("IMG"); img.className="image"; img.src = "tweets/me.jpg"; newDIV.innerHTML = document.getElementById('textyar').value; document.getElementById('leftmaindiv').appendChild(newDIV).appendChild(newspan).appendChild(img); } [/CODE] this is the code , i m trying to create an interface … | |
Hi. I am new to developing services and I am trying to develop a service that can print out labels from something called Codesoft. I have added a reference to the Codesoft component/server. I have tried to make at standard Windows forms application with Exactly the same code and it … | |
hi, i'm develping a system which opens a jquery dialog onclick of a image. but i fuond out that when an body wrap is there (a div) an it has a style [ICODE]float:left[/ICODE]. dialog opens after the page.. how can i fix this without removing [ICODE]float:left[/ICODE]? help needed soon. thanks … | |
Hi Everyone, I'm doing a stock Control System as a school Project using An Access 2007 DB and Visual Studio 2010. I'm trying to do an update Query based on two variables entered into comboboxes, I cannot get the VB to accept the conditions for this, Can anyone Help me? … | |
Hy, I need to get the full path of a file trough JS/Prototype and all i get is the name file. From what I read on the web this is a security issue and it is not allowed. But still, is there a way? | |
HOw can i read from a socket and display message from socket in Textarea of Chatpanel even if there is no any focus in Chatpanel.I mean when i create two chatpanel instance then after clicking the send button in 1st chatpanel the message from socket should be displayed in Textarea … | |
Code works, however i'm having problems with reverse string- i cant figure out how to index the elements. for cycle returns errors, what else could i use? The end goal would be to compare string line with string reverse. If adequate elements match its a palindrome. [code=c++] #include <iostream> #include … | |
Hello Friends How can i update the textbox values with new values when i have already values in textbox in php | |
Hi, I have this code that will import the excel sheet to the datatable then inserts it in the database, but I have this problem. I have set the HDR to yes so that the first row will be considered as its header, but the problem now is that if … | |
Hi, I'm having a little trouble about message box, Since the website has been deployed in the IIS, the msgbox won't work anymore, Now I need a new alternative to create a message box that could also have a validation, something like if msgbox("do you want to save this?", msgbox.yesno) … | |
Hi! I just have this program that validates if the selected file is an excel file, and I want this to have a separate function for validation so I can use that function to other program, can you please give me an example on how to do this function.. Thanks | |
I'm writing a program that compare two objects'distance. I already implements the comparable class to my distance. I also override the compareTo() method. So far it does not give me a compiler error, but I have a logic error. I have been try to search where my error occur, but … | |
I saw this example while i am searching about vectors.. [CODE] vector<double> student_marks; // no size specified: vector contains // no elements int num_students; cout << "Number of students: " << flush; cin >> num_students; student_marks.resize (num_students); for (vector<double>::size_type i = 0; i < num_students; i++) { cout << "Enter … | |
I hope someone can help me.. I'm taking a course in programming with java and I have an assignment which is just killing me. I've been visiting the Blackboard page for the class and looking at other questions asked for help from other students in the class having similar issues, … | |
I was wondering if anyone could tell me how to save a html page to a website's filemanager labeled as .html so that it would be searchable. Like a wiki. for example: print "<html>" print "<title>python</title>" print "<body>" print """<h1> I would Like to save this page as http://www.mysite.com/python.html</h1>""" print … | |
Hi all, I've recently started developing a WPF application with Kinect, and I'm looking for a menu system. I came across this: [url]http://www.codeproject.com/Articles/197132/Simple-WPF-Page-Transitions[/url] Which I have edited slightly but it's not quite what I want. The problem is that if I have a button on UserControl1 which when pressed triggers … | |
Hi i'm unable to do multiple update (using Ms Acess because of restrictions). I try to do through ADO method (also because of restriction , x ODBC). The operation will break when reaching the script to update on the second page. Can you guys point where did i went wrong? … | |
I Could not understand what is happening on my code. When i try to send an email to another email address it keeps on sending on my gmail account. eg. From:xxx@gmail.com to: [email]yyy@yahoo.com[/email] The email which supposed to be sent on [email]yyy@yahoo.com[/email], instead it send to [email]xxx@gmail.com[/email]. here is my … | |
![]() | Hello. I wrote a program to convert decimal fraction values into binary fractions. I seem to be running into some floating point accuracy problems. After multiplying a floating point number by 2 over and over, eventually the number becomes corrupted. Since I'm multiplying so many times, I think the error … ![]() |
I've been working with python's SocketServer.ThreadingTCPServer a bit and I'm having some difficulty making a publicly available server. Everything works fine when I set the server address as 'localhost' [CODE=python]self.server = SocketServer.ThreadingTCPServer(('localhost', constants.cmdport), Handler)[/CODE] As long as the both the server and client are on the same computer and both … | |
Please help me its urgent... I have a MSDN Queue class, I need your suggestion can I make a message class and enqueue its objects as an element. [CODE]// new.cpp : main project file. #include "stdafx.h" #include "message.h" using namespace System; using namespace System::Collections; void PrintValues( IEnumerable^ myCollection ); void … | |
My simple POP3 client (set up for Gmail) isn't downloading all of my messages... Any idea why? I have 350 messages in my inbox and the program only says 296 of them show up. Program.cs [code] using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.Net.Security; using System.IO; … | |
I'm an absolute c++ beginner so please be patient. [CODE]#include <iostream> using namespace std; double array_of_5[5] = {1,2,3,4,5}; double sum(double a , double b ); double a= array_of_5[2]; double b= array_of_5[2]; int main () { cout<<"The sum of two members of the array is: " <<sum<< endl; return 0; } … | |
I have to find out how many times the [CODE]createPerson()[/CODE] function is called This is my Main.java file [CODE]import java.io.IOException; public class Main { public static void main(String[] args) throws IOException{ int i; Student[] totalStudents = new Student[10]; Student.create3Persons(); Student.create2Persons(); } } [/CODE] this is my student.java file [CODE]import java.io.*; … | |
I'm using VB.NET and ASP.NET in VS2005 to create a web application that has some very similar code in five different webpages. This code enables/disables various controls depending on the actions allowed in the current page. I would like to consolidate this code into a subroutine in a class.vb file … | |
Hi Everyone, I am currently Building a Stock Control System for a School Project and Using access 2007 with Visual Studio 2010 to build the VB. I am trying to use an INSERT INTO SQL Command to insert new stock items into my Access DB. I am getting an error … | |
hello. [CODE]Public Class GasPump Private name As String Private quan As Double Private prequa As Boolean Private total As Double Private YN As String Private Const RegularPrice As Double = 13.08 Private Const PrimePrice As Double = 13.56 Public Sub Start() Readinput() Calctotaltopay() Printrecept() End Sub Private Sub Readinput() Console.Write("What's … | |
This is a code snippet for the page i am getting the variable $title from [CODE]$title = $this->row->title; // at this point in the script if i echo $title the correct value is stored. ?> <form name="passvalue" action="myscript.php" method="POST"> <input type="hidden" name="title" value="<?php echo $title;?>"> </form>[/CODE] This is a code … | |
i saw that we should not use the combination of new operator and free for allocating and deallocating memory in c++.. Is this right? is there any reason other than saying that the combination is calloc/free and new/delete? please help me.. thanks in advance |
The End.