132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Singlem

Using a dbexpress component to connect to a mysql DB. If I want to commands like Insert, Delete and UPDATE I use a query. The question is How can I let the user Write the commands into a Richedit or Memo, what ever is the best. And then load those …

Software Development pascal
Member Avatar for finalist
0
147
Member Avatar for smokin745

Hello guys, i m working on a program that stores details of a book collection. Following are the things that should be there: [CODE]• Write a new class ‘book’ to represent details of special book objects. A book consists of (for example) the title, number of copies, author, (“The Davinci …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
164
Member Avatar for Anarionist

ok so my code will output the message its suppose to if it doesnt receive any arguments and im 100% sure the problem is the if statement with the argv[1] because i always have problems with char type for some reason. :( [code] #include <iostream> #include <string> #include <sstream> #include …

Software Development c++
Member Avatar for Anarionist
0
158
Member Avatar for sumitg979

My problem is: I want to call the method, but I don't know at compile-time which arguments I want to pass.Is there some way by which I can create the va_list during run time and pass it to the fucntion. Eg Code: total(4, 1,2,3,4) ;//Where 4 is the number of …

Software Development c
Member Avatar for Ancient Dragon
0
2K
Member Avatar for tinamenon

public class OurList <E> implements OurListInterface <E> { // I. Local classes: // PURPOSE: To hold one data element in the linked list. class Node <E> { // I. Private member vars: E item; Node next; Node prev; // II. Constructor(s): Node (E newItem) { item = newItem; next = …

Software Development java linked-list
Member Avatar for Ezzaral
0
153
Member Avatar for moods125

[CODE]# include <iostream> using namespace std; void init(int *Ptr, const int &s); void display(int *Ptr, const int &s); void sort(int *aPtr, int s); void swap(int *v1Ptr, int *v2Ptr); int index_of_next_smallest(int *aPtr, int *SiPtr, int s); int main() { int size, count; int *nPtr; cout << "Enter the size: "; cin …

Software Development c++
Member Avatar for Fbody
0
143
Member Avatar for TheWhite

[CODE]new File("config.ini");[/CODE] 1. When used via eclipse, the correct file is found in the root of the project. 2. When used via a runnable jar, it looks in C:\users\ME\config.ini How do I make it look at the file outside of the jar? New Folder: - program.jar - config.ini

Software Development java
Member Avatar for Ezzaral
0
172
Member Avatar for badx

hi can anyone help me with this code that ive created for a login form, im having trouble with the username and password, ive highlighted the part that's giving me a problem. Error Message: The name 'inputName' does not exist in the current context : The name 'inputPass' does not …

Member Avatar for SharpJohnnyG
0
144
Member Avatar for kangarooblood

what is the counterpart of [CODE]start program.exe[/CODE] in c++?

Software Development c++
Member Avatar for Ancient Dragon
0
115
Member Avatar for gerhardjl

Hi, I wish to source a 'StopWatch' Application (Prefer source re-compilable) with Start/Stop/Clear buttons. Anyone here done something like that and would like to share the code with me? I use Delphi 6&7 Greetings, GjL

Software Development delphi pascal
Member Avatar for dmitry_n
0
107
Member Avatar for igodspeed

Hello, I am not able to compile it on windows. It compiles fine in linux but not on windows. Well actually it compiles if i change a few things but there are many linker errors. Could someonline please tell me where the problem is at. Thanks [CODE]// Project: B*-trees floorplanning …

Software Development c++
Member Avatar for mitrmkar
0
247
Member Avatar for Stubaan

Hi folks - I think I'm almost there... I have files with data in this format: ID1 ID2 Dist 1 a 50 2 b 20 3 c 10 2 c 100 4 c 80 4 a 70 1 a 90 2 a 34 3 b 5 2 b 6 1 …

Software Development python storage
Member Avatar for Stubaan
0
182
Member Avatar for Eternity[LK]

Hi. I have some beginner questions related to C# in general, as well as my first home assignment in C#. When the .exe file is opened, a window pops up and asks user a question. He has 2 answer options (2 buttons). The task is - make it impossible for …

Software Development legal visual-studio
Member Avatar for Geekitygeek
0
2K
Member Avatar for santy555

Hi , I am new to c# , I want to know how to develop ActiveXControls in c# ,Can you let me know some samples if you have. My Requirement is : to run an Exe which is residing on the Client machine . I.e in the web page i …

Software Development
Member Avatar for swi tech
0
1K
Member Avatar for johnovision27

Hello all! Firstly, sorry, it's been a while since I've been programming and I'm relatively new to VB My question is this; I want to change the number in an object identifier to what ever number the program picks at random. Roulette, 37 spots on the wheel, random number 1-37, …

Software Development visual-basic
Member Avatar for johnovision27
0
138
Member Avatar for houlahan

ok so my original code was: [CODE] Patient patient = new Patient(); patient.setId(1); patient.setName("luke"); patient.setAddress("100 test"); patient.setTelNumber("01484710204"); patient.healthproblem.setBrainProblemName("Brain Cancer"); patient.healthproblem.setDateDiagnosed("30-03-1990"); patient.healthproblem.setPatientHealth("Poor"); Patient patient1 = new Patient(); patient1.setId(2); patient1.setName("john"); patient1.setAddress("100 test"); patient1.setTelNumber("01484710204"); patient1.healthproblem.setLungProblemName("Lung Cancer"); patient1.healthproblem.setDateDiagnosed("12-02-1991"); patient1.healthproblem.setPatientHealth("Poor"); patient1.healthproblem.setLungProblemSide("Left"); if ("luke".equalsIgnoreCase(patient.getName())) { out.writeObject(patient); } else if ("john".equalsIgnoreCase(patient.getName())) { out.writeObject(patient1); }[/CODE] so when the …

Software Development java
Member Avatar for houlahan
0
97
Member Avatar for Bernybon

Hi, I made a game and i would like to have a client server, ive been able to use TcpListener with internal ip such 127.0.0.1 or 192.168.1.100. But when it comes to make it work through internet (external ip) it does not work. Anybody would know why? Thanks for your …

Software Development client-server
Member Avatar for Diamonddrake
0
141
Member Avatar for aladar04

The program should tell user how many vowels occured on each word in a given string. The string was "Once upon a midnight dreary, while I pondered weak and weary." The output generated by the codes below was: [COLOR="Green"]Enter string(s): Once upon a midnight dreary, while I pondered weak and …

Software Development java
Member Avatar for gangsta1903
0
120
Member Avatar for txwooley

I am trying to put a terminal into my tk gui program as a widget. I figured out how to have the output of a command sent to a text widget: [CODE] root = Tkinter.Tk() tfield = Tkinter.Text(root) tfield.pack() for line in os.popen("run_command", 'r'): tfield.insert("end", line) root.mainloop() [/CODE] But how …

Software Development gui perl python tkinter
Member Avatar for txwooley
0
11K
Member Avatar for Tops

I have a python assignment that has to do with character occurrence. I have to extract all the characters (letters to be precise) in a poem and count how many of each letters there are. For an example: Bobby goes to school blahhhh blahhh blahhh To: B---6 o---5 y---1 ...etc …

Software Development python
Member Avatar for bvdet
0
106
Member Avatar for wilsonz91

Hi, My problem here is that, I want to add up the total of the few different items that are entered. I have no idea how to add them up, please offer some suggestions, thanks [CODE]#include<iostream> #include <windows.h> using namespace std; float weightcount(float w); float distancecount(float d); int main(void) { …

Software Development c++
Member Avatar for wilsonz91
0
186
Member Avatar for gridder

Hi, Wonder if anyone here can help with this: I'm trying to split each line of data from a text file into a list or tuple. The lines contain a mixture of ints, floats, and strings (with spaces). I can do it easily enough using split() twice - once by …

Software Development python regex
Member Avatar for gridder
0
124
Member Avatar for rhomz

somebody help me... im using VB6.0 for my project and badly i need a littlE help,, the program should goes like this: --==>>>when yOu input a number in a textbox and click a command button label with"ADD" the number you input will automatically add to the listbox but should be …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
1K
Member Avatar for begineer_26

Hi, I want to find number of elements of each type in a double dimensional array For example A:{ 1 1 1 1 1 1 1 1 2 1 2 2 1 1 3 2 3 1 4 5 } So the result should be P1 =5 P2=0 p3 = …

Software Development c
Member Avatar for stewie griffin
0
75
Member Avatar for Alex_

Hello, i want to understand these methods as a programmer. The only difference i know is that "get" sends the parameters via the url while "post" does not. But what actually happens in the source code? How can i implement it? I found some source code concerning the post method …

Software Development first-post java xml
Member Avatar for jwenting
0
198
Member Avatar for _siren2

I've been coding a little program which works perfectly, but I decided to upgrade it and add a few checkboxes. Now since i've never made one before I'm having trouble and I can't seem to find anywhere that can solve my problem. [code] void TheAppDlg::OnFirstcheckbox() { if(OnFirstcheckbox !=0) { m_cCharSet.SetWindowText(_T("123")); …

Software Development c++
Member Avatar for Ancient Dragon
0
320
Member Avatar for glenndr_15
Member Avatar for bkafroboy69

need some help. just wanted to know if my code is right can some one read over these instuctions and tell me if my code is right like the directions public boolean add(double value) If the size of the array is less than its capacity, then the value is added …

Software Development java
Member Avatar for stevelg
0
170
Member Avatar for iloveannaw

Hi, we started doing programing at uni and i got interested so am learning some python at home. just started on generators and thought i'd write a function to generate prime numbers, as you do: [CODE] def primes(p=2): while True: for n in range(2,p): if p % n == 0: …

Software Development python
Member Avatar for Gribouillis
0
70
Member Avatar for solomon_13000

The code below will throw a RuntimeException which will be caught by the first catch block that handles the RuntimeException. Then why is it that the second catch block is attempting to handle the RuntimeException. Is it because a RuntimeException and an ArithmeticException are both unchecked exception?. [CODE] public class …

Software Development java
Member Avatar for masijade
0
119
Member Avatar for webdragon89

[CODE]#include <iostream> using namespace std; class sMatrix { public: sMatrix(int,int); sMatrix (sMatrix&); int getR(); int getC(); bool rValid(double); bool cValid(double); void setEl(double,double,double); double getEl(int i,int j); int getVal(); void print(); void add(sMatrix&); private: int nr, nc; //number of row and cols int nent; //number of entries int nmax; //the max …

Software Development c++ storage
Member Avatar for Nick Evan
0
275
Member Avatar for ybkumar77

Hi I am using Rougewave library for one of my program. I am using the RWHashTable from it. during the startup of my program, I will load this hashtable with information read from database. so, I have the hashtable filled with data. and during runtime, I need to print all …

Software Development c++
Member Avatar for ybkumar77
0
139
Member Avatar for johndoe444

Hi, This is the code segment: [CODE]template<class type> void merge_sort(type inputs[], int p, int r, int (*comp)(type, type)); typedef struct { vertex vertices[MAX_VERTEX]; int number_vertices; int adj_matrix[MAX_VERTEX][MAX_VERTEX]; } graph; int compare_vertex(vertex v1, vertex v2) { if (v1.f < v2.f) { return -1; } else if (v1.f > v2.f) { return …

Software Development c++
Member Avatar for mitrmkar
0
251
Member Avatar for Mapopa

Instructions: You are required to design and write an application that will analyze an input file (InputFile.txt); the file contains a date on each line. Your algorithm should output all the missing dates, excluding Saturdays and Sundays. You should not cater for public holidays. Also keep in mind: each leap …

Software Development algorithm
Member Avatar for Geekitygeek
0
116
Member Avatar for Anarionist

MSG msg ; HWND hwnd; WNDCLASS wc; to me this syntax looks like msg hwnd and wc(all lower case) are variables is this right? and with the exception of wc would changing the other 2 change anything?

Software Development c++
Member Avatar for mitrmkar
0
92
Member Avatar for aswin cp

Can someone help me with the code to display the second largest value in a set of numbers using '[B][U]while loop[/U][/B]'??? I have done programs using [B][U]while loop[/U][/B] to display the largest value, as well as the largest and smallest value.But this seems a bit tough for me.

Software Development c++
Member Avatar for tintin.iitk
0
305
Member Avatar for pankajagar2002

Hello , Please help me, i am facing problem to divide the xml in two parts. The xml is <aa> <x>1</x> <x>2</x> <x>3</x> <x>4</x> <x>5</x> <x>6</x> <x>7</x> <x>8</x> <x>9</x> <x>10</x> </aa> the x element contain some attriubte and child elements. and i want to divide the xml into two parts …

Software Development xml
Member Avatar for varun0703
0
113
Member Avatar for edy_sze

Hey Guys I've got a Python function that is slowing the efficiency of my program down and was wondering if anyone could give me some pointers on how I could make this function more efficient ? The function is used for converting a integer to a base 16 number. [CODE]def …

Software Development python
Member Avatar for edy_sze
0
137
Member Avatar for vilas_tadoori

Hi All, I am newbie to the C# programming and we have to design a situation with the following use case. We would like to control the text boxes visibility using a checkbox. When ever we check the checkbox the textbox should not be visible and when we uncheck the …

Software Development
Member Avatar for Geekitygeek
0
96
Member Avatar for webdragon89

I have the following code: my add function and M.add(N) statement keeps turning up errors I'm not sure how to fix it. I also need a getVal function but I'm not sure what to do with it. [CODE]#include <iostream> using namespace std; class sMatrix { public: sMatrix(int,int); int getR(); int …

Software Development c++ storage
Member Avatar for Nick Evan
0
116
Member Avatar for shredded

how do i write a java code preferably using the 'while-do', 'if-else', 'for' statements to get these outcomes? n is the input and the system prints triangles of height n? n=2 . * *** n=5 ........* ......*** ....***** ..******* ********* ignore the dots, they are to align them properly thanks …

Software Development java
Member Avatar for javaAddict
0
777
Member Avatar for Sonic42

Here's what I'm trying to do: I want my program to spawn a Msgbox on the first day of every month with some information for the user. Please walk me throught it EXACTLY, as I'm a beginner :icon_mrgreen:

Software Development c++
Member Avatar for Nagarajshet
0
87
Member Avatar for abu taher

I type 2009 in mask edit box and select August from a combo box. then I press report button for report. then show this msg: "run time error 713 Application - defined or object defined error" another thing when I run the exe of this project in another pc then …

Software Development visual-basic
Member Avatar for abu taher
0
2K
Member Avatar for neel123

[b]Split from - [url]http://www.daniweb.com/forums/thread37592.html[/url] [/b] Hi, I want to do following two steps. I am already done with first step. But I can't do the second step. Could anyone give me any idea how to do it? Step 1: After serialization, I load XML file's data in a datagrid in …

Software Development asp.net c# xml
Member Avatar for kvprajapati
0
116
Member Avatar for tintin.iitk

e.g. [CODE] class B { public: virtual ~B() {printf("Base class Destructor");} }; class D { public: ~D() {printf("Derived class Destructor");} }; [/CODE] Is it somehow possible to altogether avoid printing 'Base class Destructor' when an object of class D is destructed (of course without causing a memory leak).. If you …

Software Development c++
Member Avatar for tintin.iitk
0
2K
Member Avatar for xellos

whats the best way to make gui programs write all code your self or use the gui creator from netbeans? dont you get crappy code from the creator ?

Software Development gui java java-netbeans java-swing
Member Avatar for jwenting
0
137
Member Avatar for Renzokouken_22

[CODE] Private Sub Form_Load() With db .Provider = "Microsoft.Jet.OLEDB.4.0" .Mode = adModeReadWrite .Open (App.Path & "\DBAddress.mdb") End With End Sub[/CODE] Guys that's my code and I think that code contains no error. What's happening is that when I'm starting to execute the code. It shows a Run Time Error: Could …

Software Development visual-basic
Member Avatar for opspl_programme
0
225
Member Avatar for TaroYamada

Now, I am sure there are more than 3 problems with this thing, and it's been sort of butchered into pieces with me attempting to solve this issue. Regardless, outside of the three problems I'd appreciate any input. My book tasks me with creating a program for a zoo that …

Software Development c++
Member Avatar for Anarionist
0
88
Member Avatar for Stefankarlsson

Hello everyone, im writing this post because im in need of some help or guidelines. My programs function is to be able to store cars, with this i mean being able to: add, delete and view the list of cars added. Everything is supposed to be stored in a txt …

Software Development java
Member Avatar for javaAddict
0
258
Member Avatar for tquiva

Hello, can someone please help me with my code. I'm working on a program to calculate the monthly cost for excess minutes from two different cell phone companies. I still have a lot more to add to my code, but I am stuck on this particular part. I am reading …

Software Development c
Member Avatar for WaltP
0
77

The End.