199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JDoggieIII

Hi, I am using C++ MFC and I wouldn't exactly call myself an expert :-). What I have is a thread drawMonitor which monitors when to draw and I would like it to call DrawLines() (which is a member function in the class) to do the drawing. void drawMonitor(void *); …

Member Avatar for Ancient Dragon
0
276
Member Avatar for ohwhatacuteanaconda

I need assistance with using Keypress to only allow a certain range of numbers (1-26) to be typed into the textbox. When ever I do it, it only allows me to press the numbers "1 and 2". I'm very new to VB so the help is much obliged. I know …

Member Avatar for ohwhatacuteanaconda
0
403
Member Avatar for roemerito

Hello Everyone So i have this flowlayoutpanel that contains checkboxes, so what It does is if a select a checkbox the text of that checkbox will be passed to the ProblemTextBox ![checkboxes](/attachments/large/3/checkboxes.png "checkboxes") My main problem is that I am able to add new checkboxes to the ProblemTextBox, but when …

Member Avatar for roemerito
0
2K
Member Avatar for mani508

i want to add multiple rows in datagridview from textbox values then save the rows into database? how its possible...???

Member Avatar for goodgirl
0
137
Member Avatar for dolphinaura

I have been working on a new website that scrolls 100% height/width panels one at a time. The panels are under a fixed header, and are wrapped with `<div id="container></div>` I am, however, having some trouble implementing the javascript. Once setup, the page should issue allerts with each mouse scroll …

Member Avatar for McLaren
0
193
Member Avatar for orar

#include <iostream> #include<string> #include<vector> using namespace std; struct Names { string fname; string lname; void output() { cout<<fname<<" "<<lname; } void input() { cin>>fname>>lname; } }; struct birth_info { int month; int day; int year; void input() { cin>>month>>day>>year; } void output() { cout<<month<<"/"<<day<<"/"<<year; } }; int main() { string …

Member Avatar for deceptikon
0
180
Member Avatar for developerwwe

We want to develop a website similar to http://shoesofprey.com/ functionalities for Interior Decor Objects using PHP Language. We want to use a custom script (without any flash functionality) for this purpose so that user can customize the product by changing the color, type and attribute and can also see 360 …

Member Avatar for diafol
0
1K
Member Avatar for DanOath

Write a program that will print a two-column ASCII table for both lowercase and uppercase letters and the digits 0-9.

Member Avatar for Taywin
0
142
Member Avatar for geneh23

Hey everyone, No errors here but I was wondering..is there an easy way to simply "add" an administrator in a log-in script to redirect to a certain area of a website that the administrator can only access? Any advice would be greatly appreciated :)

Member Avatar for diafol
0
543
Member Avatar for khalidshakar

package vc_client1; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.net.Socket; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.DataLine; import javax.sound.sampled.Mixer; import javax.sound.sampled.SourceDataLine; import javax.sound.sampled.TargetDataLine; public class voiceReceiver { public Thread playThread; boolean stopCapture = false; static ByteArrayOutputStream byteArrayOutputStream; AudioFormat audioFormat; static TargetDataLine targetDataLine; AudioInputStream audioInputStream; BufferedOutputStream out = …

Member Avatar for khalidshakar
0
307
Member Avatar for aa361

Hello, I am working on a project which aims to compare an image to from a database of images and find out similar looking images. I am working with a DLL file which returns unique hash for each image. The hash is an array of 768 bytes. (byte[]) My problem …

Member Avatar for nargis.hemani
0
4K
Member Avatar for Dendei

hello! i have a function in my C# code that returns a string array. and when i test my function in WCF Test Client i get Name Value Type (return) length=4 System.String[] [0] "DE" System.String [1] "DK" System.String [2] "NO" System.String [3] "SE" System.String **code if i do var_dump on …

Member Avatar for Dendei
0
604
Member Avatar for arcticM

Hi! I just started 2 days ago learning android app development from a book.. after about half a day of trying to add the android plugins and what not to Eclipse it finally worked but I have the following problem: the virtual imulator device doesn't show my updated code. like, …

Member Avatar for peter_budo
0
87
Member Avatar for Andy90

Hello all, I am learning new stuff in c#! I want to know how to increase computer sound when user hits a button. The user will hit the key only once, the volume should increase from 1% to 100% (the increase in volume should not be sudden, it should be …

Member Avatar for nmaillet
0
149
Member Avatar for khalidshakar

What is the way that need to be implemented in java to make a server broadcasts a voice to multiple clients, instead of broadcast voice only to one client? for example I am doing a server which can broadcast voice to multiple clients at the same time, now my server …

Member Avatar for khalidshakar
0
533
Member Avatar for klharding2

So in my program I have to use specific values obtained from an inputfile in different functions, and I couldn't figure out a good way to do this. I don't want to have to have the user input the file name for every function. I tried it this way, but …

Member Avatar for ktsangop
0
186
Member Avatar for gcclinux

Gents as you can see I have done great progress in getting the last line and the line beforelast working and spliting but I am stuck now as I need to the beforethat (3rd) line from last also included and I can't figure it out, everything i do fails to …

Member Avatar for Taywin
0
265
Member Avatar for kayceedude

Write a C program that roll a single six-sided die 10 times. Produce a random number from 1 through 6 as shown in the following frequency distribution. (Hint: use an array of counter)

Member Avatar for kayceedude
0
95
Member Avatar for Julie29

Hi, can anybody help me with this? I am doing an Introduction to Programming module using Java and am stuck at this question. Write a program which reads in a username and a password, and expects the username to be "brian" and the password to be "spam". The program should …

Member Avatar for JamesCherrill
0
7K
Member Avatar for slimergan

Hi, I am doing a project on creating a traffic simulator for a particular road junction in java. I am looking for ideas on how I would go about recreating the visual of the junction in which I can have moving cars on. Would I use Graph with nodes or …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Tekito

I am new to Visual Basic 6 Class Modules and am having difficulty constructing a certain class. First off, I created a simple class, which is basically an array with some basic properties (Sum, etc). Next off, I want to create another class, which has these arrays as properties. As …

Member Avatar for MrZerocaL
0
3K
Member Avatar for OsaidAz

so I have a 2D arry with defaul value 0, and what I want to do is to accept a value from a user to change 0s to 1s depending on the accepted value. for example: we have an arry like this 0000 0000 0000 0000 and the user enters …

Member Avatar for OsaidAz
0
146
Member Avatar for randmateweb

Recently I learnt java as a crash course in a private institue they covered me core and advanced core concepts in java for the version 1.6. Since the lastest version is java 1.7, so which book I should follow for my further improvements to become an ideal Java programmer.

Member Avatar for JamesCherrill
0
141
Member Avatar for abinaya.lingam

hi i need to convert my comma seperated text file in to a two dimensional array and i should be able to access each element in that array....i tried so many programs based on read line and split functions but i didn't get the proper output....please help me to do …

Member Avatar for JamesCherrill
0
367
Member Avatar for ismael ahm@d

i have three db tables products product_id- Name 1 | hairoil 2 | lotion 3 | cream Countries country_id- Name 1 | UAE 2 | France 3 | UK Now i wanna that when select multiple countries for one product from Html form, then in third db table should insert …

Member Avatar for ismael ahm@d
0
9K
Member Avatar for jontennyeah

i have a combobox that contains the items 0001,0002,0003, etc. i have a listview with 3 columns namely ID, Name , Age. I want to do is when i select the ID "0001" in the combobox, it will display the name and the age in the textbox1 and textbox2 that …

Member Avatar for Reverend Jim
0
186
Member Avatar for bradly.spicer

Hey everyone, Been working on a php snippet which finds the names of all the files in a Directory and populates them into a drop down box. Which would then allow me to select that file, click a submit button and delete them. Here is what I have SO <?php …

Member Avatar for bradly.spicer
0
217
Member Avatar for rahul.ch

class Account { Long accNum, pwd} public class Banker { public static void main(String r[]) { new Banker().go(); // do more stuff } void go() { Account a1 = new Account(); a1.accNum = new Long("1024"); Account a2 = a1; Account a3 = a2; a3.pwd = a1.accNum.longValue(); a2.pwd = 4455L; } …

Member Avatar for rahul.ch
0
235
Member Avatar for akiller47

Hi, Im trying to figure out how to display a number from an array where it has been chosen by a random number. I have got an array with 10 different numbers (always different when program is ran). Each index is added with the previous index number So lets say …

Member Avatar for kayceedude
0
294
Member Avatar for rahul.ch

<? super Animal> means animal or it's superclass only. Then why inside the method it's allowing to add Dog object even though it's a subclass of Animal? This program compiles and runs! import java.util.*; class Cat {} class Animal{Animal() {System.out.println("Animal constructor");}} class Dog extends Animal{Dog() {System.out.println("Dog constructor");}} public class GenericDemo5 …

Member Avatar for rahul.ch
0
338
Member Avatar for Cameronsmith63

Damn, this is so much easier in a form...Anyone know how to export from a DataSet to Csv file in a console application? string sp = "SLA2Day"; var outCsvFile = @"C:\Download Report Sheets\file.txt"; SqlCommand spcmd = new SqlCommand(sp, thisConnection); spcmd.CommandType = CommandType.StoredProcedure; DataSet dsData = new DataSet(); DataTable dt = …

Member Avatar for NanaYee
0
155
Member Avatar for NewGuy2Prog

So i am seriously in need of help from someone or everyone on improving my program and any corrections if needed. I have listed my codes below and i am hoping to receive input, suggestions, corrections, and advice. Please remember, i am new to programming so please for those of …

Member Avatar for JamesCherrill
0
175
Member Avatar for Darshan5

Can anyone tell me how to use Java Keylistener to add validations in my java gui form?? eg. I have a textfield. I want to enter only alphabets in it. I dont want any numerics. So when a user tries to type a numeric value in it, I want to …

Member Avatar for JamesCherrill
0
189
Member Avatar for Albino
Member Avatar for groma1

Hi, just started to learn php so fairly new to the concepts. Need some help making a sticky select form from an array. This is what i have so far: print '<label>Select your favourite colours:'; print '</label>'; print '<select name="colour" multiple="multiple">'; $colours= array('R'=>'Red','O'=>'Orange','Y'=>'Yellow','G'=>'Green','B'=>'Blue','P'=>'Purple','Pi'=>'Pink'); foreach($colours as $colour => $cname){ if($csel === …

Member Avatar for Bachu
0
162
Member Avatar for ownedbynothing

this is Sudoku.java this is the main class. Reminder does the time keeping, the SudokuBoardDisplay displays the board and draws images. The one who handles the logic is the SudokuModel How do I make the images clickable and do something. how to display the remaining time as JLabel ....? i …

Member Avatar for mKorbel
0
600
Member Avatar for ShEeRMiLiTaNt

Hello I am trying to allocate a dynamic array of length that the user inputs. I have a function to this for me but it doesn't allocate the number that I want it to allocate. For example, when I input one it gives me 7 digits... heres the code: int* …

Member Avatar for ShEeRMiLiTaNt
0
117
Member Avatar for akosivivas
Member Avatar for dimasalang
0
97
Member Avatar for drj08

overload resolution failed because no accessible 'new' can be called with these arguments.. the error shows at the Dim *dataadapter* As New SqlDataAdapter(sqlCmd, connection) Imports System.Data.SqlClient Public Class Form1 Private Sub BtnGenResult_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnGenResult.Click Dim ConnectionString As String = "Data Source=(local)\SQLEXPRESS; AttachDbFilename=D:\PKBW Batching …

Member Avatar for dimasalang
0
2K
Member Avatar for daino

Does anyone have any experience with PODOFO [Click Here](http://podofo.sourceforge.net/index.html). I've read everything they have to offer and I admit, some of their points are a little advance for me. I'm trying to determine whether PoDoFo can be compiled as part of my c++ application so that my application is standalone. …

Member Avatar for daino
0
893
Member Avatar for ranga.seeman

Hi Guys, in vb we can get the week number counting from January. ex Jan 1st is Week 1 and Feb 1st is Week 5 etc by DatePart(DateInterval.WeekOfYear, Now) I need to count the week number from a given date. ex: if set the base to July 1st then July …

Member Avatar for ranga.seeman
0
1K
Member Avatar for rithish

hello iam trying a circular queue in linked list and array there are two questions for me 1.how can circular queue can be implemented in a normal linked list??i think it can be implemented in circular singly linked list right?? 2.if i implement it in array how i will connect …

Member Avatar for WaltP
0
141
Member Avatar for NYCRAVEN

I am new to vb and I have been working on getting my brain around this if condition problem I am having in a windows forms in VB. This part of the project is a form writing back to SQL. I am looking to valdate input in textboxAm before I …

Member Avatar for NYCRAVEN
0
4K
Member Avatar for Kanown

Hello so i have been making a program and decided to start on error checking. I'm asking the user to input a 1 to continue and a 2 to exit simple. I worked the code out for the error checking though when i compiled and ran the program all it …

Member Avatar for WaltP
0
234
Member Avatar for Albino

Errors: 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(239): error C2065: 'string' : undeclared identifier 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(239): error C2146: syntax error : missing ';' before identifier 'str' 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(239): error C2065: 'str' : undeclared identifier Code: `string str;` For some reason strings are giving me errors.

Member Avatar for Ancient Dragon
0
169
Member Avatar for gulbano

Hey all, can any one tell me the c# code to detect country from an IP address. Thanks in advance

Member Avatar for mwatson81
0
138
Member Avatar for chanda gul

Hi!! If any one has the code in c++ to recover deleted files from FAT and NTFS then please post it here. It is to note that i need actual code, not the already made tools. Thanks

Member Avatar for Ancient Dragon
0
423
Member Avatar for BoulderMen

I am trying to write a funtion to print the contents of a queue using ADT funtions. I composed the following code. It gives me a error of invalid type argument. Need help. int print_queue(QUEUE *queue) { int tempCount; int inputVal; while ((queue_count(queue)) != 0) { tempCount = queue_count(queue); queue_front(queue, …

Member Avatar for BoulderMen
0
160
Member Avatar for bLuEmEzzy

Hello, I have textboxes and I want to add the inputted values, however, some of the textbox(es) have null values and it gives me a "NaN". what should i do? thank you :) this is my code. sep = parseFloat(document.getElementById('txtSep').value); oct = parseFloat(document.getElementById('txtOct').value); nov = parseFloat(document.getElementById('txtNov').value); dec = parseFloat(document.getElementById('txtDec').value); amt …

Member Avatar for bLuEmEzzy
0
154
Member Avatar for bdl365

Need help to print grids of letters ..for example ABABA BABAB ABABA BABAB ABABA BABAB so when row and column numbers are the same (r == c) the program prints an A. Any clue as to how I should approach this problem will be appreciated? this is what i got …

Member Avatar for bdl365
0
199

The End.