64,152 Solved Topics
Remove Filter ![]() | |
Hi friends here is me with another issue i have practicing about file upload, my script working with images perfectly but if i choose mp3 audio file its not moving to the directory which i have specified in my code here is my code [CODE]<?php include ("header.html"); require ("config.php"); error_reporting(E_ALL); … | |
I'm a student just starting my first C# class in school, our first assignment was to make a simple console app to convert temperatures from Fahrenheit to Celsius. Being the over-achiever that I am, I decided to make a second project and create a form app. It's a very simple … | |
Dear All, I have the following code but I need to make the users add text to my (Combobox) drop down list. [ICODE]Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim userMsg As String userMsg = Microsoft.VisualBasic.InputBox("Enter New City", "New City", "", 500, 500) End … | |
I can't figure out what the error is. [CODE]public void quizTest () { c = new Console(); int total = 34; String[] quizArray = new String [total]; String quizQuestions; int i = 0; int u = 0; try { FileReader readQuestion = new FileReader ("QuizQuestions1.txt"); BufferedReader buffReadQuestion = new BufferedReader … | |
i dont know that my error is, my code for balance is not working properly and im having a problem with my if else statements, they say i lack this "{" but i dont know where to put it [CODE] { /** * @param args */ public static void main(String[] … | |
Hi sir pls help i have an error in line 13 .. and still i don't no where can i find this error... Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\login.php on line 13 [CODE]<?php $username = $_POST['username']; $password = $_POST['password']; if ($username&&$password) { $connect = … | |
Hi everyone! I'm currently designing a database for an inspection body that performs controls and inspections of wiring systems. The price for the inspection depends on the power of the wiring. I'm experiencing some problem in the design of the price list for the DB. The actual price list has … | |
When I run my code, and advance from level to level it works correctly, but when I would like to restart my program I cannot get the frame to reset. Here is my code [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Frame implements KeyListener{ GraphicsDevice vc; Player p … | |
Hi people, I need to change return type of a function. So function should return array values.In here, data type of the array values are not int,char or double. The data type of the array values are a kind of custom type. So confused. Please help:scared::idea::( [CODE] [COLOR="Red"]void [/COLOR]DataType_Class::insert_rowData_into_array() { … | |
Hello, fellow programmers. Today I encountered a problem getting the 2d array length. By this I mean How many x values are filled, that all the x's sub values are filled {y}. ex x-> 1, 2, 3 ,4, 5, 6 y 1, 1, 1 | 2, 2, 2 3, 3, … | |
Hi all I tried todo javac command on two classes (one after another) the problem is when I javac the first it gives me error ,because class of the second not already exist,the same happen when i javac the second ,class of the first also not already exist. how to … | |
I'm writing a small app to do automated testing of a console application. It needs to repeatedly run the app with various options and handle when the app being tested crashes. I started with system(), moved on to spawn() and have since been trying CreateProcess(). It doesn't lockup when the … | |
I've the following code for the two radio buttons but it isn't working i don't know why :S If 'On' is selected it displays 'ON is selected' and so on but it isn't working :S and i want one button to be selected at a time but when i run … | |
Hi there, I am very much interested in learning vb.net or programming. Can someone help me how I can go about and learn basic? Thanks' Fvere | |
I need to override the Close button an a C++/CLI Form application, allowing the user to cancel the close. This must have been asked a zillion times, but I can't find an example specific to C++/CLI Form applications. My Form class starts with: [code]namespace TR31Forms { using namespace System; using … | |
Hi, I'm totally new in using VB and I want your help. I need a sample code that has a (combobox) and an (add) button that makes the user clicks on the (add) button to add text to the (combobox). Thank you. | |
I am working on an OpenGL project in C using Xcode 3.2.6. It is a tutorial program and yet I am having problems with it. When I double-click Project.app, it opens for a quarter of a second then closes. The source is: [CODE]#import <Cocoa/Cocoa.h> #include <GLUT/GLUT.h> int main(int argc, char … | |
I have a base class and a derived class. The base class has an int called a that needs to be initialized. I want to create an instance of the derived class, so I call its constructor and pass it an int. I want that to call the base's constructor … | |
I'm trying to pass a list from a function to another using templates but get this error message: [QUOTE]/home/mattias/CodeBlocks/SpelBeta/src/player.cpp|64|undefined reference to `void Ground::bulletsCollition<Bullet>(std::list<Bullet, std::allocator<Bullet> >)'|[/QUOTE] Here is the code: [CODE] //In the function calling the template function (*blocks).bulletsCollition(player_bullets.getList()); //In header that the getList is declared #ifndef BULLETLIST_H #define BULLETLIST_H #include … | |
Hi all, I just need the array type of Person object. So it will be an array object. Please some help. [CODE] void SomeOtherFunction() { MyDataType ^Person = gcnew MyDataType(); // simple Person object (C++/CLI) } [/CODE] | |
I have a GDI component I use for creating graphical objects on my form. This component contains a Transformation_Matrix class. When I populate these matrix objects I have the ability to multiply them together to obtain a new transformation matrix. E.g. Transformation_Matrix matrix1, matrix2, matrix3 ... do stuff to populate … | |
Hi i am new to JSP. I am setting a boolean value for session attribute in the java class. Now i am getting the same in the jsp using session.getAttribute("session attribute") method. Now i want to remove the session value in jsp. How could i achieve this??? Plz Help.. | |
Its a simple problem... I placed the socket code under a button, if server is present it respond very quickly if not it takes time to respond.... I want to shorter that time , is there any way? | |
Just want to ask, how can i create a log file on vb.net, what libraries should i need for this to work,. thanks | |
Hi, This is my situation. I am entering a value in textbox and click the find button. In the button click i've written the following code, but it does not yield any result. Kindly help. [CODE] dbprovider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;" dbsource = "Data Source = D:\sprrg.mdb" con.ConnectionString = dbprovider & dbsource … | |
i tested the following code as my teacher told me but it wont do what i want it to [CODE] vector<GameObjects*> blockers; blockers.push_back(new Wall(pictures,i,j)); vector<GameObjects*>::iterator k = blockers.begin(); for(;k != blockers.end(); k++){ cout << typeid(**k).name() << endl; } [/CODE] what i want to get is "Class Wall" but i only … | |
Hello forum, Vaironl here. I have a small question, I'm making a new screen using the GridBagLayout, since my old screen was using absolute positioning. I'm using a JScrollPane and setting a subPanel in it. THe subPanel contains 40 labels saying Ingredient. For some reasong the Ingredient Scroller will take … | |
![]() | Hi all, I've been using ajax for a while and I've been storing my trivial php include files in the public directory tree. Then I thought, I really should be putting my classes and includes above the public document root (as I used to do before I started dabbling with … ![]() |
Hello, how to set label location in top middle at run time according to the text length. For example i have one panel control of size 316,162 and one label at top it displays the security que from the database like what is your pet's name? Or who is your … | |
I've search the forums here and found a few other people with the same problem I have, but I'm not sure I understand the solutions that have been presented. I have a simple geometry calculator I'm working on as C++ practice. My program displays a menu and asks for the … | |
Hey everyone, Sorry if it seems as if I have posted something similar to this but I don't believe I have had this error before..well not really an error but anyway..so I have a change password form and I process it using php. Well, it goes through the process of … | |
Hi gang, I've created an object array from a managed class. [CODE] array<MyDataType_Class^> ^Object = gcnew array <MyDataType_Class^> (3); Object[1] = gcnew MyDataType_Class; Object[1]->id = 1; Object[1]->surnmame = "Formen"; TextBox1->AppendText(ConvertToString(Object[1]->surname)); // Outputs "Formen" + [/CODE] The object works well and outputs expected results. However what i need is : [U]Calling … | |
Suppose you have a supermarket, and every item which belongs in that supermarket is stored in one place. Then you have sections of the supermarket like "Food & Cuisine", "Entertainment" and so on. The user of your program needs to be able to list every item within the supermarket, then … | |
Hi, I have a form where i can enter new product. In that same form i have listbox where i show the current product from the database. I want to know how to update that listbox as i enter new product into the database so that user can see the … | |
Hi, i'm doing a registration form and i have problems checking if the username exists in the database. [CODE] Imports MySql.Data.MySqlClient Public Class Admin_Reg Dim server As String = "Server=localhost;Database=escola_musica;Uid=root;Pwd=;" Dim con As New MySqlConnection Private Sub Admin_Reg_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load con.ConnectionString = server … | |
Hi, this is my first post, so any help or advicing is welcome. I have a form in which i want to show records from a database and create buttons for each record, the problem is that i need to point the buttons in diferent locations inside the form based … | |
Hi i'm making a function that will return make a series of strings and perform a function returning a value for each. I've stored the strings in one vector v, and the integer values in another v2. Then it is supposed to return the string that corresponds to the smallest … | |
i am new to VB.net. just want to check an id number in my textbox if its aldready existed in my database. this is my condition: if textbox1.text = ds.tables("employees").row(0).item("id") then msgbox("ID already exist") end if | |
I have a connection string for my SQL database connection called my.settings.GCRConnectionString which was created when I created my dataset for the application. I want to change the value of the connection string but it give me an error saying it is ready only. Is there a way to update … | |
I want my links to work under My works when JavaScript is disabled. If someone could lead me in the right direction it would greatly be appreciated. Thank You Here is the testing site: [URL="http://illcomputers.comyr.com/portfolio/"]http://illcomputers.comyr.com/portfolio/[/URL] JavaScript and Ajax: [CODE] <script type="text/javascript"> <!-- function show_div1() { document.getElementById('free').style.display = 'none'; document.getElementById('ill').style.display = … | |
Hi, I'm open to suggestions on the following project I'm trying to complete. I will post what I have currently done but I think that I'm limited in what I can do with the code as a form can only have 1 action. [B]Problem[/B] - I have a short questionnaire … | |
I am trying to compare two arrays of objects to verify that they have the same values. It is returning false when it should be returning true. Im not sure what I am doing wrong when comparing the two arrays. Class : arrayObject [CODE]import java.util.*; public class arrayObject { private … | |
I have seen some people talking about it and my question is... I have a program that opens a input and output stream, when the program gets the message '#end' it should terminate the program. Does it really matter if I close the in-and output streams and then close the … | |
Hi i am doing a student grade lab where the student enters a grade they got on a test and they get a letter grade. My program only gives the user a F even if it should be another grade. This is my code. [CODE]strT1 = JOptionPane.showInputDialog("Enter 1st test score:"); … | |
Hi, I am currently taking care of a website that goes back to 1997 and mostly all programmed with Asp 2.0 and vbscript, while i keep the pages in Asp 2.0 when i have to update them, this week i had to implement some new pages, and since we are … | |
Hi all! I have this code. Everything works fine except "setTimeout..." function. It's supposed to repeat this function every second (and change the age). Can someone, anyone, help me? Thanks a lot! [CODE]<script type="text/javascript"> function parseDate(input){ var parts = input.match(/(\d+)/g); return new Date(parts[0],parts[1]-1,parts[2],parts[3],parts[4]); } function calculate(){ var date = new … | |
the following program uses 2 arrays a & b of sizes m & n, both the arrays take values from user. third array is of size m+n. i hv to merge these two arrays into third one. but becoz of 1 error i m unable to do this. i hv … | |
Is there a library that's easy to setup and use with Visual Studio 2010 for AES encryption/decryption? I've been fiddling with CryptoPP and it's endless link errors and iterator_level_not_equal error messages for an hour now, so I think it's time to look for an installer or a new lib. Any … | |
Hello all, I am debugging a vb app for my company. I did NOT create this app. So far there is just one thing that has been bugging me, AxctlUSBHID.AxUSBHID. Heres the code and the error im getting for each section. There is only two errors. (1) [CODE]Private Sub InitializeComponent() … | |
Hi, I'm just wondering, why do we bother with function prototypes? Wouldn't it be better if we just defined the functions before the main function instead of having a function prototype and a function definition in separate areas? For example, instead of the following: [CODE] #include <iostream> using namespace std; … |
The End.