43,549 Solved Topics
Remove Filter ![]() | |
Hi can anyone please help me with my homework assignment? I am not asking anyone to do this for me but I keep getting an error in declaring GetInput() inside Main. It says Error: No overload for method GetInput() takes 0 arguments and I can not figure out what I … Software Development user-interface | |
Hi, I would like to ask how to pass "select count" query value into variable? [CODE] string workstr = "SELECT COUNT(Indicator)FROM PunchIn WHERE EmployeeName='" + selectedItem + "'AND Months='" + selectedItem1 + "'"; AccessDb_Cmd.ExecuteNonQuery(workstr, Access_Db); int count = (int)??.ExecuteScalar();//what should put into "??" ? [/CODE] Software Development | |
I am wondering if there is an easier way to check if the mouse is in a rectangle. Currently I am using an if statement like so [CODE] if (mX > rectX && mX < rectX + 20 && mY > rectY && my < rectY + 10){ } // … Software Development java | |
Hi! I am using Dev-C++ and when I am trying to compile a program in it, it is showing many errors. All the settings seems to be right. Can I compile a program including header files like conio.h and iostream.h and using namespace std in Dev-C++? If not please suggest … Software Development c++ visual-studio | |
I have an application that supports only Framework 4.0. Is there a way I can make it compatible with a lower Framework version of .Net ??? Please help ! Software Development | |
I am currently creating a small application that processes a line of text into several ouput lines using a C# Windows Form What I am looking for is a way to duplicate the actions of manually copying text through Ctrl+C, or right click, Copy, by the click of a button. … Software Development | |
so I'm new to the language so I've trying to do a vertical bar graph as shown below without luck, so far the only thing i've managed to do is to make it horizontally like this: [CODE] *********** ******* **** ********* **** [/CODE] which i do it by for v … Software Development python | |
Hi all. First, thanks in advance for any assistance you can offer! Here is my situation: I am trying to, in essence, convert a C# console app to Silverlight (by using Silverlight as the UI). I'm having little or no trouble with the Silverlight end, but I need to be … Software Development assembly | |
[code="C++"] class item { string name; string identifier; public: item( string name,string id):{this->name=name;this->identifier=id;} friend ostream& operator<<(ostream&, const item&); friend istream& operator>>(istream&, item&); }; ostream& operator<<(ostream& out, const item& temp) { out<<item.name<<" "<<item.identifier<<endl; return out; } istream& operator>>(istream& in, Cmessage& temp) { getline(in,item.name);//in case sring has space char getline(in,item.identifier); return in; … Software Development c++ client-server | |
Hi, I know that I can overlaod the operator >> and << and declare it as a friend function in the class for which i am overloading and then write the definition outside of the class. But recently I was writing a string class for myself only to learn and … Software Development c++ | |
[code]ORA-00001: unique constraint (WAJAHAT.INVOICE_UQ) violated[/code] its the exception, i want to match it with condition and take decision , but its not working [code]if(e1.getMessage().equals("ORA-00001: unique constraint (WAJAHAT.INVOICE_UQ) violated"))[/code] Software Development java | |
Hey, May someone please explain to me why the rename function isn't working? result should display a 0 if the files were sucessfully renamed. it keeps returning a -1. [CODE] #include <iostream> #include <fstream> #include <iomanip> #include <cstdio> using namespace std; int main(int argc, char *argv[]) { bool Stats; char … | |
Hi, Hello, I apologize if i got the wrong thread to post...can you help me please,where is the forum for learning a cobol language?because i want to learn this language i'm still beginner on this and i have not yet tried to code...Thank you in advance and I'm Hoping for … Software Development | |
I'm not known to be a very memory friendly guy but after about 4 hours debugging my lua+sdl in C++ I finally figured out how to use threads but now I have another problem. I apparently have zero knowledge of memory manangement but thats kind of ok so I've narrowed … Software Development c++ motherboards-cpu-ram | |
The worst thing about C++ in my opinion is trying to use a library (with VS2010 at least). It always causes me great pain, and usually I am not met with success. So, I'm trying to use the Magick++ library, which is a part of the ImageMagick program, and I … Software Development c++ | |
I was making a basic nooby java tribe game, and I needed a way to return to main menu. Can anyone tell me of any methods? This is my current code (incomplete) I want it to return to main menu if a certain number is entered after the stats are … Software Development java | |
Oka. So i have this rather simple program, basically i want it to be able to count the number of hours it has been open. My problem is that i am trying to use [CODE]import java.util.date; Calendar calendar = Calendar.getInstance();[/CODE] And apperently this does not update after the program has … Software Development java | |
Hi I am creating an store procedure in sql server 2005. i want to pass table name as parameter dynamically in sp. here is my sp but it give me an error [CODE]ALTER PROCEDURE dbo.ImportToTable ( @TableName nvarchar(100), @que_id int , @sub_code int, @chap_no int, @que nvarchar(max), @opt1 nvarchar(max), @opt2 … Software Development c# | |
hello all i am doing a copy operation from a file to another file.in source file i have 13 digit no but in destination file there is only 12 digit copied.code is as follows. [CODE]public void createOriganalFile() { try { File ObjInputFile1 = new File(strFilepath + "_dummy.txt"); File ObjOutputFile1 = … Software Development file-system java ![]() | |
Hey, I have a file that I am working with that I have pass into my program through command line arguments. I don't want to touch the file, just want to store a temp of the file then after fixing the temp place it back in the original. After running … | |
I have added data from the database to the textbox but can't add a null value. I'd like to enter certain text if the field (not sure if thats what it's called) in the database is null. [CODE] if( (reader["Grey3"].ToString()) == DBNull.Value)[/CODE] I've search online and read through a number … Software Development | |
How would you be able to Capture the Value of a Cell when the User Selects a Row? Software Development vb.net | |
Hello, I have a difficult memory error to find. I have narrowed it down to a small piece of code, tiny in fact, but the symptoms are baffling to me. I tried to find it with electric fence, but electric fence found nothing. The problem is complicated by my liberal … Software Development c++ motherboards-cpu-ram | |
Hi All, I am facing issue again and would be great if you help me to understand this code: [CODE] #include <iostream> #include <ostream> using namespace std; class A{ int a; public: A(int a):a(a){ } A operator+(A &other){ A aaa(a+other.a); return aaa; } friend ostream& operator<<(ostream &stream, A &aa){ stream … | |
Hey guys, I'm working on a game, and I was trying to mirror the gif images inside the program so I wouldn't have to do it manually (And also so it wouldn't use twice as much space to store the mirrored gifs). Anyway, I Google'd it and found [URL="http://stackoverflow.com/questions/1708011/create-a-imageicon-that-is-the-mirror-of-another-one/1708909#1708909"]this answer[/URL], … | |
Hi, I have problems with passing parameters in a object to string, take a look to my codes: [CODE] DataTable dt = new DataTable(); string SQLStr = ""; // sql query dt = AccessDb_Cmd.RetrieveData(SQLStr, Access_Db).Tables[0]; string c1,c2,c3,c4,c5,c6; int i; foreach (DataRow row in dt.Rows) { i = 0; object array … Software Development | |
Is there a way to do nested list comprehension? for example I can square a range of numbers, even only. [CODE][x*x for x in range(1,20) if x % 2==0][/CODE] but what if I want to square the even and times the odd by 3. [CODE][x*x for x in range(1,20) if … Software Development python | |
Hey all, I'm having some issues using ArrayList. Here's the code.. [CODE] ArrayList<Double> var = new ArrayList<Double>(); var.add(15.0); var.add(0.0); [/CODE] I could just use [CODE] double[] var = {15.0 , 0.0}; [/CODE] for this.. but I'm trying to teach myself Java and need to understand the use of ArrayList. Any … Software Development java | |
Hello to everyone, I am new to this forum as I am new to Java. I would like to know if anyone has come up with a method that helps in learning the huge collection of classes of the Java API. I know that question is not easy to answer. … | |
How can I set the stack order for controls of an mdi form and new child forms that appear within my mdi form. The mdi controls appear on top of the child forms after they are opened. I googled this but couldn't find anything relevant to controls and mdi forms. Software Development | |
Can someone help me i try c++ text with color and it is blinking now i want the text is moving whatever right to left, left to right. I have no idea plsss i begging someone plss help me exmple plss or teach me!! Software Development c++ | |
i have a treeview in which i need to get the selected nodes text and its child node text(if any). I tried using AfterSelect event to get this but i only got the selected text but not the child text.. so can any one help me with this.. i am … Software Development c# | |
I have a login form coded as : [CODE] Imports System.Data.OleDb Public Class Form2 Dim ctr As Integer Private Sub Ok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;data source=C:/Users/Space Era/Documents/User.mdb") Dim cmd As OleDbCommand = New OleDbCommand("SELECT * FROM Users WHERE userid = … Software Development microsoft-access open-source vb.net | |
I am having trouble running the lua interpreter at the same time im running sdl and am also having trouble with processing events in sdl while lua is embedded basically in some pseudo code this is what it looks like so far [CODE] #include <lua.hpp> #include <SDL/SDL.h> #include "user.hpp" int … Software Development c++ | |
Hi there; There is such a simple code here, and with the propotion of its simplicity, it drives me crazy. Here is the code: [CODE] private void fillArrayLists(String fileName,ArrayList <String> list) { try{ // Open the file that is the first // command line parameter FileInputStream fstream = new FileInputStream(fileName); … Software Development file-stream java | |
hi guys, currently am planning to buy an exam simulator for SCJA exam so which one is the best to get prepared for the test [COLOR="Red"]ucertify [/COLOR]or [COLOR="Red"]whizlabs[/COLOR]?? if there's any other of these please mention it here. Thanks Software Development java | |
hey, this is supposed to collect data into a 2 by 3 array. believe it or not, my teacher wrote this problem and he spent 20 minutes trying to figure out why it wasn't running properly. anyone care to help me figure out what was wrong with it?? [CODE]#include <stdio.h> … Software Development c | |
Hello, Please could someone help me on this. I have a button on which when clicked will display the crystal report. This report displays as required but when I want to view the report the second time, there's this error message: "Index 0 is out of range, Parameter name:index". FYI … Software Development vb.net | |
Hi, I'm getting the following while trying to execute my spring program [CODE] 5 Jul, 2011 7:22:08 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@18a47e0: display name [org.springframework.context.support.ClassPathXmlApplicationContext@18a47e0]; startup date [Tue Jul 05 19:22:08 IST 2011]; root of context hierarchy 5 Jul, 2011 7:22:08 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions … Software Development java | |
I have a textbox, and it's set to multiline, so a user can enter a few sentences. The problem is, if the user hits the enter button while in the textbox, it's starting a new line. This data is being saved as a text file, and it's causing problems when … Software Development vb.net | |
hello everybody, i am using java as front end and ms access as back-end for my mini project, in my database, in couple of the tables there is field which i've declared [COLOR="red"]primary key[/COLOR] for those respective tables and which has type of [COLOR="Red"]autonumber[/COLOR]. so my question is, while inserting … Software Development java | |
Hi, I am now doing a window form application which are contains several window form interfaces My question is that : Firstly I enter texts in a text box of interface A (login page) , then I clicks a button to hide A and go to interface B. At B, … Software Development | |
Hi friends, I wrote a code to build a matrix with specific calculations. When I'm using 3000 elements works well ... But I did a test with 150.000 (150.000 x 150.000) and I had problems. " terminate called after throwing an instance of 'std::bad_alloc' " I'm copying the code part … Software Development c++ | |
I have a class Node and want to declare an initially unknown number of instances of this class at run-time. First the program determines the number of nodes (num_n) from the user and then I want to define num_n objects. I have crudely got around this by defining a maximum … Software Development c++ | |
![]() | I bet someone already asked this but I can't find the thread. I am using windows XP home edition. I loaded python 2.6.6 off the web as it is the same version some of my code is written in. When I click on the idle GUI I get no response. … |
Hi, I have 2 links within a datagridview. The 2 links are in the same row, let say link A and link B. How to let link A go to Form A and link B go to Form B? [CODE] Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) … Software Development vb.net | |
hello im new to python and im just making simple programs(for now) so im doing this guessing game where the user enter a number and tells him if he got it right or not. here is the code [CODE] import random import re print 'This is a guessing game' def … Software Development python | |
i have a error in c graphics "segment exceeds _TEXT 64K" i reduce some lines but i have no solution please help me as soon as possible i want to complete my program as soon as possible please help me some one Software Development c++ | |
Is there a way to get current date and time from remote windows machine on linux? On remote windows machine ssh not enabled, there are no powershell. Can we achieve result via telnet or smbclient? Software Development microsoft shell-scripting | |
[code=java] /*This program takes two integers as command-line arguments (they are initially strings), and returns the sum, difference (based on the order they're entered in the command line), product and quotient (also based on the order they're entered in the command line) of those two integers. For example, in the … Software Development java |
The End.