199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for feroz121

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

Member Avatar for Kakooty
0
180
Member Avatar for kkeyan

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 …

Member Avatar for kvprajapati
0
105
Member Avatar for entercow

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 …

Member Avatar for entercow
0
290
Member Avatar for TheWhite

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 …

Member Avatar for JamesCherrill
0
134
Member Avatar for mohankumar554

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 …

Member Avatar for dnanetwork
0
89
Member Avatar for flockit

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

Member Avatar for mail2saion
0
176
Member Avatar for Aussie_Here

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 …

Member Avatar for sknake
0
122
Member Avatar for hassanfaraz
Member Avatar for ajijacobm

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

Member Avatar for sknake
0
116
Member Avatar for gaya123

[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) { %>&nbsp;<% } 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 …

Member Avatar for gaya123
0
89
Member Avatar for andrei4002

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 …

Member Avatar for andrei4002
0
120
Member Avatar for skelly16

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

Member Avatar for skelly16
0
361
Member Avatar for Wenners

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 …

Member Avatar for samir_ibrahim
0
127
Member Avatar for guessme

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!

Member Avatar for guessme
0
66
Member Avatar for stellalxin

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

Member Avatar for stellalxin
0
978
Member Avatar for chanlichin

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 …

Member Avatar for Kalpsanu
0
101
Member Avatar for jooa

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 …

Member Avatar for JamesCherrill
0
84
Member Avatar for rwebber77

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 …

Member Avatar for BestJewSinceJC
0
148
Member Avatar for lifeworks

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 …

Member Avatar for lifeworks
0
124
Member Avatar for vwyodapink

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 …

Member Avatar for vwyodapink
0
83
Member Avatar for mIssy_ricco

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 …

Member Avatar for mIssy_ricco
0
102
Member Avatar for hassanfaraz

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

Member Avatar for vali82
0
119
Member Avatar for Kakooty

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

Member Avatar for Kakooty
0
98
Member Avatar for jeezcak3++

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 …

Member Avatar for thelamb
0
143
Member Avatar for rizza_f

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

Member Avatar for rizza_f
0
114
Member Avatar for BlackPhoenix

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 …

Member Avatar for BlackPhoenix
0
256
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
135
Member Avatar for coollife

In an ASP.net Application (windows or web) can i write code to store the song into MS Access database . Please Help

Member Avatar for Ramesh S
0
328
Member Avatar for atx

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 …

Member Avatar for atx
0
125
Member Avatar for digitalhero

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 …

Member Avatar for mrnutty
0
105
Member Avatar for KlNTARO

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 …

Member Avatar for farhan386
0
176
Member Avatar for kernel>panic

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.

Member Avatar for VernonDozier
0
394
Member Avatar for serkan sendur

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" ); }

Member Avatar for serkan sendur
0
134
Member Avatar for gokul.raja

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.

Member Avatar for farhan386
0
236
Member Avatar for and12

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 …

Member Avatar for VernonDozier
0
119
Member Avatar for guessme

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

Member Avatar for John A
0
74
Member Avatar for thr

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 …

Member Avatar for John A
0
100
Member Avatar for lroyse

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 …

Member Avatar for lroyse
0
126
Member Avatar for xiikryssiix

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 …

Member Avatar for xiikryssiix
0
247
Member Avatar for Gerald19

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]

Member Avatar for vincent2085
0
69
Member Avatar for ANicholson

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 …

Member Avatar for vincent2085
0
141
Member Avatar for guessme

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

Member Avatar for vincent2085
0
214
Member Avatar for jiten_raulo

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

Member Avatar for jiten_raulo
0
142
Member Avatar for Agent-of-Chaos

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 …

Member Avatar for vb5prgrmr
0
130
Member Avatar for Democles

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 …

Member Avatar for Dave Sinkula
0
120
Member Avatar for sonia sardana

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]

Member Avatar for dkmansion
0
770
Member Avatar for thr

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

Member Avatar for tomleo
0
247
Member Avatar for aodpreacher

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 …

Member Avatar for mrnutty
0
103
Member Avatar for mark2326l

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") + …

Member Avatar for almostbob
0
88
Member Avatar for eduardor2k

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

Member Avatar for Airshow
0
311

The End.