43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for msi_333

This a problem i faced .When i made applet the access file i faced the following exception: [INLINECODE]java.security.AccessControlException: access denied (java.io.FilePermission text.txt read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) at CheckTopScore.<init>(CheckTopScore.java:30) at MainFrame.<init>(MainFrame.java:200) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native …

Software Development java
Member Avatar for msi_333
0
183
Member Avatar for bala24

Hi, I was just browsing through some stuff about Initialization lists in C++ and got stuck with a doubt.. Why is it necessary to use initialization lists while giving a value to constants or references ?? Why is it not possible to do so in the normal way..i.e initializing them …

Software Development c++
Member Avatar for ~s.o.s~
0
116
Member Avatar for le0pard13

Situation: I have a working shell script on our file server (OSXS Tiger) to connect to a workstation, which is using a portable home directory (phd), and rsync a user's MirrorAgent.log. I'm not that strong of a scripter, but I would like to add other workstations to this script as …

Software Development shell-scripting
Member Avatar for le0pard13
0
153
Member Avatar for Es Sayen

Hello, I am developing an application in Visual Basic in which i have to enter the details of candidates and after that clicking on the print button, the details of that particular candidate get printed out without using/going to a report. I want to know how can i do that, …

Software Development visual-basic
Member Avatar for Es Sayen
0
167
Member Avatar for stanats

i'm having this problem and i would like to ask for some ideas on how i will read a file backwards, that is, from end, read the file backwards(forward, naturally) by line.. thanks

Software Development c
Member Avatar for echobase
0
2K
Member Avatar for tcyge

[code]class abc { public: virtual ~abc() {} static void operator delete(void*); }; int main(int argc, char *argv[]) { abc _a; return 0; } [/code]

Software Development c++
Member Avatar for vijayan121
0
77
Member Avatar for tunday

I am relatively new to Borland 2006 C++ Builder. I have a form which has about 6 buttons and a text box for selecting and inputting values respectively (e.g. Clicking on Button 1 should return "100" to a variable in the calling form. Likewise, entering 100 into the text box …

Software Development c++
Member Avatar for tunday
0
182
Member Avatar for Matt Tacular

In my program I have a loop with a variable that shows the players name, they choose something then it goes back to display their name and all it shows is arrows.... why? I'll post my code, run it and enter 3 or 4 players are playing, give them some …

Software Development algorithm c++
Member Avatar for Matt Tacular
0
173
Member Avatar for Mr.Wobbles

[code] [COLOR=green]Private[/COLOR][COLOR=green]Sub[/COLOR][COLOR=green] BindingNavigatorDeleteItem_Click([/COLOR][COLOR=green]ByVal[/COLOR][COLOR=green] sender [/COLOR][COLOR=green]As[/COLOR][COLOR=green] System.Object, [/COLOR][COLOR=green]ByVal[/COLOR][COLOR=green] e [/COLOR][COLOR=green]As[/COLOR][COLOR=green] System.EventArgs) [/COLOR][COLOR=green]Handles[/COLOR][COLOR=green] BindingNavigatorDeleteItem.Click[/COLOR] [COLOR=green]Dim[/COLOR] rowDeleting [COLOR=green]As[/COLOR] portfolioDBDataSet.CRS_AccomplishRow rowDeleting = PortfolioDBDataSet.CRS_Accomplish.Rows(CRS_AccomplishBindingSource.Position) rowDeleting.Delete() [COLOR=green]Me[/COLOR].CRS_AccomplishTableAdapter.Update([COLOR=green]Me[/COLOR].PortfolioDBDataSet.CRS_Accomplish) [COLOR=green]End[/COLOR] [COLOR=green]Sub[/COLOR] [/code] this is the function I have, it shows no errors, but if I try to delete the first record it shows that it deletes all of …

Software Development visual-basic
Member Avatar for AV Manoharan
0
98
Member Avatar for Matt Tacular

I was wondering how I could access my several countryAttachedXX arrays(in this post they start on line 85), without many if statements, determined by user input. I was thinking maybe an array of arrays, but had difficulty finding out how to do that on the web. Thanks, -Matt [code=cplusplus]/**************************** * …

Software Development algorithm c++
Member Avatar for Narue
0
86
Member Avatar for richie2021

[code] #include<stdio.h> #include<stdlib.h> int main() { struct { char origin[50]; char destination[50]; char flight[10]; char aircraft[3]; char days_of[7]; char departure[4]; char arrival[4]; char begin_date[10]; char end_date[10]; }flight_details[1679]; FILE *fp; fp=fopen("iaschedule-07(edit).csv","r"); char buf[50]; int i; while( fgets(buf,sizeof(buf),fp) != NULL) { strcpy(flight_details[i].origin, strtok(NULL,",")); strcpy(flight_details[i].destination, strtok(NULL,",")); strcpy(flight_details[i].flight, strtok(NULL,",")); strcpy(flight_details[i].aircraft, strtok(NULL,",")); strcpy(flight_details[i].days_of, strtok(NULL,",")); strcpy(flight_details[i].departure, …

Software Development c
Member Avatar for richie2021
0
127
Member Avatar for olufunkky

Please I need help with this question. I have been trying to solve it, was able to solve a part, but not completely through with it [B]QUESTION:[/B] [COLOR=green]Write a program that allows you to do the following five Operations:[/COLOR] [COLOR=green]a. [/COLOR][COLOR=green]Prompt the user to input a list of numbers (Hint: …

Software Development python
Member Avatar for olufunkky
0
259
Member Avatar for ongxizhe

I have two questions to ask. Firstly, I would lke to know is C++ GUI the same as C++.NET or there isn't such thing as C++.NET? Secondly, although you won't suggest me to learn C++.NET and you would ask me to learn C#, but I'm will still be asking for …

Software Development c++ gui
Member Avatar for ongxizhe
0
163
Member Avatar for EnderX

I've been working on a program designed to allow the end user to offer data corrections back to my company. (That is, they send us the originals, we process those and store it in a database, and this program is supposed to allow them to search the DB and send …

Software Development delphi file-system pascal
Member Avatar for EnderX
0
168
Member Avatar for gexecuter

Hello, i have a question of assemble using the video mode, when i run the program why only half of the screen is painted?,the whole screen should be painted, any help would be welcome please. this is the code: org 100h mov ah, 00 ; video mov al, 03 int …

Software Development assembly video
Member Avatar for gexecuter
0
109
Member Avatar for sweetleaf

well can any one help me with the internal representation of float and doubles ......i know tht they are stored using the IEEE 754 format so is that the reason why a double 0.7 is greater than a float 0.7 ?????

Software Development c
Member Avatar for sweetleaf
0
93
Member Avatar for lotsofsloths

Ok so here is my code for a practice homework at LiduidEmberS [CODE] #include <iostream> using namespace std; int main(void) { int a; int b; int c; int d; int radius; int volumeprism; volumeprism = b*c*d; int volumesphere = 1.3333333333333*3.1415926536*(radius^3); cout << "Welcome to the program!\n\n"; cout << "Do you …

Software Development c c# c++ visual-studio
Member Avatar for ndeniche
0
156
Member Avatar for Matt Tacular

I am trying to make a text version of risk, and I need to store the population, or army count, for each country. So the only way I could think to do that, as you'll see in my code, is by making a variable for each country, and then storing …

Software Development algorithm c++
Member Avatar for ~s.o.s~
0
88
Member Avatar for dougy83

Hi everyone, I'm a newbie here, and have a newbie question. I'm trying to get a popup menu to show just above my system tray icon/notifyIcon. I'm using TrackPopupMenuEx to display the menu, loaded from my application. The problem is that menu is displayed as a really thin menu, so …

Software Development c++
Member Avatar for dougy83
0
140
Member Avatar for sadaka

Hello, I'm a new programmer and wanted to create a simple windows application. I might be getting in a little over my head when writing the code below. All seems well when compiling the code without implementing classes. When I implemented the class AppEngine from a separate source file I …

Software Development c++ ide
Member Avatar for sadaka
0
166
Member Avatar for flavour_of_bru

Hi all, Can you please tell me how to read .csv files in C++/VC++?? I converted my excel files to .csv files in order to make reading easy. Need help regarding the code. Thanks Rishi.

Software Development c++
Member Avatar for flavour_of_bru
0
136
Member Avatar for iamthwee

I was just wonderin if python was worth learning? I have an option for it in Kbuntu, and was wondering if it was worth learning. I'd say no personally, what do you think?

Software Development python
Member Avatar for Ene Uran
0
697
Member Avatar for Matt Tacular

I'm having some trouble with STL lists. What I want to do in my program is take the players initial and put it into an array at the spot that they got from when I divided up 20 numbers (0-19). Can anyone tell me why line 151 (in this post …

Software Development algorithm c++
Member Avatar for Matt Tacular
0
102
Member Avatar for Matt Tacular

I'm wondering why it prints so many spaces when I only ask it to print one. Here's the code: [code=cplusplus]#include <iostream> #include <string> using namespace std; string ar[21] = " "; int main() { ar[3] = "M"; ar[4] = "n"; for(unsigned int i=0 ; i<20 ; i++) { cout << …

Software Development c++
Member Avatar for ~s.o.s~
0
140
Member Avatar for ssimkhan

i need to enter commands in one line using delimiter "&" (ampersand) or ";" (semicolon),using one type of delimiter in a line. e.g "cat&cp&rm" or "cat;cp;rm". Both should not be used in one line e.g "cat;cp&rm", when this happens the system exits. I've tried the code below using Split method …

Software Development java
Member Avatar for ~s.o.s~
0
119
Member Avatar for meiyantao

Hi,sir,please look at this code. [code] #include <iostream> using namespace std; class A{ private: class B; public: int out(int x){ return outB(x)->a; } B * outB(int x); private: B* root; class B{ int a; B(int init_a) :a(init_a){} friend class A; }; }; A::B* A::outB(int x){ root = new B(x); return …

Software Development c++
Member Avatar for meiyantao
0
181
Member Avatar for FoX_

Hi all; My question is which IDE do you recommend for editing Python codes on WindowsXP??? I've installed its interpreter(2.5) but I don't have any idea about the IDE.(except ActivePython) Thanks for your helps...

Software Development ide python
Member Avatar for NetByte
0
123
Member Avatar for Matt Tacular

I had a thread going not too long ago, and from that I was able to make a global vector that I can store class objects in. But now when I try to access it, it says "no match for 'operator[]' in 'jailHouse[0]' " Anyways, Here's the code, if you …

Software Development c++
Member Avatar for Matt Tacular
0
132
Member Avatar for jaepi

Hello there, just a question, what do you think is the purpose of this flag to this block of code... [code=c++] void CDriveControl::Trace(bool bAt, char *lpszFormat, ...) { #ifdef _DEBUG va_list args; va_start(args, lpszFormat); printf(lpszFormat, args); if( bAt) { fflush( stdout); } va_end(args); #endif } [/code] I've been wondering, why …

Software Development c++
Member Avatar for jaepi
0
201
Member Avatar for linux

A while ago I purchased an application called "RPG Maker XP" for a project that my friends wanted to help out with (they have NO programming knowledge at all). We have completed a game, but it is, you know, un-original. We need something to spice it up -- RGSS (Ruby …

Software Development ruby
Member Avatar for gamingfan1993
0
673
Member Avatar for Matt Tacular

How can I make a pointer to an array? So that I access the members of the array by using the pointer in a seperate function. I'm wondering because I have an array I have to access in functions other than the one it was defined in, but I need …

Software Development c++
Member Avatar for Matt Tacular
0
332
Member Avatar for choudhuryshouvi

Hi all, I've a code in vb.net 2003 which prompts user while he/she tries to close the form by clicking the form's close button('X'). If answer is yes the form closes but if the answer is no it stays. Now I want to write the similar code in a C# …

Software Development vb.net
Member Avatar for choudhuryshouvi
0
118
Member Avatar for alembic21

Hello All, Here are the instructions for the program I am trying to write: > Write a program that determines which 2, 3, and 4 digit #'s are equal to the sum of the cubes of their digits. > Ex. > if the original # is 234, determine if (2 …

Software Development c++
Member Avatar for ndeniche
0
135
Member Avatar for fredzik

Hello wall, Is there any way to be rid of the red Tk in the upper left hand corner? I remember reading somewhere that you can replace it with another icon, but can you completely remove it, leaving nothing but a blank space? Or can one replace it with: [code=Python]root.title("Any …

Software Development python
Member Avatar for fredzik
1
137
Member Avatar for radskate360

Hi, Im a beginning C++ student and having a very tuff time, but I have been trying for a few hours, and wanted come to you guys with my questions. I have been working on this school project and have figured out every step but two. Can anyone please help …

Software Development c++
Member Avatar for radskate360
0
117
Member Avatar for blazted

I have a binary tree and I am having problems with one function. It is my add function where I add another node to my tree. I use recursion to call it from within the function. I believe I am not using the correct syntax to call the node from …

Software Development c++
Member Avatar for blazted
0
133
Member Avatar for ssimkhan

I'm trying to do an assignment to implement a unix shell and run commands using java. commands include read file, copy file, remove file and find substring in a file. I have managed to create the file and try out all commands individually but I've failed to run the threads. …

Software Development java operating-system unix
Member Avatar for Ezzaral
0
221
Member Avatar for katerinaaa

Hi, I would like to help me with a problem I have. I want to make a program that tokenize the text of an input file and create a new file with all the words (one word per line). Because in the input file there are numbers, html tags like …

Software Development file-system java
Member Avatar for Ezzaral
0
172
Member Avatar for Micko

Hello guys, It's been a while since I last time posted in this forum. I have strange problem regarding matrix allocation. I was asked to write code that includes 2D array dynamic allocation. I write two version of matrix allocation. Here is in my opinio relevant part of the code: …

Software Development c
Member Avatar for Micko
0
155
Member Avatar for jaepi

Hello there. I have here a constructor of class CDriveControl and class CSPTIDriver.. [code=c++] class CSPTIDriver; class CDriveControl{ public: CDriveControl(); CDriveControl(const char* pPort); ...... ...... protected: char* m_pPort; CSPTIDriver* m_pSPTIDriver; bool m_bInitFlag; bool m_onlycomp; } [/code] It was defined outside the class. [code=c++] CDriveControl::CDriveControl(void) :m_pPort(NULL) //Object drive ,m_pSPTIDriver(NULL) //SPTI object …

Software Development c++
Member Avatar for jaepi
0
305
Member Avatar for Matt Tacular

When using an STL list, how can I check if a certain variable happens to just be in there? Basically, given this already: [code]#include <iostream> #include <list> #include <iterator> using namespace std; list<int> integer_list;[/code] I need a way to code this in C++: [code]if(x is in integer_list){ do this }[/code]

Software Development c++
Member Avatar for Matt Tacular
0
99
Member Avatar for Daco

hey everyone, im making a program that controls my cube using GCNRD. but shellexecute is being a tard to me the code should work like this: enter a value and the program starts gcnrd to poke the value i got that in these lines [code=cplusplus] string CButton; string CoButton; cout …

Software Development c++
Member Avatar for Daco
0
153
Member Avatar for 4zlimit

I am trying to store information then retrieve it on my program. I know I have to use a class and a constructor. The problem is that my text doesn't have any good examples that I can view. I am truly lost. I am not sure 1. where to build …

Software Development java
Member Avatar for stultuske
0
218
Member Avatar for mnmustafa

Hiz well i m new in here n i m goin to have exam after 3 days :S i got stuckd in a question Q) Write a program to print the product of even numbers..... plz i m new with c langauge :S n i m having final exam jst …

Software Development c
Member Avatar for sweetleaf
0
134
Member Avatar for yilmazhuseyin

Hi! I was writing a calculator to practice my programming skills and I really cannot solve a problem with an abstract class [code=C#] //base class for all tokens public abstract class BaseToken { public override string ToString() { return tokenValue; } } //base class for all operators public abstract class …

Software Development
Member Avatar for yilmazhuseyin
0
127
Member Avatar for nedwards

I was wondering by using the Visual Studios 2005 and Windows XP could you write code in C# and add some other code in C++? What is happening is that I am updating this program that was previously made in C# and I need to add some security functionality, although …

Software Development c c# c++
Member Avatar for nedwards
0
140
Member Avatar for 4zlimit

I have been trying for two days to figure out how to use a loop in my program. It is the ever dreaded payroll program. I can't seem to get the program to start over once the program goes through each question. Can anyone point me in the right direction …

Software Development java
Member Avatar for 4zlimit
0
146
Member Avatar for devesh9392

#!/perl/bin/perl -w print "Content-type: text/html\n\n"; use WWW::Mechanize; my $mech = WWW::Mechanize->new( ); $mech->agent_alias("Windows Mozilla"); use LWP::Simple; use HTML::TableContentParser; $mech->get("http://google.com/"); my $filename = "admin.htm"; [COLOR=red]print $mech->content;[/COLOR] print "done..............."; [I]$mech->save_content($filename); [/I] die "cud not save ",$mech->response->status_line unless $mech->success; print "done..............."; here is part of my perl script. the problem is, i am …

Software Development perl
Member Avatar for devesh9392
0
698
Member Avatar for cguan_77

[B]Hi,[/B] [B]Can anyone help me, how to determine selected control from an array of listbox? Anyhelp is greatly appreciated. Thanks.[/B] [B]cguan[/B]

Software Development visual-basic
Member Avatar for cguan_77
0
105
Member Avatar for machine

Hi, Trying to overload - and getting this error. I am not sure why.. error C2447: missing function header (old-style formal list?) [code] #include<iostream.h> #include<string> #include<new> #include<ctime> using namespace std; class D { public: D operator- (const D &d2); }; D D::operator- (const D &d2); { //error points to here!! …

Software Development c++
Member Avatar for machine
0
250

The End.