132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nathaniel10

An exercise is to write a program that generates random numbers within user specified limits. The program I wrote is as follows and it runs correctly. [code] #include "../../std_lib_facilities.h" void randnum(double lower, double upper, int n) // Generate 'n' random numbers uniformly distributed { // between lower and upper limits. …

Software Development c++
Member Avatar for mrnutty
0
183
Member Avatar for Dinnerfortwo

My assignment is to use pointers to point at the highest and lowest temperatures in the array. I need to have 3 pointer variables and start them at the beginning of the array. Step the pCur through the array using a for loop and pCur++. Loop through the array looking …

Software Development c++
Member Avatar for xuancong
0
202
Member Avatar for kendaop

Simple question: Is having multiple 'ref' parameters allowed in the same method? For example, [code=c#] private void RouletteSelection(ref Chromosome child1, ref Chromosome child2) { ... ... ... } [/code] I'm not getting any compiler or runtime errors, but the output I'm getting suggests there may be a problem with this …

Software Development
Member Avatar for kendaop
0
128
Member Avatar for nezbo

Hello daniweb I am currently trying to convert one of my finished python games to a working executable file for windows, which proves harder than expected even though the py2exe side-package is avalable. The program i'm trying to convert is [URL="http://dl.dropbox.com/u/2905284/The_Pirate_Game_v1.1.2.rar"]The Pirate Game[/URL]. I create the standard file for using …

Software Development python
Member Avatar for snippsat
0
124
Member Avatar for mansoor1000

all i need is this, i can write this in almost every other language except this; a loop to show me the constant mouse coordinates (x,y) of the mouse on the screen, much help would be appreciated if you could write a sample program its only 2 lines.

Software Development java
Member Avatar for NormR1
0
103
Member Avatar for Katana24

Hi all, I have a method set to return an array of type integer but I would like to know how I would access the independent values in that returned array. My program does this: User enters numbers seperated by spaces and the program computes such things like the average, …

Software Development java
Member Avatar for tong1
0
1K
Member Avatar for gibson.nathan

im making a grades program to try to keep my skills sharp. since i have gotten out of apcs i havent really been doing too much of anything with java. i decided the other day that i was going to try to make a grade program, kind of like what …

Software Development java oop open-source
Member Avatar for coil
0
677
Member Avatar for mysticstylez

Hey, I am working on this small project that will shuffle an array of names and then will load them into 5 list boxes. I have 25 names and need to load 5 names per listbox. Need some suggestions on how would i go about accomplishing someting like this. Thanks!

Software Development
Member Avatar for CloneXpert
0
93
Member Avatar for radc

Hello Python community :) This is my first post so don`t judge strictly. I need the user's client to start, so that the user may edit the message and decide himself whether he clicks on the Send button to really send it. I have searched on google and most code …

Software Development python
Member Avatar for radc
0
252
Member Avatar for vocater

..HEY GUYZ...Hey guys...I was trying to link the Input applet with the code such that, when the user selects like the "Edit function" it refers back to the input function with the empty spaces to fill the new Student information //Marcus Student's Database program. Using Linked List. //The prog. shud …

Software Development java java-swing linked-list
Member Avatar for NormR1
0
149
Member Avatar for chamika.deshan

Hello I am in a question of assigning local scope pointers to global scope pinters. I have a code like this. [CODE]public : char* myValue; void process(TiXmlElement *element) { myValue= element->getText(); }[/CODE] But once the process function is returned value is garbage. So I did this. [CODE]public : char* myValue; …

Software Development c++
Member Avatar for mike_2000_17
0
139
Member Avatar for aditya027

Hi,Norm jon, I am posting a new thread for tagging the code accordingly. Hope this helps out. 1.My ball is not bouncing within the circle i drew.(Within circle 2).It just goes vaguely toward one direction and comes back.I want the ball to bounce randomly.Just like in the game ball and …

Software Development java java-swing
Member Avatar for NormR1
0
119
Member Avatar for LevyDee

I am practicing Win32 API again, and for some reason, I am getting an error. [code] #include <windows.h> #include <windowsx.h> #define WSIZE = 400 #define HSIZE = 400 LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { WNDCLASSEX …

Software Development api c++ windows-api
Member Avatar for LevyDee
0
167
Member Avatar for VilePlecenta

[CODE]HMODULE g_hModule = GetModuleHandle( 0 ); HRSRC hRes = FindResource( g_hModule, MAKEINTRESOURCE( ID_DLL_MYDLL ), "ID_DLL" ); HGLOBAL hResource = LoadResource( g_hModule, hRes ); DWORD iResSize = SizeofResource( g_hModule, hRes ); BYTE* pData = ( BYTE* )LockResource( hResource );[/CODE] When I included a dll file into my project, I used: [CODE]fstream …

Software Development c++ ios
Member Avatar for mike_2000_17
0
344
Member Avatar for Tech B

Been a while since I posted anything here, so I decided to post what I've currently been working on. I use ImageChops to get a difference between two consecutive frames from my webcam. I would like to replace the pixel values > rgb 50, 50, 50 with 255, 0, 0. …

Software Development image python webcam wordpress
Member Avatar for Beat_Slayer
0
123
Member Avatar for ndeniche

Hello mates I've got a database with tables for Job Department and Job position. Every Positions has a respective Department assigned by the id. So, when the user selects a Department, the program deploys into the combobox the values of the Positions assigned to that department. The thing is, the …

Software Development vb.net visual-basic
0
119
Member Avatar for adobe71

How can I access remote database using window application in C#.I want to insert/update and delete the record from database which placed in web server using window application.

Software Development web-server
Member Avatar for Lusiphur
0
124
Member Avatar for drake10k

Hello, I'm using a form with a 0.01 opacity and I want to draw a rectangle on it... but of course, the rectangle is also invisible when drawn. Is there a way to make the form invisible, but not the rectangle I want to draw on it? thank you

Software Development
Member Avatar for farooqaaa
0
142
Member Avatar for jasneg

i got this code in the some video and made some few adjustment, one of it is the size of the pixel or the drawings and the size of the tile/grid or map i wish to use..... But it looks like i need to do more adjustment unlike following the …

Software Development visual-basic
Member Avatar for jasneg
0
116
Member Avatar for itsmeisuru

Hi [code] #include "cv.h" #include "cxcore.h" #include "cxtypes.h" #include "highgui.h" int main() { CvCapture* capture = cvCreateFileCapture("RosewellBst.mp4"); cvNamedWindow( "Example2", 1 ); cvMoveWindow( "Example2", 100, 100); IplImage* frame; while(1) { frame = cvQueryFrame( capture ); if( !frame ) break; [COLOR="Red"]cvShowImage( “Example2”, frame );[/COLOR] char c = cvWaitKey(33); if( c == 27 …

Software Development c++
0
61
Member Avatar for s_jmp

i was wondering what exactly ORG instruction do? i know it sets where the program loads in memory,but how,when you disassemble a binary assembly file you dont see such a thing as org instruction,but when you run the binary file it gets loaded in that address you mentioned in front …

Software Development assembly
Member Avatar for dan63043
0
93
Member Avatar for nv136

Hello everyone. I really don't know where to post this, but, anyways.... here is my problem.... I have built a program that generates a waveform for a .wav or .wave file.... but the music clip can only go in through the "file, open, and blah blah blah" I really want …

Software Development audio vb.net
Member Avatar for nv136
0
755
Member Avatar for Hisham-Usif

I'm wondering whether it is possible to declare a global variable in a click event. I need to declare an array of a specific size. The specific size is generated using a series of IF statements. I only need to know how to declare it. Thanks in advance I'm using …

Software Development vb.net visual-studio
Member Avatar for Luc001
0
423
Member Avatar for niall_heavey

Hi, I am trying to delete all files that end in .csv within a directory. I'm not sure how to go about this, I am using bash and the command I used was; [CODE]rm '/home/eeng/ME_project/Big_Users/*.csv'[/CODE] New to this scripting so not too sure where i'm going wrong. Any ideas? Thanks. …

Software Development shell-scripting
Member Avatar for cfajohnson
0
164
Member Avatar for Umee001

Hello all im new to prgramming and ive gotten to a dead end where im hoping some of you people can help me! Basically i am trying to make a media player that opens pictures audio and video into seperate forms, so i have 4 forms main form where i …

Software Development audio
Member Avatar for Umee001
0
187
Member Avatar for OldManStarting

Having found the following post on datareaders [URL="http://www.daniweb.com/forums/thread278415.html"]Topic Posted On DaniWeb[/URL] i have managed to successfully create a datareader in a class that updates a listbox on the calling form with entries retrieved from a SQL server database. I was wondering if it is possible to achieve the same thing …

Software Development dataset vb.net
Member Avatar for OldManStarting
0
163
Member Avatar for XodoX

Helllo, I am supposed to do the following: [quote] Mathematically, a set is said to be consists of well-defined elements. For instance, the following are well-defined sets. A = {1, 2, 3, 4, 5, 6, 7} B = {2, 3, 4, 8, 9} A set may be described using other …

Software Development c++
Member Avatar for guru_iyer
0
146
Member Avatar for naxysch

Hello, ok I have a problem with JFileChooser.When I save a file with a name that exists already, It replaces the older file and saves the new one but I want make it show a confirmation message to the user to ask if they want to replace the file or …

Software Development java java-swing
Member Avatar for naxysch
0
207
Member Avatar for sana_moi

hi there! im trying to do a xor beetwin two cha but i coudl no there is my code: [code=c] String^ val2; String^ val3; String^ val1; String^ val; char *chval1; char *chval2; char *chval3; char *chval; char *chv; val1=GZMK1->Text;//GZMK1 is textbox val2=GZMK2->Text;//GZMK2 is textbox val3=GZMK3->Text;//GZMK3 is textbox chval1 = static_cast<char …

Software Development c++
Member Avatar for Ancient Dragon
0
175
Member Avatar for John Sand

Hi! I'm new to C++ and am having a problem with saving a text file into a string. I'm using getchar() but only the last line of the rather long text file is saved into the string when used in different functions. In other words, if I include a "cout" …

Software Development c++ file-system
Member Avatar for John Sand
0
187
Member Avatar for rishabbbh

[B]Can anybody tell me whats d problem..????[/B] [CODE] #include<iostream.h> #include<conio.h> void main() { clrscr(); int l,b,r,a; char ch,t,x; cout<<"******************----MAIN MENU----****************** \n"; cout<<"\n 1.Area of rectangle"; cout<<"\n 2.Area of square"; cout<<"\n 3.Area of circle"; { cout<<"\n Enter your choice"; cin>>ch; } rec:cout<<"\n Enter the Length and breadth"; cin>>l>>b; a=l*b; cout<<"\n Area …

Software Development c c# c++
Member Avatar for mike_2000_17
0
145
Member Avatar for Mylsamy

Hi all, I am using Java code to send email to users. The code is SMTPTransport tr = (SMTPTransport) poSession.getTransport("smtps"); tr.connect(MailHost,FromMailId,Password); tr.sendMessage(Message,Message.getAllRecipients()); FromMailId is from user mailid Password is from user password. Message is what can from user sent to toUser Message.getAllRecipients() are to user mail id.. But how do …

Software Development email java
Member Avatar for jon.kiparsky
0
102
Member Avatar for kebbby

Please help with this new sorting algorithm. I implement it on VB but i cant get a correct output. It's a new sorting algorithm and the pseudocode was provided. Here are the informations about it. Here are the steps: 1. In a single pass on the array, the algorithm finds …

Software Development visual-basic
Member Avatar for Momerath
0
106
Member Avatar for GWalk612

I am writing a very simple program that subtracts 16 bit integers. After the subtractions I want to view the registers' final values by using DumpRegs. The information displayed seems accurate for EAX, but EBX and ECX have values that don't seem to be correct. Why is this so? [CODE]TITLE …

Software Development assembly
Member Avatar for Josue198s
0
4K
Member Avatar for ITStrawberry

Hello guys, I have a question. In one form i have a treeview. I get the value by doing treeview.selectednode.text; But in the same project i have another form. I want to send the value of the selectednode to the other form. How can i do this?

Software Development
Member Avatar for Geekitygeek
0
107
Member Avatar for RickW

I have this output from a mysql export: [code] <?xml version="1.0"?> <resultset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" statement="select product as sample,count(*) as count from table1 where itemno in (5,10,37) and type='food' and package='boxed' group by package,product order by count(*),product desc limit 5 "> <row> <sample>cereal</sample> <count>1</count> </row> <row> <sample>macaroni</sample> <count>1</count> </row> <row> <sample>cookies</sample> <count>2</count> …

Software Development xml
Member Avatar for RickW
0
167
Member Avatar for avi_d59

:-/ Hey friends I have a problem regarding operator overloading concept in C# language,can anyone among you please make me understand and supply some example of operator overloading concept.Some codes can you guys please send me for better understanding and with a brief description..please.

Software Development
Member Avatar for Geekitygeek
0
116
Member Avatar for Queen007

Hi, Everyone!! I'm really new in this business and I've been having some trouble with these errors: ====================================================================== Message: Object expected Line: 1 Char: 1 Code: 0 URI: [noparse]http://www.myblog.com/successblog/[/noparse] =================================================================== Message: Expected '}' Line: 707 Char: 301 Code: 0 URI: [noparse]http://www.myblog.com/successblog/[/noparse] ================================================================== Message: Expected '}' Line: 738 Char: 301 Code: …

Software Development java
Member Avatar for Queen007
0
187
Member Avatar for alex k

programe to randomly generate store and display the age of N studnets (e.g ,18,24,38 etc).the minimum age is 18 and maximum age is 75.N should be equal to 9. 1.How we can intialise all the elements of the array to -1. 2.Randomly generate and store the age of N studnets …

Software Development c++
Member Avatar for Ancient Dragon
0
105
Member Avatar for emilio

hi everyone i would like to fill an array with random numbers i know i can use the next line srand( time(NULL) ); return 1 + rand() % 10 ; but the problem is that it fills my array with only one number what can i do ?

Software Development c
Member Avatar for mayur.sarode
0
309
Member Avatar for lyncejo

pls does anyone of you help me how to connect vb6 to access.i have a system wherein my pc can receive and send sms.I used nokia cp,and dku50 cable to connect my pc and cp.I want that the text will be store in my access,so that i can see the …

Software Development visual-basic
Member Avatar for AndreRet
0
111
Member Avatar for gangaloves7

HOW TO CHANGE THE TIMING 15 MIN EARLY THAN CURRENT TIME OR TIME VALUE WHICH IS IN MS-ACCESS TABLE USING VB6.0?????????????????? plZ HELP ITS URGENT ??????????????????

Software Development visual-basic
Member Avatar for AndreRet
0
112
Member Avatar for becky007

hey guys. i get an error "Could not find a part of the path" for inputStream = File.OpenText(textBox1.Text). The idea is to enter a folders path then in another textbox enter word to search. all the files in the folder have to be searched then the word,filename and path are …

Software Development
Member Avatar for becky007
0
88
Member Avatar for umesh314

// program implement the working of files simple stock // management #include <iostream.h> #include <fstream.h> #include <iomanip.h> #include <stdlib.h> #include <stdio.h> class stock{ int code; char name[30]; float cost; char flag; public: void getStock(); void putStock(); char getFlag(); void putFlag(char); int getCode(); }; int stock :: getCode(){ return code; } …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
134
Member Avatar for normmy

Hi all, sorry if this post is a duplicate, I had a search and couldn't find what I was looking for. In simplest terms I need to use the string split method using a sting as the seed i.e. [code] string[] sections = line.Split("><"); [/code] Sorry if this is a …

Software Development
Member Avatar for Geekitygeek
0
258
Member Avatar for zebnoon

Asslamo alekom and Hello, Please tell me how to make a Setup file of VB6 projects.?

Software Development visual-basic
Member Avatar for zebnoon
0
2K
Member Avatar for PythonNewbie2

Hey guys, I posted earlier about py2exe not working in general. Now I got it to actually run, but the .exe produced does not work... Any help would be appreciated. Thanks. Info: I've tried various things to solve this issue, but no luck. When I run my setup.bat file, which …

Software Development python
Member Avatar for D33wakar
0
3K
Member Avatar for shena

Hi experts out there, I have a program where the backend is access database. I was able to run the program in user's pc after i placed it at C drive. After that, i placed it in the server and created shortcut to the.exe, the program ran. But, when i …

Software Development visual-basic
Member Avatar for AndreRet
0
265
Member Avatar for lil.jeantle

could u please show me the codes too? (example may be)

Software Development c++
Member Avatar for mike_2000_17
0
104
Member Avatar for Pinchanzee

Using py2exe I've made an exe file which processes a file then creates a new file which details the errors found in the original file. However, at the moment I have to change the file allocation in the code each time I want to do it on a different file …

Software Development file-system python
Member Avatar for Pinchanzee
0
575

The End.