43,549 Solved Topics
Remove Filter ![]() | |
Good day, I am creating an application that can play sounds on my program i used the snippet of VB.net i am using this code to play some sounds My.Computer.Audio.Play(".wav") all i want is to random pictures and the sounds associated on that pictures will be played... I ma having … | |
Hi, I have this program that uses OLEDB connection to import excel file to data table then use it in other functions. Now I have this question: What are the possible limitations of OLEDB when it reads the Excel file. The File is on xls format, and I want to … Software Development microsoft-office vb.net | |
I am supposed to make a binary hash tree mix of code. I know what I am doing for the most part, but its been a while since I have done some serious C++ coding. The compiler is yelling at me because it doesn't like my last definition in my … Software Development c++ data-science data-structure | |
Hello, I have been working on a program that I got to work successfully, but when I transferred it to having only function calls in my main(), I started to get run errors telling me that something is being used without being initialized after I enter the second number. Basically … Software Development c++ | |
i'm learning python currently, coming from c++ and i realized that i can't do certain things like in C++ anyways, i created a class call Object_refs: [CODE] #attempt to make a structure like class using INIT #to define all common variables. class Object_refs: def __INIT__(self, descriptor_type, type, reference_count, flags): self.desctype … Software Development python | |
Hi everyone, I'm new at C (just started this week), and I'm reading tutorials on line without the help of a book or class. I was wondering if there are common practices most tutorials teach that really aren't good to get into. The tutorial I'm reading now says to use … Software Development c | |
Here's my scenario I do have many link labels in my form. What I want to happen is, when a user click on that link label, the name of that link label will be passed to a variable. Software Development vb.net | |
Hello, Im newbie at VB and i need help solving my issue please The code i used: [CODE] Dim SaveFile As New SaveFileDialog SaveFile.FileName = "" SaveFile.Filter = "Text Files (*.txt)|*.txt" SaveFile.Title = "Save" SaveFile.ShowDialog() Try Dim Write As New System.IO.StreamWriter(SaveFile.FileName) Write.Write(RichTextBox1.Text) Write.Close() Catch ex As Exception End Try[/CODE] The … Software Development vb.net | |
I want to be able to generate my own random numbers without using the random module. I want to do this that way I can learn somewhat how to do the big boy code on my own. Software Development python | |
I have an access database where one of the fields is named 'mod' and it contains string HEX codes such as AE093C, 00C394, 405FD0 etc. I am trying to use a data control to do a 'findfirst' on this field but I keep getting the error 3077 'syntax error (missing … Software Development visual-basic | |
Hi, I'm using Windows and Python 3. I'm having problems using [B]os.listdir[/B] with Unicode. Let's say I have a directory which contains files with Unicode file names. The name and path of the directory itself might or might not be Unicode. When it is Unicode, I can't seem to get … | |
I have a databound combobox and I need to get all of the ValueMember values from each item in the combobox. I'd prefer to not change the selected item in the combobox to do this, since each time the item in the combobox changes a few events are triggered that … Software Development | |
i am making a board-game in C# under .NET (i am new in this) now i am at the design stage in my game there are four resources - food, stone, gold & wood - that uses for gathering, buy stuff etc. like in a classic strategy game (age of … Software Development oop | |
I have seen similar questions which attempt to solve this issue, but none seem to work for me so far... Basically, for my first VB project, I am creating a virtual keyboard where a sound is played from the resources on KeyDown. So far, the program seems to work except … Software Development asp.net vb.net visual-basic | |
example i will enter timein: 1:30 timeout: 5:00 how to know their time difference?in timeformat or how to accept a timeformat input from the user Software Development java | |
I want to run an exe file in my project. I mean when I run my codes,a specific executable file run. How can I do that? Software Development java | |
[B][I]Hi I wanted to ask a quick question. I have two classes. And within my main class i am able to pass in variable to three variables EyeColorR to EyeColorB and able to send them the my Eye Class under the consturctor class Eye. the catch is I need to … Software Development java java-swing oop | |
Hi...I want to read from a file and put each line in...the given file is like that : q0,q1,q2; a,b; q0; 7; q0,a,q0; q0,b,q1; . . . . (as you see it's the information of a nfa) Each line ends with ";" and each element of array is separated with … Software Development java | |
hi friends. Im currently working in integrating GR Fingerprint SDK with vb.net application. I am using MSSQL 2008 as my database and vb.net as the front end. I have completed almost 90% of the application and im stuck in integrating this SDK with my application. It has an error such … | |
i tried to customize the column name because the column name in my datagridview comes directly from the table column name, which is kindda odd. i browse throught this forum and other forums on howto's but i get this wierd error. [CODE] Dim dgTS As New DataGridTableStyle Dim ColStyle As … Software Development vb.net | |
int main(){ int near * ptr=( int *)0XFFFF; ptr++; ptr++; printf(“%p”,ptr); return 0; } Output:0003 why the op is 3 and how to convert 0XFFFF into its decimal equivalent? Software Development c | |
Writing my second program for a class. It requires the following: [COLOR="Green"]Create a non-GUI-based Java application that calculates the payroll for a department in an organization. [COLOR="Green"]The application should display text that requests the user input for the name of the department, the number of employees in the department, and … | |
![]() | Alright, I have a Form with a Media Player in it. Which plays a Song. [CODE]AxWindowsMediaPlayer1.URL = My.Computer.FileSystem.CurrentDirectory & "\Music.mp3" AxWindowsMediaPlayer1.Ctlcontrols.play() AxWindowsMediaPlayer1.settings.playCount = 999 Me.Opacity = 0 [/CODE] It's playing in the background since the Form is hidden. When I play it [B]in[/B] Debug, everything works fine. When I run … Software Development vb.net visual-basic ![]() |
I'm creating a program by using the generic array that allow user to define the capacity or use the default capacity. I'm running some problems with casting and methods is not exist errors when I tried to store the data into array. Here is my constructor and methods class: [CODE] … Software Development java | |
Hi everybody, I am currently learning c++, and i would like to know more about java. As you know, c++ has no built-in functions to build GUI apps, does java have built-in functions to build gui apps ? Or we need 3rd party libraries ? Thanks | |
I have a node class that has a Node* parentNode atribute. My constructor is as follows: [CODE]Node::Node(Node* p,const State& s, int d) : parentNode(p), currentState(s), depth(d){ }[/CODE] BUT with this constructor I get a problem: I'm using this class to run a AI Search and at depth 3 it generates … Software Development c++ | |
Hello, I am trying to validate that the user has entered data into the JTextField to be saved to a text file. My method is: Data saved to Text File Data loaded into an array upon execution Data saved to array, then written to Text File. My addProperty Method: [CODE] … Software Development java | |
[CODE] class Matrix { public: int M; int N; double *ptr; Matrix(int m,int n)//constructor takes two ints { M = m; N = n; ptr = new double[M][N]; assign(M,N);//call function } void assign(int M,int N)// method { for(int i = 0; i < M;i++)// i is a row { for … Software Development c++ | |
I'm working on a school project, beginner stuff. I need to output the data with 2 decimals. I've tried several variations of [CODE] printf("%4.2f" + variable) [/CODE] But it seems when I use more than one variable it craps out or wont compile. Thoughts? [CODE] public class Conference4 { public … Software Development java | |
Hi, lets say i have [CODE]class Players{ public: vector <strings> info };[/CODE] and class that inherits from it [CODE]class son:public Players{ };[/CODE] now in the main function i make 2 of those so now i have 2 vectors in memory that vector holds the same data for all of the … Software Development c++ | |
Hi!!! I'm trying to pass 2d array to function and i can't. In general i'm trying to print chess board in action. The board is an integer.I need a function that gets 2d array in specific place and returns correlatedm char. const int pawn = 1; const int rook = … Software Development c | |
So here is something i am trying to do: 1.Store a mathematical expression eg. 23*32+12 in the String datatype. 2.Now i have to calculate the value of that expression. So i thought of converting the string to integer using parseInt , but for this the string need not contain *,+ … Software Development java | |
I want to make my program sleep for 30 miutes or 1 hour . I can do that by using Thread.sleep() but is there any alternate way? Software Development java | |
Hi, I'm a beginner to C++ and am having some trouble with my list. I first define a struct named "bullet' like so: [code=c++]struct bullet { bool alive; bullet() alive = true; };[/code] Then, I create a list of objects of type "bullet": [icode]list<bullet> bullet_list;[/icode] In my program, I frequently … Software Development c++ | |
Hi,I want to write a program that calculate the increment and new salary of employee based on the average of three evaluation points.(using pass by reference/pass by value). I've done the coding but the output is wrong. I think there's a mistake on the call function. #include<stdio.h> float get_increment(float *a); … Software Development c | |
I am new in programming. I have this problem in coding. i somehow have the idea but i could not simply do it in codes. can anyone add to complete my program. The problem is I enter 10 numbers and i need to sort them ascendingly. #include<iostream> using namespace std; … Software Development c++ | |
What i'm trying to do is use a loop that prompts the user to re-enter a new string of numbers if what he previously entered is not within the specified range of 1-16. What I have is not working as expected. What am I doing wrong? [CODE] /* Program assignment … Software Development c | |
can someone explain to me how to convert for example g = h + A[i] into an LC-2200 assembler????? Software Development assembly | |
I use Visual Studio 2010 Ultimate. After fixing one of my problems, I ran into another. I have 2 files in my project named, let's say, A and B. The problem is when I try to run the code from B, VS outputs code from A. Any ideas on how … Software Development c++ visual-studio | |
Hello, everyone! I made an account on this website because I'm having trouble with a particular program. I'm supposed to be writing a Polynomial class with a linked list to hold coefficients and an integer for the degree. I keep getting a fatal error LNK1561, though, and I don't know … Software Development c++ linked-list | |
I think I have the logic mostly down for this part of the program. However, I am using an implementation of a header file, and in [B]BST::Insert[/B] I am handed a [B]const std::string &v[/B]. For all I know, it is doing the right job passing it off to [B]InserRecursive[/B], but … Software Development c++ | |
Hello forum, Vaironl here. I have a little problem, in a fairly big piece of code. I'm making a recipe application, which is working fine, but there is one minor error. If I minimize the screen and restore it, some of the components inside it are somehow re sizing of … Software Development java java-swing | |
Sir, I need a java program (ie), if we mark a part of an image, the portion with same intensity in that image should also be segmented and saved separately .. Thanks in advance.. ![]() | |
Hi, im new to all this programming stuff and i am a total novice, so please treat me as such. By this friday (27th), i need to program a user interface for a driving simulator, including a picture box(or similar) with images to show basic direction or something, a gas, … Software Development c# user-interface | |
If I go to [url]http://localhost/somefolder/somepicture.bmp[/url] I cant see if in my navigator. Now If I go to C:/somefolder/somepicture.bmp It works perfectly. This is completely driving me crazy. I really have no other methods that I could try to get this to work. Ask questions and Ill try to give answers..... … | |
Java: I have a bunch of stuff drawn to the blank space of a JApplet app. I need to add a JButton at a specific location. I don't know how. What's the easiest way to do this? Software Development java | |
i have 1 listbox that contain : cloth, jeans, bra (directly from database) and 1 disabled textbox. The purpose is, when user click cloth or jeans or bra in listbox, textbox should show the price automatically, how can i do that?? this is my code to add item in list … Software Development vb.net | |
[QUOTE]I was given this project as a part of my school assignment, please note that I have very limited knowledge of the language, and my teacher won't allow using anything other than what is used in the following code (Crappy 12th grade curriculum:yawn:)... Here is my complete code, its in … | |
Hello guys, I am stuck again with a new problem. I need help with 3 things: 1. Timer 2. State Pattern 3. Disabling the button on JFrame lets go with the easiest one in the list, the Disabling of button one. I have an app with buttons, and I need … Software Development java java-swing | |
I'm trying to right a statement that depends on 2 JButtons not being enabled I know how to tell if they are enabled like this [CODE] if(myJButton.isEnabled()) { } [/CODE] But is their also a simple way to check if a JButton is not Enabled Software Development java |
The End.