132,726 Archived Topics
Remove Filter ![]() | |
Hi, I'm new to this forum I'm trying to allow my menu items to work by allowing a user to press it and then display a message such as 'door locks' etc and keep a progress that the door is locked or unlocked... pic below highlighted in red however with … Software Development java java-swing | |
Hello, I have the current problem. As it stands im working on an ImageViewer project. I'm having trouble determining the mouse location for what I think are the following reasons. I currently have the frame, and within that frame is a JTabbedPane. Each tab is a new object, which creates … Software Development java | |
the program is showing the output perfectly but the value of [iCODE]a[/iCODE] is printing more than once. for example, if i enter range from 10 to 20 , the output should be 11,13,17,19 but the output is 11,13,13,13,17,17,17,17,17,17,17,19,19,19,19,19,19,19,19,19 how can i fix this ? [CODE]int main(void) { int a,b,c,d,f; clrscr … Software Development c | |
I have an assignment a C++ assignment and here is my code so far; [CODE] #include <iostream.h> #include <stdlib.h> #include <cstring> #include <cctype> class Student { private: char Name[80]; long SSN ; public: Student (char, long); void setSSN (int SSN); void setName (int Name); int getSSN (long); int getName (char); … Software Development c++ | |
I am trying to make a program that finds the max and min of more than 2 inputs and i am trying to use the Math.Min and Math.Max method but i cant seem to get them too work since they only accept 2 parameters. this is what i tried to … Software Development java | |
In the code below, I'M having trouble with one line of code [COLOR="Red"]MenuMaker menu = new MenuMaker() { Randomizer = new Random() };[/COLOR] The program is a simple windows Form with two main files, Form1.cs & MenuMaker.cs, the second one is a class. What I'M trying to understand is why … Software Development | |
here's my question: write a program that asks the user to type the value of N and writes this picture : N=1 * N=2 ** * N=3 *** ** * any help? tips how can i start?? thanks Software Development c++ | |
So I'm currently using Lazy Foo's tutorials. Here's the link: [url]http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet05e/index.php[/url] I followed all the instructions, but I'm having a couple issues. So when I choose an empty project, like the tutorials recommends, as opposed to one with a precompiled header, the C/C++ tab does not appear, and I am … Software Development c++ visual-studio | |
I use this method to check the values from the scanner. My do-while loop prints an error message and then resets to the beginning of the scanner after an invalid value is detected. But it also resets when I've used good values, without the error message. I've been googling up … Software Development java | |
hey i'm really not sure how to solve this, im making a simple "press enter to continue" function called wait(), defined it in a header file with extern keyword, and then in the main file prototyped it and from then on used it as wait(); But it still states that … | |
Hey everyone, needing a little hand... i'm using the SDL on windows and all the right libraries are installed correctly, I know this because all my other functions that need these libraries worked and still do, but my SDL_Surface* pFontSurface; variable my print text method creates a compile error. ~The … Software Development c++ | |
Hi ... I m having question on vc++ floating value slider in CLR windows from... I want to have a slider which should have 0 to 1000 value and the values should be float values.. can anyone please help me how to resolve this problem.. here i included the code … Software Development c++ | |
Hello all im trying to work out whats wrong with this code, [CODE]#include <iostream> using namespace std; int player1score = 0; // global variable int add10 (int &score) // function that adds 10 to player1score variable by reference { return(score + 10); } int main () { cout << "Please … Software Development c++ | |
hello. I am writing a program that will solve a type of min. spanning tree problem. i have 2 different algorithms that I've gotten working in two separate .cpp files i've named kruskels.cpp and prims.cpp. my question is this: each file takes the following command line to run it . … Software Development c++ | |
I apologize if I didn't post this in the right forum, but I did a search on this site and couldn't find anything on this topic... So, here is the deal...I am not at all a programmer, and have no knowledge of it whatsoever...As such, I am working on a … | |
I'm wondering how to start a Boolean array at 1 instead of 0. so far the only thing i can think of is: [CODE] Boolean [] x = new Boolean[12]+ 1; or Boolean [] x= new Boolean[12 + 1]; [/CODE] and the top one does not compile while the bottom … Software Development java | |
hello guys, i have several problem with exception such as IOException , NullPointerException,and ArrayIndexOutOfBoundsException. i do BLUETOOTH PUBLIC AND PRIVATE CHATROOM. so, while im running the emulator in netbeans, the problem with exception appear in output pane: i already choose PUBLIC chat and do chatting without any problem, let say … Software Development java java-netbeans | |
[CODE]#include <iostream> #include <cmath> #include <iomanip> #include <fstream> #include <stdio.h> using namespace std; int main () { // Declared Variables. int choice; ifstream inputFile; inputFile.open("C:\\temp\\RowPrices.txt"); if (!inputFile) { cout << "Error opening file.\n"; } inputFile.close(); // These are my details. cout << "******************************************************* \n" << endl; cout << "Name: Bhupendra … Software Development c++ | |
I am a beginner trying to write a program for my intro C class. I am trying to write a program that calculates the combination of numbers given a specific output by the user. The number has to be between 1-10 to be valid. I am not allowed to use … | |
Hello, I have been programming with the same JDK SE since last semester and now all of a sudden I am getting an exception in "main" with just a print statement. I uninstalled the old then reinstalled a newer version of the JDK SE from sun but I am still … Software Development java | |
Hi, I am currently learning the Java programming language and have downloaded the latest Eclipse Platform to program with and encountered an interesting error while trying to import a folder with some of my previous work. the importing client in eclipse encountered some error about a buffer overload which i … Software Development java | |
I have a funny problem. I am trying to split a string. [code=python] DEVICE_IP = '164.178.7.30' ip = DEVICE_IP.spilt('.') print ip[0]+'-'+ip[1]+'-'+ip[2]+'-'+ip[3] [/code] The above code throws the error [code] Traceback (most recent call last): File "/home/englotk/test", line 2, in <module> ip = str(DEVICE_IP).spilt('.') AttributeError: 'str' object has no attribute 'spilt' … Software Development python | |
Hi, I'm using VB.net express edition with SQL server compact for a project and I need a little help. What I'm trying to do is; I want to set a certain column to true or false automatically based on what value another column has entered. I managed to get this … Software Development vb.net | |
I have a C++ console executable module build in VS2008. To run it requires some MS components to be installed, namely: -- Visual C++ 2005 Redistributable Package -- Window Media Encoder 9 Package The module runs fine on all XP machines I tried but fails to load on a Windows … Software Development c++ windows-server | |
Hey Guys I was wondering if anyone could help me. I have to put pictures such as JPEG's into a swing program as part of an assignment. I've looked in textbooks and online but anything I find doesn't work. Can this be done cause I'm completely lost with it? Please … Software Development java java-swing | |
I have an add/edit program I've written and I'm trying to find an example of how to test/check an Account Number that a person enters in a textbox to the database(SQL) to make sure it is unique. I've been searching and haven't had any luck. Any Advice? Thanks. Software Development vb.net | |
I am writing a c program to copy content of one text file to another but with the copied lines in the destination file preceded by the length of the line and a blank space. Let me illustrate my expectation: original.txt destination.txt daniweb 7 daniweb forum 5 forum plz help … Software Development c file-system | |
Hi, I seem to have a problem with an 2D arrray. I want to create an 2D AnsiString array (AnsiString array[][] ). I can compile it but i get an acces violation when i try to put value in the array. I changed the AnsiString to integers witch works fine … Software Development c++ | |
hello, is there any way to call a specific variable from a function ? see the following program. [CODE] float abc(void); float main(void) { float a,b,y,z; a=abc(); b= printf ("enter value for z"); scanf ("%f",&z); y=(a-(a*y))/(b*z); printf ("%f",y); } float abc(void) { float x,p; scanf ("%f",&x); p=x*x; return(p); }[/CODE] in … Software Development c | |
Annual Interest Rate [COLOR="Red"] Monthly Payment[/COLOR] 11.00 [COLOR="Red"]952.32[/COLOR] 11.25 [COLOR="Red"] 971.26[/COLOR] 11.50 [COLOR="Red"]990.29[/COLOR] 11.75 [COLOR="Red"]1009.41[/COLOR] 12.00 [COLOR="Red"]1028.61[/COLOR] I've done the hard part and completed the project, but I can't figure out how to get my program to output in two columns like above. Since this site doesn't take spacing, black … Software Development java | |
I'M reading this tutorial at [url]http://www.tuxradar.com/beginnerscode[/url] at all I have done thus far is enough for an empty game window built with two small .cs files. Here are the error messages. [COLOR="Red"]Line=15, Column=72, Type=Error, Priority=Normal, Description=An object reference is required to access non-static member TroutWars.MainClass.Quit(object, SdlDotNet.Core.QuitEventArgs)'(CS0120)][/COLOR] & [COLOR="Red"]Description=`System.EventArgs' does not … Software Development | |
what am i doing wrong ? :) [CODE] if(InternetGetConnectedState(INTERNET_CONNECTION_LANINTERNET_CONNECTION_MODEM , 0) == true) { cout << "internet alive"; } [/CODE] [CODE] error: invalid conversion from `int' to `DWORD*' error: initializing argument 1 of `BOOL InternetGetConnectedState(DWORD*, DWORD)' [/CODE] Software Development c++ | |
I have a problem to re declare a List<String^>. The first line compiles fine but I get this error on the second line: [B]'operator =' function is unavailable in 'System::Collections::Generic::List<T>'[/B] I dont know what could be wrong here ? [code] List<String^> Lines = gcnew List<String^>(); Lines = gcnew List<String^>(); [/code] Software Development c++ | |
Hi, I would like to add some scripting support to my .NET-application (I usually code in VB.NET). Since VisualStudio 2008 won't let me use VSA to get scripting support, and the Windows ScriptControl crashes in 64-bit mode, I have been looking for an alternative solution to my problem. I would … | |
I dont even know where to start with this program. I have been really busy and he tells us what to do. If anyone could help with this it would be great. here is what it says to do ASSIGNMENT DESCRIPTION This program will simulate the card game WAR!. The … Software Development c c# c++ queue user-interface | |
hi can any one explain the funda of serverless chat application????? Software Development | |
can sombody tell me binary addition in c++ Software Development c++ | |
I have a ListBox using an ItemTemplate. Here is the XAML: [CODE] <ListBox Name="list_Sensors" ItemsSource="{Binding}" Grid.Column="0" IsSynchronizedWithCurrentItem="True"> <ListBox.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <GroupBox Header="Part Number/Description" Grid.Column="0" Margin="5" Width="200"> <StackPanel> <TextBlock Text="{Binding Path=PartNumber}" HorizontalAlignment="Center"/> <TextBlock TextWrapping="Wrap" FontSize="8" HorizontalAlignment="Center"> <TextBlock.Text> <MultiBinding StringFormat="{}{0} {1}"> <Binding Path="Manufacturer" /> … Software Development asp.net | |
Hello, I'm working on a project that involves making two dlls: one of them is in Borland C++ (file1-bc.dll), the other one is in Visual C++ (file2-vc.dll). Right now I'm prototyping and trying to make them as simple as possible and to see data being exchanged from one side to … Software Development c++ data-structure visual-studio | |
[CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; using System.Threading; namespace Something { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { Thread recording_thread; recording_thread = new System.Threading.Thread(new ThreadStart(record_run)); recording_thread.Start(); label1.Text = "Loading"; … Software Development | |
Write a C++ program that reads a series of 12 temperatures (floating-point numbers) from an input file. It should prompt the user for the name of the input file. The input file should be place in the same directory where your source program resides. It should write out on the … Software Development c++ open-source | |
Hi all, I am reading data from an excel spreadsheet. The column data which i am reading from my spreadsheet reads as follows: integer integer integer var char integer integer integer var char var char null integer etc..... As you can see it contains no specific data types, but just … | |
Hi All, I have big picture file (3508 x 4925) to be loaded into the picturebox. That picture is very detail, with the small writings all over it. I want to rescale into a A3 size which is around (1123 x 1590 pixel) to fit into my picturebox. I used … Software Development visual-basic | |
Hello Everyone, I'm trying to implement a Polymorphic Queue. Here is my trial: [CODE]QQueue <Request *> requests; while(...) { QString line = QString::fromUtf8(client->readLine()).trimmed(); if(...)){ Request *request=new Request(); request->tcpMessage=line.toUtf8(); request->decodeFromTcpMessage(); //this initialize variables in request using tcpMessage if(request->requestType==REQUEST_LOGIN){ LoginRequest loginRequest; request=&loginRequest; request->tcpMessage=line.toUtf8(); request->decodeFromTcpMessage(); requests.enqueue(request); } //Here pointers in "requests" do not … | |
Hi, I’m trying to use the following code in C++ on Mac OS X Snow Leopard to get the output of an external program through a pipe. [code=c++] FILE * al = popen("program program.cfg", "r"); string data; char buffer[100]; while (fgets(buffer, 100, al) != NULL) data.append(buffer); cout << "«" << … | |
i allow drag and drop a picturebox to a panel. after drag and drop i need to allow the picturebox to remain in its own position and not leaving an empty space there. how do i do about it? image.clone does not work. pls help.thank u. Software Development | |
I'm pretty proficient with Java but am not sure what's going on with pointers, classes, or imports/includes in C++. I originally had a size() function but I was getting error about it conflicting with my 'int size;' variable. Can functions not share the same name as variables? I renamed it … | |
[QUOTE]hi...I had to read a xml file in c#...i Had written the following code but the desired output is not coming..[/QUOTE] [CODE]using System; using System.Xml; namespace ReadXMLfromFile { class Class1 { static void Main(string[] args) { XmlTextReader reader = new XmlTextReader("my.xml"); while (reader.Read()) { switch (reader.NodeType) { case XmlNodeType.Element: // … | |
![]() | Something that i'll probly need to know in the future or even soon. What is the proper term of calling this | thing but blinking, when you type and it shows where you are typing. And is there any java API or any java commands linked to this? thx ![]() |
The End.