132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for c_skyscraper

Hi guys, This is me, novice programmer to Java. i have a very simple question. can i change Font of a Label? for example i have a label: Label l1 = new Label("Welcome To Java"); now what i want is to be able to change the text(Welcome to Java) to …

Software Development java
Member Avatar for c_skyscraper
0
95
Member Avatar for Creator07

Hello, I'm still a C beginner. I am trying to make a simple code for searching a string in a doc file. I want to search for a name in the "Employee Database", and display the employee data no,name,desgnation,reg no.,Projects worked. The template in the file is as follows: [CODE]Employee …

Software Development c display
Member Avatar for devnar
0
109
Member Avatar for shuey79

Hey, I wanted to know how I could create custom forms in VB.NET such as: [URL="http://www.oobox.com/music/graphics/InstrumentTunerV2.gif"]http://www.oobox.com/music/graphics/InstrumentTunerV2.gif[/URL] It seems like all the programming I've done in .Net has the typical square edged forms. Is this even possible in .Net or is it some other language? Thanks

Software Development asp.net vb.net
Member Avatar for waynespangler
0
117
Member Avatar for hydrobat

Greetings. I'm a python noob and I'm stuck with some coding. Say you have a list with a number of elements, some of which are the same. For instance: mylist = ['blue', 'red', 'green', 'green', 'red', 'red'] Is there a way to return how many times each string occurs in …

Software Development python
Member Avatar for hydrobat
0
118
Member Avatar for knharp3

[code] #include <iostream> #include <cmath> using namespace std; int main () { float leg1, leg2, hyp; cout << "Enter one leg "; cin >> leg1; cout << "Enter one leg "; cin >> leg2; if ((leg1 < 0) || (leg2 < 0)) hyp = 0; else hyp = (sqrt((float)leg1*leg1 + …

Software Development c++
Member Avatar for ArkM
0
139
Member Avatar for Grub

Hi, I am writting code for a Jtable. Now in this Jtable I list file files based on different attributes, including CRC Hash. Now I have a table that has 6 columns. the data Model extends the Abstract data Model. In my data Model I have two particular methods for …

Software Development java
Member Avatar for quuba
0
184
Member Avatar for LightSystem

Hi. Im working on a project with a relative size and Ive run into a deadlock, I need some advice in how to proceed. I have a server that creates multiple threads to handle its clients, but each thread must serve a client multiple times, here is the thread handling …

Software Development c client-server
Member Avatar for LightSystem
0
89
Member Avatar for kshrini

Hi All, Can anyone upload a multilingual (English & Chinese) vb6 application? I've tried but in resource file it shows '???' for chinese strings. Regards, Shrini

Software Development visual-basic
Member Avatar for kshrini
0
231
Member Avatar for vatsa.devil

getting straight to the point, my program compiles fine.. it shows 0 errors and 0 warnings... but when i run my program, it just crashes.. u know the usual dialog box with buttons like send dont send and debug.. .. here's the code.. [CODE] // include the basic windows header …

Software Development c++ queue
Member Avatar for jbennet
0
212
Member Avatar for mrboolf

Hi all there. I was given the task to implement a Subset class with a few function. It should be structured so to contain the original set and make it possible to generate all subsets. Right now I'm focusing on the "generate all subsets" part. I've done a little searching …

Software Development c++
Member Avatar for mrboolf
0
744
Member Avatar for IT_Techno

hi every one i have c# project every time i need to install my project at any computer i need to install crystal report and dotnet framework 2.0 at that computer before . that cost alot of effort and time is thier any way to include the dotnet framework inside …

Software Development c#
Member Avatar for LizR
0
119
Member Avatar for latour1972

can someone help me for this cuz I dont know what to do [code=c] #include<stdio.h> #include<math.h> /**RLC Circuit**/ void main() { float v, r, l, c, f, i; long double Xc, Xl, Z, Vr, Vc, Vl; const double pi=3.1415926535; printf("Enter v="); scanf("%d",&v); printf("Enter r="); scanf("%d",&r); printf("Enter l="); scanf("%d",&l); printf("Enter c="); …

Software Development c
Member Avatar for Creator07
0
2K
Member Avatar for sumitbaks

Hi All, I have created a setup project for a WPF application using VS 2008. Now if reinstall the same version again the default settings are not overwriting the user made settings. Suppose my project while installation creates an xml file. The user can change that file. However if I …

Software Development xml
Member Avatar for LizR
0
145
Member Avatar for cristinel

Hello, I have a problem creating a template class with copy ctor and cast operator to class of base template (using gcc 4.2). The program compiles if only one of them is defined but is not compiling if both (copy ctor and cast operator) are defined. The compiler error is …

Software Development c++
Member Avatar for cristinel
0
186
Member Avatar for karthi_selva

Hi, i created run time treeview. i do't know how to collects the datas from that treeview. please send the syntax to me. i am searched in google but i m not get any relevant information. Regards, Karthikeyan S

Software Development c#
Member Avatar for LizR
0
96
Member Avatar for IrishUpstart

So I got this question where we are given a data (txt) file. We need to read it into an array, then report the first, fifth, and last entries of that file. Here is the code that I have thus far. It's reading the first, but the other two are …

Software Development c
Member Avatar for devnar
0
93
Member Avatar for Dell XPS

i have made a tic-tac-toe game for my HTC touch and it runs pretty well. now i only need to figure out a way to add it in the pda's games(so that i can have it on start menu) instead of opening the explorer to find the exe each time... …

Software Development vb.net
Member Avatar for Dell XPS
0
105
Member Avatar for Stefano Mtangoo

Hi All, For long now have tried to get Python bindings and none is there. jlgm suggested me to try ctypes and I dived in. But there are few examples on using ctypes for new bees like me. I tried to take lame_enc.dll (The file made me to learn ctypes …

Software Development c++ file-stream python
Member Avatar for Stefano Mtangoo
0
888
Member Avatar for Stefano Mtangoo

Hello All, can someone tell me exactly what is done by this function? Thanks alot!

Software Development python
Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for bradbobak

This is my example code: [code] #include <vector> std::vector<int> v; int main(int, char **) { std::vector<int>::const_reverse_iterator iter = v.rbegin(); if (iter != v.rbegin()) // or v.rend(), whatever, just problematic { } } [/code] Is this supposed to compile correctly? Using g++ 4.2.4 it does. Using [quote]sbox-i686-linux-gcc (GCC) 3.4.4 (release) (CodeSourcery …

Software Development c++
Member Avatar for bradbobak
0
125
Member Avatar for Trekker182

I'm a little confused on umasking. The way I was shown to do it manually is to take whatever number the umask is, say 123, turn that into binary for the permissions. 001010011 flip the bits 110101100 and then take away executability 110100100 thus I get rw-r--r-- but when I …

Software Development shell-scripting
Member Avatar for eggi
0
162
Member Avatar for littlestone

Some of my source files include the following code. [code] #ifndef AAAAAAAAAAAA #define AAAAAAAAAAAA #if !defined(__lint) && !defined(_lint) XXXXXXXXXXXXXXXXXXXXXXXXX; #endif #endif [/code] I want to delete line1, 2, 6. So, Could somebody tell me how to do it? thank you in advance!

Software Development shell-scripting
Member Avatar for eggi
0
143
Member Avatar for Superstar288

hey everyone im making an gui in C++ which needs to retrieve windows registrys such as windows version etc. however im stuck on some code i was hoping for some help please. [CODE] void GetSystemInformation(void) { float fprocessor; HKEY hKey; DWORD processorspeed; DWORD datasize; RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Hardware\\Description\\System\\CentralProcessor\\0",0, KEY_QUERY_VALUE,&hKey); RegQueryValueEx(hKey,("~MHz"),NULL,NULL,(LPBYTE)&processorspeed,&datasize); fprocessor=float(processorspeed); if (fprocessor>1000) …

Software Development c++ gui
Member Avatar for dougy83
0
160
Member Avatar for efus

Hi. I am working on a project where I convert postfix notation to infix and evaluateing it. This includes building an evaluations tree (binary tree). I get how to create nodes, but how do I get the whole tree? This is the code I have so far: [code=java] import java.util.*; …

Software Development java
Member Avatar for quuba
0
112
Member Avatar for nanna

Hi, I need to show stars equal to the each number of an array. I think I need another for statement. I`ve tried, but in vain. I do not know which variables should be included in this for statement ?? the output should be : 0|****(4) 1|**(2) 2|*********(9) and so …

Software Development java
Member Avatar for nanna
0
1K
Member Avatar for rtmarch

ok so i got my code done but my logic in my code is off and my outputs are not coming out the way they should. so the following is a notepad file which is being read into my program 1231 washington, george 300 3431 adams, john 600 5767 jefferson, …

Software Development c++ ios
Member Avatar for vmanes
0
118
Member Avatar for JCasso

Hi, I am programming a pos terminal by using C Programming language. I cannot use strtod() or atof (since it just calls strtod in it). Any advices on converting string to double without using these functions? Thanks in advance.

Software Development c
Member Avatar for ArkM
0
1K
Member Avatar for ebiz

Hi. I currently have set up a GUI to have buttons on, linking to all my other classes. I am wondering how I would put the date and time at the bottom of the JFrame/JPanel. How would I do this, and will I put it within my GUI class, or …

Software Development gui java
Member Avatar for peter_budo
0
3K
Member Avatar for serleon

Privet/hello/salut/halo/hola! I have the following code: [code=c] #include <iostream> #include <iomanip> #include <fstream> #include <cstdlib> using namespace std; using namespace Finder; int main() { ifstream in( "1.dat" ); Event *P = new Event( sphere ); double px, py, pz; while( in>>px>>py>>pz ) { P->AddParticleRaw( px, py, pz ); } in.close(); …

Software Development c++
Member Avatar for StuXYZ
0
403
Member Avatar for OutOfReach

Hey all, I am a C beginner. My problem with my code is that I get a segfault. Here's my code [CODE=C] #include <stdio.h> struct studentInfo { int totalClasses; float GPA; char studentName[41]; }; main() { int numOfStudents, i; printf("How many students would you like to take account of? "); …

Software Development c
Member Avatar for OutOfReach
0
120
Member Avatar for Stefano Mtangoo

Hello All, I was trying to make dll to play with ctypes in python. I'm not good at C++ and I studied it lightly looong ago and only familiar with very simple thing. After search the net I found smo instructions but when I try to Build (with CodeBlocks), I …

Software Development c++
Member Avatar for Stefano Mtangoo
0
366
Member Avatar for mails4vijay

i need to execute one insert query and two update query, in one single button click. how can i start write code in vb.net windows application.....

Software Development vb.net
Member Avatar for Jx_Man
0
122
Member Avatar for nedsnurb

hi guys just a query basically I have created the following program, which takes a word then shows the position of a certain character. Now what I need to do is then print out each characters position in the array: so for example T E S T 0 1 2 …

Software Development c++
Member Avatar for Lerner
0
84
Member Avatar for tori10

the program that im having problems reads in a txt file sums both arrays of data, puts the sums into some equations and out puts the results in a txt file. [CODE]#include <iostream> // include all headers needed here #include <cmath> #include <cstring> #include <cctype> #include <fstream> #include <cstdlib> using …

Software Development c++
Member Avatar for tori10
0
164
Member Avatar for dseto200

How do I get python to pick a random word? Do I have to link it with a dictionary? If so how do you do that. Exercise from Python Programming for the absolute beginner Create a game where computer picks a random word and player has to guess the word. …

Software Development python
Member Avatar for woooee
0
2K
Member Avatar for Fractilion

There's two different things I'm trying to figure out how to do with Python. First, when I want my program to go through a function, which then moves on to another function..... so say I start with main(). I have variables A and B. I go on to function Do_This(), …

Software Development python
Member Avatar for bvdet
0
111
Member Avatar for nouryn

Hi,I need to edit in a file without deleting all the data. Thanks

Software Development java
Member Avatar for Ezzaral
0
165
Member Avatar for ebiz

I currently have an Oracle database, a Java Program, and a text file. Text files are being read by the system, which automatically updates the database. How would I make a JTable to make the database be displayed nicely in a JFrame?

Software Development java oracle
Member Avatar for peter_budo
0
153
Member Avatar for jackieblock

I am working on a program to calculate mileage, fuel cost, and travel time when the user selects a vehicle from a combo box. It works well when reading from an array that I put in the program. But now I have to have it read the starting figures from …

Software Development gui java java-swing
Member Avatar for ~s.o.s~
0
153
Member Avatar for bogdanAR

Can someone help me. I need to solve these problems with c#. Verry fast!! 1. Display the first Prime "n" numbers (n=given from the keyboard) Ex: n= 6 -> 2, 3,5,7,11,13 2. Enter a string of numbers on the keyboard until we enter "0". After that we need to print …

Software Development
Member Avatar for ddanbe
0
126
Member Avatar for Typhoon

Hello, We just bought a CRM software and until today, each salesman had his own contact list in Outlook. I retrieved, for each of them, XLS files from Outlook and I copy-pasted it in one file. Thing is, now I have hundreds and hundreds of duplicate records :( . I …

Software Development xml
Member Avatar for gtd
0
141
Member Avatar for karthi_selva

hi, i am created the view at run time using the following code TreeView myTreeView = new TreeView(); myTreeView.Location = new Point(0,0); myTreeView.Size = new Size(100,200); this.Controls.Add(myTreeView); //now that it's on the form, you can add nodes to it myTreeView.Nodes.Add(new TreeNode("something"); but runtime the tree view not displayed in the …

Software Development
Member Avatar for LizR
0
72
Member Avatar for mybluehair

I have a program in were you enter numbers. each different # set you enter goes into an array ( section[] ) but now what I'm trying to do is add 2 different sections together. [code]for(int x = 0; x < stoppoint; ++x) { track = track + 1; if(section[x] …

Software Development c++
Member Avatar for Freaky_Chris
0
110
Member Avatar for Arald

Hi, I have a trouble: I want to send text from my laptop to Nokia N95 using bluetooth tecnology. This is my source: [code=java] ClientSession clientSession = (ClientSession) Connector.open(serverURL); [b]HeaderSet hsConnectReply = clientSession.connect(null);[/b] if (hsConnectReply.getResponseCode() != ResponseCodes.OBEX_HTTP_OK) { System.out.println("Failed to connect"); return; } HeaderSet hsOperation = clientSession.createHeaderSet(); hsOperation.setHeader(HeaderSet.NAME, "Hello.txt"); hsOperation.setHeader(HeaderSet.TYPE, …

Software Development java open-source
Member Avatar for wad
0
159
Member Avatar for babusek

Hi Frnds, Sorry For The Spam . i have a class name"Super" program:[code] package turn; public class Super { public static String platformFlag=null; public void parse() { platformFlag="Sekhar"; } public static void main(String args[]) { Super ob=new Super(); ob.parse(); } } ------------------------------------------------------------------------------- Now i have another class in the same …

Software Development java
Member Avatar for stephen84s
0
148
Member Avatar for bufo

Hi, I am developing a Java application that uses a serial port to communicate. The communication part is working fine but if I close the serialport using the close method on the SerialPort object and then try to open it again using the open method on a CommPortIdentifier object I …

Software Development java
Member Avatar for ~s.o.s~
0
879
Member Avatar for nefashu2

I need to write a code that takes 5 students and takes a grade for each of them, using two quizzes (10 points each), one midterm (50 points) and one final (100 points), and then gives final grade. It has to use an array. I tried to do this code …

Software Development java
Member Avatar for verruckt24
0
80
Member Avatar for LightSystem

Hello, I need some urgent help, I have a program that communicates with another program. Its basically a Q&A, where one side introduces a question and the other answers it. And yes this is a school work, and it needs to be delivered soon. Im posting here because Im quite …

Software Development c
Member Avatar for dreaddoC
0
91
Member Avatar for singoi

Hi Friends, how can i change the columns width in MSflexgrid by code from 1.jpg to 2.Jpg I have copied this code in my Module: [I][CODE]Public Function Grid_AutoSize(oGrid As MSFlexGrid, oLabel As Label) Dim nRow As Long Dim nCol As Long Dim nWidth As Long Dim nMaxWidth As Long ' …

Software Development visual-basic
Member Avatar for QVeen72
0
1K
Member Avatar for karthi_selva

hi, i am doing a project using C#, i don't know how to creat the table at run time using C#. if u know please send ur information or codes or notes. Regards, Karthikeyan S

Software Development c#
Member Avatar for LizR
0
98

The End.