132,726 Archived Topics
Remove Filter ![]() | |
Okay, I'm still a fresh out of college programmer (only been doing it for 4 years), so I will try to be as descriptive as possible. I apologize now for anything that doesn't make sense. I've got a C++ project that using MFC to create forms. I have my main … Software Development c++ visual-studio | |
Why is there so many questions in this forum on really simple gui problems that can easly be solved by using an IDE such as netbeans and creating the gui from there .... I mean thats what is there for why still use the old way? beacuse you like to … | |
Hello; Well, I need to create a program that randomly inserts new different sized spheres into a swing panel and animates them [movement is delimited by the width and height of the frame - when they collide with the frame they bounce to a random direction]. How could I accomplish … Software Development java java-swing | |
WHY DO I GET ERRORS FOR loadTicket MEthod saying incompatiable type, please someone tell me whats wrong and tell me the correction for it? import java.util.Date; import java.lang.*; import java.io.*; import java.util.Calendar; public class Ticket { public TicketInfo x; public int tNumber; public static long entranceTime; public static long paymentTime; … Software Development java | |
Hey everyone, I'm just wondering what level and type of maths are needed in solving programming problems. I was looking at maths courses the other day but I was unsure which one would suit my need as I'm an IT guy. Can anyone suggest something? I want to be able … Software Development java | |
hi guys i am newbie in c/c++ staff and friend of mine told me that you can mix c/c++ and i thought it's cool but i want to see how it's work so please help.. if you have any simple example will appreciate ..thanks Software Development c++ | |
Hey, I want to Shutdown the computer using Registry in c++.. i have googled and only one thing that i see about [B]ExitWindowEx()[/B].. But i have no idea about to implement in c++ program... So please help me .... Software Development c++ | |
hi everyone, I am reletively new to c sharp and have a question regarding a console application I have created. I have a text file which contain 16 records which i want to sort in dob order. I was wandering how i could split the data so when i run … Software Development | |
Hi I am using web application. on my login button i have written this code [CODE]protected void btnlogin_Click(object sender, EventArgs e) { //sql connection SqlConnection cnn = new SqlConnection(); cnn.ConnectionString = "Server=HOME-PC;Database=kandivalideal;Trusted_Connection=True;"; cnn.Open(); SqlCommand cmd = new SqlCommand("select mobileno, password from register where mobileno='"+txtmoblie.Text +"'and password='"+txtpassword.Text+"'",cnn); cmd.Connection = cnn; SqlDataReader … Software Development | |
how trigger an event on specific time of day .net Software Development | |
[CODE]class thr2 { public static void main(String args[]) { A a = new A("first","hello1"); A a1= new A("second","hello2"); try{ a.t.join(); a1.t.join(); }catch(Exception e) { } } } class A implements Runnable { Thread t; String str; B b = new B(); A(String name,String str) { t=new Thread(this,name); t.setName(name); this.str=str; t.start(); … Software Development java | |
[CODE] protected void RefList_SelectedIndexChanged(object sender, EventArgs e) { // Define ADO.NET objects. string selectSQL; selectSQL = "SELECT * FROM Project "; selectSQL += "WHERE Ref#= '"+RefList.SelectedItem.Text +"'"; // Label14.Text = RefList.SelectedItem.Text; SqlConnection con = new SqlConnection(); con.ConnectionString = "Data Source=.;Initial Catalog=Project;User ID=sa;Password=786"; SqlCommand cmd = new SqlCommand(selectSQL, con); SqlDataReader reader; … Software Development open-source | |
Hello, I need help for my task.. This is the matrix 1 2 3 4 5 6 7 8 9 the result is 1,4,7,8,9,6,3,2,5 I have to solve this task in assembler 8086 in emu... I need help, it is very important for me. Please help me Software Development assembly | |
Hi , Am developing a Windows application in which one module has to send a report to customers a mail.. the Question is I use net.mail namespace in c# and here comes the code . [CODE] try { SmtpClient smtp = new SmtpClient(); MailMessage msg = new MailMessage(); smtp.Credentials = … | |
I am trying to build a binary search tree. The elements in my input file is printing, but with junk. The problem is with the sentinel in the while loop. I'm not sure of what else to try. I've tried: while (infile) while (count != 14 && infile.good()) while (strcmp(Str, … Software Development c++ programming-construct | |
Hi everyone. I created a [B]Windows Forms Application[/B] project which is [I]sending data to parallel port[/I] by using [B]inpout32.dll[/B] and I'm having following problems: [INDENT] When I test it on Windows XP, an error occurs "This isn't a Win32 application". Why? When I test it on my pc, it runs … Software Development c++ ide visual-studio | |
Hello! I have problem with class, the error is "Applik" : is not a class or namespace name. In mine opinion code is fine, and i cannot find solution, please help me i am beginner. This is mine code **App.h ** #pragma once #include <SDL/SDL.h> #include <windows.h> #include <gl\gl.h> #include … Software Development c++ | |
Hello Everyone! I am due with an assignment that I just can't seem to acomplish. So here's the deal: I get a file with the following structure: TyP_1 TyP_C2 TyP_C3 ORDER Nr_rec rec1_field1 rec1_field2 rec1_field3 rec2_field1 rec2_field2 rec2_field3 Typ_x can be S for string N for numeric or C for … Software Development c data-structure | |
Dear Programmers I have an issue when I place a label box / other component in the MDI Parent form and then open any child form the label box/ other component displayed in child form (Show in SpanShot), could you please help me out to regret this problem, Thanks in … Software Development vb.net | |
Alright guys, I'm kinda new to python. I've made a kind of an organiser program that allows you to make entries with deadlines, write them to a text file and display them in human readable format when I want it to. I first made it in command line and it … | |
Hi Guys, I tried searching on the net for a code to compress/zip files in VB.Net, but could not find any solution. Can anyone help me with this - I do not like that one of using 3rd party components to do this. Alternatively, I need a code that will … Software Development vb.net | |
I got the following error, please help me to resolve this problem.. ui.h:10: error: âloginâ has not been declared db.h:7: error: âloginâ has not been declared controller.cpp: In member function âvoid control::casino_game()â: controller.cpp:15: error: âloginâ was not declared in this scope controller.cpp:15: error: expected `;' before âloâ controller.cpp:34: error: âloâ … Software Development c++ | |
[CODE] #include<stdio.h> main() { int array[100], n, c, d, swap; printf("Enter number of elements\n"); scanf("%d", &n); printf("Enter %d integers\n", n); for ( c = 0 ; c < n ; c++ ) scanf("%d", &array[c]); for ( c = 0 ; c < ( n - 1 ) ; c++ ) … | |
i'm working on visual studio 2008. I'm trying use fopen to open txt files and it does not give any errors but its not doing the required task either. i've to submit this project on monday! please help here's part of the code: [CODE]#include <stdio.h> #include<iostream> #include <conio.h> #include <string> … Software Development c++ programming-construct visual-studio | |
//Payroll Program Part 2 package payrollprogrampart2; /** * * @author Zach */ import java.util.Scanner; public class PayrollProgramPart2 { public static void main(String args []) { System.out.println("Welcome to Zach's Payroll Program"); Scanner input = new Scanner( System.in ); String employeeName; System.out.print("What is the employee's name?"); boolean stop = false; while (!stop) … Software Development java | |
Hi all, I'v just installed SQLServer 2008 RC and concurrently it installed Visual Studio 2008 automaticlly. But I got a problem, when I creat a new project in Visual Studio 2k8, there were only 2 Project types : "Business Intelligence projects" and "Visual Studio Solutions". It's different to what I … Software Development visual-studio | |
I'm making an SIC 2 pass assembler in C++. And I'm not very good at files in C++. The following code segment is supposed to read LABEL OPCODE OPERAND from the input text file . All it has to do is to identify each of those based on the tab … | |
Hi Friends, Am developing a project for a college with all basic module of creating department , Course details , Student Attendance etc....My question is I need to store Daily attendance for final report , So how can i store those data rather going to sql databse ? Is it … Software Development | |
Aim: I am learning pointer of C,now I want to write a function to change the value of a variable . [CODE]#include<iostream> using namespace std; void change (int * k) { if (*k==1) *k==0; else *k==0; } void main() { int a=1; cout<<a<<endl; change(&a); cout<<a; }[/CODE] I thought that n … Software Development c | |
[CODE]#include<iostream> #include<cmath> #include<fstream> using namespace std; void readfile(int arr[][9],int s) { ifstream in; in.open("file.txt"); if(!in) { cout<<"File Not Found"<<endl; exit(1); } for(int i=0;i<s;i++) { for(int j=0;j<9;j++) { in>>arr[i][j]; } } } void possibilities(int arr[][9],int s) { int pos[9]; int x=0; bool check=1; int power=0; for(int i=0;i<3;i++) { for(int j=0;j<3;j++) { … Software Development c++ | |
This is what I currently have so far. The script needs to Add, Edit, Search, and View the address_file. Any help would be greatly appreciated. [code] trap "rm ./f 2> /dev/null; exit" 0 1 3 addressfile=~/address_file loop=x while test $loop = "x" do clear tput cup 3 12; echo "Address … Software Development shell-scripting | |
Hi, So I have a very simple server/client program using winsock. In C++. Using MingW as a compiler. This is the code part which does the connecting: [CODE]for(;;) { if(Connect = accept(Listen, (SOCKADDR*)&Server, &size)) { std::cout<<"\nConnection was reached"; } }[/CODE] How can I send and receive simple text from server … Software Development c++ client-server | |
This code is based on code from series of programs [URL="http://www.ferg.org/thinking_in_tkinter/"]'Thinking in tkinter'[/URL] This code is not perfect, especially it does not recognize key release when mouse moves out of button area during push. Leave event could also be captured for that to stop the event in that case. | |
PrekÄ—.h [CODE] #include <string> using namespace std; class PrekÄ— { private: string pavadinimas; double pagaminimodata; int kiekis; double kaina; double vartojimolaikas; public: PrekÄ—(); PrekÄ—(string pavad, double pagam_dat, int kiek, double kain, double vart_laik); ~PrekÄ—(); string ImtiPavadinimÄ…() { return pavadinimas; } double ImtiPagaminimoDatÄ…() { return pagaminimodata; } int ImtiKiekį() { return … Software Development c++ ios visual-studio ![]() | |
Hello all I need a little help finishing my assignment. I am given a text file that contains information about vehicles in an auto dealership. The vehicle records consist of the following fields: VIN, Make, Model, Year, Color, Date of purchase, Cost, Date of Sale, Sale Price and Revenue. The … Software Development c++ data-structure file-system ![]() | |
I am having trouble compiling an exe. I tried both py2exe and cxfreeze with similar results, I made an exe but it didn't work. I figured out that I needed to send the image files and sounds with it (should have thought of that to begin with). Now that I … Software Development python | |
wen i open mdi through the login form, the forms inside the mdi child forms dont seem to execute.pleez help me. Software Development vb.net | |
I need to read in instructions from a file, then with those instructions, insert the names and scores below the instruction into a linked lists. I've tried using getline, and >> and I keep getting errors. Here is what I have so far: [CODE]#include<iostream> #include<fstream> #include<cstdlib> #include<string> using namespace std; … Software Development c++ file-system linked-list | |
how trigger an event on specific time of day pls suggest code Software Development vb.net | |
I was writing a makefile for a web interface program that installs the cgi scripts to a (Linux) OS. The makefile works fine, but it needs to be able to install to different directories for different distributions (Fedora, Ubuntu). On Fedora, the scripts need to go to /var/www/cgi-bin and on … Software Development redhat shell-scripting ubuntu | |
where i can but the servlet APIs ? to compile java class from bat file Software Development java | |
[CODE]class Newthread implements Runnable{ String name; Thread t; Newthread (String threadname) { name=threadname; t=new Thread(this,name); System.out.println(t); t.start(); } public void run() { try { for(int i=5;i>0;i--) { System.out.println(i); Thread.sleep(1000); } }catch(--------){ --------} } } class A{ public static void main(){ new Newthread("one"); new Newthread("two"); new Newthread("three"); try{ Thread.sleep(10000); }catch(){} } … Software Development java | |
So I'm writing a code that imports pygame to play files of music notes. I set each note to a button, 24 notes for 24 buttons. However, the program will also have four more buttons: "Record", "Stop", "Playback", and "Quit". when the record button is clicked, it will append the … | |
[code]void display_list() { shoes_node *current_ptr; current_ptr = head_ptr; // move current_ptr to head of list if(current_ptr == NULL) { cout<<"\n\t\t\tNO RECORDS TO BE DISPLAY \n"<<endl; } else(current_ptr != NULL); { cout<<"\n\t\t\t ****************************\n"<<endl; cout<<"\n\t\t\t SHOES RECORDS \n"<<endl; cout<<"\n\t\t\t ****************************\n"<<endl; do { cout<<"\n\t\t\t SHOES'S ID : "<<current_ptr->idkasut<<endl; cout<<"\n\t\t\t SHOES'S BRAND : "<<current_ptr->jenama<<endl; … Software Development c++ display linked-list | |
Hi! I'm making a console game with cars. I am stuck trying to make the enemy car approach. If you have any thoughts or ideas, let me know! I'm thinking of using classes, but i dont know how to make them :) Is this legal? It probably isn't but here … | |
Hello, I've had a good search to see if anything else was posted in relevance with this, but can't find anything that suits my exact needs. I've been given a Java assignment to take in a file, and read how many characters it has (omitting white-space and new lines) and … Software Development java | |
how to sorting this, i've problem to sort by *jum_nilai* from the highest until smallest void lihatData(void) { if(pertama==NULL) printf("Data tidak ada !!!"); else { printf("%3s %-20s %-12s %-5s %-7s %-7s %-5s %-5s\n","No","Nama","Jenis K","N Mtk","N B.Ind","N B.Ing","N IPA","Jumlah"); printf("--- -------------------- -------------- ------- ------- ------- ----- -----\n"); sekarang=pertama; do { printf("%3d … Software Development c | |
Hey everyone, I was doing an exercise from Java book and I didn't get how this code works.. I know how the switch statement works. However, I don't understand why they pass a number to the Random class and also to the .nextInt() method on rand. And also, I am … Software Development java | |
![]() | I am trying to create a walker that goes through directories. Here are the inputs and outputs which I have partly working. I am using a test directory but I would like this to be done on any directory which is leading to some problems. [CODE][IN]: print testdir #name of … |
The End.