132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for knarffrank

I'm practicing java language.. please help me out I got this error saying.. cannot find symbol symbol: constructor compAdd() location: class compAdd [code=java] compAdd c1 = new compAdd(); ///////////////compAdd.java import javax.swing.*; import java.awt.event.*; import java.awt.*; public class compAdd extends JFrame { public JButton button = new JButton("Add"); public JTextField txt1, …

Software Development java java-swing
Member Avatar for stephen84s
0
122
Member Avatar for paolomontero

Hello, Does anyone know which GDI API is called to draw menus and menu items on windows? I know its not DrawText, DrawTextEx, TextOut or ExtTextOut.

Software Development api c++ windows-api
Member Avatar for marco93
0
139
Member Avatar for smile4evr

hi... im finding an error in the following statement... here department is my database name... n deptid n deptname is the name of the fields on the form... when i run the form it shows "No value given for one or more parameters." [code]sql = "INSERT INTO Department(Department_ID,Department_name)VALUES(deptid,Text2)"[/code] please help …

Software Development visual-basic
Member Avatar for Jx_Man
0
73
Member Avatar for nizbit

I'm trying to call a member function inside a class but am having no luck. I need to find the length of the array. When I posted this code before there were some questions on the member functions. The reason those functions are private is that I don't want the …

Software Development c++
Member Avatar for Ancient Dragon
0
2K
Member Avatar for toadzky

I'm pretty sure this isn't possible but I want to be sure. I have a form with text boxes. I want to be able to link the text boxes to members of an object. Is there anyway that I can make the text boxes reflect specific data members?

Software Development
Member Avatar for toadzky
0
91
Member Avatar for plike922

run it type hello, press enter then type end in a c ompiler [CODE=c]#include <stdio.h> #include "strlib.h" #include "simpio.h" #include "genlib.h" #include "string.h" #define size 50 void reverse(char rev[]); int main() { char rev[size], i; printf("Please enter a sentence and end the sentence with a enter than end \n"); reverse(rev); …

Software Development c
Member Avatar for Aia
0
145
Member Avatar for timelapse

I'm trying to create a program that will deal a random card, and I am VERY confused about how to go about making it. I understand arrays/strings in general but I have no idea where to start. My professor states that we will use the function rand() which returns pseudo- …

Software Development c++
Member Avatar for VernonDozier
0
1K
Member Avatar for Elmo_loves_you

Hi Guys I hope you can help share some light on my problem. Basically, I have a MS Access table...ID, firstname, surname, Address1, Address2 etc What I want to do is Select all from table but only show one record where more than one person lives at that address .. …

Software Development sql
Member Avatar for dickersonka
0
132
Member Avatar for acerdafpz

Hi guys.... hope someone here could help me, im creating a program connected with a database (i used MS access) the i want to add a search function on it... any of you guys could share some codes that i could use as reference would be greatly appreciated... you can …

Software Development visual-basic
Member Avatar for abu taher
0
85
Member Avatar for chunalt787

Hey does anyone have a basic binary multiplication function and or algorithm? I just need to record run times on it for varying amounts of input and don't want to have to spend an hour doing a solved problem for 5 points on a HW. Thanks in advance

Software Development algorithm c++
Member Avatar for chunalt787
0
114
Member Avatar for zachabesh

So I was messing around with Tkinter, and I was wondering, is there an easy way to wipe whatever widgets you currently have 'packed' and show a new layout? So, if my fist screen has a button, I want a whole new layout to come up when the user hits …

Software Development python tkinter
Member Avatar for zachabesh
0
116
Member Avatar for kyosuke0

My goal is to read Olympic data into an array of structs. What i need to read in is the country code, and number of gold, silver or bronze medals that the country won. Also if one country won more than one medal, i am to just increment the information …

Software Development c++
Member Avatar for kyosuke0
0
164
Member Avatar for marymc

Hi everyone. I am new to C# and have to write a program to use a Phidget RFID to track people along a certain route. i have some understanding of C# and some code but not a lot and really under presure for time. I also need to be able …

Software Development c c# c++
Member Avatar for marymc
0
85
Member Avatar for vbcoder123456

Hi, I have developed a windows application using VB.NET, i need put a icon file for the .exe application file. I tried the following ways, Right clicked the project->went to properties-> there there is a option for putting application icon. I tried putting my .ico(16X16 and 32X32) file which i …

Software Development vb.net
Member Avatar for dickersonka
0
153
Member Avatar for 3Dees

Hey, Can anyone help me solve this, i am trying to read the value of Console.Readline into a varible declared as Double using vb 2008. As shown below: [code=vbnet] Private Sub ReadQuantity() ' Read ask customer to input many liters Private quantity As Double Console.Write("How many liters (only whole liters …

Software Development vb.net
Member Avatar for EDDYGATE
0
271
Member Avatar for PuQimX

I don't know to Write a full program that can display the following output: 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 1 2 …

Software Development c++
Member Avatar for obj7777
0
112
Member Avatar for agentx

hallo! ppl plz help me write the pseudocode for the following problem! im new at this and have no clue how to do it! the assignment is due tmrw so quick help will b appreciated 1) enter 55 test scores and print how many were passing scores(50 or more)and how …

Software Development c
Member Avatar for Narue
0
113
Member Avatar for GamesSmash

Hi, I downloaded the 7-zip SDK from [url]http://www.7-zip.org/sdk.html[/url] I was wondering how to make it so my program could compress a folder using 7-zip. This is confusing for me because it is the first (maybe second) time I am using an SDK and it is hard to find instructions on …

Software Development c++ open-source
Member Avatar for GamesSmash
0
173
Member Avatar for coveredinflies

Hi! I know alot of people try and learn C++ by themselves,and I am just interested to know how many people here have managed to become [B]good[/B] by learning themselves. Also would be interesting to know the general perception of self-taught programmers by profesionals is? Just for the record I …

Software Development c++
Member Avatar for William Hemsworth
0
160
Member Avatar for VernonDozier

This is a simplified version of a larger project. I have three JPanels contained in a larger JSplitPane called [ICODE]wholePanel[/ICODE]. The top panel and left panel hold labels and buttons, which I have not included here. The lower right panel, called [ICODE]canvasPanel[/ICODE], is where I draw shapes. I'm trying to …

Software Development image java java-swing
Member Avatar for VernonDozier
0
829
Member Avatar for Dell XPS

Hi, i need to type some commands at a specific time of day in the console of counter strike to connect to a server automatically... i just need a way to type in the cs console... i can take care of the rest... if anyone has any idea on how …

Software Development vb.net
Member Avatar for Dell XPS
0
122
Member Avatar for yair7190

hi everyone! i'm kind of new to perl and having some problems with a script i wrote. hope i came to the wright place :) here's my problem: i wrote a script that goes through each line in a file (i loaded the file into an array "RevLogFile") and when …

Software Development perl
Member Avatar for yair7190
0
139
Member Avatar for coolcampers

Hi, I'm an input XML which I try to parse using C++. The problem is ^M characters get inserted at the end of each line and the parser errors out when it encounters ^M character. Can any one tell me how to replace ^M characters in c++ code? Thanks.

Software Development c++ xml
Member Avatar for Narue
0
2K
Member Avatar for redflame777

Could some one look at this program and let me know if the Scanner object and variables are defined and defined correctly? And make suggestions on how to fix it if it is wrong. I also want to know if my validations are correct for employee, hours, and rate are …

Software Development java
Member Avatar for Easter Bunny
0
104
Member Avatar for mufliha

hi everyone, iam using vs.net2005 and sqlserver 2000.i want [B]connection string [/B] to connect to local sql server.the connections strings which i used in vs.net2003 isnot working here.so plzzzzzzzzzzz help me as soon as possible. thankuuuuuuu

Software Development
Member Avatar for Jx_Man
0
89
Member Avatar for Gerbilkit

Well I just started a university class in Java, I am used to PHP so this has been a confusing shift in many ways. Right now I'm struggling a bit with my first homework assignment, although more in a general understanding of java than nitty gritty details. The code is …

Software Development java
Member Avatar for VernonDozier
0
154
Member Avatar for Azurea

"They also don't allow goto. The problem with the three of them is that they disrupt the flow of the code for someone reading it. You are supposed to put everything into the conditions for the loop. It seems to me that there are times when a few continues or …

Software Development c++
Member Avatar for Salem
0
98
Member Avatar for akmittal

i am new to assembly programming,can anybody help me out to solve this problem - i have a assembly code which does the atomic increment [code=assembly] Atomic_Add (volatile unsigned int *addr, int additive) { register unsigned int previous; __asm__ volatile ( "pushf;" "cli;" "movl (%2), %0;" /* previous = *addr; …

Software Development assembly perl
Member Avatar for Salem
0
156
Member Avatar for DJPlayer

well I'm just stating this one and my brain is about racked w/ the # of assignments going on.. anyways. I have to write a program where a user will input a integer and it will determine the kaprekar #'s of that #, until it reaches the user # input. …

Software Development c++
Member Avatar for Cepolation
0
162
Member Avatar for TrevorDawes

Hi, I am really struggling with this one. I want to open the port in form1 but also be able to access the port from another form. Is this possible. If yes, please guide me. Thanks to all. Regards Trevor

Software Development visual-basic
Member Avatar for TrevorDawes
0
84
Member Avatar for bops

Hey all, very simple question here.. How in Java can I get a Rectangle object that represents the Desktop coordinates? In fact just the width and height of the Desktop will do.. I'm just looking for something similar to the following C code [CODE=C] HWND hDesktop; hDesktop = GetDesktopWindow(); if …

Software Development java
Member Avatar for bops
0
126
Member Avatar for xr0krx

Hello there, I need some help on how I could replace the getch() function. Basically, my assignment was to make a simple simulated "joystick" program. You press the letters a,b,c,d... and it will output the number pressed... The program works and everything, but i found out im not allowed to …

Software Development c++
Member Avatar for Narue
0
119
Member Avatar for daesdaemar

I am trying to write a simple slot machine program that will return three numbers as the slot icons using a loop. I can get the first part just fine (I think). But I am stuck at converting my icons to intergers or character that I can compare to see …

Software Development c c# c++
Member Avatar for Sky Diploma
0
2K
Member Avatar for spinnaret

Hello All, I would like to display charts based on some conditions being fulfilled. I have pseudocoded the information. If the use of pseudocode is not acceptable please inform me and I will code it in vb. Essentially I need to display inofrmation about Multidisciplinary Teams in a number of …

Software Development display vb.net
0
60
Member Avatar for Gaspacho

Hi there, I'm currently making application for my school project. I have managed to get everything working but there is still one thing left on my list. The application should be capable of listening on a specific port for a specific type of packet (the protocol is SCTP). I tried …

Software Development java
Member Avatar for peter_budo
0
104
Member Avatar for lakshmi@right

Hi, i need to print the form content. the content may be a label, textbox and may be a grid..

Software Development vb.net
Member Avatar for waynespangler
0
127
Member Avatar for mufliha

hiiiiiiiii evryone, plz help me out.i want to delete a record but not able to do so.plz check the code and rectify the mistake.it is giving some unknown error.thnqqq [code=csharp] private void button1_Click(object sender, EventArgs e) { int i; String sqlvar =("Delete from emp where empno=" + textBox1.text); string conn1 …

Software Development open-source
Member Avatar for JerryShaw
0
100
Member Avatar for Soundgarden

Could someone tell me if there is anyway to pass the selected items(files) from Explorer to my Prog....Now I can retrieve the last item selected using the registry. ie shell -> command -> Prog %1. But if the user Selects multiple items(files) in Explorer the %1 can only send the …

Software Development
Member Avatar for Soundgarden
0
121
Member Avatar for policeachan

it is known that dennis rithie made c with only 32 keywords and writing functions is the responsibility of the programmer. who wrote the functions printf, scanf . what is it's sourcr code?

Software Development c++
Member Avatar for Narue
0
170
Member Avatar for tusharvichare

Hi, I create one application, in that application i am calling one vc++ exe so i want to run that exe in background which is not visible to the user. If any one have idea about this please reply on this. Thnak you.

Software Development vb.net
Member Avatar for Teme64
0
253
Member Avatar for nehagupta0809

hi i have two flat file having content like this file1.txt raghu,23,1000 ragiv,66,1800 file2.txt ramya,45,2455 ragiv,66,1800 i need to compare the two file and print the content in the other file which are different among the two file i.e raghu,23,1000 ramya,45,2455 plz help thanx in advance

Software Development java
Member Avatar for stephen84s
0
225
Member Avatar for khushal_kkk

the code that i have coded is of operator overloading for incrementing and the i need some help in the operator overloading for decrementing ,mutiplication and division please send the following in a code form shall be thankful.. [CODE] #include<iostream> class Weight { private: int kg,grms; void ConvertWeight() { if(grms …

Software Development c++
Member Avatar for jencas
0
140
Member Avatar for Dinomike1000

Hello, I'm trying to create a window with a C++ win32 app project. I am using creating the HWND object, setting its properties, and then registering the object. Also, there is a WindowProc function. What seems to happen is that the object registers but when I call CreateWindowA(...), this function …

Software Development c++
Member Avatar for jencas
0
1K
Member Avatar for AutoC

Hi, I've coded huffman coding.I've formed my codebook.Its correct upto that point.I'm using unsigned int(32 bits) and packing the codes into it and writing to file whenever 32 bits get filled.Somehow..my resultant file is larger than my source file.Am i doing something wrong?

Software Development c++
Member Avatar for AutoC
0
282
Member Avatar for princess_19

Sorry 4 bothering you guys... its that im a beginner at this... they gave me a problem but I dont know how to interpret it, it says as follows: [i]The Babylonian algorithm to compute the square root of a number n is as follows. (1) Make a guess, say g, …

Software Development algorithm c++
Member Avatar for ithelp
0
99
Member Avatar for yair7190

hi everyone, im trying to write a shell script that calculates memory usage of several processes (i basically run bash several times). here's the script: [code=bash] #!/usr/bin/bash memUsage=`ps -ef | grep bash| awk '{sum+= $2}'` echo $memUsage if $memUsage>130000000000000 ; then echo "mem usage exceeded" else echo "mem usage normall" …

Software Development shell-scripting
Member Avatar for ghostdog74
0
120
Member Avatar for Demonisya

Hey....Help me in this one please... I have to encode something that the output will come out as example....10, 8, 6, 4, 2, 0..... please help me what I did wrong....Thanks ...and I like to thank Narue too...for helping me in my last problem....I have to do this without using …

Software Development c
Member Avatar for Demonisya
0
310
Member Avatar for katrinawafs

it's my first time here and i hope somebody will help me solve my problem about my project...i have a project about payroll system using c# that provides web user clock in and clock out(minimum working hours-8hrs, it will detect if its overtime) , generate time worked, generate payroll slips, …

Software Development
Member Avatar for miculnegru
0
125
Member Avatar for arupa

you will have to write a programe , and debug it and the it should give the result 'c#-programming language,'can you help me.

Software Development
Member Avatar for miculnegru
0
149
Member Avatar for jainendra.shah

hello frds, I m very new about xml. I just write table in xml files and now want to execute sql statement on that files. provide help. Thanks in advance.

Software Development c# sql xml
Member Avatar for LizR
0
93

The End.