132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sridarravi

I have a small question. I am using a JFileChooser in one of my projects and I want to make it so that I cannot edit the file name. Is there any way to do this?

Software Development java
Member Avatar for JamesCherrill
0
102
Member Avatar for SubProf

Hello Everyone, I have a timer that starts when a button is clicked on Form1. When the time elapses Form2 appears. On Form2 I want to stop the timer and restart it from a button on Form2 however the timer does not stop. Here is my code for Form1: [code] …

Software Development
Member Avatar for SubProf
0
126
Member Avatar for sravan953

[CODE]import time import subprocess #TweetDeck a=15 print "Opening TweetDeck...\n" while a>=0: print (str(a)+" seconds remaining...") time.sleep(5) a-=5 subprocess.call("C:\Program Files\TweetDeck\TweetDeck.exe") #Rest period print ("\nWaiting...") time.sleep(5) #Firefox a=15 print "\nOpening Mozilla Firefox...\n" while a>=0: print (str(a)+" seconds remaining...") time.sleep(5) a-=5 subprocess.call("C:\Program Files\Mozilla Firefox\firefox.exe") [/CODE] Hey guys, I used the above code to …

Software Development python
Member Avatar for zachabesh
0
298
Member Avatar for daviddoria

The problem is on the "MyIter = " line: [code] class OrientedPoint { .... class variables ... std::map<std::string, double> DoubleValues; ..... bool OrientedPoint::getDoubleValue(const std::string &ValueName, double &Value) const { std::map<std::string, double>::iterator MyIter; MyIter = DoubleValues.find(ValueName); [/code] The error produced is: [code] In member function 'bool OrientedPoint::getDoubleValue(const std::string&, double&) const': error: …

Software Development c++
Member Avatar for daviddoria
0
6K
Member Avatar for emint

Helo every one i m trying to update record to ms database using vb.net. but i m getting error message. pls help me where i made mistake. here is my code. [code] Dim da As New OleDb.OleDbDataAdapter("SELECT * From tblCustomer", strPath) Dim cb As New OleDb.OleDbCommandBuilder(da) Dim ds As New …

Software Development dataset vb.net
Member Avatar for kvprajapati
0
89
Member Avatar for daviddoria

Is there a way (without overloading) to call a function like this [code=cplusplus] GetValue("one"); //AND std::string test("one"); GetValue(test); [/code] The function is simply: [code=cplusplus] int GetValue(const std::string &MyString) { return MyMap[MyString]; } [/code] This overload does the job: [code=cplusplus] int GetValue(const char* MyString) { return MyMap[MyString]; } [/code] But that …

Software Development c++
Member Avatar for daviddoria
0
114
Member Avatar for bungeeboy

hi, i'm new to c# after some time in assembly, and a bit of c++. i'm trying to examine 2 cells and report back depending on their contents. i want to test A11 - if it is empty - exit - else test B11 - if thats empty then return …

Software Development assembly
Member Avatar for bungeeboy
0
110
Member Avatar for zeus1216gw

I'm trying to get a GCD of 2 numbers. which I can do and it works fine. however I want to return one of the values based on the function I wrote. however it returns both. I know why because I wrote it that way just to get something down. …

Software Development c++
Member Avatar for zeus1216gw
0
111
Member Avatar for kakakon

Hello, I have a Tree that consists of TreeNodes, where TreeNode is public class TreeNode { private String label = null; private String data = null; private TreeNode parent = null; private Vector <TreeNode> children = null; } I also have a HashMap <String, TreeNode> that keeps the label of …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for khotso

at school,I was given the class aName and asked to overload the input operator.the class has declared surname as type of char* and the surname is input from the keyboard and it must not be empty.please help me with the code.the class has declared the operator as its friend

Software Development c++
Member Avatar for Ancient Dragon
0
92
Member Avatar for akulkarni

i am not getting the desired output(the contents in a text file which i have saved in the jdk bin here is my code i got. Also what is return in the try catch block i wanna know. it says file not found [code] import java.io.*; class FileDemo { public …

Software Development java
Member Avatar for akulkarni
0
264
Member Avatar for Michael26

I have beginner question, how to "reduce" multiple if statements using whlie or foreach or any other means, i have like 10 if statements. Example [code=c#] Boolean bolres = true; if (client_name == "") //testing for empty string { bolres = false; //if its empty set the bolres variable to …

Software Development
Member Avatar for sknake
0
112
Member Avatar for sumeetdesaeee

I recently appeared for the entrance of cdac. There I found a lot of questions about postfix.(I know the postfix operator commonly used in c.But it wasn't that way.) Sample question:- Wat will the expression ABC AB AC will become after postfix operation?? Please tell me how to deal with …

Software Development c
Member Avatar for Dream2code
0
204
Member Avatar for moshe12007

hello i want to learn visual C++ someone can to give me tutorial for begginer.

Software Development c++
Member Avatar for jencas
0
270
Member Avatar for pbt

I have to do project on the c++ in dev c++ using gcc compiler for windows version. But, i am unknown to windows programming since, i have done project on 16 bit environment using turbo c. Due to many projects on php and other class assignments and lab reports. Therefore, …

Software Development c++
Member Avatar for pspwxp fan
0
112
Member Avatar for Web_Sailor

I was trying to read a file and print it to the JTextArea in other class. My program complies but its not printing the file content in JTextArea. Here is my MouselIstener Code [CODE]class MySaveMouseListener extends MouseAdapter { MyClass1 myobj = new MyClass1(); public javax.swing.JTextField myjtext = myobj.getTextField(); public String …

Software Development file-system java java-swing
Member Avatar for JamesCherrill
0
148
Member Avatar for sana.khatib20

hi i am trying to create a application for doctors n have to enter all the information regarding the patients i am using access as the database n nw the problem is tat the doc is supposed to save the patient details n when he opens it again he shld …

Software Development vb.net
Member Avatar for Piya27
0
97
Member Avatar for tomtetlaw

I am trying to initialize a vector inside a class's constructor, and I want the vector to be of type 'this' [code]std::vector<this>[/code] didnt work, [code] void* type = this; std::vector<type> [/code] that didn't work either, is there any other way to do it?

Software Development c++
Member Avatar for jencas
0
231
Member Avatar for tj_amarnath

Hi guys, i want to set virtual memory to System Managed size option through wmi in vb.net. can any one tell me the class name to do this in wmi or wmi query to set system manageg size for virtual memroy?

Software Development vb.net
Member Avatar for tj_amarnath
0
143
Member Avatar for rcbhat

Hi, this is the code that I have to swap two strings- [code=C] void swap(char *,char *); main() { char *x="new"; char *y="word"; char *t; swap(x,y); printf("(%s,%s)",x,y); } void swap(char *x,char *y) { char *t; t=x; x=y; y=x; } [/code] output- (new,word) Why is the swap function not swapping the …

Software Development c
Member Avatar for tuse
0
291
Member Avatar for sunuJoinsIn

How to write a linq query for the following SQL statement select * from XYZTable where ColumnA in ( select ColumnA from XYZTable GROUP BY ColumnA Having Count(*)>1 ) order by ColumnA

Software Development sql
Member Avatar for GökhanBarış
0
140
Member Avatar for nustian

dear all plz i want help in this program can anyone do it...... Question: Derive a class from long_int class and add a member function "multiply" in the derived class to multiply two long_ints using the add member function already defined. multiply should work like this 2*3 = 2+2+2 (adding …

Software Development c++
Member Avatar for nustian
0
85
Member Avatar for ypdev

Hi All, In the below code I take a string and split it, then assign it to a "Label" object. On my computer it works great but when I "Publish web site" I recieve the .NET error messages "Object reference not set to an instance of an object" and "Index …

Software Development vb.net
Member Avatar for ypdev
0
213
Member Avatar for npd_ddit

main() { float a=0.7; if(a<0.7) cout<<"true" ;else cout<<"false"; } problem---> it prints true ..... when 0.7 is replaced everywhere with 0.8 it displays false again with 0.9 , it displays true.. typically only for 0.7 and 0.9 it gives different answer ,then the conventional logical answer..why so??

Software Development c++
Member Avatar for npd_ddit
0
126
Member Avatar for Cloneminds

I need to make a program which uses 3 parallel numeric arrays, references each other, then displays the price and quantity of the supplied product id. It gives me an error message on line 36 about my != searchforID, can anyone enlighten me as to why? [code=C++] //Ch11AppE12.cpp //Displays the …

Software Development algorithm c++
Member Avatar for Cloneminds
0
247
Member Avatar for turbomen

Dear Sir, I have got confused to the real / integer. Would you mind helping to express it to me? I have got the answer of the following question: Write a menu system for the currency exchange program. My menu could look like this: Exchange rates How much money would …

Software Development pascal
Member Avatar for turbomen
0
209
Member Avatar for Ismael_Jay

[code] package awt; import java.awt.*; public class GraphicPanel extends Panel { GraphicPanel() { setBackground(Color.black); } public void paint(Graphics g) { g.setColor(new Color(0,255,0)); g.setFont(new Font("Helvetical", Font.PLAIN,14)); g.drawString("Pusyy Cat Program!", 300, 100); g.drawOval(150,200,50,50); g.drawOval(200,200,30,30); g.setColor(new Color(1.0f,0,0)); g.fillRect(30,100,150,10); } public static void main(String[] args) { Frame f = new Frame("Pussy Cat Window"); GraphicPanel …

Software Development java
Member Avatar for Ismael_Jay
0
88
Member Avatar for nccsbim071

Hi, is there any difference between accessor written as get { } get;

Software Development c c# c++
Member Avatar for nccsbim071
0
90
Member Avatar for tig2810

Hi If I have a class that returns a basic set of data such as: varchar Costcode, varchar costdescription, double costamount, double rateofexchange, datetime dateandtime and a few other int fields. All basic stuff. What is the best return type for this class? From reading the web it seems a …

Software Development dataset pdf
Member Avatar for serkan sendur
0
178
Member Avatar for affee

I need to access 2 variables sent to this script; fieldsearch and fieldvalue, both are sent from a php script (using passthru) but the sytax is incorrect as I get a 500 error : [Mon Jun 8 12:17:51 2009] perlSOAP.cgi: Global symbol "$fieldsearch" requires explicit package name at perlSOAP.cgi line …

Software Development perl xml
Member Avatar for wickedxter
0
132
Member Avatar for NathanOliver

hi narue i would like to ask if this method should be called after ever cin statement? the reason i ask this is that if i write a program and i have 2 [icode] cin >> text; [/icode] statements then at the end before my [icode] return 0; [/icode] i …

Software Development c++
Member Avatar for NathanOliver
0
127
Member Avatar for Victor C.

I am my wits end. I have been toying with this code for class and I am stuck. Every time I run the program it shows what I placed within the list box, however that is it. been on this for nearly two days and I need a fresh set …

Software Development vb.net
Member Avatar for kvprajapati
0
107
Member Avatar for javaAddict

Hi all, I am having problem with openCV: I am using Microsoft Studio 2008 From this lnk: [URL="http://sourceforge.net/projects/opencvlibrary/"]http://sourceforge.net/projects/opencvlibrary/[/URL] I downloaded the [U]OpenCV_1.1pre1a.exe[/U] for windows and installed it. I have been searching ways to include the libraries installed but the instructions don't seem to match my VS version? So after creating …

Software Development c++ visual-studio
Member Avatar for h.sileem
0
445
Member Avatar for beset123

[code=cplusplus] #include<iostream> using std::cout; using std::cin; using std::endl; #include<conio.h> class Mouse { public: void move(); void turn(); }; void Mouse::move() { char ch; int length; int width; switch (ch) { case '1': cout<<"To move forward"; for(int y;y==length;y--) break; case'2': for(int x;x<width;x++) break; case'3': for(int x;x>0;x--) break; } } void Mouse::turn() …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
173
Member Avatar for kspriya01

how to covert the girdview data in to PDF file.

Software Development asp asp.net pdf
Member Avatar for Antenka
0
99
Member Avatar for headedtomexico

So I've got a server host that runs my MySQL 5.1 db. I have a stored procedure in it, its similar to [ICODE]CREATE PROCEDURE CountUsersByFirstName(IN SearchName TEXT, OUT Count INT) BEGIN SELECT COUNT(*) INTO Count FROM Users WHERE Name = SearchName; END[/ICODE] the syntax of that may be off as …

Software Development c++ mysql
Member Avatar for headedtomexico
0
371
Member Avatar for OwenRoberts

Hello again. I am wanting to make a program that handles complex numbers. I have created a class that represents a complex number and called it, ComplexNum. I have tried to create a second class that is the calculator and takes two ComplexNum objects as input and returns a third …

Software Development c++
Member Avatar for ShawnCplus
0
110
Member Avatar for ninjaneer

background: I am currently working on a project that will require me to grab some audio from an electronic stethoscope and process it for use within a larger program -- I've been looking into ways to do this and ran into a post on MSDN that was talking about [QUOTE]"taking …

Software Development audio c++
0
109
Member Avatar for PC_Nerd

Hi guys. I'm aware of the requirement to specify std:: as the namespace for string in some way ( whether it be using namespace std etc) - but the following error has stumped me as to its cause. [CODE] $ g++ Conf.cpp Conf.cpp:33: error: ‘string’ in namespace ‘std’ does not …

Software Development c++
Member Avatar for StuXYZ
0
6K
Member Avatar for DeanoJ

I need a firm answer on what OS, Linux, Unix, ect.. and software development code which will actually work in 64bit, mainly using the unlimited addressing capabilities. Now there are a LOT of claims out there and I've tried a few languages, although higher level, but ultimately run shot. My …

Software Development c++ unix
Member Avatar for Hiroshe
0
131
Member Avatar for lancevo3

Been working with operator overloading for the first time and am running into quite the standstill with this one. I finally got rid of the code I had written and decided to start from scratch. If anyone has any advice on how to code this for me it be a …

Software Development c++
Member Avatar for lancevo3
0
156
Member Avatar for chatee

Validate a text box. any suggesions please reply

Software Development vb.net
Member Avatar for Piya27
0
83
Member Avatar for Diamonddrake

A friend of mine programs in php and ruby. But we were talking about our projects and I brought up how I don't do much database type applications because I find it boring. And we somehow got on the subject of SQL. This is more of a discussion question, as …

Software Development ruby xml
Member Avatar for Diamonddrake
0
99
Member Avatar for zachabesh

Hey all, Trying to execute a command line from python. Here's some code: [code] class EncodeJob: def __init__(self,asset,recipe): self.asset = asset self.recipe = recipe self.original = self.asset.fullPath self.stdout = None self.stderr = None self.flv = os.path.normpath(self.recipe.configs['Flv Path'] + '/' + self.asset.filename.split('.')[0] + '.flv') self.thumb = os.path.normpath(self.recipe.configs['Thumb Path'] + '/' + …

Software Development python
Member Avatar for zachabesh
0
186
Member Avatar for abby2589

can i ask for a help? can you give me an idea to improve our program? another feature? our program is about computing a telephone bill.. -thanks!-

Software Development c++ oop
Member Avatar for Lerner
0
105
Member Avatar for mariyanix

how to navigate to another page on clicking one node

Software Development vb.net
Member Avatar for sonia sardana
0
78
Member Avatar for sonia sardana

1) Diff b/w nothing & string in terms of variable declaration. 2)Erase keyword. I have never heard of such keyword in mine whole 1 + yrs of exp. 3) Diff b/w functions & properties? I say,Functions return a value,But propertiesare used to set or get the values. He say properties …

Software Development vb.net
Member Avatar for sknake
0
266
Member Avatar for denniskhor

My question is : x = "you love me" Inside 1234.txt file: i love you you love me we love you If i wan IF x == "you love me" from 1234.txt, THEN x is true. how to do it? any one can help?

Software Development python
Member Avatar for zachabesh
0
453
Member Avatar for joe82

Hello everyone, My file had 12 columns, I want those lines in my file where numbers in columns 9 and 10 includes digit "101". For example : i am giving 3 lines of my file: ( columns to focus are colored green). NM013123 14-74726235 100.00 18 0 0 11 28 …

Software Development python
Member Avatar for joe82
0
107
Member Avatar for AngelG

hello, i am trying to create a simple C++ application, (not a DOS application), i would like to to know .. how could i output inputs field and then process what the user typed on that field? -Angel G

Software Development c++
Member Avatar for AngelG
0
81

The End.