132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mike_2000_17

Hey, I have a set of types which are all arithmetic (have operators for addition, subtraction, multiplication, etc.). I want to aggregate any number of them into a single object, so I'm using the std::tuple class template and the <tuple> library (and Boost.Tuple for backward compatibility). My question is a …

Software Development c++
Member Avatar for mike_2000_17
0
531
Member Avatar for amulgarg

Please have a look at the attached picture. I am creating a Windows Form application in C#. I need to display the 'carry' string bit-by-bit with a considerable difference of appearing time. For example: if the carry string is 11011 I need to diplay it like- **1 *11//overwrite the above …

Software Development
Member Avatar for arunkumars
0
166
Member Avatar for thetwig

hey guys.. I'm trying to create a bunch of children where the parent creates child1, and child1 creates child2 and the parent creates child3 using fork()... and I'm supposed to pass a message through using a pipe, but when I pass from child2 to child3 I have to use a …

Software Development c file-system
0
128
Member Avatar for stereomatching

[CODE] boost::shared_ptr<resource> resource_ptr; boost::mutex resource_mutex; void test() { if(!resource_ptr) //#1 { boost::lock_guard<boost::mutex> lk(resource_mutex); if(!resource_ptr) //#2 { resource_ptr.reset(new resource); //#3 } } resource_ptr->do_something(); } int main() { boost::thread t1(test); boost::thread t2(test); t1.join(); t2.join(): return 0; } [/CODE] According to the text book, this kind of codes may cause race condition, but …

Software Development c++
Member Avatar for stereomatching
0
183
Member Avatar for churva_churva

[CODE] Public con As ADODB.Connection Public cmd As ADODB.Command Public dept_rs As ADODB.Recordset Public gen_rs As ADODB.Recordset Public stud_rs As ADODB.Recordset Public sql As String Private Sub cmdExit_Click() con.Close End End Sub Private Sub cmdSave_Click() With cmd .ActiveConnection = con .CommandText = "student_table" .CommandType = adCmdTable End With With stud_rs …

Software Development open-source visual-basic
0
78
Member Avatar for muaazab

I am trying to call the fork() system call. It works quite fine until I don't use printf method in the code. My code is as follows. Platform: Linux Language: Pure C [CODE] #include <sys/types.h> #include <unistd.h> #include <stdio.h> pid_t fork(void) main() { int pid; pid = fork(); if(pid == …

Software Development c
Member Avatar for muaazab
0
90
Member Avatar for arindam31

Hi guys, My intention is to find all possible words starting with any letter of my choice example 'p' from a paragraph.I want all the possible results . How can i do that . Take the example : 'This rule says that any match that begins earlier in the string …

Software Development python
Member Avatar for arindam31
0
244
Member Avatar for Ruchi224

Hello... I have form having a button and a gridview. The gridview is ok and generates data. But now, i want to populate only the data when i click on the button specified. Can anybody please help me with this ?? Here is my code : Private Sub button1_Click(ByVal sender …

Software Development open-source vb.net
Member Avatar for Ruchi224
0
136
Member Avatar for Adam Ma

Ok so i have trouble with looping with while and for statments heres the questions: 1. Write a program that gets a positive integer from the user and prints all the numbers from one to that integer. If the inputted number is zero or negative, then the program will print …

Software Development c c# c++
Member Avatar for cherrymae.calma
0
167
Member Avatar for java.util

Hello, I have written a program for an assignment and all was working well, I tested everything and all that was left was to put in a few error-messages. Then, I changed the format from ISO to utf-8 and when I tried to run it again it suddenly stops at …

Software Development java
Member Avatar for javaAddict
0
1K
Member Avatar for Majestics

I want to create MouseListener library from scracth... Its just a assignement ... I have no idea to develop a thing in which i cant use that api directly from java... Please Help.

Software Development api java
Member Avatar for Majestics
0
116
Member Avatar for Zssffssz

Ok heres what I want to do: I want to put a file in a console application (during compileation\codeing not running) and when it runs it saves the file in the same place it was run from. Like moving a movie as an exe to hide it while it is …

Software Development c c# c++
Member Avatar for pseudorandom21
0
116
Member Avatar for RoqueyB

Kay, first i am going to start this off by saying this is for my intro to prog. class (meaning im a beginner) so sorry if this is a stupid question or i'm missing something stupid. HOWEVER I am supposed to make a program to report the income for football …

Software Development python
Member Avatar for RoqueyB
0
135
Member Avatar for Duki

When I debug this method, I can clearly see that currentNode = Workstation, so I am puzzled as to why I'm still entering into the "Node" buffer print, rather than the "Workstation" buffer print. Shouldn't polymorphism handle this for me?: part of Node Class [code=java] public void printToBufferAsHTML(Network network, StringBuffer …

Software Development java
Member Avatar for Duki
0
121
Member Avatar for Zssffssz

Ok here it is short sweet and to the the point: how do I get a asembly languige OS to reconise the floppy drive as A:/

Software Development assembly
Member Avatar for miker00lz
0
160
Member Avatar for vishalonne

Hi To All, Once againg I'm in a big problem. I'm using C# 2008 and Access 2007. My DB contain 2 tables Customer and Booking. Both having Relation on CustomerID column. Customer -> CustomerID (PK) and Booking -> CustomerID(FK) Now I want to display the few columns from Customer and …

Software Development dataset microsoft-access open-source
Member Avatar for lolafuertes
0
156
Member Avatar for miker00lz

let me preface this by explaining the reason i'm writing this code.. i've been writing an x86 PC emulator in FreeBASIC, and this program is designed to test it's handling of video mode 13h, including palette manipulation. i thought in addition to being fun (at least for a nerd like …

Software Development assembly display image
Member Avatar for miker00lz
0
1K
Member Avatar for cent91

i have a code written in c++/Cli (CLR Console app) that uses .Net framework. it basically uploads a file to a ftp server. i wanna run it on computers that dont have .net framework. and are running windows xp or windows 7. can i somehow convert it into win32 console …

Software Development asp.net c++ windows-api
Member Avatar for thines01
0
289
Member Avatar for TigerTeck

objective: Write a class Bug that models a bug moving along a horizontal line. The bug moves either to the right of to the left. Initially, the bug moves to the right, but it can turn to change its direction. Provide a constructor. All methods are included below. [CODE] public …

Software Development java
Member Avatar for mrjillberth
0
124
Member Avatar for kylelendo

I am trying to login into the system I have created 3 pages 1.Registration Page 2.Login Page 3.Secure Page In registration page I can enter new username and password and that gets registered well that works fine..but when i try to login with that username and password I get an …

Software Development session
Member Avatar for kylelendo
0
333
Member Avatar for Carrots

Hi, I am trying to a play a .wav file in a C++ program. I think my code is OK, but when it plays, it plays the default windows 'error' sound, not my .wav file. This is the program: [code] #include <iostream> #include <windows.h> #include <mmsystem.h> #pragma comment(lib,"Winmm.lib") using namespace …

Software Development c++ visual-studio
Member Avatar for pseudorandom21
0
6K
Member Avatar for vrs1155

friends i m using vc++ 6.0 and oracle 10g version.i created mfc file and connected database. i done insert and delete operation.but i cant check or view the data(table).can you any one tell how to do? and any other option 2 view the database thanking you

Software Development c++ oracle
Member Avatar for thines01
0
134
Member Avatar for nickh2o

need help to making change I have read textbook a lot but i still dont know what to do next steps. Here is problem. The program should prompt the user for and accept two inputs: 1. The price (including any applicable tax, etc.) for whatever was purchased by the customer. …

Software Development java
Member Avatar for nickh2o
0
6K
Member Avatar for raaif

I want to write an XML file in the following format [ICODE]<?xml version="1.0" encoding="utf-8" ?> <trans> <trans eng="string from listbox1" type="string from listbox2"/> <trans eng="string from listbox1" type="string from listbox2"/> <trans eng="string from listbox1" type="string from listbox2"/> <trans eng="string from listbox1" type="string from listbox2"/> <trans eng="string from listbox1" type="string from …

Software Development vb.net xml
Member Avatar for raaif
0
184
Member Avatar for sirlink99

I am trying to do basic animations with images, and I am wondering how I could get a smaller image from a larger one without going through and editing it. I made a sprite [URL="http://translate.google.com/translate?hl=en&u=http%3A%2F%2Fwww.famitsu.com%2Ffreegame%2Ftool%2Fchibi%2Findex1.html"]here[/URL] and downloaded the image. As you see in the thumbnail the animation is from all …

Software Development image java
Member Avatar for sirlink99
0
268
Member Avatar for techlawsam

Ok so while working on this I want to figure out at about line 23 for "hours" I understand the argument "NUMBER_OF_SECONDS_IN_AN_HOUR" but not "totalSeconds" is totalseconds the value coming from : "totalSeconds= GetNumberOfSeconds();" ? Which is the input received by the user? For lines 25-29 , how does totalSeconds …

Software Development
Member Avatar for techlawsam
0
252
Member Avatar for aldeene

I created a barcode and displayed it in a picture box and i want to print it. i can't figure how to do it..

Software Development vb.net
Member Avatar for aldeene
0
10K
Member Avatar for grimreaperx2

Well im having this problem on how to add large integers. I have used strings to take in a very large number something that can work on as many digits as you need it to. I take in 2 strings for the numbers you want to add. After which I …

Software Development c c# c++
Member Avatar for grimreaperx2
0
1K
Member Avatar for kccute

Hi guys i working on a project that open an excel document using vb6 but i encounter this. Run-time error 1004 : C:\aaaaa\aaaa\myBook1.xls' could not be found. Check the spelling of the file name, and verify that the file location is correct. This is the Code: Private Sub Form_Click() Dim …

Software Development visual-basic
Member Avatar for diamondw
0
218
Member Avatar for Tinee

Hi, I am almost done with C++ and my project is on Resistors. The problem is that when i try to tun the program, line 37 and 34 has an error saying "no match operator". It is the same as line 28 and 31. Then when I make line 34 …

Software Development c++
Member Avatar for diamondw
0
156
Member Avatar for Tom_Weston

What I would like is when I input the file path in the console window (lets say C:\hello.txt), I would like it to create, open, then write text into the file. Here's an example of my code. [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main () { …

Software Development c++
Member Avatar for Tom_Weston
0
107
Member Avatar for sgiusti88

I am trying to learn c++ from a textbook (as so many others) but am having a really hard time following this example: Write a program to input and display a sales file. Each input line contains an integer ID number and a sales amount. When the end of the …

Software Development c++ ios
Member Avatar for NathanOliver
0
309
Member Avatar for NoUserNameHere

What does it mean if there is an ampersand right before the function name? Something like: int& myFunction(int& a, int& b) Also my book said something about how it doesn't create a copy of something if you pass it by reference, but what exactly does that mean? I never understood …

Software Development c++
Member Avatar for mike_2000_17
0
110
Member Avatar for SasseMan

Hello! I've made a custom JPanel that overrides paintComponent which paints a rounded rectangle. My problem is that when I place other components in the panel, like a JLabel, they don't get rounded corners like the panel they are in. here is my panel class: [code] private static class BackgroundPanel …

Software Development java
Member Avatar for mKorbel
0
5K
Member Avatar for kuchi

Hi, <I don't know where to post this, but this question is related to Python> We have a returned page with two tables, each table one dictionary returned from database with bunch of values (may or may not) and we are displaying these tables side by side. Our requirement needs …

Software Development python
Member Avatar for kuchi
0
178
Member Avatar for Benifited

Hey all im new to the site and looking around i can tell i came to the rite place. Now for my question. Im suppose to take a poem with punctuations and blank lines in it and reprint the poem one word per line. The reprint cant have punctuations or …

Software Development c
Member Avatar for Lordvivi
0
212
Member Avatar for Zeref

Hi guys, I'm having trouble with this particular code [code=c] #include <stdio.h> int main() { char aChar; printf("Please enter a character: "); scanf("%c",&aChar); while (aChar!='x') { printf("The Letter is %c\n", aChar); printf("Please Enter another character: "); scanf("%c", &aChar); } return 0; } [/code] The output is: Please enter a character: …

Software Development c
Member Avatar for Narue
0
215
Member Avatar for rinoa0424

Guys.. I need help in my RPG game project.. I used visual basic 2008, windows form applications. I used panel and its background is the map, and I used picture box as the character and with transparent gif pictures in every keyevents, I already can move the picturebox with keyevents. …

Software Development vb.net visual-basic
Member Avatar for nick.crane
0
216
Member Avatar for sidyusuf

hi frnds.... i am working on a window based student registration project using vs2008 and ms access database.what i have to do is to register students for main or comptt. exam according to the course they are in. The students are shown in a datagridview as per the course generated …

Software Development vb.net
Member Avatar for sidyusuf
0
163
Member Avatar for Labdabeta

I am still having major trouble with my openGL model program. The big issue is that I cannot figure out how to debug it since I am saving the important data to the graphics chip using vertex buffer objects (VBOs) so at least as far as I can tell, I …

Software Development c++ opengl
Member Avatar for raptr_dflo
0
488
Member Avatar for dospy

there are 2 common ways to loop through a vector 1: [CODE] vector<int> myvec; // let's assume it's initialized for(int i = 0; i != myvec.size( ); i++) { // code // access by 'myvec[i]' } [/CODE] 2: [CODE] vector<int> myvec; // let's assume it's initialized for(vector<int> :: iterator i …

Software Development c++
Member Avatar for dospy
0
182
Member Avatar for bibiki

Hey there, I am aware of GridLayout, BorderLayout and FlowLayout classes. However, I find them not to work satisfactorily well for me when trying to layout the entire content in a frame. What I usually do is this: I identify parts that I want in my window. For each part, …

Software Development java
Member Avatar for bibiki
0
108
Member Avatar for SpiritualMadMan

After a month of study on wxPython the vender finally admitted they were actually using pyQT... There are enough differences to make pyQT a *real* pain. So, I was wondering if there were *any* people on this Forum who were fairly well versed on pyQT?

Software Development python
Member Avatar for TrustyTony
0
104
Member Avatar for Dmiller071

Hi all, I'm coding Conway's Game of Life for my Java class and I've run into some logic errors. My problem so far is the fact that I have a section of code that looks similar to this: [CODE]if(board[i][j+1].getLife() == 1) board[i][j].setNumNeighbors(1); //Where setNumNeighbors(int n) { numNeighbors +=1} }[/CODE] etc, …

Software Development java
Member Avatar for Taywin
0
191
Member Avatar for dev90

/* can any 1 tell me wats the problem."[COLOR="Red"]Que: reverse an array without using temporary array[/COLOR] " [COLOR="Green"]This works for N =5 but when N =6 it displays the original values of an array.[/COLOR] */ [CODE]#include <stdio.h> #include <conio.h> #define N 6 void print(int b[N]) { int i; printf("\n"); for(i=0;i<N;i++) …

Software Development c
Member Avatar for Narue
0
3K
Member Avatar for Gandrew

Soo my program is working...but there is just one problem...null is also being printed along with the content or string from the file... is there anyway i can stop null from being printed. The code read asks a user to give a filename .txt then the user is asked a …

Software Development file-system java
Member Avatar for JamesCherrill
0
202
Member Avatar for loserspearl

I'm trying to create a java applet that displays farhen and cels temperatures in a chart. Temps below freezing need to be displayed in blue, and about boiling displayed in red. It needs to use applet graphics to draw the strings in different colors but I'm fairly lost when it …

Software Development java
Member Avatar for Ezzaral
0
323
Member Avatar for EliteCandyX

hey daniweb :) I need to click this button in vb. like click a button in webbrowser1 [CODE]<input type="submit" name="ok" value="send" class="btn sbold slarger">[/CODE] I've scoured through the internet, but alas, i failed to look for a helpful one :\ how would i go about this? Thanks a lot

Software Development html-css vb.net
Member Avatar for codeorder
0
142
Member Avatar for techlawsam

Alright So I want to know when looking at the code below: every so often with each method argument there is an "identifier" starting with the first one: "Inside() , Show(), Outside(), Display() " I know the names can be made up literally but what do the parenthesis signify ? …

Software Development
Member Avatar for techlawsam
0
173
Member Avatar for abhishekkp

Hello I'm doing a mini project of student management system. i need to take the attendance of all the students and store it in sql server. plz help me i need to submit my project on 25th of this month. i am left out with only this form :( or …

Software Development sql visual-basic
Member Avatar for Netcode
0
760

The End.