132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for musthafa.aj

afaik, string is immutable and string buffer is mutable. when we concatenate characters with string new string object will be created. but when we append string buffer it remains the same object. apart from these what are the key and other difference between them?.

Software Development java
Member Avatar for zerocool21
0
147
Member Avatar for patrick k

I was wondering if anyone could help me a little bit with a problem I encountered on Project Euler. The specific problem at hand is to find the 10,001st prime. I have implemented what I think to be a version of the Sieve of Eratosthenes. When I modify the problem …

Software Development c
Member Avatar for GreenDay2001
0
129
Member Avatar for SoulMazer

Hi, I'm new to C++ and I'm having trouble with this dang linker error. The full error is as follows: [quote]Error 4 error LNK2001: unresolved external symbol "public: static class std::list<class Node,class std::allocator<class Node> > NodeManager::node_list" (?node_list@NodeManager@@2V?$list@VNode@@V?$allocator@VNode@@@std@@@std@@A) Nodes.obj Error 5 fatal error LNK1120: 1 unresolved externals[/quote]From this error, I have …

Software Development c++
Member Avatar for SoulMazer
0
319
Member Avatar for joker400

how to make perl code executed automatically when new file comes out ??? i am done with most of the script, the script is converting files from one format to another , so i need the script to run when new files comes out ...

Software Development perl
Member Avatar for Claude2005
0
156
Member Avatar for cecille1127

Hello everyone! I'm new here. I'm currently working on a project. The concept is that I created a shell script that will query information, then I will use VB to get the data retrieved by the shell script and put it in a text file. I do not know how …

Software Development visual-basic
Member Avatar for jhai_salvador
0
71
Member Avatar for devika gadhavi

hi all,i dont know how to create a DLL and once created how to use that dll in a standard exe project.so plz guide me for the same by giving a simple example.All kind of hepls are greatly appriciated.

Software Development visual-basic
Member Avatar for jhai_salvador
0
146
Member Avatar for AngelicOne

How to put parameters within dataadapter? Here's an example of non-parameter query.. [CODE]SqlDataAdapter da = new SqlDataAdapter ("SELECT * FROM Table WHERE column='"+textBox1.Text+"'",con);[/CODE]

Software Development sql
Member Avatar for Lusiphur
0
2K
Member Avatar for kurtzky

Hi all. This is the scenario that i have right now. i have a stored procedure created in MS SQL 2000 and is linked to my C# program. The stored procedure contains four select statements (which means it will return 4 tables). In my program, I have four datagrids and …

Software Development dataset
Member Avatar for kurtzky
0
176
Member Avatar for LevyDee

Hi guys, Ive been doing c++ for a while now and feel very comfortable with the language. But it seems like the job market is all moving to c# and I feel I need to get started on learning c#. Could you guys supply some links? Ive been doing so …

Software Development c#
Member Avatar for LevyDee
0
167
Member Avatar for robinettmw

Hey all, I am relatively new to C# and I'm finished with a project, however I am getting two errors that, for the life of me, I cannot figure out why they are coming up. I am doing some queries from the array I created and I am writing the …

Software Development
Member Avatar for alc6379
0
123
Member Avatar for mrnutty

You are given a number D, for which 0 < D < 1,000,000 [B]Your task[/B] : is to find the number of irreducible fractions for a fraction of the sequence, (D-1)/D , (D-2)/D ... 1/D. For example, let D = 12; Then listing all fraction increments of 1/D we get …

Software Development c++
Member Avatar for mrnutty
0
295
Member Avatar for PixelExchange

Hello everyone. I am attempting to build a "form" using Win32 and C++, which contains all of the necessary elements (drop down menus, radio buttons, and check boxes). The problem is, I can find absolutely no resources as to how I would code a drop down list within Win32. The …

Software Development c++
Member Avatar for PixelExchange
0
147
Member Avatar for WildBamaBoy

I don't really know how to word what I want to ask so please bear with me. I'm making a program that will start up a game server written in Java and read the outputs and edit the packets so that I can modify this game. It will read outputs …

Software Development client-server python
Member Avatar for WildBamaBoy
0
81
Member Avatar for doktor9

Hiya Guys!!! Am hoping you guys can tell me what I'm doing wrong. My Code compiles, and seems to run OK up until it gets to the "if" statement towards the end. Instead of waiting for a response it just closes. [CODE] int main() { cout << "\n\t\tWelcome to Doc's …

Software Development c++
Member Avatar for mrnutty
0
109
Member Avatar for emran834

Hi, I have an MS Access database which has password. Now I can open the database using the password from MS Access, but when I try to test connection from Visual Studio Connection String Settings Design Time Windows Form, I get message that "Not a valid password". Still, I tried …

Software Development c# database-design visual-studio
Member Avatar for propatrio
0
2K
Member Avatar for hussey001

[CODE]#include <iostream> #include <fstream> using namespace std; void countWords(fstream &myText, int word); void countLines(fstream &myText, int lines); void wordLength(fstream &myText, int length); int main() { char textLine[100]; int lines = 0, word = 0; fstream myText; myText.open("myText.txt", ios::in | ios::out); if (!myText) { cout << "Cannot open file - myText.txt" …

Software Development c++ file-system ios
Member Avatar for Fbody
0
108
Member Avatar for gaurav_13191

Hi, I have the following code which compiles fine but does not produce any output.. [CODE] using namespace std; #include<iostream> #include<cstdio> #include<conio.h> struct node { int data; struct node *link; }; void append(struct node *,int); void addatbeg(struct node *,int); void addafter(struct node *,int,int); void display(struct node *); int count(struct node …

Software Development c++ linked-list
Member Avatar for gaurav_13191
0
95
Member Avatar for buster2209

I can't items to my combobox I am under the impression the code is; [CODE]comboBox1.Items.Add("NAME");[/CODE] but this doesn't work. The program compiles correctly but nothing is displayed in the box. What am I doing wrong?

Software Development
Member Avatar for buster2209
0
1K
Member Avatar for mjmythili

Hii friends, Is it possible to find the no. of elements in an array after inserting without counting while insertion

Software Development c
Member Avatar for Ancient Dragon
0
885
Member Avatar for wizrad

So I have this really simple situation and I have no idea what is causing this error. This is the relevant bit: header: [code=c] class foo{ void bar(int n); } [/code] cpp: [code=c] #include "foo.h" foo::bar(int n){ }; [/code] And then, from the main function in a separate .cpp file, …

Software Development c++
Member Avatar for Fbody
0
267
Member Avatar for sadhawan

Hi guys, can anyone tell me how can i store pdf files and images in sql databse. Thanks

Software Development pdf
Member Avatar for sadhawan
0
59
Member Avatar for Andreas5

Hello, i got stuck again. When i read the text it all makes sense, but putting it all to use is a different story.:zzz: Accelerated C++ excersise 15-4: [QUOTE]15-4. Add an operation to reframe a Picture, which changes the frame characters. The operation should change all of the frames in …

Software Development c++
Member Avatar for daviddoria
0
121
Member Avatar for kunalsankpal

Problem Statement The government of India has launched the UID project which aims to give a Unique Identification number to each Indian. The number is a randomly generated 16 digit number. To detect errors when typing in this number, we propose to use the last digit as a checksum. Following …

Software Development java
Member Avatar for kunalsankpal
0
114
Member Avatar for Lukezzz

Hi, I have a code where I upload a file to a server. The code is shown below. As seen I use a loop to try to connect 10 times if attempts is failing. I have also put this in a try/catch block and at the end, I am showing …

Software Development c++
Member Avatar for Lukezzz
0
245
Member Avatar for GAME

Really this is all a list. I would like to make it not seem like a list. [code] private void GetCarType(string Text) { if (Text == "76705F76775F676F6C665F3833") txtType.Text = "Golf GTI"; if (Text == "76705F6175645F72385F303800") txtType.Text = "Audi R8"; if (Text == "76705F6368765F636F62616C74") txtType.Text = "Cobalt SS"; if (Text == …

Software Development
Member Avatar for PierlucSS
0
109
Member Avatar for DaveTELFA

I seem to be getting a null error and I can't for the life of me solve it. I'm basically creating a Tetris clone, but I can't seem to get this to work. I'm creating an array to hold the square shape, and then I am creating rectangles that are …

Software Development audio storage
Member Avatar for DaveTELFA
0
176
Member Avatar for Musing888

Using the following code I am trying to check the users input string (CAcodes) and checking each one individually by assigning each element in CAcodes to a list (CAcode). A for-loop checks the conditions to make sure that the conditions for each code are met. The main for-loop tests several …

Software Development programming-construct python
Member Avatar for TrustyTony
0
296
Member Avatar for garyl671

I have a datagridview with two checkboxes and one label. The datagridview is unbound. When the user checks on a checkbox, I want the box to be checked or unchecked as appropriate. Also, when a use clicks on the label, I want to be able to check the second check …

Software Development
Member Avatar for nick.crane
0
586
Member Avatar for mayank.dyl

How to use build tool ant as i have never used any build tool and how is it better then just compiling and running our programe using javac and java.

Software Development java
Member Avatar for peter_budo
0
134
Member Avatar for nssltd

Hey well i am using microsoft visual c# 2008 professional edition and i seem to be having trouble using the cursor. The cursor i am using is one from axialis cursor workshop examples. it is a .cur and it does work as i have changed my windows default cursors to …

Software Development c c# c++ file-stream
Member Avatar for nssltd
0
255
Member Avatar for Samamam

Hello, I'm currently writing a program which will handle bookings for a campsite. Im having some trouble with the search function and i am looking for some help. There is a text file with the orders which is copied into an array when the program starts. The text file is …

Software Development
Member Avatar for Samamam
0
141
Member Avatar for cjmartin

I have tried a few different ways to to highlight the text in a jcombobox when it receives focus but none have work. Any have a code example that could help? Some examples I have tried: [CODE] private void fromComboBoxFocusFocusGained(FocusEvent event) { JTextField field = (JTextField)fromComboBox.getEditor().getEditorComponent(); field.selectAll(); } [/CODE] [CODE] …

Software Development java
Member Avatar for cjmartin
0
503
Member Avatar for georges-louis

hi everybody, I'm looking everywhere to find out a way to access a specific column and row of a datagrid generated by a sql-query in visual basic. The datagrid looks, simplified, like this: column1 column2 data1 data2 now I would need a function, that reads data2 out in visual basic …

Software Development asp.net vb.net visual-basic
Member Avatar for georges-louis
0
112
Member Avatar for Naveed_786

Hi dear, I want to pass two dates from crystal report and want to get result between these two dates but it returns result only from one date here is my code any suggestion: [CODE]If TextBox1.Text = "" Or TextBox2.Text = "" Then MessageBox.Show("Please enter Date!", "ALI ENTERPRISES", MessageBoxButtons.OK, MessageBoxIcon.Information) …

Software Development vb.net
0
354
Member Avatar for Naveed_786

Dear All, I am designing a crystal report in VB.NET I have designed a crystal report i want to pass parameter from a textbox but when i pass parameter or without passing parameter run the report it pulls all the records from the database please help my code is as …

Software Development vb.net
Member Avatar for Oxiegen
0
207
Member Avatar for Lukezzz

Hello, I use a a flashcontrol in the Form application. If I have Flash installed on the computer, the control plays the movie fine. If I uninstall the flash from the computer, I receive this error when opening the form. I have tried to put this code inside a try{} …

Software Development c++ flash
Member Avatar for cgcgames
0
176
Member Avatar for iamcreasy

Can anyone tell me how to compile "mingw-util 0.3"? I am a little confused, when some article says "use make command and it is all done".But "make" command in unknown in my command prompt.I have MinGW installed which comes with codeblocks. I need it to compile MySQL driver, to use …

Software Development c++ qt
Member Avatar for iamcreasy
0
119
Member Avatar for tizon

Hi guys i have a problem with JScrollPane, Firstly i have 2 custom JPanel's i wanted to add them to a JSplitPane so i added them to a JScrollPane and then those JSplitPane but the problem is if i drag the divider in splitpane the panel doesnot scroll :'( Here …

Software Development java
Member Avatar for tizon
0
1K
Member Avatar for cpp.coder37

Hi every one. I want to ask a question. Whenever i plugged a usb in my computer i want to save that time when this happen. Means that i want to save when when a usb is plugged in my pc in a particular day. I want to do it …

Software Development c
Member Avatar for sirio.bm
0
83
Member Avatar for xxpokerxx

Hi, I am trying to implement a binary tree(not sorted) using recursion. I have figured out most of my function however GetMax and GetMin are confusing me. [CODE]#include <stdio.h> #include <stdlib.h> #include <limits.h> typedef int TreeEntry; typedef struct binary_tree_node { TreeEntry item; struct binary_tree_node * left; struct binary_tree_node * right; …

Software Development c data-structure
Member Avatar for xxpokerxx
0
282
Member Avatar for mxadam

Anyone know why this wouldnt work all color values are correct [code] Bitmap screenPixel = new Bitmap(1, 1, PixelFormat.Format32bppArgb); public Color GetColorAt(Point location) { using (Graphics gdest = Graphics.FromImage(screenPixel)) { using (Graphics gsrc = Graphics.FromHwnd(IntPtr.Zero)) { IntPtr hSrcDC = gsrc.GetHdc(); IntPtr hDC = gdest.GetHdc(); int retval = BitBlt(hDC, 0, 0, …

Software Development
Member Avatar for nick.crane
0
211
Member Avatar for helpme87

So i am trying to make a program that takes the date from windows (this is not where i have the problem). My problem is i want to use that date and create a txt file for each day. For example it would create a file named... 8_4_2010 for today …

Software Development c++ ios
Member Avatar for helpme87
0
156
Member Avatar for prem2

Hi, I have downloaded a sample jms program from the below url and try to execute it in my system.But, it shows the below error.Can any one know how to execute the Jms programs in the system. [url]http://download.oracle.com/javaee/1.4/tutorial/examples/jms/simple/src/SimpleProducer.java[/url] Error: package javax.jms does not exist [code] import javax.jms.*; ^ SimpleProducer.java:90: cannot …

Software Development java oracle session
Member Avatar for prem2
0
5K
Member Avatar for aabi

hi i m using widos 7 64 bit home edition and want to use borlandC++ taht is not supported by 64bit OS so i install DOSBOX0.74 and try use borlnad in it but seems to me not working as it firstly dosbox can not able to initialize some of it …

Software Development c++ ide
Member Avatar for aabi
0
313
Member Avatar for Lazarevsky

Hello to all! I'm really new to C# and I've started enjoying the beautiful C# programming language couple of months ago. In fact I've already bought MCTS 70-562 and 70-505 and I've been preparing myself for the demanding Microsoft tests. However, as we all know MS launched the new platform …

Software Development asp.net
Member Avatar for Lazarevsky
0
142
Member Avatar for pdk123

Hello All, I need your help to understand , if the following code is ok ? (Baically to have polymorphism of different argument types ) class A{ ... ... public: int function( structA *ptrA); int function( structB *ptrB); } I am getting the compilation error saying the syntax error at …

Software Development c++
Member Avatar for pdk123
0
121
Member Avatar for leegeorg07

Hi all, I currently have some code: [CODE]import time import Tkinter as tk root = tk.Tk() pass_entered= False def show_pw(): pw = pw_entry.get() if pw == "password": label2['text'] = pw pass_entered==True return pass_entered else: label2['text'] = "Sorry, wrong pass" def logoff(mins): lbl1.config(height=3, font=('times', 20, 'bold')) for k in range(int(mins), 0, …

Software Development python tkinter
Member Avatar for leegeorg07
0
123
Member Avatar for jacg4

Hello guys This time the problem is basic, I want to install Windows Mobile SDK for Pocket PC so I downloaded and opened it, it shows me the first screen of the installation, but when i click next it shows an error telling me that not all of the development …

Software Development visual-basic visual-studio
Member Avatar for jacg4
0
256
Member Avatar for sbrohee

Dear all, I am completely lost and I don't see at all my mistake! I thought this would be a very easy step in the building of my classes. Thanks a lot for your help! In the context of graph theory, I have a class Node. As attribute of this …

Software Development c++
Member Avatar for sbrohee
0
355
Member Avatar for PhoenixInsilico

[CODE] my %distAvail; foreach (map(split(/\D+/,$_),<STDIN>)) { $distAvail{$_ }++; };[/CODE] What does [COLOR="#ff0000"]$distAvail{$_ }++;[/COLOR] mean here? The input is set of distances separated by whitespace (or any non-digit character). The book says %distAvail keys are distances and whose values give the number of copies of the key. But I don't understand …

Software Development perl
Member Avatar for PhoenixInsilico
0
267

The End.