199,113 Archived Topics
Remove Filter ![]() | |
I'm trying to open a file, using the ifstream function. I'm using a .jpg image as an example, but it doesn't work, any ideas? Thank you. [code=c++] int main(int argc, char *argv[]) { char file[20]; strcpy(file,"C:\\Fraps\\1.1.jpg"); ifstream outfile; outfile.open(file); return 0; } [/code] | |
well i have set two tasks firstly create the seven segement display and do some sort of timer with the 7 segment display, i have done the seven segment display and here it is:- [CODE] Program SevenSegmentDisplayConverter; Uses Wincrt; var Line1 : string; Line2 : string; Line3 : string; x … | |
Can somebody help me make a 7 segment display please i need help i tried it but failed can some1 help me please send it me or just tell me a site where i can get it from | |
Hi, I feel kinda dumb asking this question but I just don't know what to do. I have made a program for myself and I put it (the exe in the Visual Studio 2005\Programs\Program1\Program1\bin\debug) on my other harddrive. When I try to run it I get an error (I don't … | |
when we use this file: #include<graphics.h> #include<stdio.h> #include<conio.h> | |
I am using MFC and C++... I have a dialog of type CDialog containing several objects including a CPropertySheet called m_dlgPropSheet (which does not have it's own class beyond CPropertySheet). This property sheet contains three identical pages (with different data) of type CPatchSummaryPage which inherits from CPropertyPage. I am trying … | |
How do I make it show text? I'm completely new to this, my dad's wanting me to make this customer display screen show text, which on paper should be easy.. It's a WD-202 model, pretty common customer display pole, I've called a friend for help and he told me to … | |
Hello... I have implementd a user interface and I need to update the user interface every 5secs widout requiring to draw the entire JFrame again.. is dre anything that can help me change my textfield values every 5secs without affecting the other issues on my interface?? | |
i m looking for a J2EE project title..... can anybody help to start with?????????? | |
I need help n writing a simulated annealing algorithm that is able to maximize f(x)=sin(0.15*x)+cos(x) defined on the interval 0<= x <= 40 using the cooling schedule. Please help me im supposed to generate random numbers between 0 and 40 and Substitute in f(x)=sin(0.15*x)+cos(x) then what should i do next....... … | |
i have tried every thing to get image on my button, i have looked all over the internet but i can't get a image to display, if any one can please help me. [CODE]import static javax.swing.JOptionPane.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.text.DecimalFormat; //Don's carpark2.java was used in making … | |
When I try to view the page I have just built in Dreamweaver in the Browser I get a message saying 'Invalid Syntax error'. Is there something I need to do before I view the page?? GLT | |
Hey guys, I am developing a web based database for a company for my year work placement from university. I was wondering if anyone knew a way of retrieving the user ID from the database through the web page? Each table in the SQL Server database has an automatic Identity … | |
how to get data in textbox from database when item selected in listbox in jsp without refreshing the page, i had code that refresh the page. if not in jsp even possible in javascript or any plz........thanxs in advance (max try in jsp) | |
Hi, I created an executable jar file for my Java application, and I was wondering if I should leave it like that or should I change it to a .bat file for execution via a webpage. May | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php // connection to MySQL server mysql_connect('localhost','root',''); mysql_select_db('administration'); // *** Validate request to login to this site. //session_start(); if (isset($_POST['username'])) { $loginUsername=$_POST['username']; $loginPassword=$_POST['password']; $MM_redirectLoginSuccess = "validated.php"; $MM_redirectLoginFailed = "admin.php"; $MM_redirecttoReferrer = true; mysql_select_db('administration'); $errors = array(); if(empty($_POST['username'])) { $errors[] = 'You think … | |
I am new to PHP or just not good at it lol, I have been trying to insert checkbox elements into a mysql database. I have a table called Team with two collumns. Id int not null auto increment PK team varchar 30 not null <? <body><form action="insert.php" method="post"> select … | |
in my page i allow the administrator to list all user records with radio buttons...and he can delete record one by one using the radio button in front of the record and clicking delete button..the radio button has the value of primary key of record to be deleted..i post that … | |
[COLOR="Green"]How to store files(.doc files,.zip files) in a database and how to retrieve them.[/COLOR] [COLOR="Red"]Thanks in advance.[/COLOR] | |
Hi, I am new to this community. I have a problem described below. I need to write a java code which would archive a set of files in "newc" format and then compress it using gzip. There are apis to compress in gzip format but couldnt find an api that … | |
I have a linked list of structs, with each struct having a char* and an int. When I try to print the list I get a seg fault. If I just print the int however it works. What am I doing wrong so the char* won't print? printf("%s %d\n", p->name, … | |
I am making a form and at the end of the form there is a save btn that should save data into database and redirect the page the same page that the form is in. Well its not working. simply speaking its just Response.Redirect("samepage.aspx"); I know it should work, but … | |
what is operator overloading ? how many types i have? can any one help me with some example. | |
Here's my code: [code]import java.awt.FlowLayout; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JOptionPane; public class DisplayGUI extends JFrame { public static void main(String args[]) throws Exception { ButtonFrame buttonFrame = new ButtonFrame(); buttonFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); buttonFrame.setSize(275, 75); buttonFrame.setVisible(true); } private JButton Fibonacci; private JButton Factorial; public … | |
[ICODE] abstract class Trial implements ClassLoadingMXBean, ThreadMXBean { public static void tri() { ClassLoadingMXBean classmxbean = ManagementFactory.getClassLoadingMXBean(); ThreadMXBean threadmxbean = ManagementFactory.getThreadMXBean(); MemoryMXBean memorymxbean = ManagementFactory.getMemoryMXBean(); OperatingSystemMXBean osmxbean = ManagementFactory.getOperatingSystemMXBean(); List<GarbageCollectorMXBean> gcmxbean = ManagementFactory.getGarbageCollectorMXBeans(); int load_class_cnt = classmxbean.getLoadedClassCount(); long unloaded_class_cnt = classmxbean.getUnloadedClassCount(); long total_load_class_cnt = classmxbean.getTotalLoadedClassCount(); // System.out.println("The number of classes … | |
I've been working on a page that has ddls populating other ddls and form fields. Right now I'm getting this error: erver Error in '/HRIService' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please … | |
Hello All: Please is there anyway to writing the value of (radio,checkbox ...etc) of any item in the form to text file .... Thanks for advance | |
Hi I have created an application of a textbox, in which a user enters some text in the textbox and on clicking a 'Print' button the text is directly stored into the memory and a print out is created. | |
I have created a Jframe and included 10labels and 10 textfields in it when i try to run the program, it does not show all the labels and textfields.. sometimes all are visible if i run again then few disappear.. at times they r visible for a few secs and … | |
how would one go about loading up sql data into an asp.net (without using dataview, formview, detailsview etc)? any ideas? have my table marked up already and connection strings just need to know how to put the two together. Thanks for your time | |
Hi My current editor is Dev-Cpp 4.9.2.2 .My test program which runs fine looks like dll.h [code=c++] #include <windows.h> #include <stdio.h> #include <stdlib.h> #ifdef __cplusplus extern "C" { #endif __declspec(dllexport) void HelloWorld(); #ifdef __cplusplus } #endif [/code] And dll.cpp [code=c++] #include"dll.h" void HelloWorld () { MessageBox (0, "This is a … | |
hey guys, i would really appreciate if you can give me links to some good C tutorials online or some good books , esp with regard to pointers and other advaced C topics...........i wish to learn C properly and then move on to C++, although i have started C++ already..... | |
Is it possible to set the value of a JTextfield in a class in which the textfield is not declared or created..?? How can one do that?? | |
Hi guys, Sorry if I have started his thread in the wrong forum, I couldnt find a dreamweaver one. I am creating a web based database and I am having a little bit of trouble creating a login page. I know that this is quite basic and I know there … | |
Could someone please look over this code and make sure there are no errors in it? I've looked through it again and again and I can't see what's wrong. However when I run the program (a Rock Paper scissors game) it seems that the second constructor isn't called correctly or … | |
i want to solve thi assignment ....so if any one can help me with it i 'll really appreciate it. [B]Your group decided to play a game called rhyme. The game is simple; all of your friends must be in a circle and say the rhyme in clockwise turn. The … | |
Give program for this output abcdeedcba abcdxxdcba abcxxxxcba abxxxxxxba axxxxxxxxa | |
Hi there I'm new to php and MySQL and I'm busy trying to build a page that when the administrator selects an item from a drop-down list, that has been populated from a database, it populates multiple text fields with the appropriate information from the database. For example, if the … | |
I am working on a program that will read a list of words from a file. For each word, I have to build a key which is basically the word with all of its letters sorted (i.e. dorw is the key for word). I need to build an array of … | |
Hello all, in my ASP application i need to upload 6 images. for that i used u function. But the problem is it is operating well only for 1 image upload. And not for remaining 5. Can any one know about this why this is happening. Thanking You. | |
In a JSP how do I access a record by its number? | |
Sometimes when I use a lab PC for visual C++, even when a program is very simple and absolutely correct, and sometimes passes the compiler, but when i try to run it, it shows "Fatal error... can't find path...." what's the reason? | |
ok, here is my problem. I am using sprintf to write a formatted string. That works fine. it looks like this:[CODE=C++] sprintf(buffer, "%f,%f,%i,%f,%f", user.x, user.y, user.dir, user.xspeed, user.yspeed);[/CODE] where user is a struct x is a float y is a float dir is a short int xspeed is a float … | |
Hi All, I have built an application on C++. It is a multi threaded application. My application spawns 8 threads when it come up. Each thread opens one file and maps it using mmap. It is a client-server application. Each thread picks up a message from the queue and processes … | |
Dear all, I have one problem,..I want to count how many examcode and fill in the blank in the matrix below that I have done. Example is ,, for examcode 1 how many it appear. and for examcode 2 and examcode 1, how many student take both of them?? [code=C++] … | |
A bank charges $10 per month plus the following check fees for a commercial checking account: $.10 each for less than 20 checks $.08 each for 20-39 cecks $.06 each for 40-59 checks $.04 each for 60 or more checks The bank also charges an extra $15 if the balance … | |
i am developing a web application and would like to sent an email from it.hw do i do it.the following is my code.where did i go wrong as it does not work code:-- [CODE] Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim emailMessage As System.Web.Mail.MailMessage … | |
Hi. I have a program that allows users to enter their information. After they have entered their information and clicked on submit, the program will create another exe file so that when the user opens the exe file, they will be able to see their information. How can I create … | |
Any help would be greatly appreciated. Goals: 1: Send a username / password based on a username and not someone remembering their email address. 2: If it's possible to send an encrypted key, which would be a link to pass_update.php which would make the user change their password. This is … |
The End.