43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jaepi

Hello there, I have here a problem with the compilation of my program. The compiler tells me that my typedefs are redefined, but I defined it only once. Ok, heres the score, I have here a header file (let's name this as file X) that contains all the typedefs that …

Software Development c++
Member Avatar for GreenDay2001
0
212
Member Avatar for bhmails

Hi all, I'm new at c. How do I make the system pause until any key is pressed in linux like getche does in borland? thanks

Software Development c
Member Avatar for TkTkorrovi
0
304
Member Avatar for bajanpoet

I have a button that when pressed displays all the customers in the table. Other buttons are used to add or delete a customer record, or upload a batch of numbers. How can I fire the Click event of the View button after the Add or Delete buttons code has …

Software Development vb.net
Member Avatar for bajanpoet
0
142
Member Avatar for iCez

Hello guys, just wanna ask help from you again. I just reviewed my notes and tried to run the code, I successfully debugged it but when I ran the code it says [I]java.lang.NoSuchMethodError: main Exception in thread "main" Process completed. [/I] I just don't know what to do. =/ here's …

Software Development apple java
Member Avatar for iCez
0
94
Member Avatar for laseredd

I recently installed Linux (Slackware Linux 12) on my laptop. On Windows I used IDLE for my python development, but on Linux, IDLE looks HORRIBLE. I tried tweaking the settings but it still looks bad, and is hard to program in. Can anyone recommend a good IDE for Python that …

Software Development ide laptop python slackware
Member Avatar for freddypyther
0
237
Member Avatar for tgifgemini

[B][/B] Hi Members, please can anyone show me how I can write a blank line after writing each records? My intension is to space out the data in the spreadsheet for readability. So far the code I'm using is not doing it. Seem my module below: [code] i = 5 …

Software Development visual-basic
Member Avatar for binoj_daniel
0
221
Member Avatar for wasee

I have to do aproject in java so please guide me what kind of project can be done in java ? thanks

Software Development java
Member Avatar for masijade
0
166
Member Avatar for Duki

ok so i'm new to vb. what is wrong with this code at line 28: Public Class Form1 Const DISCOUNT_RATE As Double = 0.1 Const RENTAL_RATE As Double = 1.8 Dim totSales As Integer Dim totIncome As Double Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load …

Software Development vb.net
Member Avatar for cutepinkbunnies
0
194
Member Avatar for theraven1982

Hello, I've just started learning C, and now I have a problem (and I couldn't find a solution on the interweb ;) ). I want to multiply two matrices (2x2). First it 'reads' two matrices, and after that it needs to multiply it. It reads the matrices using double for-loops; …

Software Development c
Member Avatar for theraven1982
1
14K
Member Avatar for hbk619

I want a line of buttons down the side of a swing window. I got this code so far: [code=java]import javax.swing.*; import java.awt.*; class basic extends JFrame // implements ActionListener { public basic() { super("Till"); setSize(600,500); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); Container contentArea = getContentPane(); contentArea.setBackground(Color.white); BorderLayout flowManager = new BorderLayout(); contentArea.setLayout(flowManager); JPanel …

Software Development java java-swing
Member Avatar for hbk619
0
2K
Member Avatar for vidaj

Hello. I'm having a hard time figuring this out. I want to open a file, but I don't know the filename. I know the directory the file resides in, and I know the extension ('.lay'), and I know there is only one file with that extension in the directory. How …

Software Development c
Member Avatar for iamthwee
0
105
Member Avatar for wicked357

here is what I have to create: using while, for, do...while Write a program that displays a menu with the following choices to the user. A - Find the largest # with a known quantity of numbers B - Find the smallest # with an unknown quantity of numbers C …

Software Development c++
Member Avatar for Salem
0
107
Member Avatar for upstream

Hey, i am practicing in this book sample, it says i can rewrite my code for determining the highest value in my 3 input. the commented part is working perfectly (Line 19, 26), it can return the highest value... but when i try to rewrite it using the Math.max method, …

Software Development java
Member Avatar for upstream
0
162
Member Avatar for grahhh

I'm new to Python, and need a bit of help. I have a large data set that is tab delimited but annoyingly also has some extra spaces in it and I can't seem to get it in a nice array to perform computations on it. This is a simplification of …

Software Development python
Member Avatar for paddy3118
0
187
Member Avatar for anil1219

Hi All... Plz solve my problem. String temp="Vendor number modified from 12345 to 00056789" How to separate these two numbers ? Plz reply soon.

Software Development java
Member Avatar for anil1219
0
105
Member Avatar for prettyboy

Hi. This is my first post and i'm a newbie. I'm learning to use VB6 and i'm trying to create a simple alarm clock but having a type mismatch error. It seems that the input time does not match the clock time. i have here the code. Hope u can …

Software Development visual-basic
Member Avatar for prettyboy
0
160
Member Avatar for Dio1080

I'm working on a code on compatibility and it seems that after I ask and answer the first question, the program just stops, I have no clue why it doesn't go on to ask the next question, can somebody help my figure this out, thanks, oh here is my code. …

Software Development java
Member Avatar for Dio1080
0
141
Member Avatar for rapperhuj

Hello everyone, I just need help on this code. I can't debug it, I'm just new in Java and this is just my fifth assignment so I'm really having a hard time. Here's my code: [code]import java.io.*; public class input { public static InputStreamReader Reader=new InputStreamReader (System.in); public static BufferedReader …

Software Development java
Member Avatar for saifjob40
0
215
Member Avatar for iCez

Hi everyone, I hope you guys can help me. [U]Output[/U] Enter your department number: You belong to: 1-3 = Mr.X 4-7 = Mr.Y 8-9 = Mr.Z ------ [I]Error: When I input numbers from 1-9, the output that is displayed is always "You belong to: Mr. Z" Here's my code:[/I] [CODE]import …

Software Development display java
Member Avatar for iCez
0
135
Member Avatar for Granprix

Hi! I'm having a proble with constructors. I'm supposed to write a program that has a default constructor, but also one that takes parameters. The program I wrote below is desigend to allow teh setting of age of the person, but when I compile it, I get a message saying …

Software Development c++
Member Avatar for Hamrick
0
142
Member Avatar for Pretorak

Hello everyone, I don't often use forums for getting answers, but I simply cannot seem to find how to fire a MessageBox under Borland Builder...I could use MessageDlg which works, but I only want an OK button, so I would rather go with MessageBox...code sample: [CODE]void __fastcall TForm1::cmdPlayClick(TObject *Sender) { …

Software Development c++
Member Avatar for robgxxx
0
2K
Member Avatar for toolmanx

I have been using the Borland BCC32 compiler and love the CPP32 line numbering tool. Now I want to switch to the cl.exe compiler. Is there a tool like CPP32 in the Microsoft system?

Software Development c++
Member Avatar for vijayan121
0
127
Member Avatar for jrcagle

So today was the first day of class, and I started it as I did last year: by logging in all students as admin temporarily, then having them drag over the installer from the network and running it, then logging off. It's slightly insecure, but the class is for beginners, …

Software Development python
Member Avatar for vegaseat
0
124
Member Avatar for jsap

I have a function that takes a void** and I want to pass an integer in to the function but can not seem to figure out the syntax here is the function prototype [code]bool pop(Node **stack, void **data)[/code]

Software Development c++
Member Avatar for jsap
0
144
Member Avatar for zandiago

My question is rather brief (it's similar to what is at [url]http://www.daniweb.com/forums/thread79268.html)[/url]. I've writen the program....but...i was just wondering (apart from the program itself) if there would be anyway to verify if what the program did is correct mathematically? I'll post my code if required. Thx and have a good …

Software Development c++
Member Avatar for zandiago
0
97
Member Avatar for radskate360

Hi all, I have a assignment that says, write a program that will add up all of the odd numbers from 1 through 3579 and alll of the even numbers from 522 to 2222. Use While loops. Output should look like this The sum of the odd numbers from 1 …

Software Development c++
Member Avatar for zandiago
0
270
Member Avatar for TaoistTotty

I would be grateful if anyone could let me know of an easy way of searching multiple tables for information. I would like to display any found results in a grid alowing the user to choose the correct one and have this disply in the main form. If this easy …

Software Development sql vb.net
Member Avatar for TaoistTotty
0
176
Member Avatar for Duki

My prof is touching on information hiding, and good programming techniques. He said it's a good idea to keep as much of the user interface (i.e., couts) in main, and then modify object variables through the use of functions. Here's what I want to do: I'm starting on a program …

Software Development c++ user-interface
Member Avatar for Dave Sinkula
0
308
Member Avatar for bajanpoet

I've found that my application does not find my mdb file anymore! I have used a open file dialog box to select the mdb file that I want my app to use and add it to my connectstring via a variable, but although the variable has the correct path to …

Software Development vb.net
Member Avatar for bajanpoet
0
98
Member Avatar for asilter

when i, [code] g++ -c Serdar.cc [/code] compiler says: [code] Serdar.cc:3: error: semicolon missing after declaration of `Serdar' Serdar.cc:4: error: ISO C++ forbids defining types within return type Serdar.cc:4: error: two or more data types in declaration of `SetValue' Serdar.cc:4: error: prototype for `Serdar Serdar::SetValue(const int&)' does not match any …

Software Development c++
Member Avatar for iamthwee
0
345
Member Avatar for ptaylor965

I have a backup utility that copies all files and folder into a backup area This can take some time as the files take up 92Mb over a 1Mbps Data Link I have added multi-threading to the utility so that the copy can be aborted and so the GUI keeps …

Software Development gui vb.net
Member Avatar for ptaylor965
0
138
Member Avatar for goldfish999

I have a Table with a 'Dates' Field as the primary key and 20 other Fields of Integer Type. This is the Master Table with 9 other Detail Tables all with a 'Dates' key field. I have a form to view all this and it works fine. My problem is …

Software Development vb.net
Member Avatar for Hamrick
0
95
Member Avatar for asilter

[code] typedef map<string, Attr_info, less<string> > AttrMap; [/code] i do not know what "map<", less and ">" represents? What I little understood from the code is AttrMap is a collection of Attr_infos. If so how can i add a Attr_info into AttrMap? could u plz help? thanx

Software Development c++
Member Avatar for Salem
0
80
Member Avatar for intellogo

Hi, I have a report desigend in Crystal Report 11. The report has 2 sections which is divided in between by a simple dark line. The report's left side has the fields of TABLE A and will be used to show records from TABLE A only. And the report's right …

Software Development sql visual-basic
Member Avatar for intellogo
0
623
Member Avatar for eranga262154

Hi all, I have just start to work on C++. I want to open a text file, then write few text there. This is the code I wrote for that. [CODE]#include <iostream> #include <fstream> using namespace std; int main() { ofstream file; file.open ("example.txt"); if(file.is_open()) { file << "Write a …

Software Development c++ file-system
Member Avatar for eranga262154
1
170
Member Avatar for ceyesuma

Hello I am at a work computer (firewall) I need to add to the CLASSPATH and the PATH to use apache tomcat. Though I know this addition won't disrupt anything I do not have a administrative password. Is there a way to add to these enviornmental system variables? DOS maybe?

Software Development apache java
Member Avatar for Paul.Esson
0
107
Member Avatar for ptaylor965

Hi, I would like to know how to create variables like booleans When you type a boolean command it look like this Dim Boo as Boolean Boo = True False and then you select one Can this style of preset entries be done for Other Custom Variables i.e. Dim Height …

Software Development vb.net
Member Avatar for ptaylor965
0
80
Member Avatar for Duki

Hey guys, Just got started on this, and I keep getting an error saying Missing ";" before "." starting at line 25 and pretty much on all of my functino calls in main. Anyone know what I'm doing wrong? Here's my code: //driver - main #include "prob6.h" int main ( …

Software Development c++
Member Avatar for Duki
0
134
Member Avatar for ceyesuma

[code] <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <context-param> <param-name>webmaster</param-name> <param-value>webmaster@myeducationonline.com</param-value> </context-param> <context-param> <param-name>jdbcDriver</param-name> <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value> </context-param> <context-param> <param-name>dbURL</param-name> <param-value>jdbc.odbc.clientDB</param-value> </context-param> <session-config> <session-timeout>30</session-timeout> </session-config> <welcome-file-list> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app> [/code] so this file as to be put in my "workspace" where my projects are ?

Software Development java session xml
Member Avatar for Ezzaral
0
148
Member Avatar for ceyesuma

You really do not have to open the netbeans project. However you can. Does anyone know why when I comple the jsp's can not find the bean because the class file is in the build/classes file and not the src file. Does it not need to be there? Or I …

Software Development java
Member Avatar for Ezzaral
0
102
Member Avatar for ufwt

depython [[url]http://www.depython.net[/url] depython online service] could decompile python bytecodes. Depython online service supports Python versions from 2.4 up to 2.5.You can freely test its function online.

Software Development python
Member Avatar for vegaseat
0
177
Member Avatar for sayeo87

Hi, how do I print a string such that only a section of it gets printed, without printing it character by character? I thought of pointer arithmetic, but that will only change the starting point of the string for you. What I want to do is to print from start …

Software Development c
Member Avatar for sayeo87
0
278
Member Avatar for rainbringer

Hello! How can it be done? I've the two things installed, but in order to get help about anything within the VC++ I must manually open the MSDN Library. Pushing the F1 button on a needed function to get help for it is much more comfortable... Respectfully, Alex

Software Development c++
Member Avatar for rainbringer
0
182
Member Avatar for daniweb2013

I'm trying to calculate sin(x) without using #include <math.h> i need to use Maclaurin Series to calculate sin(x) with recursive process. thanks

Software Development c++
Member Avatar for Rashakil Fol
0
448
Member Avatar for asilter

could u plz give 4 little files-sample (c and c++ code and header files) which shows how to call c++ class public member function. thanx.

Software Development c
Member Avatar for Salem
0
129
Member Avatar for anto_nee

hi to all how to obtain the date and time of server from client by vb coding anyone plz tell me is it possible in vb somebody said we can use client side caching but i dont know hw to implement this thanx in adv

Software Development caching client-server visual-basic
Member Avatar for anto_nee
0
126
Member Avatar for ceyesuma

I am using a example in a book to build my own program (java server pages) I can not even get the example to run. Is there someone to take a look at the program? (netbeans package)? [EMAIL="ceyesuma@hotmail.com"][/EMAIL]

Software Development java java-netbeans
Member Avatar for ceyesuma
0
142
Member Avatar for meekeen

How to solve this problem? Generate 200 integer random numbers in the range (1000,9999) in an one-dimensional array x. Then determine:- a) How many of these fall in the ranges 1000-2499 and 2500-4999; b) How many of these are (a) even numbers and (b) divisible by 5 c) Sort and …

Software Development visual-basic
Member Avatar for meekeen
0
70
Member Avatar for ceyesuma

org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. error: Invalid class file format in C:\Program Files\Java\jdk1.6.0_02\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '49.0' is too recent for this tool to understand. I'm not sure what to do to fix this error tomcat 4.0; any help?

Software Development apache java
Member Avatar for peter_budo
0
143
Member Avatar for amishosh

Hi! I compile this simple "Hello world" Win32 program: [code] [COLOR=green]#include[/COLOR][COLOR=green]<windows.h>[/COLOR] [COLOR=green]int[/COLOR][COLOR=green] WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, [/COLOR] LPSTR lpCmdLine, [COLOR=green]int[/COLOR] nCmdShow) { MessageBox(NULL, [COLOR=green]"Hello World!"[/COLOR], [COLOR=green]"Note"[/COLOR], MB_OK); [COLOR=green]return[/COLOR] 0; } [/code] When the program runs I get weird fonts. See attachement. Kindly advise. Thanks

Software Development c
Member Avatar for Ancient Dragon
0
79

The End.