64,152 Solved Topics
Remove Filter ![]() | |
Hi all, I've spent the last week trying to sort this out, and the more I delve into it, the more confused I'm getting. I've done some background research (searched on google and here for sort function issues) and really I can't make head or tail of what's going on. … | |
Hey guys, Im making an uno card game and I think so far so good, however once I compile it, my program doesnt read any errors, but a box pops up stating "vector subscript out of range" and it is confusing me a lot. I think I can identify where … | |
I'm trying to a open a connection to a local database and no matter what I try it just won't work (I'm pretty new to SQL Server and VB for that matter) I tried using 'sqlconnection' with different connection strings but none of them worked or gave me any useful … | |
My program keeps crashing and I can't see why...pretty sure its something to do with creating matrix B since when I remove the commands to create matrix B it runs ok. Can anyone see what is wrong? Thanks in advance! I have the header file: [code=php] // matrixlib.h - A … | |
I recently bought a nice shiney new laptop with widescreen 1080p. The problem is now when I compile the application and it is run on a non-widescreen monitor it displays incorrectly. In particular the controls that are anchored to the right and bottom are displayed too far off to the … | |
Hi all I am using sqldatareader to read data from sqldatabase. The data is being shown on web forms with tabcontainer and tabs. The scenario is I have three rows of data for a client.I want to read row by row data on a button click event.I used while loop … | |
Hi, I would like to read data from an .asc file with a six-line file header. I just want the data without the header. I'd like to start at the 7th line and go until the end collecting the data into a single list. Each different data file I'm looping … | |
I have been working on converting this C/C++ Program as an assignment for my x86 assembly class, and for the love of anything good I can't figure out what is wrong. It doesn't have a problem when assembling or linking, but when I run it, it gives me: CS:0576 IP: … | |
This is a program that is meant to be a dice game with the computer, and this is what I have so far. I'm trying to make sure that I'm doing it right but I can't compile it to check because of a syntax error near the end of the … | |
![]() | Hello, im trying to use a function inside another function and getting an error: The function: [CODE]# Function that recieves number of characters and calculate cost of advertising def costAd(numChar): if numChar >= 15: cost = 35.00 else: cost = 35.00 + ((numChar - 15) * 3.55) return cost costAd()[/CODE] … ![]() |
hi any one try to tell me,, i created a button control ,, by double clicking only the process was going on,,when iam single click the button nothing is to be happenend,,so i want to change into single click insted of double click........ here my coding is given below....... [code] … | |
Hi I have two tables called client and booking, the primary key in client table is clientID which is autoincress number and it’s a primary key, in the second table (booking) the primary key is bookingID and its autoincress number and the clientID is foren key. I have a questions: … | |
Sorry guys, I know it is not C++ specific, but Wikipedia confused me. I have devoted a little time to look at programing tools and little on their innner workings. This term have boggled my mind. So any explanation on what this animal is? Thanks | |
Hi, What I'm trying to do is to write a script which would open an application only in process list. Meaning it would be "hidden". I don't even know if its possible in python. If not, there has to be a function would allow for a program to be opened … | |
Hey, I'm a student with rudimentry knoledge of VB6 and I've a college project where I have to develop a blackjack game. Unfortuanately I've a problem with the method I call the cards I was wondering if any of you would be able to shed some light on the problem. … | |
Hi, I recently created a website with a spry dropdown navigation bar. On preview from Dreamweaver CS4, in Firefox, IE, Opera, Chrome, all elements work properly and the dropdown menus work as well. However, when I upload it to my server at the domain [url]http://www.kcsslibrary.com[/url], the dropdown menus do not … | |
Does anyone know how to use httpcontext.response.transmitfile or any other httpcontext function to download a file from a network drive instead of local drive? When I tried to use context.Response.TransmitFile(DownloadPath) to download files, the DownloadPath has to be local drive. If it's a network drive, the download failed. Thanks in … | |
I have a text file that contains Road Name types paired with their abbreviated form. For example: ... Avenue,Av Road,Rd South East,SE Terrace,Tce ... How do I a create a dictionary variable from this CSV file in python 2.5.1 so I can get it in this form? {...'Avenue': 'Av', 'Road': … | |
Hi all, I have 4 tables that all have a foreign key of dev_id. I want to SELECT * from all of them but it keeps saying "ambigious column". Can anybody advise how to overcome this? Thanks | |
[code] #ifndef BASE_H #define BASE_H class base { public: base(); struct baseInfo { int SlotCount[4]; }; private: protected: }; base::base() { } #endif [/code] This is my header file, but how do I access the struct and its members through an object of the base class(through main)? I cant find … | |
is there a possibility to retrieve a search from an ldap search (for my case) which is in done php <?......?> outside of it to the body of my page? to have a general idea i try to create a table that will be completed dynamically from the search being … | |
I am building a website that uses php5 and mysql database. I want to upload images alongside other information. To get other information into the table of the database, this I can do very well, but to upload and display the images alongside other information(which may be done online by … | |
Hi, I have a question regarding outer joins. Suppose I have the following 2 tables each having 2 columns. Employee: EmpId, DeptId Department: DeptId, DeptId EmpId is primary key in Employee and DeptId is primary key in Department. Also, Employee.DeptId is foreign key referencing Deparment.DeptId. My first question: 1. Suppose … | |
I got everything going regarding PHP widgets and successfully fetched my DB. [CODE]<?php $con = mysql_connect("mywebsite.com","DB","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("pages", $con); $result = mysql_query("SELECT ebayid, reason, DATE_FORMAT(date, '%M %d, %Y') FROM `blacklist` ORDER BY `ebayid` ASC"); echo "<table border='0'> <tr> <th>EBay ID</th> <th>Reason</th> … | |
Hello everyone. Home help = homework help :) can't change it now I'm running into an error, expected initialize before "int menu()" I have been playing around with it for a bit but I have not figured out how to get rid of the error. When I think I got … | |
Hi all ... During a session a user causes information to be added to a temporary database table. At the end of the session, the information has to be removed. How can I tell when a session has ended so that I can clear the rows from the table that … | |
Sir, I am using 6 textboxes and three button one for insert data second for update and third for delete the data while inserting and updating the record it generate an error i.e. "Data type mismatch in criteria expression" in the backend i.e in MS Access I am using this … | |
I have a project set up using a JLayeredPane with a number of JLabel objects. Some are gray images, and others are images of cards. The cards are drag-able, but I'm trying to make them so they can only be dropped onto the blank spots, if its not one of … | |
I think I'm semi-close to a solution, but it's just not happening for me. I'm having trouble populating my dynamically allocated multidimensional array with data from a text file. Here's what I have: [CODE]#include <stdio.h> #include <stdlib.h> #define MAXLINELEN 18 FILE *getOpen(); int main() { FILE *inFile; // Declares inFile … | |
The code below compiles, runs, and gives correct results. Note, however, the commented out "Experiment" code. I want to be able to call a function which accepts a variable number of parameters, which then calls another function and passes it those parameters. How can I fix the commented-code so that … | |
//help me i dont know what wrong with list function [code] #include <stdio.h> #define MAX 10 struct book{ char title[81]; char author[71]; char category[31]; }; int main() { struct book library[MAX]; int menu(void); struct book add(void); int list(struct book,int); int choice, count = 0; do { choice = menu(); switch( … | |
Okay I've been working with printf for a while on C and I have been trying to use some of the backslash commands such as: \b = backspace \r = moves the cursor to the beginning of the line For some reason they don't seem to work on xCode. 1. … | |
I have a great download script I have been using from: [url]http://www.zubrag.com/scripts/download.php[/url]. It uses the following headers: [code=php] header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Type: $mtype"); header("Content-Disposition: attachment; filename=\"$asfname\""); header("Content-Transfer-Encoding: binary"); header("Content-Length: " . $fsize); [/code] My goal is to call this php … | |
I am working on my first scrolling game. I am pretty new to game programming in general, but have so far successfully made a couple very simple games. (Pong, etc.) I am using Dev-C++ and the Allegro library for this game. It's basically going to be a cat that runs … | |
Recently I've been looking into BSTRs, and have found how 'touchy' they can be. I saw this in a COM class in the class destructor regarding a m_strBStr member... [CODE] if(m_strBStr) SysFreeString(m_strBStr); [/CODE] When I saw it I thought, "How would the BSTR have a zero assigned to it?", because … | |
Hello i am watching some tutorials on [URL="http://www.3dbuzz.com/vbforum/sv_showvideo.php?v=27"]3d Buzz[/URL] and intro to C++ starts by saying that [CODE] #include <iostream> main () { std::cout << "hello world!" << std::endl ; } [/CODE] should show a CMD like window saying Hello World! On the video they try it and it works … | |
[CODE]#include<iostream> using namespace std; class point{ private: double x,y; public: double getX(); double getY(); void set(double c, double d); }; class polygon{ private: string color; public: void setc(string color1){ color = color1; } void print(){ cout<<color; } string getColor(){ return color; } }; class triangle: public polygon{ private: point v1,v2,v3; … | |
I'm trying to make a button to open a new form in a Win32 Forms App. Lets say the form I'm opening is called Form2 and the button is called button1. Any help will be greatly appreciated. | |
[code] import javax.swing.JFrame; public class Demographics { public static void main(String[] args) { JFrame frame= new JFrame("Survey"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(new DemographicsPanel()); frame.pack(); frame.setVisible(true); } } [/code] [code] import java.awt.*; import javax.swing.*; public class DemographicsPanel extends JPanel { public DemographicsPanel() { this.setLayout (new BorderLayout()); //Panel 1 (North) JPanel panel1 = new JPanel(); … | |
Hi all, I'm busy coding up some classes now and I was wondering if there is any danger in using a variable name twice, if the variable is limited to local scope. For instance, let's say I have the following piece of code: [CODE] class Foo { void function1( double … | |
Hello, I am taking a VB.net class and am having trouble seeing the difference between event driven and object oriented programming. This will not help on any assignments, I have already turned it in, but I do not understand why VB6 is considered event driven and .NET is object oriented. … | |
I want a certain subroutine to run if the user clicks the red close button in the top corner of the form. Is there a subroutine similar to Form_Load() when the form is opened that will do this for me? Thanks in advance | |
I have made an insertion sort function for a doubly linked list of polynomials , i cant figure out the error , please help me with it! [CODE]void insertionSort() { node* temp=head; while(temp->next != NULL) { node* second =temp->next; if (second->exponent==temp->exponent) { temp=temp->next; } else { second->previous->next=second->next; second->next->previous=second->previous; if (head->exponent … | |
I'm trying to overload the << operator for a class (easy, right? :P) However, I get the linker error: undefined reference to `operator<<(std::ostream&, particle const&)' Which my understanding means the compiler can't find the implementation for operator<<. I'm not sure whats going on here, since I've already implemented the function. … | |
I am trying to send mail with attachment after using browse button. in this process some error shows [CODE]Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/tmp/php_upload/phpLc37tw) is not within the allowed path(s): [/CODE] thsese are code for my mail file [CODE]$filename=$_FILES["strresume"]["name"]; $filetype=$_FILES["strresume"]["type"]; $filesize=$_FILES["strresume"]["size"]; $filetemp=$_FILES["strresume"]["tmp_name"]; $fp = fopen($filetemp, "rb"); $file = … | |
Ok, I am trying to to make a double-click action when you click on a cell or row, within a dataGridView. The end goal is to have the single click select the whole row so that when you double-click any cell in the row it will load that row into … | |
Hi there I am very new in useing jsp but here is my first problem. I registered a bean in the applicationContext.xml with the id myBean. Now I want to call a function like this ${myBean.myFct} but the function does not exist and it should not. In PHP there exists … | |
hi guys, just wanna ask how could i pass the value of a certain variable coming from one frame into another frame having that the frames are both present in one webpage only?? thanks thanks..^_^ | |
I wrote a query yesterday and it ran fine. Today i inserted a new record and it has broken my query. Can anyone help me figure out why? Query: [CODE] WITH temp_orgChart (KitID, PartID, Quantity, iteration) AS ( SELECT KitID, PartID, Quantity, 0 FROM ItemParts WHERE KitID = 200185 UNION … | |
I want to set the value to <td><div class='urg5'>High</div></td> in JTSL. [CODE]I tried <c:set var="ack" value="<div class='urg5'>High</div>"/> <c:out value="${ack}"/> Page source of the JSP web page is <div class='urg5'>High</div></td> i.e. special characters appear. instead of <div class='urg5'>High</div>[/CODE] |
The End.