132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SteveyD

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 …

Software Development c c# c++ printer
Member Avatar for kvprajapati
0
124
Member Avatar for MoriEdan

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#
Member Avatar for kvprajapati
0
260
Member Avatar for BLUEC0RE

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
Member Avatar for BLUEC0RE
0
653
Member Avatar for CrazeBoY

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++
Member Avatar for Fbody
0
132
Member Avatar for johnny.g

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
Member Avatar for Luc001
0
162
Member Avatar for ebergine

[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
Member Avatar for peter_budo
0
101
Member Avatar for elizabeth mwash

i got a problem. i want to have 3 forms and both linked..i.e you can access all of them.the first to be a log in form, which when you have entered the correct user name and password,it lets you to the second form.the second and third are just forms to …

Software Development
Member Avatar for finito
0
105
Member Avatar for krishnisilva

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 …

Software Development c# vb.net
Member Avatar for kvprajapati
0
165
Member Avatar for sabiut

Hi, i want to write a program that will automate my backup on a windows using python but i have no idea how to get started. can someone please point me to the right direction. thanks in advance

Software Development python
Member Avatar for snippsat
0
125
Member Avatar for sourabhtripathi

[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
Member Avatar for Xufyan
0
97
Member Avatar for alabandit

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
Member Avatar for TrustyTony
0
247
Member Avatar for ollie60

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++
Member Avatar for caut_baia
0
89
Member Avatar for dre-logics

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 …

Software Development dataset vb.net
Member Avatar for dre-logics
0
164
Member Avatar for etisermars

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++
Member Avatar for Fbody
0
3K
Member Avatar for SuperTaejin

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
Member Avatar for SuperTaejin
0
202
Member Avatar for moroccanplaya

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
Member Avatar for Nick Evan
0
133
Member Avatar for Bob_Magalhaes

I am facing the same problem as described bye CandyV. I would like to know if it is solved?

Software Development visual-basic
Member Avatar for AndreRet
0
64
Member Avatar for soUPERMan

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 …

Software Development java queue
Member Avatar for soUPERMan
0
110
Member Avatar for CipherPol9

Hello I created a database on Access with two tables, [icode]Table1[/icode] and [icode]Table2[/icode]. My question is, it is possible to join the columns from [icode]Table2[/icode] in [icode]Table1[/icode]? If it is possible. What do i have to do? Thanks

Software Development vb.net
Member Avatar for CipherPol9
0
73
Member Avatar for kayjenx

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
Member Avatar for kvprajapati
0
185
Member Avatar for Dinglish

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++
Member Avatar for Dinglish
0
130
Member Avatar for Learner7

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
Member Avatar for kvprajapati
0
80
Member Avatar for wxy_3

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
Member Avatar for sourabhtripathi
0
71
Member Avatar for nsutton

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 …

Software Development c c# c++
Member Avatar for kvprajapati
0
70
Member Avatar for P00dle

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
Member Avatar for P00dle
0
141
Member Avatar for tayspen

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
Member Avatar for kvprajapati
0
195
Member Avatar for Agent-of-Chaos

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
Member Avatar for Agent-of-Chaos
0
362
Member Avatar for em-kay

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 …

Software Development c++ opengl
Member Avatar for iamthwee
0
233
Member Avatar for carlomarksimon

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++
Member Avatar for iamthwee
0
86
Member Avatar for electricrain

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
Member Avatar for javaAddict
0
139
Member Avatar for johndoe444

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 …

Software Development c perl
Member Avatar for sourabhtripathi
0
338
Member Avatar for pateldeep454

[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
Member Avatar for javaAddict
0
214
Member Avatar for Xufyan

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
Member Avatar for sourabhtripathi
0
100
Member Avatar for rafikul

[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
Member Avatar for peter_budo
0
183
Member Avatar for gorbulas

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
Member Avatar for TrustyTony
0
6K
Member Avatar for cool_whip579

@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
Member Avatar for masijade
0
132
Member Avatar for geteducated

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
Member Avatar for masijade
0
1K
Member Avatar for zpk1

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
Member Avatar for zpk1
0
142
Member Avatar for ChargrO

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 …

Software Development python tkinter
Member Avatar for TrustyTony
0
472
Member Avatar for DrApe1

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
Member Avatar for DrApe1
0
118
Member Avatar for leviathan185

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
Member Avatar for vb5prgrmr
0
320
Member Avatar for amitaf_s

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
Member Avatar for jwenting
0
105
Member Avatar for Rameses

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
Member Avatar for faisal977
0
5K
Member Avatar for jimJohnson

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++
Member Avatar for VernonDozier
0
88
Member Avatar for krishnisilva

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
Member Avatar for farooqaaa
0
772
Member Avatar for ghost_from_sa

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 …

Software Development c c# c++
Member Avatar for ghost_from_sa
0
105
Member Avatar for sabiut

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++
Member Avatar for sabiut
0
111
Member Avatar for black_berry

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; …

Software Development java queue
Member Avatar for ACW1989
0
725
Member Avatar for bryann

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
Member Avatar for bryann
0
111
Member Avatar for farhanafzal

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
Member Avatar for jephthah
0
91

The End.