132,726 Archived Topics
Remove Filter ![]() | |
Greetings again I have a small utility that reports which printer port has been selected. Its returning the correct data, but in binary, LPT 1 = 0x378 = 888 Right now its reports in the message box "Printer Port 888" I would like to change that to read "Printer Port … | |
How can i add a executable program to my program and run the executeable file in to my program and the program starts with my program :cry: The shape like this ; [CODE] **************************+---+ * My Prog v.0.01 | | --------------------------+--\\ * *\\ * +---------------------+ * \\ * |The Prog … Software Development c# | |
Hey guys, I am having a problem. When loadPref is executed, it opens, reads, and saves properly. But it crashes shortly after when the system call system("cls") happens. I do not understand why, any help? I removed most of the code that is not involved. Tests / Outcomes Removing loadPref … Software Development c | |
I am working on a simple program, and i am using Visual C++ Express Edition. Everything is fine, i am processing the integers and i am copying them into an integer array. But the problem is when i m trying to access that integer array for further processing or to … Software Development c++ | |
Hi all..need a little help from u all. i have created a windows application using vb.net wht i want to do is create a windows service for this application so that it can be started automatically or manually and started and stopped on demand. i have gone thr some forums … Software Development vb.net | |
[QUOTE=peter_budo;695619]Not enough that you opened thread that is 4 years old, you did not bother to read [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]forum rules[/URL] (hijacking thread, no emails in the post) you also did not even consider to read sticky thread "[URL="http://www.daniweb.com/forums/announcement9-2.html"]We only give homework help to those who show effort[/URL]". On top of all … Software Development java | |
hi, how can i valiadte each cell in a datagrid view seperately, i have one column int which is the 7th column and the 3rd and the 5th are calender control and the first two are combo boxes, and a check box column Question 1: how can i select on … | |
[CODE]void main() { int a; char b; scanf("%d%c",&a,&b); /// char not taken ?? } // problem with buffer or stack [/CODE] i know this can be avoid by using fflush(stdin); or giving "\n" or space inbetween ; i need exact answer plzz help !!! thanks Software Development c | |
I need to monitor a number of folders over a period of time. so i pass the files in each folder to a list of list. [CODE] import os path_to_watch = [] path_to_watch.append("/path1/") path_to_watch.append("/path2/") path_to_watch.append("/path3/") before = [],[] for item, folder in enumerate(path_to_watch): print "i am here", item, " : … Software Development python | |
I am trying to define centroid in the following code as centroid is part of the private data for this class. But when I output the data it reads 0, 0 instead of the real values. Vec is a 3 dimension class that i have created. I'm not sure what … Software Development c++ | |
I want a row to add data grid view that is linked to dataset and datatable. Aftet that I want to that [COLOR="Red"]new row [/COLOR]in the first cell i want to put a new value (data) [CODE] myConn.Open() myCommand1.CommandText = "select * from groups" myCommand1.Connection = myConn myAdapter1.SelectCommand = myCommand1 … | |
hello, i have a simple question: how can i make 2 variables to have the same address. For example, if i write: [CODE]int a = 10; int &b = a;[/CODE] everything goes ok "a" and "b" have the same value and the same address but what ai need is: int … Software Development c++ | |
I want to make a program that control powerpoint slides for example, when I start power point in presentation mode as I click the button, then slide goes to next. And when I click one more, then go next slide. I don't know how to send message to powerpoint in … Software Development office-suite vb.net | |
hi i just started c programming and i am stuck on a question Write a void C function called largest that takes two integers passed by value and returns the larger of the two using a third integer parameter which is passed by reference. this is what i came up … Software Development c | |
I am facing the same problem as described bye CandyV. I would like to know if it is solved? Software Development visual-basic | |
![]() | Hey, i dont get any compile errors on this code but when i run it i dont get an evaluated value, what have i missed??? [CODE] import java.util.Scanner; import java.util.StringTokenizer; import java.lang.Math; public class main { static Stack<String> stack = new NodeStack<String>(); static final String operators = "+-/*^"; static Scanner … ![]() |
So I have a database (for tracking customer applications through to approval etc.) in MS Access form & and all (but access just isnt the best way to do this for many reasons I wont get into). I have looked at lots of programming language and decide that VB was … Software Development microsoft-access vb.net visual-basic | |
please run this simple program...... why wont this work ? i tried it first with if...else [code]/*why will this program not run? what did i do wrong with the if else statements/conditions ?*/ #include <conio.h> #include <iostream.h> main() { double sales, sales_amount, quantity, total_sales, vat; total_sales = sales + vat; … Software Development c++ | |
Hi, My code was working fine when I tried with 3 columns. Now, when I mode columns (13) it throws the error. Please see attached the file and do help me. Regards. Software Development vb.net | |
Hi; i have a problem about that i have two long strings of non-negative integers and i wanna denote adddition.How should i do this? Software Development c | |
I have a little background in Python, but I want to move on to learning C# (Im not giving up on Python, I'm still coding in it). I choose C# so I can make games to submit to [URL="http://creators.xna.com/en-US/"]XNA[/URL], so I can get some games on XBLA. Anyway every tutorial … | |
Ok, so I wrote a very simple programme, just to practice multithreading. I know it can be coded better, but I'm still learning about this, so please be lenient. This is my code so far: [CODE]package threads; // Create a thread import java.io.File; class threads implements Runnable { // This … Software Development java multithreading | |
How can these be done. For example running a shourtcut thats path is this C:\app.exe -sync will run a certain part of the application(the sync function). Do i need to make a seperate application. Also say i have a program that plays music files. then i have a music file … Software Development | |
hi, i am trying to design chip 8 emulator on visual basic, i have found source code of it but the problem is i am not getting the idea how the code works, i understand some part of it.. please help me.. here is the full source code.. [CODE]Dim ram(8192) … Software Development open-source visual-basic | |
Hello guys , I just wrote a code of Cellular Automata using OpenGl but I need your help in converting this code to a C++ code here is the code : [CODE]#include <windows.h> #include <math.h> #include <gl/Gl.h> #include <gl/Glu.h> #include <gl/glut.h> #include<iostream> #include<cstdlib> using namespace std; GLsizei Height= 800; GLsizei … ![]() | |
hi... got a programming assignment which really makes my brain bleed...all threads gives answers on how to access a text file and display text from that source. what i really need is the code in which i would get the text from every single line inside the text file. for … Software Development c++ ![]() | |
hello every one i am haveing problem in code i.e whenever i try to write in file it overwrite tthe previous one.I am using this code [code] File f=new File("c:\\paul.txt"); //f.createNewFile(); BufferedWriter br = new BufferedWriter(new FileWriter(f)); BufferedReader br1=new BufferedReader (new InputStreamReader(System.in)); FileReader fr=new FileReader(f); // FileWriter frt=new FileWriter(f); // … Software Development java | |
If the string is input from stdin: [CODE]scanf(" %s %d", R, &n);[/CODE] then is it possible to get the length of R as a by product from scanf as it already has scanned through the input? As you can see there can be spaces in front and after words and … | |
[B]Card.java[/B] [CODE] package poker; public class Card { int suit; int rank; public Card () { suit = 0; rank = 0; } public Card (int s, int r) { suit = s; rank = r; } public int getSuit () { return suit; } public int getRank () { … Software Development java | |
sorting in array, i'm stuck understand that why we've used a 'j' loop here ? can anybody explain ? and why we are checking this condition ? [iCODE] if(num[i]>num[j])[/iCODE] [CODE]int main(void) { int num[5],temp; int i,j; for(i=0;i<5;i++) { printf("Enter Value for %d",i); scanf("%d",&num[i]); } for(i=0;i<5;i++) { for (j=0;j<5;j++) { if(num[i]>num[j]) … Software Development c | |
[code=c] #include<stdio.h> #include<conio.h> void main() { int a[] = {10,20,30,40,50},j,*p; clrscr(); for(j=0;j<5;j++) { printf("%d",*a); a++;/*here compiler error "lvalue required"*/ } p=a; for(j=0;j<5;j++) { printf("%d",*p); p++; } getch(); } [/code] i used turbo c++ compiler.and save this programme as abc.c why this type of errors occur? Software Development c | |
Is there any problem with manipulating very long strings? When I say long, I'm meaning like over 100,000 characters long. I'm using examplelongString = data.readline() to get it from an html file. I then use examplelongString .find('text to find') to search for stuff. I've been trying to do it, it … Software Development python | |
@SuppressWarnings("unchecked") class MyBooks implements Comparable{ static final CompareLastName c1 = new CompareLastName(); static final CompareFirstName c2 = new CompareFirstName(); static final CompareTitle c3 = new CompareTitle(); static final ComparePrice c4 = new ComparePrice(); static final CompareISBN c5 = new CompareISBN(); static final CompareDate c6 = new CompareDate(); private String lastname, … Software Development java | |
Posted below is currently my main class that works for a java blackjack game, i do have 3 other classes for the full game to work but this class is where my problem is. my problem is in the west border i have so much being written to the GUI … Software Development gui java java-swing | |
Hi all, I am trying to have a recursive sort on my xml data, but can only manage to sort the first layer..and not as what i want too :( , been trying to do this for a couple of weeks :confused: I would appreciate it if anyone could help … Software Development xml | |
![]() | Hello, im currently working on a program and im trying to create a cascade, This cascade code works by itself but i want to implement def hello and def toggle into def __init__(self, master=None), at the moment im getting and error "UnboundLocalError: local variable 'submenu' referenced before assignment" does anyone … |
I'm a little new to programming and for my class I've been asked to do a recursive program where you input a directory and it will find all the files in that directory and any subdirectories in that directory, etc etc until there aren't any more subdirectories. Quite honestly, I'm … Software Development java java-swing | |
Hi All, I have been doing a little VBA in excel and I am tring to work out how to add 2 hour {or any amount of time} to the current time. Google has failed me in finding the answer, most of the things i have found is formulas but … Software Development visual-basic | |
I've been trying to figure out the code for this problem for a long time and I'm stumped. The problem is: The library for which we design this system has only books and magazines that are available for library members to borrow from its circulation. Users of the library are … Software Development java | |
I'm trying to create a calculator in MARIE Assembly Language. After some brain storming, I have addition, subtraction, and multiplication codes. I'm completely new to this language and would like to get some help on how to get started. Any help will be appreciated. Thanks ORG 100 /Start Input Store … Software Development assembly | |
I am doing a homework assignment for CSI 330 and not sure how to begin this program. It is asking me to initialize and unsigned int variable mask, with a value whose binary representation has a 1 followed by all 0's. The second part says... For a counter running from … Software Development c++ | |
hey, i have written method to get the names of the employees from the database. how can i sort this to alphabetical order the code is below C# Syntax [CODE] public String[] FillComboBox() { int NoOfRows; String firstName; String lastName; db.openConnection(); DisplayLoginUserName(); String query = @"Select * From Employee;"; SqlCommand … Software Development | |
![]() | hey guys, Im doing an assignment for tech... the tutor is somewhat useless I need to make an array that can loop 10 random numbers and then display them, pass that to a function and then have that display all the numbers in ascending order using for, while and if … ![]() |
Hi, i am having some difficulty calling this function, can someone please point out what i have done wrong here. The code is as below appreciate your help. [CODE]#include<iostream> #include<stdlib.h> using namespace std; void speed_value(int input) { int speed; char character; if(speed > 60 && speed <65) { cout<<"Warning"<<endl; } … Software Development c++ | |
Hello, I am trying to do a first fit allocation in java my problem is how do i keep track of which memory block i have cheked and if there are no suitable blocks put the job in a waiting queue. Thanks for all help [CODE] import java.util.*; import java.util.Scanner; … | |
Hi i know this may sound a bit silly but i have looked through some websites but can't really find exactly what the difference is between "=" and "==" For example [CODE]if(x==0) execl(“/bin/ps”, “ps”,”-eal”,NULL)[/CODE] how is that different from [CODE]if(x=0) execl(“/bin/ps”, “ps”,”-eal”,NULL)[/CODE] thanks Software Development c | |
Write a C program using do while to find and print the average of three exam results of a student that will entered as an input from the keyboard. It repeats as many times as the user wishes. The program will ask for entering new entry (student grades) confirmation and … Software Development c |
The End.