199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for yasemin

Hi, Im having trouble dealing with text files in C. I want to be able to move through the text file which Ive used fseek(). But how do I read one character or read a line of characters from the position I want and change these to float? Thanks in …

Member Avatar for abhimanipal
0
131
Member Avatar for sdinu96

I want database management in C To ADD,LIST,DELETE,INSERT using structures and files..........not in linked list.............. can anyone help me out....because this is the first time to do long and some what complex program for me

Member Avatar for abhimanipal
0
5K
Member Avatar for jcorcoran

I have a school assignment where I have to write class files to correspond with my instructor's already written class, which includes the main() method. He has the main class importing the child class of a ParentClass, each of which is in a different package. In the main method, he …

Member Avatar for ~s.o.s~
0
83
Member Avatar for Venom Rush

Hi all I'm looking for progress bar alternatives to the mass of flash solutions I've found through Google. I also don't want to use the PECL package 'uploadprogress' as it's been a headache for myself and the hosting company I host with. There must be some solution out there that …

Member Avatar for MVied
0
148
Member Avatar for XerX

Hello. This is my program: [code]#include <iostream> #include <cstdlib> #include <fstream> using namespace std; int main() { ifstream a; ifstream b; ofstream c; a.open("a.txt"); b.open("b.txt"); c.open("c.txt"); int x; a >> x; b >> x; c << x; a.close(); b.close(); c.close(); system("pause"); return EXIT_SUCCESS; } [/code] In file "a" I have …

Member Avatar for XerX
0
182
Member Avatar for God Coder123

If i had an Array as seen below, is it possible to use the rand function to randomly select an element within that particular array; if so how can this be done. The Value of the element will be outputted. Any help much appreciated...:) [CODE]int Array[14]={10,10,10,10,11,6,9,2,3,15,11,15,16,15};[/CODE]

Member Avatar for God Coder123
0
108
Member Avatar for bsunkel

Hi all, I have a JOptionPane with a YES button and a NO button. All I want to do is be able to press the left or right button on the keyboard to change the focus on the buttons. By using the mouse it works. Is there some kind of …

Member Avatar for viniciusmss
0
651
Member Avatar for killoldesai

Hi, Can anybody share how to import Gmail, Yahoo and Live contacts via ASP.NET ? Best Regards, -Killol

Member Avatar for karthikdotnet
0
151
Member Avatar for MARKAND911

I want the list of columns whose datatype is "date" from mytable in oracle. how can i do this. which query is used t fetch such column names?

Member Avatar for babyDBA
0
89
Member Avatar for jellybeannn

Hi, I've got a DropDown list which is populated here. with the use of a break in the code there is a value of 4 for shippingInfo.ShippingID.ToString() [code] if (addressOK) //&& cardOK { int shippingRegionId = int.Parse(Profile.ShippingRegion); List<ShippingInfo> shippingInfoData = CommerceLibAccess.GetShippingInfo(shippingRegionId); foreach (ShippingInfo shippingInfo in shippingInfoData) { shippingSelection.Items.Add( new ListItem(shippingInfo.ShippingType, …

Member Avatar for jellybeannn
0
163
Member Avatar for haribo83

I am trying to create a set of league table in MySQL and PHP. I can get the tables to show the top and bottom 5 values but the problem is when I have less than ten records in the system. When this occurs the same people can appear in …

Member Avatar for drjohn
0
3K
Member Avatar for Pari13

Hello All, I have problem in popup page using ajax in asp.net. I have one P1.aspx page.Onclick event of Hyperlik on P1.aspx How to Popup page P2.aspx(Which is Interface for inserting value in database) using Ajax. also how to passed parameter using querysting in hyperlink. Thanks All In advanced. Wait …

Member Avatar for reach_yousuf
0
231
Member Avatar for guiman

Does anyone have any suggestions on what is the best way to translate a C# application in VS .net? Currently I am translating a GUI in multiple languages and editing the Form.languagecode.resx file but when I make edits to the GUI, even a litte thing like moving a button, all …

Member Avatar for PierlucSS
0
231
Member Avatar for Abiha

can any one tell me whats the problem in evaluation of postfix [CODE] #include<iostream.h> #include<conio.h> #include<string.h> #include<stdio.h> #include<ctype.h> #include<math.h> #define MAX 20 char stack[MAX]; int top=-1; char pop(); void push(char val); int prcd(char symbol) { switch(symbol) { case '+': case '-': return 2; case '*': case '/': return 4; case …

Member Avatar for daviddoria
0
118
Member Avatar for Thew

Hello, I have problem using StrToDateTime function from Borland in my project. I made a custom component, it's called Month view (calendar). One of the basic steps of the component's initialization is to set the default month and year. To do this, I use the "1/1/2010" string passed to StrToDateTime …

Member Avatar for Aranarth
0
246
Member Avatar for help_lucky

Hello Everyone, I have 2 checkboxes in a form and onclick of these. Once the checkbox is checked, only the fields that are relevant to the checkbox are displayed, with default values in it and to fetch the default values i need to trigger php code. So i can't perform …

Member Avatar for help_lucky
0
248
Member Avatar for Sandhya212

Hi, I am using Sparselib++ in this C++ program. [code]#include <iostream> #include <cstdlib> #include "comprow_double.h" using namespace std; int main() { cout << "Sparse example" << endl; // prints Sparse example double val[12]={1,2,3,4,5,6,7,8,9,10,11,12}; int colind[12]={0,1,4,0,1,2,1,2,4,3,0,4}; int rowptr[6]={0,3,6,9,10,12}; CompRow_Mat_double R (5,5,12,val,rowptr,colind); return 0; }[/code] Since I use Eclipse, I have added …

Member Avatar for Sandhya212
0
563
Member Avatar for ic_m

Need help to code a program which: - validate user input, accept values that a user has entered (ex, a, b, c, d, e) - any other values other than these are to be treated invalid with a message and block it from processing. - Prompt the user to enter …

Member Avatar for baki100
0
186
Member Avatar for Nitin Daphale

[COLOR="Red"]I can't login on the server giving error: 17892. I want to drop the trigger but , as soon as I tried to login, the trigger(Tr_ServerLogon) get executed and login failed.[/COLOR] [CODE] CREATE TRIGGER Tr_ServerLogon ON ALL SERVER FOR LOGON AS BEGIN INSERT INTO AuditDb.dbo.ServerLogonHistory SELECT SYSTEM_USER,USER,@@SPID,GETDATE() END GO /*Where …

Member Avatar for tesuji
0
415
Member Avatar for Crak

How do I generate an 'Out of Memory' exception for testing purposes in c++? I tried real big arrays but the compiler came up with this: "total size of array must not exceed 0x7fffffff bytes" So i tried the maximum limit allowed by the compiler and still no exception generated...

Member Avatar for daviddoria
0
112
Member Avatar for jellybeannn

Hi, I'm making a CMS, and I have a description TextBox which I would like to include html tags, to save to a database, but I get an error "A potentially dangerous Request.Form value was detected from the client (ctl00$adminPlaceHolder$grid$ctl02$descriptionTextBox="<b>Model No.:</b><br..."). "

Member Avatar for jellybeannn
0
995
Member Avatar for Nfurman

Hello again I have 1 well working function and one working stored procedure which counts the quantity of rows in table. Now I've created special table which has only two rows 1. Id (int null)(!++) 2. Rows(int not null) In Rows I want to store the quantity of rows from …

Member Avatar for jaikanth123
0
159
Member Avatar for lorentz

Hey! I have a problem with parent and child windows. How do I set the main program to parent window and the other windows to child? I also wanna be able to change a line of text in the main (parent) window from a textbox in a child window. How …

Member Avatar for bbman
0
2K
Member Avatar for vt10000

Hi. First I'd like to mention that I've spent several days of searching all forums and reading tons of stuff on the subject. I've also spent a significant amount of time in debug mode banging my head against the screen without success in finding the solution. With that out of …

Member Avatar for ious
0
539
Member Avatar for Wakesta

I'm currently creating a basic website but i'm strugling on my menu buttons part. I have created a Home, Info & Contact us buttons etc, but how do I link these so from the home page I can select Info, Contact us etc, then select the home page. If someone …

Member Avatar for bhartman21
0
87
Member Avatar for jigoro
Member Avatar for cyon

I'm trying to import a module that checks an .ini config file for correct syntax (via regex patterns). If the syntax is wrong, I want the main code to crash (and hopefully log the error, too). I need some guidance on how I should do this. My current approach doesn't …

Member Avatar for TrustyTony
0
379
Member Avatar for drunkenmonk

My delete function set works perfectly for all nodes but the leaves. The program doesn't crash until I try traversal again, not when actually deleting a node. Here is my code: [CODE=c]void BinaryTree::DeleteNode(int deleteItem) { TNode *current; TNode *trailCurrent; bool found = false; if (root == NULL) cout << "THE …

Member Avatar for AkashL
0
131
Member Avatar for jithusdani

Hi Folks, I have made web site in ASP.NET 2.0 with ajax enabled. It is running successfully with my local host. Now I want Host it in my server machine, I Want know the procedures to upload this in server.. So please help me out...

Member Avatar for Shivashankar.C
0
97
Member Avatar for gtschemer

Hi, I believe this is my first posting to DaniWeb, so thanks very much in advance for your time! I have been doing some searching and I am not sure of a definitive answer to the following problem. I am attempting to make a class that can store a set …

Member Avatar for Banfa
0
129
Member Avatar for mayanktalwar

[CODE](https?://)?(www.)?[0-9A-Za-z]+\.com/[0-9A-Za-z]+/\?paged=[0-9]+[/CODE] i am getting this error in php [CODE]Warning: preg_match_all() [function.preg-match-all]: Unknown modifier '?' in C:\xampp\htdocs\expression.php on line 19[/CODE] i have test it on online testers it is giving correct results but when i ran it in preg match it gave above error

Member Avatar for pritaeas
0
105
Member Avatar for needanswer

[CODE]&nbsp;<asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="AccessDataSource1" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" Width="779px"> <RowStyle BackColor="#EEEEEE" ForeColor="Black" />&nbsp;<asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="AccessDataSource1" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" Width="779px"> <RowStyle BackColor="#EEEEEE" ForeColor="Black" /> [/CODE] [CODE]Protected Sub Button4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button4.Click Dim con1 …

Member Avatar for needanswer
0
259
Member Avatar for Mike911

I need to prevent my window from going minimized to tray when I click the Minimize-Button. I write in native C++ with additional use of DX10, DXGI, Direct2D and DirectWrite. I proceed the WM_WINDOWPOSCHANGING. But how did I know if its triggered from a Minimize-Button ( WM_SIZE is already too …

Member Avatar for Mike911
0
217
Member Avatar for idlackage

I have a method that takes in a rectangle shape as a parameter, uses it as a selection box, and finds shapes in an array called shapeObjects that are within the bounds of the selection box. The indexes of those shapes are then added into a new array which is …

Member Avatar for javaAddict
0
97
Member Avatar for device

I want to take out words that reoccur in array1 and put them in array3. (so in array 3 there would be only distinct values) the problem is.. i dont understand how the count2 value can reach so high. (over 300) but should be 20 maximum. [code=c] for(i=0; i<count;i++){ if(count2==0){ …

Member Avatar for WaltP
0
93
Member Avatar for harish_s

In my code, I am trying to open a directory of Solaris OS from Windows OS using FindFirstFile(). In Windows XP, the code is working fine but in Window 7 same code is not working. FindFirstFile() returns INVALID HANDLE in Windows 7 and GetLastError() return error code 50, which means …

Member Avatar for harish_s
0
238
Member Avatar for arash_khazaei

Hi, I am currently working on curling game for my High School assignment and i have lots of files of code, so i doubt anyone will want to look through them. Im having an issue in which, i have a JPanel and when i call the paintComponent (Graphics g) of …

Member Avatar for masijade
0
110
Member Avatar for Sinha's

Hello Experts, I have a web application build with asp.net(c#) and SQL Server 2005. Where user can enter customer record. But my problem is that, whenever end user try to enter record from two different places at the same time, it shows an error for violation of primary key constrain. …

Member Avatar for dnanetwork
0
105
Member Avatar for prasri2007
Member Avatar for priya.vk1

Hi, I am working on vb.net.When i try to bind data got from function to dropdownlist, its getting compiled successfully.But, iam unable to view the data. CbxDisplayProject.DataSource = NewAdmin.getAllProjects() CbxDisplayProject.DataTextField = "skillname" CbxDisplayProject.DataValueField = "skillname" CbxDisplayProject.DataBind() Then i used displaymember and valuemember as, CbxDisplaySkills.DataSource = NewAdmin.getAllSkills() CbxDisplaySkills.DisplayMember = "skillname" CbxDisplaySkills.ValueMember …

Member Avatar for samacoba
0
116
Member Avatar for kishanvkumar

Hi, I would like to get help in designing a table for representing a range in a column. Lets say we have a excel sheet of a matrix like below. GameName | agegroup 20-24 | agegroup 25-29 ------------------------------------------ Cricket | ------5--------|-----7------ Football | ------3--------|-----9------ Lets say the numbers represent the …

Member Avatar for kishanvkumar
0
182
Member Avatar for Felikim

Hi guys; Am stuck on the following piece of code which is meant to delete obsolete files in a directory in an sms server. It runs well from a windows platform on which it was coded in, but can not run from a linux platforrm correctly. On the linux lastmodified …

Member Avatar for tmanohar
0
337
Member Avatar for ngoelnoi

I am using a Multi column JTextPane. Everything is working fine but I also want to add some space after each column in JtextPane to improve the readability of the text in the Jtextpane. In my current project, it is unable to differenciate between text of two columns. I am …

Member Avatar for ngoelnoi
0
153
Member Avatar for bghodsi

Hi Folks: The following is the complete coding for an application which I wrote to move data from sql 2000 to MS Access 2003. The coding looks fine to me but I am still getting an error. Could someone tell me what I am doing wrong. Thanks in advance Bob …

Member Avatar for finito
0
110
Member Avatar for Terminator_Null

Hi (I meant to say list box in the title heading, not combo box. Can't edit the title) I am trying to create a unit converter program. At the moment I'm trying to populate my combo box with results that have been calculated. I have two sets of results to …

Member Avatar for finito
0
361
Member Avatar for evefan

Hello. I have a question how can I detect and close all opened folders (explorer) when my application starts? in advance thx

Member Avatar for evefan
0
73
Member Avatar for Marty6

I've got a website that has a registration page, after you type in all the information you hit an okay button and what is supposed to happen is the page sends a confirmation to the member's e-mail and then it adds the member information to the database. however I keep …

Member Avatar for rajarajan2017
0
164
Member Avatar for notmasteryet

well there is the code and its not emailing me anything when i fill in the form. kind of new to php :((actully first time doing it.) [code=php]<?php /*code for form */ $emailSubject = ' PHP Scripting'; $webMaster = '******@gmail.com';/*just made stars for this site*/ $email = $_POST['email']; $name = …

Member Avatar for rajarajan2017
0
163
Member Avatar for ChPravin

Hello All, I came across a question wherein I need to find an element in the array.However, it's given that the array has been rotated many number of times and initially the array elements were sorted in an increasing order.I just wanted to know what is meant by rotating an …

Member Avatar for ChPravin
0
136
Member Avatar for demontro

[B][COLOR="Green"]Hey Guys i just was asking if i had data called zf and table cq_user and there is coulmn called emoney and i wanna increase This emoney Value By sumbit Like Increase at php page... but i need This emoneyvalue if it's 100 i need to increase it by 10 …

Member Avatar for silviuks
0
94

The End.