132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Geek_Cyborg

How to use Button array? i want to use separate code for each button, Please Help

Software Development visual-basic
Member Avatar for Geek_Cyborg
0
2K
Member Avatar for minigweek

Hi there folks, I have Visual C# Project- Windows Application , It has a Webbrowser Control , and I intend to load a local HTML file with images into it. I want to embed the embed the html file and image files as resources. So I did. While using the …

Software Development asp.net image web-browser
Member Avatar for sknake
0
2K
Member Avatar for asaness

hi to all! i need some help. My problem is how to code the terminating current process, actually it is like a task manager. i hope somebody will answer my question. thanks to all...

Software Development visual-basic
Member Avatar for aka_amboy
0
128
Member Avatar for nunchuckie

Hi, I'm having problem with my linked list. The program I'm making should read in positive and negative numbers and put them into two separate lists. The numbers should be in rising order in the list. example: input: 3 5 1 -6 -2 -1 printing out the lists: pos: 1 …

Software Development c++ linked-list
Member Avatar for mrnutty
0
149
Member Avatar for samsons17

i'm so sory because i made mistake when asking about this before.. so here i'll make correction in this post.... actually what i want to ask is why my cin.fail() code do not works?? i want this program to ask the user back the same question if the user enter …

Software Development c++
Member Avatar for VernonDozier
0
182
Member Avatar for zachattack05

Sorry to keep asking so many questions, but you guys always seem to be so nice and helpful... I need a way to verify that a database file is in a somewhat stable state...stable as in it has all of the correct tables, and each table has all of the …

Software Development
Member Avatar for zachattack05
0
135
Member Avatar for johni12

Hey, I'm sorry for being such a python newb, but thanks for helping me out with the last one! Hopefully you guys will help a newb out again :) This time, I need to use a recursive function to basically do the same thing that the .replace function for strings …

Software Development python
Member Avatar for johni12
0
139
Member Avatar for bg_ac_dziner

I have built a telephone keypad using the drawing function of Excel and I would like to be able to have a visual print out in an existing Text Box of the numbers selected when I touch the individual key button Groups.

Software Development visual-basic
Member Avatar for vb5prgrmr
0
545
Member Avatar for babbu

m using ms access and c# i fetch the data frm the database which includes sr.no. and store in a data table. i thn display the contents using a datagridview. everythin is working fine.. heres the catch i do not want to display the sr.no...how can i make tht particular …

Software Development
Member Avatar for babbu
0
4K
Member Avatar for theABCasian

hello all working on a class project in C++ using eclipse and g++ stuck a zip of the project as an attachment but here is the basics [CODE]#include <iostream> #include "Complex.h" #include "FileHandling.h" using namespace std; int main(int argc, char **argv) { FileHandling file();// opens the file and gets the …

Software Development c++
Member Avatar for theABCasian
0
352
Member Avatar for jojomakinen

Hello to all code gurus! First of, I wouldn't lie, i am not a professional programmer.....I am more of the opposite. I was given a program to write during a 4 day C++ programmers boot camp that I signed up for (which ended friday actually). By profession am a graphic …

Software Development c c# c++
Member Avatar for jonsca
0
152
Member Avatar for confusedndazed

Hello all, I need to create a function call to calculate the average...Can anyone help with that?? I'm not sure how to create a function in my code to calculate the average. My code currently terminates after I enter the 50 inputs and does not compute and read the average. …

Software Development c++
Member Avatar for jonsca
0
89
Member Avatar for dinfadi

Hi everyone! I have difficulties solving a plot issue: I have these two datas in an array: np.array([Q-value, length]) Q-value......length A.................60 B.................40 C.................90 B................150 C................230 A................220 I want to plot these like: Q-value..........total length A...................280 B...................190 C...................230 Though it seems easy above my "real" array contains a lot more values. …

Software Development python
Member Avatar for dinfadi
0
133
Member Avatar for asweetroxxi

i have writen the program but i cant seem to print result. the program builds a stack of numbers, then it adds,subs,mult, or divides all the numbers. for example 4 numbers are put in 1,2,3,4 it will ask what you wanna do . the answer should be 10 but instead …

Software Development c++
Member Avatar for Lerner
0
133
Member Avatar for sirdanman10

I don't know if anybody here programs in C++ for the AS/400, specifically the Personal Communicator (PCOMM)... I have been able to successfully write programs in Visual Basic for Applications with Excel but I am having a hard time with C++. When I try to compile one of the sample …

Member Avatar for sirdanman10
0
167
Member Avatar for Lilal

Hey, I'm trying to do some compression on an ascii saved file, and running into problems. The original file starts off as such: [CODE]7+'Y 2+'J0-B)#0 [/CODE] I can read this in, and I get it as: [CODE]6 1 55 32 32 41 85 80 120 5 2 33 85 81 …

Software Development c++
Member Avatar for Lilal
0
299
Member Avatar for scrace89

My teacher gives a review sheet which is a lot like the exam if not the exam but with some minor changes. I'm stuck with these fill in the blanks. [CODE]Fill-In-The-Blank Word Frequency The following program gets the name of a file as a command-line argument, opens that file, reads …

Software Development algorithm python
Member Avatar for scrace89
0
401
Member Avatar for soapyillusion

I know there wasn't a fourm for this but everyone here seems to know so much. I got a project due tommorow and the requirement of it is that we need an XSLT style sheet with computational ability. I really don't get this whole thing and find the use of …

Software Development html-css xml
Member Avatar for Ezzaral
0
126
Member Avatar for johni12

Hi, I am a newbie here and a python newbie as well :) I am having trouble implementing a program in which you must use only recursive functions and no built-in python functions other than the len function in order to determine if there are duplicates of an item in …

Software Development python
Member Avatar for johni12
0
253
Member Avatar for andrewblack

Hi everyone.. can i have sample using TatukGIS in delphi please.. i just try TatukGIS sample but somehow canot understand how to make it.. i need for tracking, load shp file, get NMEA from COMPort and drawing a picture (symbol) in map using Long Lat.. TIA

Software Development delphi pascal
Member Avatar for andrewblack
0
185
Member Avatar for jlego

im trying to make the listview sort the listview items by column (whichever column was clicked, sort the list based on that column) in vb6 it was done by: [code] Private Sub ListView1_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader) Static olditem& With ListView1 .SortKey = ColumnHeader.SubItemIndex If olditem = .SortKey Then .SortOrder = …

Software Development listview vb.net
Member Avatar for jlego
0
207
Member Avatar for kamikazekazuo

[code] #include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; //------------------------prototypes---------------------------------- void ReadData(int &x, int &y, int &z); float FindMaxMin(int x, int y, int z, float &max, float &min); float ComputeAve(float x, float y, float z); void ShowAll(float x, float y, float z, float average, float max, float min); //-------------------------------------------------------------------- …

Software Development c++
Member Avatar for jonsca
0
156
Member Avatar for soeppp

[COLOR="Red"]This is a Library code i got from microsoft for format a textbox into a numeric format...but it's doesn't works because error message "numberFormatInfo is not defined" Can anybody fix this code.and teach me how to use this class... regards Soeppp[/COLOR] [CODE]Public Class NumericTextBox Inherits TextBox Private SpaceOK As Boolean …

Software Development vb.net
Member Avatar for me655321
0
168
Member Avatar for iRemember

i just recently started with pascal, and I have no idea what the compiler tries to tell me. Can anyone tell me whats wrong with these procedures? [CODE]Uses Crt; var Answer: Real; AnswerB : Real; AnswerC: Real; (******************************************************************************************) procedure GetData; var A : Real; B : Real; c : Real; …

Software Development pascal
Member Avatar for FlamingClaw
0
116
Member Avatar for JasonDoyle

to declare and populate my array i am using [CODE] //declare Image pictures[][] = new Image[16][14]; public void init(){ //populate pictures[2][0] = getImage(getCodeBase(),"twohearths.png"); pictures[3][0] = getImage(getCodeBase(),"threehearths.png"); pictures[4][0] = getImage(getCodeBase(),"fourhearths.png"); pictures[5][0] = getImage(getCodeBase(),"fivehearths.png"); pictures[6][0] = getImage(getCodeBase(),"sixhearths.png"); pictures[7][0] = getImage(getCodeBase(),"sevenhearths.png"); pictures[8][0] = getImage(getCodeBase(),"eighthearths.png"); pictures[9][0] = getImage(getCodeBase(),"ninehearths.png"); pictures[10][0] = getImage(getCodeBase(),"tenhearths.png"); pictures[11][0] = getImage(getCodeBase(),"jackhearths.png"); …

Software Development java
Member Avatar for JasonDoyle
0
159
Member Avatar for Neon87

I have a quick question. I use getline to read from a file and put the line in a string s I call cout<<s and the output is this: "HELLO, PLEASE \n "ENTER" A NUMBER \n" why are the \n ignored and treated as strings? thanks

Software Development c++
Member Avatar for Neon87
0
132
Member Avatar for mruane

Okay, I am writing a dopewars clone/wannabe in python. I have it pretty much the way I want it, except that selling items does not work. Buying them does fine, it is just selling them. Here is the code: [code] #!/usr/bin/env python # # pimp.py # # @authors: KarimRuan, # …

Software Development os-x python
Member Avatar for mruane
0
147
Member Avatar for zachattack05

Would anyone have the heart to post some example code to create an empty table? My code doesn't seem to work, it says the data type "int" in invalid...here's what I have: [CODE=C#] if (File.Exists(ExecutablePath + "\\idcc_data\\_IDCC.sdf") == true) { SqlCeCommand cmd; SqlCeConnection connection = new SqlCeConnection("DataSource=" + ExecutablePath + …

Software Development
Member Avatar for zachattack05
0
2K
Member Avatar for HITMANOF44th

i am having trouble with testing to see if aData is equal to exit i have tried a few diffrent things the only thing i have relized is that the compiler say that aData is a multi character constant any help is greatly appreciated [CODE]while (exit != 1) { char …

Software Development c++
Member Avatar for HITMANOF44th
0
126
Member Avatar for python.noob

Hai friends, The problem here(in the code below) is i want to catch the minimize and close event of QTabWidget(by default this widget do not have any slot named close or minimize) to hide the widget.. so the only way the user can quit the application is by clicking exit …

Software Development python
Member Avatar for python.noob
0
738
Member Avatar for ziyakhan10

I am trying to write a program to find nearest prime to a number to its left...using for loop i just don't seem to get it right [CODE] #include<iostream.h> #include<conio.h> void main() { clrscr(); int n1,flag=0; cout<<"Enter The Number"<<endl; cin>>n1; for(int i=n1;i>0;i--) { for(int j=2;j<(i/2);j++) { if(i%j==0) { flag=0; } …

Software Development c c# c++
Member Avatar for Skeen
0
4K
Member Avatar for laconstantine

I started with debuging so I now debug all programs I can to understand the full work off microprocessor. I know basic ASM level so no problem here. look what i wana ask [CODE] --- c:\users\zippo\documents\visual studio 2008\projects\debug\debug\main.cpp -- #include <iostream> using namespace std; int main() { 00031370 push ebp …

Software Development c++ visual-basic visual-studio
Member Avatar for Ancient Dragon
0
205
Member Avatar for neosonic

Hi, this is my problem. I have a big picture to be viewed in picturebox. I will need to manipulated that picture (add some graphic in it) and save it in the same size (if the original is 2000x2500, let it be 2000x2500). The problem is that picture's size is …

Software Development visual-basic
Member Avatar for neosonic
0
94
Member Avatar for Eternity[LK]

Hello. I have created a simple program which generates 3 random numbers, puts them in a text file, reads them, and then does 3 small calculations, results are put in another text file. Program is working correctly on my PC, however there is a catch. I need to submit it …

Software Development c c# c++ ios open-source
Member Avatar for jonsca
0
371
Member Avatar for progag

write a program that will multiply two dimentional arrays as follow: 1. The program should prompt the user for the dimention of the first array (row x coloum). 2. The program should get the values of the first array one by one. (e.g. program should display "enter value of a[1][1]= …

Software Development c++ matrix-multiplication
Member Avatar for Dave Sinkula
0
96
Member Avatar for ahvicm

#include<stdio.h> #include<conio.h> main() { window(10,55,22,77); textbackground(RED); clrscr(); } is this correct?? i run it but it didn't display anything. my prof. have an example bout this he said that the #'s inside the parentheses are the sizes of the box, (x1,y1,x2,y2) x1 is the top line of the box, y1 …

Software Development c++
Member Avatar for mahi oberoy
0
123
Member Avatar for muh_hatta

can u help me to solve my program please!!!!!1:icon_cry: i don't have any idea againt.......

Software Development laptop visual-basic
Member Avatar for santoshaxl
0
199
Member Avatar for confusedndazed

Hello all, I'm getting an error telling me "'}' is expected at the end of input" but '}' is there. Any help with these issues? Here's what I have so far: [CODE]#include <iostream> using namespace std ; void displayTitle () { cout << "Active Duty Navy Personnel Program" << endl …

Software Development c++
Member Avatar for jonsca
0
123
Member Avatar for Phaelax

I need a method of rendering HTML in Java. I was originally planning to use [URL="http://www.genuitec.com/about/labs-webkit-for-swt/WebKit%20For%20SWT%20Developer%20Guide.html"]WebKit for SWT[/URL], but I'm having problems with it displaying images as specified in the CSS. Most examples I've seen have worked fine when loading an external html file, even the package mentioned above. My …

Software Development html-css java
Member Avatar for ~s.o.s~
0
137
Member Avatar for new programer

Hello all, I have been trying to use swtich cases in conditions but it won't work what I mean is like this; [COLOR="Red"]do{ cout<<"Enter a valid number"; cin>>number; switch(number) { case 0: bla bla break; case 1: bla bla break; case default: cout<<"re-enter"; } }while(defalut);[/COLOR] if that can never happen …

Software Development c++
Member Avatar for new programer
0
82
Member Avatar for fenerista

do_gettimeofday(&tv1) current_kernel_time() do_gettimeofday function returns a value like that when the time was about 21:42: "1260819441.705069" and current_kernel_time() function returns a value similar to do_gettimeofday's value. the print code is for tv1: [CODE]len += sprintf(buf,"%10i.%06i\n",(int) tv1.tv_sec, (int) tv1.tv_usec);[/CODE] I don't know what these functions returns which time. I want to …

Software Development c
Member Avatar for fenerista
0
496
Member Avatar for big noob

installing java on my firefox explorer get right to the end of the installation and it gives me an error message saying "error 25099. unzipping core files failed" doesnt allow me to do please help as my name says im a big noob when it comes to pc shit.

Software Development java
Member Avatar for daslocu
0
133
Member Avatar for RichardCrickets

Hello DaniWeb. Here is my problem. I have an XML file that is arranged like this.. <document> <Word>apple</Word> <Word>hat</Word> <Word>car</Word> </document> I'm trying to figure out how to grab the actual words. This is how I'm doing it now. [Code] DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.parse(new File("data/general/words.xml")); NodeList …

Software Development apple java xml
Member Avatar for RichardCrickets
0
106
Member Avatar for rizzo18

I'm trying to execute this code to open a java GUI to run queries on the oracle express database I have set up but at the actionPerformed() class, I keep getting java.sql.SQLException errors. What I would like for it to do is when you hit the button, that table from …

Software Development gui java java-jsp java-swing oracle
Member Avatar for rizzo18
0
2K
Member Avatar for bluem1

Team - Please forgive my ignorance here, I am very new to xml coding. Basic situation is if I run the following code: [CODE] Dim feedXML As XDocument = XDocument.Load("c:\Feeds.xml") Dim bubba = From Feedmain In feedXML.Descendants("Feed") _ Where (Feedmain.Attribute("status") Is Nothing) OrElse (Feedmain.Attribute("status").Value <> "disabled") _ Select Name = …

Software Development xml
Member Avatar for bluem1
0
90
Member Avatar for bobsta

Hi, I am writing a simple graphics engine using homegeneous coordinates (fourVector) and the corresponding 4matrices (fourMatrix). fourVector.cpp: [CODE]fourVector::fourVector(float x, float y, float z, float w): x(x),y(y),z(z),w(w){ };[/CODE] fourMatrix.h [CODE] class fourMatrix{ public: fourVector i,j,k,l; ... }[/CODE] fourMatrix.cpp: [CODE]fourMatrix::fourMatrix():i(fourVector(1,0,0,0)),j(fourVector(0,1,0,0)),k(fourVector(0,0,1,0)),l(fourVector(0,0,0,1)){} fourMatrix::fourMatrix(fourVector &i, fourVector &j, fourVector &k, fourVector &l): i(i),j(j),k(k),l(l){ } ... …

Software Development c++
Member Avatar for MrSpigot
0
101
Member Avatar for basakua

sand watch (for height 4 : 4 lines in the upper half and 4 lines in the lower): INPUT: 4 OUTPUT: ******* ***** *** * * *** ***** ******* i am not sure how to form a shape like this with C. can you help me?

Software Development c
Member Avatar for gerard4143
0
103
Member Avatar for judge6

What i am trying to do is create a conosle app in vb.net 2008. I have a XML file (data_file.xml), and a template file (template.txt). The template file contains a few sentences, each one containing a placeholder which needs to be filled. I need to create multiple output files (.txt), …

Software Development regex vb.net xml
Member Avatar for judge6
0
219
Member Avatar for transfernly

hi....i am writing a code which reads the contents of file....it has first name, lastname and phone number.....now i want ot read all the first names into one array second into another and phone numbers into third array....i tried but i could read only line by line.....please help out...my code …

Software Development c++
Member Avatar for GrubSchumi
0
101
Member Avatar for lovely soso

Write a C++ program that asks the user to enter the length, width, and depth of a swimming pool using getValues( ). calculate the cubic volume using calcCubic( ). Print the result using printCubic( ).

Software Development c++
Member Avatar for Divyab
0
91

The End.