199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cosmos22

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]

Member Avatar for Ancient Dragon
0
213
Member Avatar for sura17

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 …

Member Avatar for sura17
0
139
Member Avatar for sony112

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

Member Avatar for sura17
0
92
Member Avatar for Demond

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 …

Member Avatar for Demond
0
122
Member Avatar for behnaz

when we use this file: #include<graphics.h> #include<stdio.h> #include<conio.h>

Member Avatar for Ancient Dragon
0
106
Member Avatar for rwagnes

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 …

Member Avatar for mitrmkar
0
1K
Member Avatar for fgn89

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 …

Member Avatar for Duoas
0
607
Member Avatar for Shveetis

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??

Member Avatar for Shveetis
0
130
Member Avatar for sibitech

i m looking for a J2EE project title..... can anybody help to start with??????????

Member Avatar for jwenting
0
75
Member Avatar for starxxx

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....... …

Member Avatar for starxxx
0
111
Member Avatar for gedcraw555

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 …

Member Avatar for gedcraw555
0
133
Member Avatar for GLT

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

Member Avatar for SheSaidImaPregy
0
96
Member Avatar for 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 …

Member Avatar for SheSaidImaPregy
0
79
Member Avatar for brr

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)

Member Avatar for brr
0
81
Member Avatar for maydhyam

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

Member Avatar for maydhyam
0
135
Member Avatar for lordx78

<!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 …

Member Avatar for lordx78
0
73
Member Avatar for asadalim1

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 …

Member Avatar for asadalim1
0
11K
Member Avatar for gopi kannan

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 …

Member Avatar for gopi kannan
0
80
Member Avatar for brightline

[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]

Member Avatar for JerryShaw
0
125
Member Avatar for sunne

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 …

Member Avatar for jwenting
0
140
Member Avatar for plgriffith

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, …

Member Avatar for plgriffith
0
2K
Member Avatar for Jihad

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 …

Member Avatar for johnny.g
0
143
Member Avatar for rohoni

what is operator overloading ? how many types i have? can any one help me with some example.

Member Avatar for farag
0
150
Member Avatar for gallantmon1

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 …

Member Avatar for gallantmon1
0
147
Member Avatar for Shveetis

[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 …

Member Avatar for Shveetis
0
141
Member Avatar for foundsheep

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 …

Member Avatar for foundsheep
0
1K
Member Avatar for aminit

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

Member Avatar for aminit
0
207
Member Avatar for chaitanya_D24

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.

Member Avatar for chaitanya_D24
0
67
Member Avatar for Shveetis

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 …

Member Avatar for javaAddict
0
84
Member Avatar for majestic0110

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

Member Avatar for majestic0110
0
172
Member Avatar for tonyaim83

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 …

Member Avatar for Ancient Dragon
0
128
Member Avatar for invincible_king

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.....

Member Avatar for Ancient Dragon
0
112
Member Avatar for Shveetis

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??

Member Avatar for Shveetis
0
145
Member Avatar for GLT

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 …

Member Avatar for richie513
0
141
Member Avatar for the b

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 …

Member Avatar for stultuske
0
233
Member Avatar for joker40

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 …

Member Avatar for Auzzie
0
124
Member Avatar for rohoni
Member Avatar for WaltP
0
129
Member Avatar for Venom Rush

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 …

Member Avatar for b_scorpian
0
189
Member Avatar for chocl8drop

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 …

Member Avatar for dougy83
0
127
Member Avatar for sbv

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.

Member Avatar for sudharsanam007
0
73
Member Avatar for eddy556
Member Avatar for sgw

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?

Member Avatar for mitrmkar
0
113
Member Avatar for prushik

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 …

Member Avatar for mitrmkar
0
157
Member Avatar for Iqbal_h_a

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 …

Member Avatar for Nick Evan
0
119
Member Avatar for nurulshidanoni

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++] …

Member Avatar for nurulshidanoni
0
376
Member Avatar for sam1

hi everyone. I need few good books for beginners, trying to learn C. thanks

Member Avatar for rohoni
0
137
Member Avatar for micah1983

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 …

Member Avatar for carnage
0
118
Member Avatar for s1986

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 …

Member Avatar for s1986
0
100
Member Avatar for rickykoh1983

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 …

Member Avatar for RamPrasad710
0
234
Member Avatar for Vai

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 …

Member Avatar for nav33n
0
119

The End.