199,113 Archived Topics
Remove Filter ![]() | |
[code=c]#include<stdio.h> #include<stdlib.h> #include<conio.h> #include<string.h> void main() { FILE *fp,*ft; char another,choice; struct emp; { char name[40]; int age; float bs; }; struct emp e; char empname[40]; long int recsize; fp=fopen("EMP.DAT","rb+"); if(fp==NULL) { fp=fopen("EMP.DAT","wb+"); if(fp==NULL) { puts("cannot open file"); exit(1); } } recsize=sizeof(&e); while(1) { clrscr(); gotoxy(30,10); printf("1.Add records"); gotoxy(30,12); printf("2.List … | |
Hi, I am writing Screen Capture application in c++. I want to take control of mouse click from OS because, if start menu is open in windows OS, when i click for take region selection on desktop the start menu is automatically closed. But i want to take snap image … | |
Hi All! I am working with an MSSQL DB which stores images as blob's. When I pull out the blob it seems to be cut off at a fixed length. Every image only displays the top 1/3 or so. My query is very basic and has no limitations in it … | |
I'm making an app that, when executed will continue to do something in an infinite loop, forever (or until the process is manually stopped). My goal is to create a process with a unique name which will run this application (right now java uses javaw.exe as the same name for … | |
hi, i want to add the text in one text boxto another text in another textbox. i mean ,we enter value 5 in textbox1 and enter value 10 in textbox2 and finally when we click on button the result(15) will be displayed in textbox3. how it is possible. can u … | |
![]() | Hello, I want to stick one DIV to the bottom! I've managed to do that but when I scroll down the DIV doesn't scroll smoothly! Below is my code:- [CODE] <div id="x"> <center> <div id="footer" style="width: 95%; background-color:#66CCFF; border: 1px normal black; top: 100px; position:absolute; align:center; height: 50px" align="center"><center>A</center></div> </center> … |
I want to create a procedure to update a table. It takes number of input parameters(one of them is the @pID) and updates four columns which have the pID=@pID and only one of these four columns can be updated if the value of another column='F' in addition to pID=@pID. How … | |
i want to have view query in C# kindly let me know it | |
Hi, I have database connection problem. A part of the source is shown Below [code=csharp] private void Form3_Load(object sender, EventArgs e) { string connectionstring="Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\hospdb.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"; SqlConnection con=new SqlConnection(connectionstring); DataSet ds=new DataSet(); string command="SELECT Name,Address,Phone,Branch,Class FROM hosptab WHERE (Branch = 'SKIN')"; SqlDataAdapter da=new SqlDataAdapter(command,con); da.Fill(ds,"hospital"); DataTable dt=ds.Tables["hospital"]; //da.Fill(hospdbDataSet, … | |
[code=JSP]<%@ taglib uri="/WEB-INF/lib/pagertaglib.tld" prefix="pg" %> <pg:pager export="currentPageNumber=pageNumber"> <pg:item> my search data.. </pg:item> <pg:index> <pg:pages><% if (pageNumber.intValue() < 10) { %> <% } if (pageNumber == currentPageNumber) { %><b><%= pageNumber %></b><% } else { %><a href="<%= pageUrl %>"><%= pageNumber %></a><% } %> </pg:pages> </pg:index> </pg:pager>[/code] This is the code i typed and … | |
hello everyone i have a huge problem developing a windows service i'm trying to develop some app that reads information from WMI and sends it via amqp (using apache qpid client) everything [B]works fine[/B] on [B]windows xp[/B], but problems appear on [B]vista[/B]: when i start the program i get an … | |
Hi All Facing issue with using sed and globally replacing a word with date variable for a sql file. Any help would be appreciated. [code]sed -e "s/DATEST\/$DATESTART/g" $SQLREAD > $SQLNEW sed -e "s/DATEST\/08/25/2009:07:41:41/g" /uat/ut21_sysmon/quest/foglight/JJ/jjsql Suffix too large - 512 max: s/DATEST\/08/25/2009:07:41:41/g[/code] Thanks | |
Hi, I strange thing is happening in my app. I have a main form (IsMdiContainer =True) containing a gridview, which when double clicking a record opens a form in Modal state containing a TabControl. When I close down form 2 and select another record, the form opens with the new … | |
i'm transfering simple(small) files (using jsp) from client to server. what is the difference when i do it using apache commons and without using commons(by using files)? i've done it with files.....should i shift to apache commons? thanks guess me! | |
Hello, everyone. My boss gave me a mission impossible. He asked me to retype all the content from a 126 pages PDF document. God! I don’t wanna spend the whole day doing this boring task. Any idea? I tried copy and paste, but I can’t copy from the PDF files. … | |
Hi, i am now want to insert data(fault and visual(bold)) into the table. After done the calculation, i would like to insert the fault and visual value into my table summary. My field name in table summary for fault(fo_ratio) and visual(visual) So below is my coding. How can i save … | |
I have a class which displays the pixel information of an image. Right now the class takes a buffered image in its constructor but I would like the class to allow an image to be passed from another class. How can I do this because right now if the class … | |
I am having a problem getting my calculations to work here. I managed to get the objects in place. Any suggestions?? import java.applet.*; import java.awt.*; import java.awt.event.*; public class TravelCostEstimator Applet implements ActionListener { //This part defines how the program will look private Choice choice; Label companyLabel = new Label("Traveler's … | |
Hi Im rubbish MySQL joins, and need an assist please. i have a product table and an images table. Each product has 4 images associated to it by a foreign key product id in the images table. I need to pull out the product info (from prod table) and 1 … | |
I am learning how to manipulate strings this week and I am stuck on a program that is suppose to let the user enter a particular item number. The program should then check to see if the entered number is 5 digits long. if its not it should say invalid … | |
hi all. i've been doing a checkbox that is controlled by bitmaps. it is successful when i checked the check box and updated it. but it is not successful when i try to uncheck and update it. it will be as if it was checked like before. below is my … | |
<< split from [url]http://www.daniweb.com/forums/thread213753.html[/url] >> [QUOTE=adatapost;957518]Welcome hassanfaraz, I think you need this, [URL="http://www.w3schools.com/SQl/sql_view.asp"]SQL CREATE VIEW Statement[/URL] [URL="http://www.microolap.com/products/database/mydbacentral/help/Query_SQL_View.html"]Query SQL View[/URL][/QUOTE] i have another problem that is i want to restrict my code with alphabets and alphanumeric. for restricting alphabets i am using [code]nt ascii = e.KeyChar; if ((ascii < 65 || … | |
Hi i wrote a program which get query from mysql and store in varible in C.but it can't convert Object mysql ro int.any idea?? [CODE]#include <stdio.h> #include <string.h> #include <mysql.h> #include <stdlib.h> int main(){ char *email, name[30], domain[30], query[100], tmp[200]; int i=0,j,k; unsigned int size; email = "test@example.com"; char ch; … | |
My goal is to "master" C++. I barely learned up to classes... destructors within a month from watching videos on youtube. My question is how much more do I have to learn to be like you? It seems like long way to go... I feel discouraged already after reading 7 … | |
In servlet we can do this. [CODE]<servlet-mapping> <servlet-name>exampleServlet</servlet-name> <url-pattern>/example</url-pattern> </servlet-mapping>[/CODE] But how to do it for jsp file ? Thanks.. | |
I want to start graphics programming. I do SDL in C++, and took a look at OpenGL in C++, but it was like reading Greek! What functions handle graphics programming in Java? I am not very good at Java, and would like to bring it up to the level my … | |
Hi, I'm planning to work something with XML and Python. As part of familializing with it, I want to make simple playlist for a wxMedia player. the player is simply wx.MediaCtrl with some buttons and wxListCtrl as list container. My Question is, what process does it take to get playlis … | |
In an ASP.net Application (windows or web) can i write code to store the song into MS Access database . Please Help | |
Please help me with this question. That's multiple choice questions. Which of the following are true about anonymous methods? 1) Anonymous methods have access to the local state of the containing function member. 2) An anonymous method requires an explicit method signature 3) An anonymous method can impact the lifetime … | |
please help me... i don't know which line of code did i get wrong... the output is supposed to be: 1 12 123 but what i get is: 1 21 321 ...here is my code... i need to use while loop for this. thanks guys. [code=cplusplus]#include<iostream> using namespace std; int … | |
Greetings. I'm stumped with a particular problem involving an ajax script that works for Firefox, Opera, Safari, and Chrome... but unfortunately does not work with any version of IE [I](*actually I haven't tested IE6 or less yet, but who cares about those anymore*)[/I]. On the HTML side, a list of … | |
I have this encryption program that I spend hours on. I thought I had it all worked out but no. What could be my problem can anyone help me. You can ignor the void doSet() I will ad that later. Thanks. | |
although my code passes the test below, it cant delete a file and generates unauthorizedaccessexption. do you know why? FileIOPermission filePermission = new FileIOPermission(FileIOPermissionAccess.AllAccess, @"C:\helloworld.txt"); try { filePermission.Demand(); MessageBox.Show ("Permission demand successful"); } catch( SecurityException securityEx ) { MessageBox.Show( securityEx.Message, "Security Exception" ); } | |
Hello, I need to know this one. How can we get printer status using JavaScript and also how can we give MS word document print command using JavaScript. | |
Before i thought all i had to do was add graphics on the background of the panels. [url]http://blogfriendlyzone.webs.com/WheelOfFortune/WheelOfFortune.html[/url] But now when i look at, i think it would need more than graphic background to give it more of a professional look to it so that people would want to play … | |
(servlets, jsp)i'm to tranafer a file from client to server using files concept. i donno how to start. plz gimme a basic idea of implementation procedure and i'll try the rest. waiting 4 help, guess me! | |
hello i want to select programming language that obtain this feature for me: 1: write best web application and speedy web application( like php application) 2: write desktop best and speedy application is fit python this features please help me to select best programming language for this feature i am … | |
I'm trying to do what seems like a simple project, and find out who has an Access Database open. The basic code is below, and it works fine for me, (I'm a domain admin) but when a normal user tries to run it, they don't have the rights required. Is … | |
hello everyone... i wrote a basic program for my C++ class that includes SUMs and while loops. its fairly self explanatory, but i am not getting the correct SUMs for my outputs. apparently, i am missing something extremely important somewhere here. can someone take a look and give me a … | |
Hi, I ran into trouble trying to use the include function. Here's the code, which I think should work, index.html [CODE=html] <html> <?php include('head.php'); ?> <body> <div id="header"></div> </body> </html> [/CODE] head.php [CODE=html] <head> <title>Name</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> [/CODE] | |
Hi, I'd be grateful for a little help. I have a script which generates invoices as PDF files and stores above just above www level (so they cannot be access directly via a URL). I would like users to be able to access their own invoices but nobody elses. My … | |
(servlets, jsp)i'm to tranafer a file from client to server using files concept. i donno how to start. plz gimme a basic idea of implementation procedure and i'll try the rest. waiting 4 help, guess me! | |
I spend 6 to 7 hours each day practicing c++ and visual c++ but end of the day I think I don't have any Test or homework. Please anyone can provide with some site helping with the same. Thanks in advance JIten | |
hi i have a simple problem i am creating purchase order form in vb.. i want to show incrementd value to user in text field every time user creates new order.....storing this in data base is not a problem for me but the problem is how i auto increment at … | |
I am stuck in way with the for loop at the end. The whole idea is to count up to gscreenwidth and then resize the string to make it cut off at 24. We want it to skip the &w or &W anything with an & and 1 character so … | |
hi i want to know that how to use sound like query in VB.net with access. EXAMPLE (SQL) - [code] create table names (name varchar(100)) insert into names values ('ritu') select * from names where soundex(name) =soundex('reetu') [/code] OUTPUT- [code] ritu [/code] | |
hello i want to select programming language that obtain this feature for me: 1: write best web application and speedy web application( like php application) 2: write desktop best and speedy application is fit python this features | |
Hi I am just learning programming and I was wondering where can I go to get better at writing algorithms? In a few books I have they show simple ones like finding primes/ finding if number are even through loops, but when I read these sometimes I get confused. Then … | |
I have a submit form with a text field. I want it to auto fill the date "7 days" from now into MySQL, and also be editable. The code below worked fine a few days ago, well until a new month is coming around the corner. [CODE]$SevenDay = date("d") + … | |
Hi to everyone, i'm new to javascript and to daniweb, what i want to do is to put all the properties from all the divs of the page, to all their child elements, this way, for example. [code] <div style="background-color: #000000"> <b>Text</b> </div> [/code] would change (using javascript) [code] <div> … |
The End.