132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cthoes

[QUOTE] fwrite writes only name from the structure emp and rest of them are written garbage value to the file. so it would be really great if any one of you can help me out[/QUOTE] [CODE] #include<stdio.h> #include<string.h> #include<stdlib.h> int main(){ FILE *fp; char another,choice,useme; struct emp { char name[40]; …

Software Development c
Member Avatar for gerard4143
0
271
Member Avatar for jsnowden2008

Hi, Im having a problem with some socket programming and im hoping someone here can help me. basically im trying to bind a listener to a port. I have used some source code i obtained from the net, however the code was a few years old and contained the obsolete …

Software Development c# dns socket-programming
Member Avatar for jsnowden2008
0
188
Member Avatar for Dougnukem

First, I want to thank you for helping if you did, if not, thanks for checking it anyway. Second, I have been working on this for awhile, and I am slowly making progress. I am to make an address book, and for the most part I am getting it done …

Software Development java
Member Avatar for blackeyedanel
0
219
Member Avatar for JayOne

What's the deal with databases in C#? I'm used to using MySQL in PHP, but my confusion is this. If I develop an app, and sell it on, would the end user need anything installed? How do other app developers store data that's quick and easy to access? Any help …

Software Development app-store
Member Avatar for sknake
0
208
Member Avatar for veerasek

Hi All, I am trying to convert HTML file into XML using java. If anyone of you have sample coding please share with me. Your suggestions greatly appreciated. Thanks, Veera

Software Development html-css java xml
Member Avatar for ~s.o.s~
0
6K
Member Avatar for newbie14

Dear All, I have a bill to be printed on a size of 8.5 by 5.5. So I have set the both the left margin and right margin to 0 using the Design option followed by Page Setup. Then even in my code I have put this settings as below …

Software Development
Member Avatar for newbie14
0
92
Member Avatar for Pamilerin

Please I have a little problem with my project. It goes "A polynomial of degree n is represented as Pn(x)=A0 + a1x + a2x2 + … + anxn Where a0, a1, a2, a3 , … , an are constant coefficients. Evaluation of such polynomials may be important if Pn(x) is …

Software Development c
Member Avatar for tux4life
0
79
Member Avatar for j4jawaid

I am creating a small test application in which i am trying to fetch the all the hyperlink's details(Anchor Text and url) on the web page. What i have done till now is that i create webbrowser component loaded the page and fetch all <a> tags. I also know that …

Software Development perl web-browser
Member Avatar for j4jawaid
0
148
Member Avatar for shubhang

I am a beginner at Java. I have been given an assignment to make a simple address book(without applets) using Java. It should have the following functions:- 1) search-by name,city. 2)add-name,telephone number,city,address. 3)modify. 4)delete. I am still working on the program.But the problem comes when the screen(black one) becomes too …

Software Development java
Member Avatar for blackeyedanel
0
232
Member Avatar for gerard4143

One day while pondering about C I came up with this program. Can you predict what the answer will be? Now run it, were you right? filename.c [CODE] #include <stdio.h> #include <stdlib.h> int main(int argc, char**argv) { unsigned long *iptr = (unsigned long*)0;/*pointer equals 0*/ unsigned long ans = (unsigned …

Software Development c c# c++
Member Avatar for gerard4143
0
142
Member Avatar for snakay

Hi, I'm trying to locate a certain row in my datagridview, using textbox _textchanged event. Grid is populated with table having 2 columns as primary keys. With one column I have no problem, but using 2 columns I'm having exception . [code] private void dfSponsorname_TextChanged(object sender, EventArgs e) { try …

Software Development
Member Avatar for snakay
0
1K
Member Avatar for OldQBasicer

If I'm running a Do... Until or a For... Next loop in a button click event, is there a way I can allow the user to click the same button while the loop is running and escape the loop?

Software Development vb.net
Member Avatar for Progr4mmer
0
156
Member Avatar for kevintse

Hi, everyone. I am stuck in such a situation: When failing to open a file, of which the name is in Unicode, I need to show the user something like "Can't open file: \My Document\file-name-in-unicode.txt" by throwing an exception . I often use exceptions this way(is this a good way?). …

Software Development c++
Member Avatar for kevintse
0
3K
Member Avatar for venom80

Hi guys, I'm a newbie in Visual Basic and I need some assistance. I have 2 tables in mysql: 1. stats (stats_id,statsno,statsName) 2.stats_det (stats_det_ID,stats_id,stat_DateAdd,stat_UserAdd,stat_DateModif,stat_UserModif) I have a form named status and from here I want to add a new record in the first table (stats). I've created the insert statement …

Software Development mysql vb.net visual-basic
Member Avatar for venom80
0
2K
Member Avatar for tqmd1

Dear Experts How to display picturebox as oval shape. Please help

Software Development vb.net
Member Avatar for selvaganapathy
0
89
Member Avatar for aladar04

can anyone give me a sample code of a while statement with more than one condition? please...

Software Development java
Member Avatar for aladar04
0
533
Member Avatar for new programer

Hello all I was looking into some textbook solution (preparing for my exam) and I saw this program: Question Details: write a program that reads in a set of positive integers, representing test scores for a class, and outputs how many times a particular number appears in the list. you …

Software Development c++
Member Avatar for vmanes
0
128
Member Avatar for ludamizleeto

I am using a Webbrowser control to sign into Hotmail. Then once it is signed in then I'll just use this navigate code to open the inbox: I think that the problem is that the actual inbox(mail window) is within an iframe. I have to figure out how to call …

Software Development email html-css vb.net web-browser
Member Avatar for ludamizleeto
0
795
Member Avatar for back2arie

Hi I have problem to get data from tag (eg: <TEXT></TEXT>). For example the string is like this: [CODE]$string = "<TEXT> Some text </TEXT>"; if($string =~ /<(TEXT)>\s*(.*)\s*<\/\1>/g) { $result = $2; print $result, "\n"; }[/CODE] It works fine, but if the string is like this: [CODE]$string = "<TEXT> Some text …

Software Development perl
Member Avatar for k_manimuthu
0
144
Member Avatar for Egypt Pharaoh

I make a button that create a new form and pass to it an array but there is an error there is the code [CODE] int [] x=new int[9]; x={0,1,2,3,4,5,6,7,8}; form1 x =new form1(x); [/CODE] and the other form constructor code is [CODE] public form1(int[]x) { InitializeComponent(); } [/CODE]

Software Development
Member Avatar for sknake
0
84
Member Avatar for reham84

hi all i want to take a paragraph from a file and append this paragraph after ^L in another fille using shell scripting .............could you help me

Software Development shell-scripting
Member Avatar for issue9
0
109
Member Avatar for MxDev

Hi guys, how to make the default undo/redo in richTextBox support undo/redo multiple actions????????? Thanks [EL-Prince]

Software Development
Member Avatar for sknake
0
2K
Member Avatar for jfoster80

Hi, I'm not just new to this forum, but I'm also very new to programming and C#... so be warned! I am using a dictionary list to hold my usernames for an application I'm making. It's never actually going to be used, but it's purely to develop my knowledge. Firstly, …

Software Development gui
Member Avatar for jfoster80
0
294
Member Avatar for RoyaLPearL

Hi everyone, Hi everyone. I'm happy to be here today. actually I need help from u . I'm doing a JAVA program and there is this error that I really tried to fix but couldn't. so can u help me please. the program I'm writing is to accept data from …

Software Development java
Member Avatar for mellowmike
0
161
Member Avatar for Mitja Bonca

I have a listView, in 1st column is are article names, in 2nd column are prices of these articles (data type of float). And I have checkBoxes. What I would like to do, is to count the prices in 2nd column of all selected rows. And then the counted value …

Software Development listview
Member Avatar for Mitja Bonca
0
3K
Member Avatar for leegeorg07

Hi, I am trying to make a sublime text plugin to compile C using a make file, unfortunately it is all in python and I cannot get things to work :( could you please give me advice on passing data to the g++ make command? Thanks in advance.

Software Development c
Member Avatar for vegaseat
0
103
Member Avatar for shreyas2785

I have a scenario where i have a DataSet bound to a combo box, and i would like to read a row from the DataSet based on the item selected in the Combo Box. For e.g. I have a dataset that has 1 table containing 2 fields say ID & …

Software Development c# dataset
Member Avatar for sknake
0
202
Member Avatar for _Michael_

I am making a command line program that finds factors of a number that the user enters. At the moment the user could enter something like this: '768r7fg38gf8320rf' which returns an error. I would like to restrict the user so they can only enter numbers (0 - 9). How would …

Software Development c++
Member Avatar for WaltP
0
121
Member Avatar for hmadison1984

Hi, this is my first time here and I have a problem. I am trying to write a C++ program in Unix that gives me the Gregorian calendar with exceptions to leap year. I have all of my algorithms for calculating days, printing out the months, and such. My problem …

Software Development c++ unix
Member Avatar for WaltP
0
225
Member Avatar for m610

This must be an old problem whose solution must have been posted many times, but I can't figure out how to phrase it for Google. Anyway, I have a TPanel-like component that has a TLabel-like component on it, and the TLabel thingy fills the whole client area of the TPanel …

Software Development pascal
Member Avatar for m610
0
120
Member Avatar for lucky_43

hello guys I want to make a c++ program which is designed to receive some elements of a linked list by the user in a (while switch formula) and then the user can delete a specific value that he can designate . my problem is in delval function which delete …

Software Development c++ linked-list
Member Avatar for lucky_43
0
94
Member Avatar for aswin_agarwal

Hello, I have a file say id.dat In this file each line contains only an id number. I have a group of files (say 1.dat, 2.dat, 3.dat,...., 50.dat). There are unspecified number of records in each of them. If any of these records contain any of the id number present …

Software Development shell-scripting unix
Member Avatar for thekashyap
0
89
Member Avatar for MKO

:-/I'm getting the following error when I debug this small test programm . I can't find anything wrong with it. Even on MSDN they come up with a two line sample code which generates that fault code. In other words, they have no clue either. I hope that some one …

Software Development c++
Member Avatar for Salem
0
128
Member Avatar for pigmalion

Hi everyone, I'd like to create a child class to the date class in the datetime module and, apart from adding some new methods to it, I'd like my child class to be initializable through different argument arrangements. For example, beyond the (year, month, day) initialization arguments of the parent, …

Software Development python
Member Avatar for pigmalion
0
87
Member Avatar for begueradj

Hello, I would love to create in C/C++ an array in which each cell is a pointer on a linked list of integers: can someone tell me how can I implement this ? Thank you very much for your help Begueradj

Software Development c++ linked-list
Member Avatar for begueradj
0
101
Member Avatar for pankaj.garg

Hi, i am trying to develop a tool box for simple graphics...basically i want to give users an option to use a tool box and design basic drawings at run time...the drawings would be like simple network diagrams...some nodes connected to a backbone types... my friends (google, yahoo etc.) have …

Software Development visual-basic
Member Avatar for pankaj.garg
0
110
Member Avatar for JayOne

Hope the new year is going well for all. I have a 200 pound (GBP Sterling) budjet for C# books. My C# knowledge is good enough already that I can code apps, but I need more knowledge on doing things like: - HTTP - Databases (MS Access atm ... but …

Software Development seo
Member Avatar for ddanbe
0
81
Member Avatar for 4me@u

hi every body, i was working on my Client-server file hosting system and at this level my program can upload file from client to server but it is also expected to download the files previously uploaded. Now i can browse the filenames from the server with the following code, [code] …

Software Development client-server java
Member Avatar for 4me@u
0
110
Member Avatar for Joomla12

I want to be able to click a button in Form1 so that it opens a new window with an about page and maybe some other things. How can I do this?

Software Development vb.net
Member Avatar for Nattynooster
0
239
Member Avatar for anunitha

Hi, i need a help to do program.i need to read multiple files and need to print out result in to new file.I had stored my datas in mycomputer/programs(G:)/CNV/(inside this i have 4 folder and each folder consits of number of datas...) plz give me perl script to do this

Software Development perl
Member Avatar for anunitha
0
82
Member Avatar for msr

Hello, Im using threads in a recent project. I would like to know whats the difference between: pthread_kill() and pthread_cancel() What are the effects of each one? Thank you!

Software Development c
Member Avatar for Vijikumar
0
2K
Member Avatar for kawal.singh

Hello Helper, This is my code. I want to compress the file encrypted and then decrypt the same original file.Can you help ? /* [CODE]#include<iostream.h> #include<conio.h> #include<fstream.h> #include<stdio.h> #define ENCRYPTION_FORMULA (int)Byte+25 #define DECRYPTION_FORMULA (int)Byte-25 int Encrypt(char *FILENAME,char *NEW_FILENAME) { ifstream fin; ofstream fout; char Byte; char NewByte; fin.open(FILENAME,ios::in,ios::binary); fout.open(NEW_FILENAME,ios::out,ios::binary); if(!fin) …

Software Development c++ file-system ios
Member Avatar for Rajesh R Subram
0
182
Member Avatar for rahul8590

Well for past few months now i have been doing my research on encryption cipher and i have tested on plane text , its not a problem . If i have to test the fastness of the cipher i got to try it on movie and audio files and check …

Software Development audio c++ encryption
Member Avatar for rahul8590
0
760
Member Avatar for new programer

Hello all, what is the difference between [CODE]*grade++ *(grade++) (*grade)++ ++*grade *++grade *(++grade)[/CODE] please with examples... I didn't understand manipulationg pointers very well help asap

Software Development c++
Member Avatar for Ancient Dragon
0
79
Member Avatar for Burnout

Hi, I've been revising object orientated programming, and decided to have a look at accessing parts of my code in other files. The problem is, I get error messages such as "Player1" not declared, and I can't figure out how to declare them. For example, in my main.cpp file I …

Software Development c++
Member Avatar for pspwxp fan
0
126
Member Avatar for Geek-Master

I have been reading about pointers, which IS confusing. I'm sure there is a purpose, but I don't know why I need them yet. For example [CODE] [COLOR=Red]var1 = 23;[/COLOR] [COLOR=Blue]// assigning 23 to var1[/COLOR] [COLOR=Red]var2 = var1; [/COLOR] [COLOR=Blue]// assigning the value of var1 to var2[/COLOR] [COLOR=Red]var3 = &var1;[/COLOR] …

Software Development c++
Member Avatar for new programer
0
490
Member Avatar for vijayshree21

Hi every one, I m doing some work in fractal image compression, plz tell me how to convert a c code to matlab code

Software Development c c# c++
Member Avatar for NicAx64
0
5K
Member Avatar for iru

Gentlefolk, Totally new to the world of C C++, compilers and linkers. I am attempting to compile and build some demonstration application code which access BlueTooth devices. Have all the .C, .H files, also a .lib. Using the LCC c ide-compiler-linker, etc on Windows-32 Compile one module - no errors. …

Software Development c ide
Member Avatar for iru
0
277
Member Avatar for fayyaz

Hi How Can I Change The Height of Rows in DBGrid ? Thanks.

Software Development pascal
Member Avatar for fayyaz
0
5K
Member Avatar for farag

السلام عليكم ورحمة الله وبركاتة Hi All, I have a small problem, I'm making a small application to change the attributes of a word documents so I created a word object and at the end of my code I called the Word._Application.Quit Method, When I run the code on a …

Software Development
Member Avatar for DdoubleD
0
227

The End.