43,549 Solved Topics
Remove Filter ![]() | |
Hi all, I want to grab frames from video. (I want multiple frames from a video) using Java. I have tried with the code that is there on sun site. but it doesn't work(as it is for grabbing frames from web cam). If any body knows then reply asap. Thanks … | |
I am trying to make a report which gets its data from a windows form's textboxes. My code works fine but upon display of the report, a window always appear asking to enter parameter values. How can I bypass or remove this window? Here is my code: [code] Dim report … Software Development vb.net | |
Hi, I have a weely report which contain of 2 text box. EmpNo.txt and Position.txt. I need to get the data from my access database when the form is loaded. Before go to the weekly report form the system will check the loginID and password. The empno and position data … Software Development visual-basic | |
Hi i'm using a table adapter.insert() method to add new data to my table and i need to get hold of the id of the inserted row. I've read around and seen that the most popular way to do this is with SELECT @@IDENTITY as Value but im not sure … Software Development | |
I'm trying to move functions that I have created in my .h files into the .cpp files of my winForm application. I don't really know how to get this to work. Example code in .h: [CODE]void loadCustomerDetails() { SQLiteConnection^ ObjConnection = gcnew SQLiteConnection("Data Source=SwiftService.db3;"); SQLiteCommand^ ObjCommand = gcnew SQLiteCommand("SELECT * … Software Development c++ dataset file-system | |
Hello! This is my first time attempting to get help but, alas, I'm desperate! I have been working on this program for a class (and it's due at midnight). I can't seem to grasp moving data in and out of arrays using nested for loops. it's a matter of entering … Software Development c++ | |
Here's my situation. Let's say I would like to create a thread that continually prints the number 1. When a button is clicked the value should then change to 2. My issue is that I'm unsure how I change a variable in an already running thread. Here's my code: [CODE] … Software Development python | |
Hello, I really could use some help with this hangman program. I have searched all over the internet to find an answer that i can understand. I'm a beginner at C++ programming. This program prompts the user to enter a phrase. then you guess letters. if a letter is wrong … Software Development c++ | |
these are the classes that i am going to add to my jar file: TestRegform, LogIn, LogIn$AccountInfo, and regForm. I have manifest.txt that contains: Main-Class: TestRegform (new line) then I typed this in the command line: D:\Project>jar cvfm Registration.jar manifest.txt *.class then, these came out: added manifest adding: LogIn$AccountInfo.class(in = … Software Development java | |
Hi all, I am in my first Java class at the local community college but my class is online and my teacher takes DAYS to respond via email. I need some help with my homework and thought I would try here. I'm not looking for someone to give me the … Software Development java | |
Hi I have never used vedctors before so I am just wondering if this is correct or not. If not, would you mind showing me the correct way to use it? [CODE]cout << fixed << setprecision( 2 ); vector < Employee * > employees( 4 ); employees[ 0 ] = … Software Development c++ | |
Hey everyone, I currently am creating a Card shuffling program in C++, Ive taken care of the shuffling of the deck. Now I just need to distribute a hand of 5 cards, and determine hands. Can anyone help? Please! cardheader.h ( includes both Class Card & Deck ) [CODE] #ifndef … | |
Hi, thanks for helping. All this code does is remove the checked items. I want to remove it from one listview box and transfer it to another. Is that possible? [CODE]Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click With ListView1 If .CheckedItems.Count > 0 Then For … | |
Hey all, I'm writing a program that is an address book using an AVL Node structure (which was provided). I defined the [I]contact[/I] class as the ItemType of the data to be inserted in each node. Initially I encountered a Segmentation fault that occured during the assignment from the AVLClass … Software Development c++ data-structure | |
I have the following segment inside my XSLT transform: [CODE] <property name="Value"><xsl:value-of select="for $index in ...[/CODE] msxsl.exe produces the following error: [I]Code: 0x80004005 Expected token 'EOF' found '$'. for -->$<--index in ...[/I] Is this a syntax error? The code before the shown segment seems to be fine. What am I … Software Development xml | |
Im not sure what Ive done wrong but I'm trying to display my array but the program keeps ending so I cant see if its actually working. Im sure its a little mistake - Any help or suggestions will be appreciated. [CODE] # include <stdio.h> # define MAX 100 int … Software Development c | |
I want to have a template function like this: [code] template <class T> void CreateBlankPatch(typename T::Pointer patch, unsigned int sideLength) { CreateConstantPatch(patch, typename T::PixelType::Zero(), sideLength); } [/code] It works fine as long as Zero() is defined for the class T. However, with POD types, this is clearly not the case. … Software Development c++ | |
Hi, first post on the site and I hope I'll explain this properly: I'm tasked with creating a TicTacToe Applet using a JButton array. What I can't figure out is the problem I'm having with either setText or getSource (last bit of code). Can someone point out what I've done … Software Development java java-swing | |
Hi All I was hoping for some advice based on the pool of experience here at Daniweb. I've been teaching myself to program in Python and I'm starting to get the hang of it, now I'm able to write small programs to automate administrative tasks as well as some complex … Software Development python web-design | |
set v1=%e:\file1\file0% set v2=%c:\file1\file0% set v3=%d:\file3\file4% cd %v1% and do something cd %v2% and do something cd %v3% and do something I just want to set a variable = path and cd to it later, since I have multiple pathes, i would like to cd to diff variables instead of … Software Development shell-scripting | |
am so confused...wen you use save dialog....you only get the dialog and wen i say save, it saves....my problem is, wen you go back to the folder to check the file saved....nothin is there....i want to know how you can save a file to a certain folder and wen saved … Software Development | |
Hi, I am loading in a dictionary text file of English words, but I am not supposed to load any words if they contain an apostrophe. I am loading them in as strings, and I cannot figure out how not to load the string if it contains an apostrophe. Here … Software Development c++ | |
I am making a list box with two input numbers, Run button, Clear button and Increment/Decrement button. What i'm trying to get it to do is the user inputs a number into textbox1 and a number into textbox2, then clicks run. The numbers then display in ascending or descending order … Software Development | |
someone told me that i should stick with method #2, interested in getting feedback here. form2 has an id that form1 passes in order to load information from. method #1 has a public integer that form 1 passes to form 2 [CODE] class form1 private sub button1_click form2.id = 1 … Software Development vb.net | |
i cant break out of this loop its driving me crazzy!! [CODE] while (1) { printf("please type in the path for the file you want to archive\n"); scanf("%s",&original_file); open_pointer = fopen( original_file, "rb"); original_pointer = fopen(original_file,"rb"); copy_pointer = fopen( archive_name,"ab"); if (copy_pointer NULL) { printf("\n copied successfull"); puts("\nenter x to … Software Development c | |
I've got this header and cpp.And I would like to insert this operator overloading to this .h and .cpp file. but I always got errors. Operator OVERLOADING : [CODE]istream& operator>>(istream& in, Focista& jatekos) { cout << "Add meg a focista tulajdonsagait. " << endl; cout << "Nev: " << endl; … Software Development c++ | |
[CODE]//I have a problem with my program, // the function rank to find rank of a matrix //cannot return the result //somebody help me to correct it! #include<iostream.h> #include<math.h> #include<iomanip.h> class matrix { int n,m; double A[6][6]; public: //..... friend int rank(matrix); }; int rank(matrix B) { int i, j, … Software Development c++ | |
[CODE]#include <iostream> using namespace std; const char* foo() { return "Hello"; } const char* bar() { const char* s = "world"; return s; } void print(const char* s) { cout << s << endl; } int main () { cout << foo() << endl; print(bar()); return 0; }[/CODE] Can I … | |
Hi, I want to put color piker in a form. Does visual studio 2008 provide such a tool or does any one know how to put a color piker. Please help me. Thanks Software Development visual-studio | |
![]() | Hello, I am new to C and not really sure how to do this. This program extracts and prints the rightmost digit of the integer portion of a float, and I need to convert it but I'm not sure how. [CODE]#include <stdio.h> void main (void) { float num; int rightdigit; … Software Development c |
Hi, I have write a method to save amounts, the method has 1 argument which is where the amounts returned by a toString should be saved as text. I have no idea what to do and my searching on google or text books has been not helpful :( [CODE]public void … Software Development java | |
Hi, I need to download URL's to a file using C++ code. Does anyone know of a library, compatible with Windows, that will do this? I know about CURL, but after spending days trying to configure LibCurl using Cygwin I'm ready to give up. A friend has been able to … Software Development c++ file-system | |
What's wrong with the program? It went wrong when i print the numbers in the lists. After i prints the last number, it didn't stop, and the program went into wrong memory. Eager for your answer: [CODE] #include <stdio.h> #include <malloc.h> #define NULL 0 typedef int ELEMNT_TYPE; typedef struct node … Software Development c | |
I'm using VB.net 2008... Within the program, there is a button that opens a file inside of a second form ([ICODE]DocViewFrm[/ICODE]) and it works fine the first time around. Within this new window, there is a button that uses [ICODE]Me.Close()[/ICODE] to close the window and return to the main window. … Software Development vb.net | |
I cant solve this assignent. I hope a helpfull soul can help me out. The problems goes like this: Write a program that ask the user to enter the number of seconds as an integer value(use type long) and that then displays the equivalent time in days, hours, minutes and … Software Development c++ | |
Okay. So I'm writing this snakes and ladders game, and I want to be able to save the scores, but the try/except method seems to be giving me trouble. I feel like it has something to do with the fact that I'm not writing, just reading. But I'm not sure … Software Development python | |
My program runs a three dimensional maze (3x3x3 = 27 locations) it has a start room exit room and code room all in a loop so no two are the same location, the start and exit rooms show up on the run compiled program but the code room does not … Software Development c++ | |
Hi I need to have an array in my program that is defined by the user. I just need the user to enter the size of the array and then enter the integer values that they want to store in the array. I know how to declare the array myself, … Software Development c | |
I am trying to read in names and telephone numbers from a text file using fscanf. The format of the data is: 9073234 Colwer, Mrs J. 3823823 Le Boeuf, Mr S. To do this I am using the following line: fscanf(fpp,"%d %s %[^\n]s",&a,surnames[i],firstnames[i]); This works except for "Le Boeuf" where … Software Development c | |
I am learning C++ and having a problem with adding numbers in a [10][10] array. It reads the data from a file. I have the array set up and I have to add the numbers diagonally left and right. I have to add prj6[0][0] then prj6[1][1] then[2][2] and so forth. … Software Development c++ | |
after compiling it this errors came out, what do u think is the possible solution for this? thanks! Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 9 at accountinfo.<init>(Main.java:73) at accountinfo.main(Main.java:142) [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; class accountinfo implements ActionListener { private JFrame f3; private JButton jLogout; private JPanel … Software Development java java-swing | |
I have to create a program that requires the user to enter the zip code. The zip code must be 5 digits. I know how to do that using if statement and string.length(). What I don't know how to do is how to make sure the program only inputs and … Software Development c++ | |
I'd like to control menus on a apps created by myself. Apps A.exe: Windows Form apps (C#) It has menus Menu1-MenuItem1(MenuItem of Menu1) MenuItem1 calls a EventHandler that shows a message box Apps B.exe: Windows Form apps (C#) It has a button If I click the button, I'd like to … Software Development | |
Hello, I'd like to set multiple InputScopes to one text box in a Windows Form with using C#. This application will be used in TabletPC. I found SetInputScopes API. But I'm not good at C#, so I don't have any idea how to program it in C#. Could anyone please … Software Development api c# visual-studio windows-api | |
Hi, I'm trying to create a piece of code which joins a line that matches a string, and the next succeeding line (no matter what this line contains). I'm getting confused at what Regular Expression (RE) to use. So far I have: [CODE] input1 = open("out.txt","r") output1 = open("outp.txt","w") with … | |
A program I'm trying to compile is simply not working right. I have everything defined the way it should with all the right #include statements there. However, anytime I try to compile with g++, it tells me the functions are undefined. Really, I should not be getting this error. I … | |
I need to output the results from a .dat file then have it read in data and assign a new * for every 2% each record equals. It is meant to appear as this: 0 10 20 30 40 50 60 70 80 90 100 | | | | | … Software Development c# | |
I am trying to create a queue class and then allow the user to input integers at the back of the queue and take them from the front. This is what I have so far, it runs but will not output the size of the queue correctly. Any help would … | |
Hello, I'm new here, so I hope I'll ask my question correctly. I have an assignment to create a "text-based cosmic adventure" and all went well until now. My project is separated into several header and implementation files. Problem arises only when I include certain file in another header file. … Software Development c++ | |
When i drag and drop a file into my form it should give: textBox1.text = the file name (i dont have it, i need it can you help me get it) textBox2.text = file location (already know how to acquire it from a drag/drop) I want the actual file name, … Software Development |
The End.