43,549 Solved Topics
Remove Filter ![]() | |
I notice <vector> uses the constructor once and then uses the copy constructor for a class when creating all the other elements of a vector chain. So, if I have: [code] class MyClass { MyClass() { cout << "Constructor" << endl; } ~MyClass() { cout << "Deconstructor" << endl; } … Software Development c++ | |
i need to convert date format used from datetimepicker as(dd/mm/yyyy) to (yyyy-mm-dd) any ideas thanks Software Development vb.net | |
Reference books says arrays are immutable. [code] int[] myArray = new int[3]; myArray[0] = 1; myArray[1] = 2; myArray[2] = 3; int[] myarray1 = myArray; myarray1[1] = 3; [/code] myarray and myarray1 both are showing result 1 3 3. but I thought myarray1=1 3 3 and myarray=1 2 3. Please … Software Development | |
I have a class that gets a JFrame as a parameter. I want to get a certain component from it and do some operations with it. Something like this: [code] class A { A (JFrame frame){ a_certain_Component jScrollPane = (a_certain_Component) frame.getThatComponent(); jScrollPane.setViewPort(new JTextPane()); } }[/code] Software Development java | |
If two classes (Bar1 and Bar2) inherit from the same base class (Foo) [CODE] public abstract class Foo { public abstract void Spawn(Settings settings); } public class Bar1 : Foo { float a; int b; public override void Spawn(Bar1Settings settings) { if (settings == null) { settings = new Bar1Settings(); … Software Development | |
hi ...i have registered for reliance power...the written test will be held on july 2010..now i have to prepare for that exam...will u please tell...what to study for the technical test..please help me thank you..please suggets me some books for technical...i have selected IT specialisation for technical written test...thank you,have … Software Development c | |
Hi all, Here [url]http://www.blackwasp.co.uk/VSRenameIdentifiers.aspx[/url] I read about a possibility to change identifiers automatically and consistently in VS. In my VS2008, I don't see the "refactor" menu item in any of the mentioned menus. Any ideas for what could be wrong? Any other ideas, how can I rename a class automatically … Software Development c++ | |
Hi guys, Well, it's World Cup time and it seems only fitting that I submit something related to that. I was intrigued by the whole "Group of Death" concept. Intuitively (for me), a group of death should be a very unlikely event - yet they are always found in the … | |
Hi! I'm doing software that controls my computer with a wireless navigator that includes Windows CE. I'm doing this with Python. Okay, so lets begin. One of those control options is audio volume controlling. I have a code, that can change Windows XP WaveOut volume on a scale of 0-255. … | |
Hello! I have a question about following code. I don't understand why workerList gets populated with just 1 record (row) from database (the last one). I used a debugger, and every time new worker is added to workerList in while loop all previous records in list get overriden with last … Software Development | |
Hi.. I've got a problem in how to connect atmega8535 to VB6 using MSComm... I've already build the program in VB6 and usart program in CodeVision,and it's already work in computer that use Windows XP. but when I tried it in computer that use Windows 7 it doesn't work...!! Any … Software Development visual-basic | |
I always come to dani web whenever i have some difficulties. Thanks to all of you. I have a question regarding DLL's. A DLL file is to be written or we just write a CPP file and the compiler generates a DLL for this CPP? Please answer Thanks in advance Software Development c++ | |
I have a four projects in a solution AllianceControl -MainMenu -BackflowControl -UMS -CounterReceipts MainMenu Serves as launchboard for all the different projects as refrences them all to get at the controls to launch in a tab control: BackflowControl -> MainMenu UMS -> MainMenu CounterReceipts -> MainMenu EX: [url]http://s1024.photobucket.com/albums/y307/USSDeveloper/?action=view¤t=datagridpull.png[/url] This setup … Software Development | |
I need to know how can I make a program for specific hard disk? I have heard it that programmers use hard disk`s unique number to protect their program. So that user cant use this program there in another pc(hard disk). So would you please help me about it? I … Software Development vb.net | |
Dear Experts, I am building a program which needs to store an Image (any image type) in SQL Express 2008. I am able to read, and insert images into SQL Datatable, but I can't seem to update my images. The SQL DataTable contains columnname "picture" - Varbinary(Max) I am using … | |
[B]I want to create help file for my accounting software project. Is it possible with the help of 'HTML help workshop' software? If yes, then explain me how to do it? [/B] | |
Ok, so I'm trying to make a constructor for a text-based game for a monster. Here is the code for it: [CODE]public class Methods { String name; //characteristics of monsters int bodyPoints, mindPoints, attack, defense; public Monster(String name, int bodyPoints, int mindPoints, int attack, int defense) { this.name=name; this.bodyPoints=bodyPoints; this.mindPoints=mindPoints; … | |
I'm developing chat program. I have database on my webhosting where I store rooms and memebrship tables... I created the client, but I still cant do the server side of the program. It must be in win forms app.(I use .Net 3.5)Every tutorial\Sample of server side is for Console app. … Software Development client-server vb.net visual-basic | |
Hi, I am a intro to java student and need a little bit of help starting on this new program that I have been assigned to write. Don't worry, I'm not just seeking for someone to do it for me, I just need some guidance as I proceed through it, … Software Development java | |
The code runs perfectly, but when I press any button, for continuing the system Pause, it gives the error: Run-Time Check Failure #2 - Stack around the variable 'arq_linha_part' was corrupted. [code=c] #include "stdafx.h" #include "Sistema.h" #include <fstream> #include <iostream> #include <string> #include <sstream> #include <cstdlib> #define ZB 100.0 #define … Software Development c++ | |
Hi all , i'm writing a program that communicates with com port. i need to send a few packets. the thing is that i want to wait after each packet so that the receiver could send me an ack ! in pseud code : [CODE] for (x=0;x<Packets.Lenth;x++) { sendData(Packets[x]); waitForDataReceivedEvent … Software Development | |
i have problem only declaring struct variable. i declare a struct in struct.h file and i wan main.c and class.h also using the same variable. But the class.h file say the struct is undeclare.. example: struct.h [CODE]struct car{ int year;};[/CODE] main.c [CODE]#include <cstdlib> #include <iostream> #include "struct.h" #include "class.h" using … Software Development c++ | |
It's my school project, I wrote this C++ program with file handling. I am getting these errors and I can't understand what's causing the errors, if anyone can rectify my program, that would be great. My program :- [CODE]#include<fstream.h> // for C++ and File-Handling functions #include<conio.h> // for getch() and … | |
Hello; I was having a problem understanding how to collect a date dataType as 1111-11-11 from a textFiels) and set a variable that accepts ex:public Date dob; Is there a way to get a string from an array element and parse it to conform to the Date data type? [icode]Exception … Software Development java | |
hii i m using atoi() to convert char value to int. and then passing that int as a swtich variable. switch goes in a case and exectuing that particualr function but returning 0 value.... for example: i am finding no of process() and system up time(). when switch program goes … Software Development c | |
I have never had this problem before. I code all my applications in the Eclipse IDE, and they all work fine there. But if I go into the bin and use a batch file, with 'java ClassName' it gives me an error about not finding the main class. I have … | |
Hello! [COLOR="Green"]Little unimportant info about me: I think i can program in c# in a quite good way,but I would like to make my programs useful also for people who hasn't got .NET framework installed. So i started to learn c and to rewrite my c# programs in c.[/COLOR] I'm … Software Development c | |
![]() | Greetings, I have been trying to see all the files in computer, but since accesses of some files are denied my program throws exception. When I show the type of exception with a MessageBox I learnt it is about mscorlib.dll. I can make my program run not throwing exception using … Software Development |
I wonder if anyone can advise why the sort param is being ignored in this xslt? The code is always performing the 'otherwise' section regardless of the sort parameter. [code]<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> <xsl:param name="sort"></xsl:param> <xsl:output method="xml" indent="yes"/> <xsl:template match="Products"> <xsl:element name="Products"> <xsl:choose> <xsl:when test="$sort='DATE'"> <xsl:apply-templates … Software Development xml | |
[CODE]class A extends B { C ob1=new C(); D ob2=new D(); protected void finalize() { System.out.println("Finalizing A"); super.finalize(); } public static void main(String ss[]) { new A(); System.gc(); } }[/CODE] Though System,gc() doesn't guarantee the running of finalization, my question is if the JVM is able to run the finalizations … | |
I needed a way to have words with different sized fonts in my JTextArea, but apparently only plane text is supported for it. I turned to JEditorPanes which apparently support html which allows different sized fonts, which is great. Now, I need a way to traverse back into the lines … Software Development java | |
Ok, so I am not sure how to do this but I am sure it can be done. Here is a scenario: I am reading in a text file that has a persons name and then the salary that they make per year for their job. The text file may … Software Development java | |
Hi Everyone I am new in C# and developing a desktop application using it. There I have developed a form. In that form a DataGridView control is used. In that control a lot number of column is added with header text manually. This result a Horizontal Scrollbar appeared when run … Software Development | |
I'm using Delphi 2009, and I can't figure out how to preserve transparency when converting a TBitmap to a TIcon and assigned it as the cursor, its always square and has the white background. Can anyone tell me how I could draw to the bitmaps canvas, and convert the entire … | |
I commented on the code what is my doubt. I don´t know I can´t I simply use arq_linha_part >> parm; If I use that it returns me the error: 1>------ Build started: Project: Interface GaussSolve, Configuration: Debug Win32 ------ 1>Compiling... 1>Interface GaussSolve.cpp 1>c:\users\fernando\documents\visual studio 2008\projects\interface gausssolve\interface gausssolve\interface gausssolve.cpp(38) : error … Software Development c++ file-stream visual-studio | |
Hy. I have to make a program to crypt a text entered from the keyboard whith aes 256 , but i have problems when i try to split the text in two.I get a bad_ptr when i declare unsigned char** intext=new unsigned char* [16]; [CODE] #include<iostream> #include <fstream> #include<conio.h> #include … Software Development c++ motherboards-cpu-ram | |
My entrada.txt jas the following contents: [code] #Commented text #This should be used like: #Bar:Bar_number:Type_of_the_bar; # # Bar:1:PV:1.05 [/code] So the lines that starts with # are commented so the program will not process them. Everything is working fine, but when I used getline() to delimit the string on ":" … Software Development c++ visual-studio | |
What is the correct way to declare a multidimensional array. I tried like this [CODE]unsigned char** intext=new unsigned char*[16];[/CODE] but i get a bad_ptr. Software Development c++ | |
Hi, I´m having problem while converting char to string. [code=c] #include "stdafx.h" #include <fstream> #include <cstdio> #include <iostream> int main() { std::ifstream arquivo("entrada.txt"); if (!arquivo) { std::cout << "Arquivo não encontrado" << std::endl<< std::endl; system("PAUSE"); exit(0); } std::string token; char arquivo_linha[255]; while(arquivo) { arquivo.getline(arquivo_linha,255); if (arquivo_linha[0] != 35) { token … Software Development c++ visual-studio | |
I´m using Visual C++ Studio and when I include another .cpp file it doesn´t takes all the what have been included before. Here is an example: main.cpp [code=c] #include <iostream> #include <string> #include <sstream> #include "readtext.cpp" int main() { teste(); return 0; } //readtext.cpp void text() { printf("teste"); } [/code] … Software Development c++ visual-studio | |
Hello everyone, as some of you might know NetBeans 6.9 has been release, now I already have 6.8 installed on my computer. The problem is that whenever I try to uninstall NetBeans 6.8 I get some weird error and I don't know how to fix it. Here is what I … Software Development java | |
I've created a Java application and converted it into JAR format to redistribute. It works fine on Windows 7, Windows XP, SunOS and Mac OS X 10.5 ... but whenever I try to run it on Ubuntu 10.04 I run into a few problems: [LIST] [*]When running the application it … Software Development java operating-system os-x ubuntu | |
hi all , i wrote a class that send and receives data from serial port . the class uses serialport class. now I have a event handler that is being called when the incoming buffer has data. I also have a parsing method in my class. my problem is that … Software Development | |
hi all, i'm new to this forum and java i'm working on my thesis with "market basket analysis" topic and my lecturer told me to use java (while i'm new to it) i have a set of item like this (example) id|transaction| item 1 1 a 2 1 b 3 … Software Development java | |
No programs are running.Both is Visual Studio and Codeblocks... both are showing the following error, [B]LINK : fatal error LNK1104: cannot open file 'kernel32.lib'[/B] I have google it, some say setting environment to "C:\Program Files\Microsoft SDKs\Windows\v5.0" or reinstalling visual studio, or editing registry key "HKEY_CURRENT_USER\SOFTWARE\Microsoft\MicrosoftSDKs\Windows\CurrentInstallFolder"(i didn't find any MicrosoftSDKs under … Software Development c++ visual-studio | |
hii i have a server client prog in which server is my 'agent' and client is 'manager' following is the code for both agent and manager. i want my agent to send what manager is requesting. but it is not working the way i want. the paramters which manager is … Software Development c client-server window-manager | |
[CODE] private Node<T> addAt(Node<T> node, T value) { if (node == null) { // special case return new Node<T>(value, null); } else if (node.getNext() == null) { // other special case node.setNext(new Node<T>(value, null)); } else if (node.getstuff().getName().compareTo(value.getName()) > 0) { node.setNext(new Node<T>(value, node.getNext())); } else addAtEnd(node.getNext(), value); } return … Software Development java linked-list |
The End.