132,726 Archived Topics
Remove Filter ![]() | |
Hello, I'm using code as shown below to play the first [i]duration[/i] milliseconds of a media file [CODE] MCIWndHome(m_Audio); MCIWndPlayTo(m_Audio, duration); [/CODE] This works fine to only play the first [i]duration[/i] milliseconds when the length of the audio file is greater than [i]duration[/i], but if the audio is longer than … | |
when you develop a database program, what's your choice and why (may be your choice not in list). - use dBase table (easy to use but not secure). - Paradox table (secure table) - MySQL (good for network but not simple/must install MySQL) so what's your choice? Software Development pascal | |
[CODE]import java.awt.*; import java.awt.geom.*; import javax.swing.*; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JButton; public class Connect4View extends JFrame { DrawPanel canvas; Connect4Model model; ControlPanel myControlPanel, JRadioButton; public static void main(String[] args) { Connect4View w = new Connect4View(); w.setVisible(true); } public Connect4View() { setTitle("Connect4 solution"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(500,220); setLocation(300,300); … Software Development java java-swing | |
Hi guys, I need some help for a homework I have due in 8 hours. I was assigned to write a recursive sorting algorithm that works with iterators :mad: After googling, and putting code together I got this. [CODE]#include <algorithm> template<class IT> void quicksort(IT begin,IT end) { \\begin and end … | |
Okay, I have a slight problem here. My final project was pretty much open to anything. We just had to make a proposal and do it. So, I proposed a bank type program. I had it done and in the bag(or so I thought) until I was told to include … Software Development c++ linked-list | |
I am trying to write a program in C with a main function and five other functions: input, output, calculate day of year for a calendar date, calculate calendar date from day of year and year, and determine if its a leap year function. I have a problem with calendar … Software Development c | |
Please tell me about <ctime> header file what functions it contains inside how to use them.. Software Development c++ | |
hi everybody, how to read FileMaker Pro 10 Data from .Net??? and I need ODBC dRIVERS fOR FileMaker Pro 10..... Please help me............. Searching For it THrough out the day......................... Regards, Manikandan Software Development ![]() | |
My project was already due, and incomplete but I would still like to better understand a few things. I have three classes. A Photo Class, PhotoAlbum Class, and a CommandLineMenu class. Each photo has a subject, location, date, and path. the PhotoAlbum is an array of different photo objects. I … Software Development java | |
Hi there, I am hoping someone can help, I have an large XML structure which I am attempting to interrogate. My structure(problem) is as follows <BigStructure> <Structure myNumber="1003"> <Structures> <myMap> <Point ID="1"> <Opt>THE</Opt> <Next>2</Next> </Point> <Point ID="2"> <Opt>ONE</Opt> <Next>2</Next> </Point> </myMap> <myMap> <Point ID="1"> <Opt>THE</Opt> <Next>2</Next> </Point> <Point ID="2"> <Opt>THIS</Opt> … Software Development xml | |
I've got the following Problem while using linq with stored procedures: I convert the ISingelResult with AsQueryable() to IQueriable and then try to serialize the results with JSON.NET (James Newton Kings JSON serializer) but I alsways get a "The query results cannot be enumerated more than once" Exception Any Help … Software Development json | |
Hey all, can anyone tell me what this error usually means: 1>Client.obj : error LNK2001: unresolved external symbol "public: bool __thiscall StudentCollection::addStudent(class Student)" (?addStudent@StudentCollection@@QAE_NVStudent@@@Z) 1>D:\Sem1_2010\INB371_DSA\Assignments\Assignment2\Assignment2\Debug\Assignment2.exe : fatal error LNK1120: 1 unresolved externals. [CODE] StudentCollection *studentCollection; Student *studentUser; ..... student = new Student(studentNumber, firstName, lastName, phoneNumber, address); studentCollection->addStudent(*student);[/CODE] [CODE]bool addStudent(Student student){ … Software Development c++ | |
i wrote a c++ prgram i have aproblem abt the output; the program is as [CODE] #include<conio.h> #include<iostream.h> void main() { int i=1; i=400*400/400; cout<<i; getch(); } [/CODE] the output of this is =72 can somebody tell me that is this any type of garbage value??????????? Software Development c++ | |
suppose there is name and phone no in ms access database. i want to reterive the selected fields ie, by giving text in textbox and prompt for go command, i want to display that selected data (names or phone no) to display as table in alphabetical order.this should be done … Software Development visual-basic | |
Hi, first year programmer and the assignment is to use the stack and queue classes to write two functions. One checks to see if an array of parenthesis are balanced, the other to see if a stack and queue are insert equivalent. Here is my code. Assignment4.h [icode] #include <iostream> … | |
I am trying to play some audio from within a program using [ICODE]MCIWndPlay(m_Audio);[/ICODE] or [ICODE]MCIWndPlayTo(m_Audio, duration);[/ICODE] type calls. The program is getting the path of the media from an RSS feed and the audio can be either an MP3 file or a streaming MP3 (either progressive download or actual streaming … Software Development audio c++ file-stream | |
I am learning Python 3 I have several pieces of code that compares dates. The problem is I don't understand how to read a date from a text file and then use it in my code so I can compare it with todays date. I get errors like - int … Software Development python | |
[B]Here is my coding, I know its sad, but I am lost.[/B] [B]After reading my code below and the guidelines I just have a few questions:[/B] [B]1. Am I on the right track so far? 2. To get the fractions should I put a cin in the setter functions, if … Software Development c++ | |
Hey guys, im new to the forums and really need help with this program. It's worth 35 points for my programming class and I'm freaking out. I keep getting error C2784. Here's the code and I appreciate all your help: #include <iostream> #include <string> #include <ctime> using namespace std ; … Software Development c++ | |
The program below compiles and runs the way i need it to. However, part of the assignment was to load words, MAX_WORDS=100, into the program and then randomly have the program pick the word. Im really struggling with this part. The hint was to use a LoadWord () function but … | |
Hello everyone, i have another assignments that i can't deal with my ability yet. This is the assignment : Make a pyramid from a character where you can define it's height ! Example : 4 characters height pyramid from "x" character [code] X XXX XXXXX [/code] 6 characters height [code] … Software Development c++ | |
Ok, new to C++ and my first assignment is to covert C code to C++, I'm getting pretty frustrated and have been looking at the code for the last two days not truly understanding how to do it. The teacher gave us a program in C which I have an … | |
Hi, In c#, i have a string array like string text[] = value.split(','); Assume text contains the values a, ,b,-,c,d, , it has 2 white spaces and 1 hyphen values i want to remove the white spaces and hyphens and want to make it as a,b,c,d i have tried this … Software Development | |
I have been trying to solve this problem for days, and if I think about this anymore I might blow my brains out. Anyways, I need help solving a smaller portion of a large assignment for my computer science course. The program basically entails me creating a shipping manifest for … Software Development c++ | |
This is a MenuBar class which is supposed to assemble a Menu bar.. basically i have some JMenus which contains some JMenu items here... and add all the JMenus to this class which is the bar (sorry if this is confusing) i am trying to write a public method to … Software Development gui java java-swing | |
guyz help me. I want to filter the data that's being displayed to my datagrid once I click the combobox and select a specific value,the selected value will be the item to filter the data that I needed to be displayed in the datagrid.. I'm using a datatable,a combobox and … Software Development vb.net | |
Hey guys, I was curious if I could get some help with these two pieces of code. What I'm trying to do is count the number of comparisons and moves there are in each type of sort, now I'm not a super programmer but I kinda know my way around … Software Development c++ | |
Heyy, back again. another function I need to write checks to see if the characters of a String state code(such as PA) are in uppercase and if they aren't I need to make them uppercase. (so has to check for stuff like pa, Pa, pA and fix it) the state … Software Development c++ | |
Here I need to initialize an array all to zeros and to create an array of pointers and pass the array of pointers to the calculate function, however; I'm confused as how to do this, I've been looking online and it seems that I've created an array of pointers correctly … Software Development c++ | |
Hi, as a bit of background, My Uni have lately implemented a CGI script so you have to log in to be able to use the wireless. This would be OK but they are terrible programmers and instead of timing out after a period of inactivity it will time out … Software Development open-source shell-scripting wireless-networking | |
Hi guys. I am trying to make a textbox that accepts only numbers and comma but no luck. I did a search on the forum and found some snippets of code but still couldn't get it working. I can't show you any of my code so far, because I don't … Software Development | |
[B]I have had a lot of problems with C++ and I am quite confused. Here is the code so far;[/B] [CODE] #include <iostream.h> #include <stdlib.h> #include <cstring> #include <cctype> class Fraction { private: Fraction (); Fraction (double); Fraction (Fraction &); public: double operMultiplication (); double operSum (); double operDouble (); … Software Development c++ | |
hi guys!!! i have written small program here about customers, its for my assignment, emmm there's a small problem, i am using merge sort to sort customers in order by their ID, the only thing i dont know how to do i how would i pass ID into merge sort, … Software Development c++ | |
So I am making a program and in the program I give the user the option to add Custom Items into the Combobox. To make sure that the Custom Items are still there when the program is restarted I use this code in the form load [CODE] Dim customcarrier As … Software Development vb.net | |
[code] Dim thisMonth As Integer DateCollected = DataSet.Repair.Rows(2).Item("DateCollected") thisMonth = Month(Now) For........ If Month(DateCollected) = thisMonth Then partsprofit = (partswholesalerpricetotal) / (partstotalcost) * 100 Else End If Next [/code] Basically i am writing up some code that loops through all the records in a table looking at a column called … | |
Can anyone tell me how I can let the user add their choices to a combobox? I have preset choices in each one, but would like to be able to let them add their own choices as well. Software Development | |
![]() | Hi, I am attempting to create a dynamic array using realloc in 2 dimensions. Currently i have managed to get it to work using realloc to dynamically resize the amount of rows but when I attempt to use realloc to dynamically resize the amount of columns per row I keep … Software Development c matrix-multiplication ![]() |
Another JTable question I am trying to resize the widths of the columns in a JTable. At present two of my column headings do not fit and the names trail off with ... I would need to resize them when the program is running to see the full column header … Software Development java | |
Hey, for an assignment i am meant to write a function called delete as part of my ListLinked ADT, this is easy enough and here is my code: /** *deletes the element under w and places w over the next element *@param window w *@return the element under w *@exception … Software Development java | |
So I have stumbled across another problem. This time I'm using freeglut I have put the lib files, dll, and include files where they should go in visual studio. Made a project and linked the lib files in it but i still cant initialize glut using glutInit. Here's what I … Software Development c++ storage visual-studio | |
This is a text based solitaire game I wrote. It tested it on Ubuntu Linux and Windows and it worked okay for me. Move cards between rows using their row number (7 for the deck) Let me know what people think. Critiques welcome..... don't be too harsh ;) | |
Another day yet another assignment, which is why I am here. I come with 2 problems. 1. I cannot for the life of me figure out the printf function. I want to do be able to do this: Number Type Amount 1 type 2.00 2 type 12.00 Well right now, … Software Development java java-swing | |
Hi all, Alright I will try to be as descriptive as possible, so here is the deal. I am attempting to create a Huffman Encoding Tree. The input file is test.txt the characters of the file are read in and as each char is read in it is converted to … | |
[code] #!/usr/bin/perl $run_env = "test"; $parm_file = "wf_PBM_DHT_CS90_CH_Hist_Extract.parm"; $sys_id = "PWLP"; #div name based on the session's call $div = "WLD"; $CH_TYPE = "CS90CH"; #process name will be the process name in the trigger file $PROCESS_NAME = "CH_CS90"; #sys_name would map to the applicable Tier e.g. FAC=Facets, WGS=WGS, STR=STAR…. $sys_name … Software Development file-system open-source perl session unix | |
Need to calculate number of white pegs so I can write fitness function. It works sometimes and it doesn't work other times. I got the calculate number of black pegs to work. A black peg is correct position and color. A white peg is correct color wrong position. Colors are … Software Development c++ | |
Hi, I have the following code which deletes a row after confirmation. As I know a little bit with message boxes, I could not figure it out. Hence if I say 'Yes' or 'No' the selected row is deleted. Please fix the problem. [CODE]MsgBox("Do you really want to delete this … Software Development vb.net | |
I know I can accomplish this with Regex, however, being not familiar with RegEX (yet to find a good howto/reference), I was wondering if there's other simple ways to parce XML files, or if there's a tutorial for regex somewhere For example, I want to get the Hello World! from … | |
Hi everyone, I'm trying to write an image editor in Java, one of the functions is histogram equalisation, but my code is producing a greyscale image instead :( Here is my code, any help would be greatly appreciated, ta. [CODE] private void histEqMenuItemActionPerformed(java.awt.event.ActionEvent evt) { BufferedImage inputImage = getImage(); BufferedImage … |
The End.