199,114 Archived Topics
Remove Filter ![]() | |
I have had a look at some javascript functions in the form: [QUOTE] $('#css-style-definition').click(function() var newText = $('#console-msgs').html(); [/QUOTE] Does anyone recognise the syntax? Where can I get information on what is happening here? | |
[code] #include <iostream> #include<math.h> using namespace std; class Vect3D { friend Vect3D& operator*(double, const Vect3D&) ; friend ostream& operator<<(ostream&, const Vect3D&); public: Vect3D(); Vect3D(double, double, double); const double& operator[](int i) const; double& operator[](int i); Vect3D& operator+(const Vect3D&) const; Vect3D& operator+=(const Vect3D&); Vect3D& operator*=(double); Vect3D& operator*(double) const; bool operator==(const Vect3D&) const; … | |
I have put a background picture in a panel and now i want to drag and drop bitmap images on it.how do i accomplish that? | |
I want to delete a directory through python and the cmd window but i want it to open the command do the rd and then close and continue on with the program with out me having to type RD /s folderName | |
In goal settings for Google Analytics, the goal page is this: [url]http://www.mydomain.com/Gallery.aspx?sbmid=745&new=true[/url] But I believe I need to use Regex, because the 745 will always vary, but the rest is the same. Any thoughts? | |
When I try to run the game it freezes and I get an error. the Code: [code] bif = "bg.jpg" mif = "ball.png" import pygame, sys from pygame.locals import * pygame.init() screen = pygame.display.set_mode((800, 600), 0, 32) background = pygame.image.load(bif).covert() mouse_c = pygame.image.load(mif).covert_alpha() while True: for event in pygame.event.get(): if … | |
acees 2007 vb 2005 error: "Syntax error in insert into statement" [code] m_ColourCount = m_ColourCount + 1 Dim drNewRow As DataRow = m_ColourDataTable.NewRow() drNewRow("CID") = m_ColourCount drNewRow("ID") = m_CustomerCount drNewRow("Colour Name") = txtColourName.Text.Trim m_ColourDataTable.Rows.Add(drNewRow) m_ColourDataAdapter.Update(m_ColourDataTable) [/code] | |
Hi im a new visual c++ programmer... i have a program with Form1 and Form2. When i click on a Form1's button Form2 shows and then Form1 hides. But i want to know how can i make Form1 show again when Form2 enters the event Closing. Thanks!! Also how can … | |
Ok, I guess wasn't as specific as I needed to be. Here is essentially what I need. I have two separate tables application_status and application_status log. Within the application status table there is the application_status_id and the application_status_description. The application_status_log table holds information on applications and the connecting factor between … | |
Hi, I have Image.js and Main.js files. I create image object like test = new Image(...); and it can be seen on screen but when i try to do call Move method like test.Move(x,y); it crashes. Is there anyway to do that? My code : main.js: [code=JavaScript]var objBall = new … | |
I need to serialize items populated in a listview. Can anyone provide me with some simple example how to do that. No matter if it is binary or XML. | |
![]() | Is there any way to tell if a shape collides with another shape im trying to make a simple game to test things. Im drawing circles with fillpie. |
Hai,.. Can anyone help me in creating a cascading menu of below kind,.. ![]() | |
I'm trying to Post to a site using WebClient in C# but it doesn't seem to Post the values at all I try posting two strings to a testform that I have set up on my localhost. In the PostBack of the page I update a label to say "Login … | |
Please explain me how to display a text line in a customer display which is connected to COM1 using VB6 (With sample VB codes) | |
I have a problem with a piece of code where I ask the user to type in a filename and then I need to store the number contents of the file in an array, and then use whats in the array to find the sum of the numbers, the biggest, … | |
Hello, I'm trying to simply do a SELECT from an ODBC source. It works perfectly in PHP but not in perl ! Therefore there is no problem at source or at ODBC level, it seems to reside at perl/DBI level... What I do : [CODE] use DBI; $dbh = DBI->connect('dbi:ODBC:' … | |
I'm having problems updating a multimap. I need to change the key value. I have found various examples but none seem to work. Any help gratefully received. Below a simplified map test bit of code. I had hoped the line between the commented asterisks would do the trick but seems … | |
i'm trying to execute a program from my php. I want to execute it and pass it a variable, i've tried using exec($cmd, $op) but the array of $op doesn't have the output within it (or anything else). Should i be using a different function to get this working? any … | |
I have to do this in 3 hours. I know it calls for a good loud laugh , but i am a newbie. Question is I have to browse and upload images in the design part of sample.aspx page and in the code behind before uploading(inserting) into the sql table … | |
I am creating a program which performs statistical analysis of an array. So far i have got an enter array, that gives the min, max and median values and sorts the array. I have not been able to work out the mode. I have been able to find the mode … | |
Ive made an icon library for my program, so that I dont have my program depend on Windows for icons. I want to know how I can have my program use the icons from that dll file instead of from individual icons that I have in the program directory. | |
I have a bunch of alphanumeric IDs for the data in my DB. The IDs may look like the foll: 0XAA001 or 1YBB010 or 2ZCC011 and so on. Each of the 7 characters stands for something and therefore I have to extract the characters to populate the columns in the … | |
Ive got a class which i want to use within a c# windows application, It sounds really simple but where do i put the code which creates the class object and the code that uses the class? Ive tried it in most parts of the code but after creating the … | |
We are going to submit our C++ project on a game, which resembles Classic VideoGame game "Battle Rush", by next week, but we don't know much more about how to make artificial intelligence of the enemy tanks. So do you have any idea that how to update and move those … | |
Hi, I have created logout.php page which destroys all the session variables. Basically i want the the user to get directed to the Login page after logout button is pressed. But when the BACK button of the browser is pressed(even after logout), the user is still able to see other … | |
Hey guys. I have a program that does a SQL query and parses the info into a text file. The problem is it misses the first row every time it loops. I know the root cause here is my double use of the read function. I'm hoping to gain some … | |
I'm a newbie to c++, and as I'm reading my textbook, I'm applying different rules to this program for converting gallons to liters and vice versa, My question is how can I check that the user input is numeric and not a string of characters? I've tried several things with … | |
My application need's to read a certain row on excel document.Anyone can help with C# code for reading excel doc. | |
Can anyone help me out with this? SalesPerson Name Age PercentOfQuota Salary Abel 24 63 120,000 Baker 56 38 42,000 Jones 34 26 36,000 Murphy 64 42 50,000 Zenith 45 59 118,000 Kobad 43 27 36,000 Order Number CustName SalespersonName Amount 100 Abernathy Construction Zenith 560 200 Abernathy Construction … | |
Hi I have the following block of code copied from a previous project and it throws a null exception. This is because the value of HttpContext.Current is set to null and it therefore cannot return HttpContext.Current.Application. Can someone help me work out why this value is null? [CODE=C#] private static … | |
Hi everyone, I am making a windows application in which I want that when user presses enter key while textBox1 has focus then an event is generated. I tried using following but it doesn't workout:- private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.GetHashCode() == Keys.Enter.GetHashCode()) MessageBox.Show("Enter key has been … | |
Hi, I am new to java...I want to know how to run a .jsp file using TOMCAT server please help me. | |
I'd like to know if it is possible to save or create an image made up of other images. The easiest way I can think of would be to have all the images as transparent pngs of the same height and width and then merge them together. Is it possible … | |
Hello , My program works fine but I still have one error that appears and I would like to fix it. It is complaining about [code] srand( time(0) ); [/code] with the following error: .cpp(25) : warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data … | |
Hello I have an array in a function that I am trying to copy into a private array named pic_links although I am getting an error, it wont let me copy the array into another array. Do you know why? :) Error message: [QUOTE] no matching function for call to … | |
Hi every one :) Well I wrote this code for deleting the pointers, and it compiles and runs. But at the end of the run it comes up with an Debug Assertion failed. WHY??? [CODE]#include <iostream> using namespace std; int main() { bool boolVar = true; int intVar = 50; … | |
I have a PHP form with a html section at the bottom. There are 14 input text fields on the form and I want the form to send of the email as it should do and also take the name field, pass it to the following web page and display … | |
I am trying to populate an MS Access table using VB.Net through a connection string everything else seems to work except when I try to add a new row. I get this error: OleDbException was unhandled Syntax error in INSERT INTO statement Here is the code [code=vbnet] [Dim MaxRows As … | |
Hello, Anyone can send me c++ program for Testing LED Blinking which is attached in serial port. It will be simple ON or OFF Program. Actually I want to send data through the serial port (com1/com2 port). But at first i would like to test by using LED. Thanks in … | |
Feeling a little bad, two questions from you guys in a week! So I am about to embark on a project including Point of Sale, Inventory Management, Client management, (quite in depth). The difference is any information regarding Clients will be stored locally throughout the day and then uploaded to … | |
Hey everyone, Just seeking opinions as to whether or not you think it's wise to tackle learning more than one programming language simultaneously (eg..PHP and Action script 3.0). Ive noticed that languages have similarities which could lessen the learning curve for the ones you learn after the initial one. On … | |
I would like to add a column to an existing table, where the new column would only have running numbers starting from 1. If I've understood correctly, the "create index" command is not the right way to do this, as that's attached to just certain columns to speed up querying. … | |
[CODE] void highscore1() { ifstream readfile; int score; readfile.open("highscore1.txt"); while(readfile >> score) { score += 1; ofstream writescore; writescore.open("highscore1.txt"); writescore << score; writescore.close(); } readfile.close(); cout << endl; game(); } [/CODE] how to i read from the text file, highscore1.txt and do a +1 to the integer inside the textfile … | |
![]() | please teach me how to play music by using dev c++.please... ![]() |
I'm trying to serve static content from a cookieless subdomain s.mydomain.org.uk, so that image/css requests from pages at [url]www.mydomain.org.uk[/url] don't get sent with needless cookie data. The trouble is that Google Analytics insists on adding its cookies (_utma, _utmz) to those requests anyway! My code is: [CODE]<script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script> <script … | |
This program is meant to read in strings, calculate the average word length then printout all the strings that are greater than the average. My issue is with the function in red, i'm not sure how to call it or make it work, it doesnt like the strlen parameter nor … | |
I'm using Programming: Practice and Principles Using C++ and I've hit a roadblock. Chapters 12-16 cover GUI programming and require the use of the Fast Light Toolkit. Here is what I've done so far. If you need more information I'd be happy to provide. 1. Using Dev-C++'s "Check for Updates … | |
//Make an interactive program that will ask for hourly rate of the employee and the number of hours worked in a day. As DOLE mandates, more than 8 hours of work a day is considered OT (overtime) so the wage will be 1.5 * hourly rate after the 8 hours … |
The End.