199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for deraj8

I am trying to understand how draw graphics to the JPanel class but i have only been able to display one object at a time(unless i draw muiltiple shapes in my extended JPanel class but i dont want that!) [CODE]import java.awt.*; import javax.swing.*; /* Create a new graphics component that …

Member Avatar for mart@efun.ee
0
3K
Member Avatar for gregarion

Hey guys, i am having a problem solving a this part of my coding. Basically, what im doing is for the program to read a string, and if there is a value of 'M', the value of num will go up by 1000. Here my coding .... [CODE] string msg …

Member Avatar for gregarion
0
257
Member Avatar for lishannx

ive set up a connection string and whenever the program hits myConnection.ConnectionString, it will appear such an error : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that …

Member Avatar for kvprajapati
0
178
Member Avatar for Riddlekid

I need to use Scanner and StringTokenizer to find a word then print that line in text area when found it. This is the Search Button's coding : [CODE]private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) { try { Scanner scan = new Scanner(file); String search = txtSearch.getText(); while (scan.hasNextLine()) { line = scan.nextLine(); …

Member Avatar for Riddlekid
0
473
Member Avatar for rico196

Hy, Let's say that I have class Node with some parameters Node[] child's, string id, string content ... This class is like a another storage for data from mssql database. And that web-application is running on IIS server and is written in ASP.NET C# Now when one user open that …

Member Avatar for Ramesh S
0
301
Member Avatar for metdos

For example, [CODE]MyClass *stable; if(..){ MyClass temp; stable=&temp; } stable.myVariable;[/CODE] Code snippet above does not work, because destructor of temp object is called. How Can I Increase Scope of "temp" object? Thanks.

Member Avatar for mattjbond
0
177
Member Avatar for jamesweeks

How can a Visual Basic 6 program fit the screen. Is there a command for this and will it work for XP, Vista, and Windows 7

Member Avatar for AndreRet
0
118
Member Avatar for snake03

Hi I've been give a task to create a text based game (multi user dungeon) in python but am unsure where to start. All I know is I have to use tcp and udp or something like that. I am very unfamiliar with this so I hope someone can help …

Member Avatar for ultimatebuster
0
282
Member Avatar for Felulah

Hi everybody, I'm new at Python and this forum has been a great help so far, so I hope someone is willing to help me on the following problem. It can count the number of sentences and words in a text, but after I have split up a text into …

Member Avatar for Felulah
0
2K
Member Avatar for 1manik

Hi, I want to move a file, when it is created. I have filewatcher and I know filemove function, but I dont know how I can create condition, that the file will be moved, when it is create. Can you help me please? This is my source code: [CODE] #include …

Member Avatar for 1manik
0
155
Member Avatar for gregarion

Hey guys, i been looking through at questions regarding roman numerals and i have a question. i ran some of the coding which i found and i dont quite understand this part.. [CODE] int number = 3000; int number2 , i ; number2 = number / 1000; for(i = 1; …

Member Avatar for metdos
0
110
Member Avatar for 42Wired

I'm trying to open a file (ifstream object), read from the file, then pass the ifstream object to a function where it will continue reading from the file. Along the way, I want to store the path of the file, and would like to know if there is a way …

Member Avatar for 42Wired
0
329
Member Avatar for miskeen

Hello, I have to use an array, but its length is unknown at the beginning of the program. Is it possible to create such array and after that give it the desired length? Thank you!

Member Avatar for miskeen
0
15K
Member Avatar for chidambaram

hi all, I am working a carbon application using c++ in Mac machine. I want to find the ip address of my machine using code. How can i get this ip address? Thanks in advance and urgent plz...

Member Avatar for samar ihab
0
315
Member Avatar for jellybeannn

Hi on my localhost the website works fine, but when I transfer it onto the web I get this error, please someone help. [CODE] Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details …

Member Avatar for Ramesh S
0
339
Member Avatar for mldardy

I can't get past this error in my loop through the data reader specifically dr(12). I tried adding .To String but that doesn't seem to work either. Can someone help me with what need to do so it can read even if there is a Null value. My code is …

Member Avatar for mldardy
0
387
Member Avatar for sowmyraj

Hii I am desigining one VB project like dis.. VB application to change the font of the textbox... use the controls list box for the fontname, check box for Effects , combo box for sixe, combo box for color, and option button for font style.... I have written the code …

Member Avatar for vb5prgrmr
0
1K
Member Avatar for sam1900

hi i want to call some functions from a DLL(which is provided by a hardware manufacturer without the .lib and .def). I've used these following code HINSTANCE hinstLib; MYPROC ProcAdd=NULL; BOOL fFreeResult, fRunTimeLinkSuccess = FALSE; // Get a handle to the DLL module. hinstLib = LoadLibrary(TEXT("C:\My.dll")); // If the handle …

Member Avatar for Banfa
0
164
Member Avatar for wtvrinc

Hello, I am trying to compile this program, however it is giving error Error 2086. Infile Redefinition. Am I allowed to redefine Infile, or I am supposed to use it only once? It might be silly error, Kindly help... Thnaks in advance...[code]#include<fstream.h> #include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #define pi 3.141593 struct …

Member Avatar for Banfa
0
281
Member Avatar for x86phre3x

Hi, I am in the middle of developing a web application (customer DB) and currently attempting to create a module to update the number of member registered under 1 agent. I have 2 table, 1 is 'users' and another 1 is 'dealers'. The 'users' table contains some normal user credential …

Member Avatar for johny_d
0
135
Member Avatar for geekgirl2011

I've got this game almost working. When I run it in my complier is "blows" up at this line: [CODE]if (facesInHand[numberInHand2][1] != 0 && facesInHand[numberInHand2][2] != 0 && facesInhand[numberInHand2][3] != 0 && facesInhand[numberInHand2][4] != 0 && facesInhand[numberInHand2][13] != 0) straight = 1; else straight = 0;[/CODE] and continues through the …

Member Avatar for geekgirl2011
0
116
Member Avatar for abu taher

please check the attach file. here I don't understand the .mhf file. how it make or any alternative way to do this project. please any body help me.

Member Avatar for abu taher
0
185
Member Avatar for tibebu.s

hi Guy's i got error Object reference not set to an instance of an object and it show me the Highlighted area private void time_in_Click(object sender, EventArgs e) { employee_InformationDataGridView.SelectedCells[0].Style.ForeColor = Color.Green; time_in.Enabled = false; time_out.Enabled = true; DateTime today = DateTime.Today; int i; i = employee_InformationDataGridView.SelectedCells[0].RowIndex; SqlConnection conn = …

Member Avatar for Geekitygeek
0
267
Member Avatar for ms_sws

I've tried all manner of methods for accomplishing this and nothing has worked so far. The latest attempt follows. The objective is to call a function that tests for the existence of an image file. If the file exists then that image file is to be displayed. Otherwise, an alternative …

Member Avatar for Airshow
0
5K
Member Avatar for peck3277

Hey guys, I'm hoping ye can help guide me here as I've reached a point in PHP where I think I can say I'm no-longer a beginner and would like to advance my knowledge. I believe my next step is understanding and using classes in PHP but for the life …

Member Avatar for xaeon
0
148
Member Avatar for Pooja J.

Hey Guys n Gals, I want to make login page in which I m taking email ID n password. If user enters email ID & password. Welcome.php should be open. else fail.php opens.Plz, read my attachments, But I received following warnings. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL …

Member Avatar for Pooja J.
0
118
Member Avatar for logonchristy

how to get popup window if new row inserted into mysql database for a particular table... That to be display inserted values in popup window... Advance thanx...

Member Avatar for moncy
0
240
Member Avatar for syamala devi

hi all community people iam an IT student .i have a 2 months free time.i want to do a miny project in java,i have knowledge in java(j2se),swings,jscript. if any one have mini java project ideas then send to me.iam waiting for good suggestions.pls reply me as soon as possible.

Member Avatar for peter_budo
0
450
Member Avatar for ihatehippies

I have a wx app that I would like to actively debug (even after it is compiled via py2exe). Is there a way to hook all methods(without having to manually add code to each one) and have it print their names' as they execute. I've looked into both the "inspect" …

Member Avatar for Gribouillis
0
370
Member Avatar for quicka_29

hello! is there any body to help me. i want to know the codes of converting number to words... pls help me to do it.

Member Avatar for dreemebird
0
300
Member Avatar for NOLK

Hello all, I'm really struggling to find a way or method to convert my TimeSpan data type into an Int so I can put the value into an Array. Now I know you can't actually convert the TimeSpan variable into Int, but is there some sort of work around? This …

Member Avatar for Geekitygeek
0
338
Member Avatar for rajarajan2017

Hi Everybody, I am a flash developer and utilizing php sometimes for flash works. I am going to start my learning curve in php. so please suggest and must give a tutorial or pdf links to start with php and sql. Thanks in advance. Hope all will provide more pdfs …

Member Avatar for rajarajan2017
0
144
Member Avatar for celinehgl

Hi guys, The codes below is running perfectly fine. But I have a problem - if there are no records found in the database, my dropdownlist will not display nothing. However, I want it to display something like "no records found" instead of havng it blank Can someone tell me …

Member Avatar for kvprajapati
0
173
Member Avatar for GAME

Hello, I am try to make a textbox so, when I click the inside the textbox the text disappears, then when I click outside of the the textbox I want the text to reappear.

Member Avatar for Geekitygeek
0
62
Member Avatar for PDB1982

Is there anyway to carry one combo box from one form to another without the use of loops? I'm trying to figure out if it would be easier to represent a comb box in a new form, or if it would be easier to show it in a print preview …

Member Avatar for kvprajapati
0
91
Member Avatar for myluvstefan

Hi, I've spent a lot of time on this program and I'm stuck. My assignment is to prompt for two input strings. Print out each string Concatenate string1 and string2 and store the concatenated string into string3 without changing what's stored in string1 or string2. print out the concatenated string. …

Member Avatar for mattjbond
0
355
Member Avatar for jackkms

hi,i need some help on vs 2005 form,i have 1button,1textbox,1datagridview.i want to make a search button with it to search for student id..any help pls...i use ms access..example i type 12-200705-0005 on the textbox,then i click search button,then the data with student id will show at datagridview...thanks.. :S

Member Avatar for kvprajapati
0
88
Member Avatar for Sobakaa

Hello, everyone! I have a program (a tcp server for text messages exchange), and i want it to do the following thing: if a port is already in use - choose automatically a new one (via rand() function) and inform me about that. I'm testing it on Solaras 5.9 if …

Member Avatar for Sobakaa
0
137
Member Avatar for pritesh2010

can anyone tell me how to convert this code to vb.net it's vb6.0 code and gives error in vb.net [CODE] Dim a As Integer Dim b As Boolean Do While Not b And a < cmbcust.ListCount If UCase(Left(cmbcust.List(a), Len(txtname.Text))) = UCase(txtname.Text) Then cmbcust.ListIndex = a b = True End If …

Member Avatar for kvprajapati
0
117
Member Avatar for VilePlecenta

I wanted to use a window style that was border-less or had a 1 pixel wide border, but was re-sizable. It was not actually possible so I tried changing the window style with SetWindowLong() then using SetWindowPos() with SWP_FRAMECHANGED and AdjustWindowRect() It allowed me to resize the window but it …

Member Avatar for VilePlecenta
0
191
Member Avatar for LemonLemon

I am using VC++ 2008. I want to rotate the Bitmap in my MFC application. I tried the GetPixel and SetPixel functions, but the performance is too slow. There seems no Bitmap rotation example using MFC class on the internet Can anyone give me some idea? Sample code will be …

Member Avatar for mattjbond
0
134
Member Avatar for theblastedfool

Hey guys, ive been working on this code for the past couple of hours and I am trying to do the following problem. Write a program that reads the le generated by randGen.cpp (in Problem 1) and stores the numbers in an array of type int. You can assume that …

Member Avatar for mattjbond
0
215
Member Avatar for rkp728

I am getting the following error while building the code in VC: error C2143: syntax error : missing ')' before '&' on building the below code: [CODE]typedef unsigned int uint4; void Find(uint4& a, uint4 b, uint4 c); void Find(uint4& a, uint4 b, uint4 c) { . . . . }[/CODE] …

Member Avatar for mattjbond
0
78
Member Avatar for konczuras

Hello, currently I'm working on an SMS server project. I've managed to get access to the SMSs stored on the device with AT commands, but I receive them in the following format, in a string: 07916303898800F0180B916303470054F60000808012415064402FD4321B14D6BFDDEF799AFED68168B45C4C1683C9400A2A34E9D4816E31594D4185269DB21D0887CBD100 This is actually an SMS, but I can't get it to human readable format. …

Member Avatar for Geekitygeek
0
365
Member Avatar for Privoxy

Hi All I have been stuck on this for a number of hours now, really cant workout how I should go about making this work, I am not looking for the correct code, More looking for what I should be looking up and what I have done wrong. What the …

Member Avatar for BestJewSinceJC
0
211
Member Avatar for omkarwarekar
Member Avatar for WargRider

Hello everyone, Ok, well I am faced with the challenge of creating a scouting program for my robotics team so we could keep a track of how other teams do at competitions to compare and contrast their designs. I have 95% of the program done, it reads and adds info …

Member Avatar for Geekitygeek
0
101
Member Avatar for Izzy123

Im having trouble opening the .txt file in dev-c++, I've entered the correct name for the .txt file which is saved under the same folder, but whenever I compile and run, it will just show : " Begin reading file. End reading file. --------Welcome------- Please choose: etc. " The .txt …

Member Avatar for Izzy123
0
148
Member Avatar for KSUliz

Hi Everyone. I am taking a class on java, and have made it to chapter 7 without many problems. I am having really bad problems with this, getting an illegal start of expression where it says public void sort....I have tried so many things, I probably even have things out …

Member Avatar for stultuske
0
643
Member Avatar for CreativeCoding

In visual C#, there was this thing where you can add a settings file and refer to a setting in that settings file in your code. With that, I was able to save user settings easily. But I can't find it in C++. Is there no settings file option? If …

Member Avatar for WaltP
0
135

The End.