132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 ![]() | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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# | |
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 | |
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++ | |
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++ | |
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 | |
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++ | |
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 | |
[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 | |
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 | |
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 | |
Hii friends, Is it possible to find the no. of elements in an array after inserting without counting while insertion Software Development c | |
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++ | |
Hi guys, can anyone tell me how can i store pdf files and images in sql databse. Thanks Software Development pdf | |
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++ | |
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 | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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 | |
![]() | 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 ![]() |
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 | |
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 | |
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 | |
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 | |
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 | |
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{} … | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 … | |
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 … | |
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 | |
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++ | |
![]() | 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, … ![]() |
![]() | 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 ![]() |
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++ | |
[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 |
The End.