132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DOrmisher

I'm using Borland Builder C++ 6 (my tutors force me to) and I want to make a TImage full screen. I don't think there's any specific function for this, the only way I can see doing it is possibly manipulating the Height and Width properties, but then again I can't …

Software Development c++
Member Avatar for DOrmisher
0
157
Member Avatar for os.hacker64

I realize that kprint takes a pointer as a parameter. I don't understand how it loops through each character when you do something like kprint("HELLO WORLD"); Can you really just increment *s to get to the next char like: s++; char c = *s;

Software Development c
Member Avatar for Ancient Dragon
0
95
Member Avatar for Gaurav arora

hi all! Till now i have made simple applications in C# that dont make use of Database. But now i wanna make a simple projects that keep records of employee i.e. their name,ids,emails,addresses etc. For that purpose i need database connectivy code in C#. Another problem is this that i …

Software Development visual-studio
Member Avatar for JerryShaw
0
211
Member Avatar for shaka2

[code=c++] #include<iostream.h> #include<stdio.h> #include<io.h> #include<conio.h> #include<math.h> #include<stdlib.h> #include<string.h> void minmax(int); float max[13],min[13],array[13][270]; void main() { FILE *fp; char line[100]; char symptom[10]; float f; fp=fopen("input.txt","r"); int i=0,j=0,k,l=0; int rw_cnt = 0; int cl_cnt = 0; int len; while(!feof(fp)) { //i=0; //l=0; fgets(line,99,fp); printf("%s \n",line); // getch(); rw_cnt++; // len=strlen(line)+; // line[len]='\0'; …

Software Development c
Member Avatar for Ancient Dragon
0
237
Member Avatar for Fatboy58

Vb 2005 problem Is there a way to search for identical items in a listbox en count them ?

Software Development vb.net
Member Avatar for Monza
0
63
Member Avatar for avinash1986

hi, i am unable to read the newline using stream reader from a text file where it contains some names and their account ids. i need to copy each line to a string how can i change to next line. how can i know when end of file is reached???????

Software Development file-stream
Member Avatar for aminit
0
154
Member Avatar for nicky-river

Hi everyone, This is just a short description on the various classes & interfaces that help you write an application, which can parse an XML document. The SAX API consists of the foll. packages :- [I]org.xml.sax[/I] - This package contains the basic interfaces of the SAX API. Some of the …

Software Development api xml
Member Avatar for ajithraj
0
152
Member Avatar for ferrier18

Hey, I've never done any programming in my life and would greatly appreciate some help :) I have to create a windows application where there are 3 text boxes in which you enter assignment scores (numerical) and then click on a button that adds the 3 scores together and displays …

Software Development vb.net
Member Avatar for Jx_Man
0
117
Member Avatar for knight fyre

I'm experimenting with fgets because I heard it's better for dealing with memory buffer overflow but I am not sure of the [B]sizeof[/B] component and how to the [B]stdin[/B] part helps it to work. Is [B]METHOD 1[/B] or [B]METHOD 2[/B] in the following code the correct implementation of [B]sizeof [/B]and …

Software Development c data-structure perl
Member Avatar for knight fyre
0
167
Member Avatar for sgk26p10p07

Now i have been able to create the gdt's and when i change to pmode, will a short JMP flush the instruciton prefetch queue? here is a sample of my code and the gdt and gdtr content, [code] mov ax,07c00h mov ds,ax lgdt [ds:descr] ;switch to pmode by setting bit …

Software Development assembly queue
Member Avatar for koyi
0
173
Member Avatar for bops

Hello, for a University assignment I am attempting to use a brute force search to generate all possible combinations of a list of numbers. This is only a small part of what I must do. I realise that a Brute Force Search would be extremely computationally expensive but it is …

Software Development java
Member Avatar for shinnxennosagga
0
217
Member Avatar for Cudmore

SO, I'm playing around with an idea. I'm trying to convert primitives to and from a char array for file logging. I've got all the details worked out, but I don't understand something.. Take the following case, for example: [CODE]public static byte[] ToByta (short data) { return new byte[]{ (byte)(data …

Software Development java
Member Avatar for Zork'nPalls
0
142
Member Avatar for TMD

my administrator at school blocked commands for command prompt so I can't use system pause or system color commands....anyone know a way around this?

Software Development c++
Member Avatar for Joatmon
0
76
Member Avatar for iamoldest

How can I write and call on arrays in python? I want to be able to do this.... [QUOTE]nameofarray1 = (1, 2, 1, 5, 6, 3, 2, 6, 8, 9), (4, 4, 3, 5, 7, 5, 5, 6, 8, 1), ....... and so on[/QUOTE] and then later read from it …

Software Development python
Member Avatar for jrcagle
0
94
Member Avatar for s88

help please, i have to generate a funciton which generates the squareroot of any real number! I don't know what else I can do :( [code] #include <stdio.h> #include <math.h> double squareroot(double number) { double x[20]; int count,count2; x[0] = 1; for (count = 0;count <= 20;count++) { while ((abs(x[(count2)-1]) …

Software Development c
Member Avatar for gxm
0
157
Member Avatar for nelledawg

Hi guys, Ok so once again, I have pretty much the whole code written, but something is not working right! When I run it and select "add record", it works up until the user inputs price, then it just prints a ton of numbers and basically crashes. Please help me …

Software Development c
Member Avatar for WaltP
0
132
Member Avatar for Tsuruya-san

Hello, I'm new to this site and programming in general, so bear with me :$ . I've been downloading source code like crazy to reference, however I have yet to find a single project file for large projects (such as, for example, Half Life 2) that SHOULD compile correctly. Surprisingly …

Software Development c++
Member Avatar for Tsuruya-san
0
114
Member Avatar for linux

Does one exist? Like the Glade Interface Designer and wxGlade, only to build Tkinker UIs. This would need to be run on Linux/UNIX.

Software Development ide python unix
Member Avatar for linux
0
132
Member Avatar for drtucker

i have a homework assignment asking me to pick the highest and lowest number out of a group of 4 numbers? How would i set that up?

Software Development c++
Member Avatar for plgriffith
0
117
Member Avatar for joufaf

Hi guys I'm trying to do a while loop since this afternoon for the code below but was unsuccessful. I'm reading from a file A family name and the number then the names belong to the family which will be like this JAMES SMITH MARY SMITH JOHN SMITH ROBERT JOHNSON …

Software Development c++
Member Avatar for Ancient Dragon
0
110
Member Avatar for Jennifer84

I am writing this to a .txt file. The problem here is that it doesn´t compile when I write "\". Why does this happening because this is just a string ? I really need to get this "\" out to the file. Any idéas on this ? [code] ofstream out; …

Software Development c++
Member Avatar for Jennifer84
0
116
Member Avatar for IIMarckus

Hey guys, I'm taking a beginner's VB/.NET class. Today we started working on a project involving a simple login form, e.g.: [code]Public Class Form1 Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click If txtUsername.Text.ToUpper <> "JOHNDOE" Then MessageBox.Show("Error: Username doesn't exist.") Exit Sub End If If …

Software Development asp.net vb.net
Member Avatar for junior_jie
0
2K
Member Avatar for Zork'nPalls

is it possible for me to call a static method if all I know is the class?

Software Development java
Member Avatar for Zork'nPalls
0
98
Member Avatar for dnk

please see my code : there are something wrong?how i can check if stack is empty?? NB : isi = content of stack atas = top of stack tumpukan is stack [CODE]function POP (var T : Tumpukan) : integer; begin POP := T.Isi[T.Atas]; T.Atas := dec[T.Atas]; end;[/CODE] anyhelp will be …

Software Development pascal
Member Avatar for Jx_Man
0
163
Member Avatar for mickinator

Hi all, ain't been here in a while, busy busy busy with college... I have an assignment on threads for Operating Systems, I can't actually see how it relates to OS but it is thread based, I haven't worked with threads before, but I have it finished to the best …

Software Development java operating-system
Member Avatar for Zork'nPalls
0
157
Member Avatar for Jennifer84

When you are writing a whilestatment like this you have ',' as a delimiter. What I wonder is if it is possible to have more than only one delimiter as I also want at the same time use " " and ")". [I](a blank space and a ")" )[/I] Is …

Software Development c++
Member Avatar for cbattagler
0
314
Member Avatar for iamoldest

Would someone please help me learn how to create a 2d map using python with arrays or something ? I have been trying to find out for days and haven't found anything. I found this on the internet... [QUOTE] self.map = ( "::::::XXXXXXXXXXXXXX", "::::::..::::XX::::::", "::Z:+:XX::::..::M:::", "::::::XXX.XXXX::::::", "XXX.XXXXX.XXXXXX.XXX", "XXX.XXX/:::::XXX....", "XXX.XXX::&:::XXX.XXX", "XXX....::::M:XXX.XXX", …

Software Development python
Member Avatar for woooee
0
121
Member Avatar for sigkill9

Hi, I'm trying to build a simple python program that will total how many hours a worker has worked based on a start time and end time entry but the problem is this "simple" problem is becoming very complicated and i'm affraid i'm way off base and digging deeper and …

Software Development python
Member Avatar for woooee
0
1K
Member Avatar for koyi

Hi, I am pretty new with assembly so please bear with me if this question sounds stupid :) I am teaching myself OS development from resources of the web. I came across this tutorial [URL="http://osdever.net/bkerndev/Docs/gdt.htm"]here[/URL] which talks about setting up GDT. I don't really get it when it is to …

Software Development assembly
0
281
Member Avatar for cosmos22

Hello, I have done some research on playing .wav files in C++(As you can only play .wav files) and I've been having some trouble. The coding below works, it just doesn't play the whole song. It plays around 10 seconds of it, then stops. Does anyone have any suggestions? I …

Software Development c++
Member Avatar for cbattagler
0
148
Member Avatar for codefreak2.0

Greetings everyone... :) I'm new to the DaniWeb community & it looks like a great place to learn from others. As a programmer with very little experience, other than textbooks & class, I'm looking for help in learning to code real world problems effectively. I'm currently reading: "Teach Yourself Java …

Software Development java
Member Avatar for codefreak2.0
0
104
Member Avatar for Jennifer84

I am trying to read lines from a .txt file and put them to a vector like this but when I run the program, the computer get stuck. The file is only about 50 lines. I wonder what could be wrong with this code. [code] ifstream File("C:\\Gli\\temp\\File1.txt"); std::vector<string> For; std::string …

Software Development c++ file-system
Member Avatar for Jennifer84
0
99
Member Avatar for nxavier

Okay, i've been working on this assignment for hours. I'm a total python newb but i've done pretty well so far. I'm stumped now though. I was hoping someone could point me in the right direction as to why i'm getting the error message below. The program is supposed to …

Software Development python
Member Avatar for nxavier
0
89
Member Avatar for bwkeller

Just for the heck of it I'm building a graphic editor, mainly to see how far I can take it and how much I can learn as I go. I'm having a problem with Image.Save. First I have an MDI parent form from which graphic files can be opened. After …

Software Development file-stream image vb.net
Member Avatar for bwkeller
0
430
Member Avatar for dmsjr12

I'm trying to create a function that uses loops to determine the roots of an equation using the Newton-Raphson method. I have my Newton function set up to take the input from my main prog, calculate the roots, and then return them back into the main prog. Somewhere along the …

Software Development c++
Member Avatar for crahhhhhb
0
62
Member Avatar for sunrise2007

hello I have an error with template class and I can not understand what is the problem? the code illustrate the arrangement of many of books by its publishers' names and if the books have same publisher arrange them by the title of the book . [COLOR="Red"]the error is instantiated …

Software Development c++ linked-list
Member Avatar for zhelih
0
143
Member Avatar for USUAggie

Hello all, I am having a bit of a problem with a part of my assignment I hope you can help me out with. I created an abstract baseclass called Geometry and 3 derived classes called Box, Sphere, and Cylinder. I am having a few problems though and I hope …

Software Development c c# c++
Member Avatar for vijayan121
0
105
Member Avatar for meary

I'm making a "simple" two-form Windows app. In the first form, when a button is hit, I'm trying to instantiate the second form and pass a variable to it. That variable is valid (and a watch indicates no changes) until I get into the button_click routine, then suddenly it's null! …

Software Development
Member Avatar for meary
0
110
Member Avatar for midimatt

Well another problem, sorry for constantly asking. My program is coming along well i think, it creates the file writes the data to it but it crashes when i try to view the information. i'm not sure if its an error with my loaddata() function or my viewcharacter() function [code=c] …

Software Development c data-structure
Member Avatar for midimatt
0
153
Member Avatar for digitz101

HOW CAN I MAKE A SCORING PROGRAM WHERE IN WHEN A GAME IS PLAYED THERE IS A PART WHERE THE TOP 3 PLAYERS WILL BE DISPLAYED, FOR EXAMPLE WHEN A PROGRAM IS RUNNING 3 PLAYERS WILL PLAY ONE AFTER ANOTHER, SO THE SCORES WILL BE STORED IN AN ARRAY OR …

Software Development c++
Member Avatar for Joatmon
0
936
Member Avatar for guest7

Hi, I have a two dimensional vector and I am trying to access all the elements of one row at a time. I am getting a syntax error. Following is my code : std::vector<int> row; std::vector<std::vector<int> > event(5,row); for(lv = 0; lv < 5; lv++) { for(int gno=event[lv].begin; gno != …

Software Development c++
Member Avatar for Joatmon
0
215
Member Avatar for geetajlo

Hi ... Can u plzz help me .. i want to put maximum validation for each control on my form.. it contain a textbox(input only alphabets), a combo box(display only Mr,Mrs, Miss), a datagrid.. and also how do i put a tool tip text on a textbox.. Note for the …

Software Development vb.net
Member Avatar for Jx_Man
0
92
Member Avatar for begyu

Hi, I have generated random unit vector. I would like to rotate it around the axes X,Y,Z in a random way. I thought that I generate 3 random numbers, e.g. 0,1,2. And if the random number is 0, then rotate the vector around X, And if the random number is …

Software Development c++
Member Avatar for VernonDozier
0
154
Member Avatar for Gadrel

What ho Boys and Girls, I'm attempting to make a login page in a windows application in this loverly C# visual studio express 2008 and the problem is I'm a right dimbo,lol. Thus far I have created a SQL Database of 3 columns and a pretty form with username and …

Software Development visual-studio
Member Avatar for Gadrel
0
105
Member Avatar for LanierWexford

I am working on a home work assignment which is: "Write a program that will allow the user to enter an infix expression terminated by '=' your program will convert to Postfix notation" enter 3+7-6/2*8+7= prints 3 7 + 6 2 / 8 * - 7 + I have written …

Software Development c++
Member Avatar for chalasesha
0
163
Member Avatar for rickster11

If anyone has a minute, I could use some help. Been working on this program all day. I know it's hard trying to understand someone's code and logic...but I'm hoping there is an easy solution here. My program needs to be able to read and write files at the push …

Software Development java java-swing
Member Avatar for rickster11
0
194
Member Avatar for peter_budo

Is there a way to set exact coordinates for background image or it is limited to layout options?

Software Development image
Member Avatar for peter_budo
0
109
Member Avatar for girish.batra

Dear all I am still bit new in shell script area.I am writing down a shell script which I guess somewhere wrong so please kindly correct it. I would be greatful for that. What I actually want from this shell script is that it will move all the files one …

Software Development shell-scripting windows-server
Member Avatar for girish.batra
0
116
Member Avatar for cosmos22

Hi. I'm trying to write a program that prompts the user of a message at a particular date. For example, a memorable date is set, and the program recognises this date from the code and lists a message. I would like to know how to make something that can capture …

Software Development c++
Member Avatar for lAmoebal
0
82
Member Avatar for nelledawg

Hi guys, Okay so lets say I've got a functions program that asks the user for a product quantity, the cost to make the product, and the selling price of the product. I want to make a function called total() to receive either the quantity and cost, or the quantity …

Software Development c
Member Avatar for nelledawg
0
157

The End.