199,113 Archived Topics
Remove Filter ![]() | |
Fatal error: Cannot use object of type DBConnect as array in C:\xampp\htdocs\class.DBConnect.php on line 28 [code] class DBConnect { // access is private for all class variables private $c_host_name; private $c_user_name; private $c_user_password; private $c_user_database; private $c_db_link; private $c_arr_errors; private $c_obj_prepared_query_statement; // class constructor public function __construct($p_arr_connection_string) { $this->c_host_name = … | |
I am working on a set class and I have successfully written an insert function, but I need the function to insert in an ordered fashion. [code]bool Set::insert( const EType & A ) { bool Flag = false; unsigned Position = 0; Node * Prev = Head; Node * Curr … | |
Hello guys! I am totally new in visual basic and have got desperately stuck for 4 hours with this problem which I bet is very stupidly simple. The simple program loads a .rtf file in a rich text box and using a textbox and a button, I have to search … | |
You can use rundll32.exe to run a dll as a app, i am using this code [code] Process p = new Process(); p.StartInfo.FileName = "C:\\WINDOWS\\system32\\rundll32.exe"; p.StartInfo.Arguments = "C:\\Dll.dll" //Dll.dll is a simple "hello world" program p.Start(); [/code] but it is not working, any ideas? | |
Hey guys, Well I have a lecture about "Fundamental File Structure Concepts". I`ve read some articles about it and I really have a problem with the File Dump part!and also I didnt find any useful thing about it in internet can anyone please help me?? thanks :) | |
<email snipped and color code tags deleted> this is the solution for this problem its kinda long and boring ,but it works properly [code=cplusplus] #include <iostream> #include <iomanip> using namespace std; void main() { const int r=4, c=4; int ar1[r][c]; int ar2[r][c]; int sum[r][c]; int prod[r][c]; int s=0, y, x; … | |
'bitstream' is an array where each element contains 8 bits, i.e. ['01100000', '11110101' .... ] etc. etc. I want to print out this array to a file so it'll be recognised and can be opened as a jpeg. I have tried the following: [code]output = open('outputfile.jpg', 'wb') for i in … | |
Hi Guys, I have been googling for a while, I think the problem is I don't know what I'm looking for is called. I want to write a program that watches my screen (I assume it would take screen shots really fast) and then analyzes them finding the moving pixels. … | |
I'm using the same file menu with the same menu items in multiple places. As such, they should have the same actionListeners etc since the same windows should open when they are clicked. How do I get netbeans to automatically do this (make them all use the same events and … | |
Most applications, to show the top rated items (regardless of the nature of the items) sort the items by rating average and then dismiss the ones where the voters are not enough (or the other way around, it doesn't really matter). I was wondering, is there a better algorithm for … | |
Guys, i have installed PHP 5 on my windows system, i am able to browse to info.php which shows a listing, but if i create another simple page with a echo statement then i and not able to browse that page. i get the HTTP 500 internal server error. i … | |
Hello! I'm trying to add some undo/redo functionality for my app. It deals with many controls, (mostly textboxes, checkboxes and radiobuttons), and I want to write one void for each type. When someone enters to one of them, the Enter event fires, and gets the text, value of the current … | |
WARNING huge php script, watch your head /WARNING :D Ok, i want to start by saying that this is part of a free script im making and therefor may be used by anyone, the script if available at: [URL="http://pctipforum.com/index.php?topic=345.0"] http://pctipforum.com/index.php?topic=345.0[/URL] next i want to say that this is a login … | |
Hi, im VERY confused about this, and i get a lot of different explanaitions, so now im asking you guys, because you properly know:) What can .net be used for? what is it good for? .net vs. gtkmm? Can i use the .net framework with c++? and how? Thanks in … | |
Hi I have the following [CODE]$_SESSION('userid') = true;[/CODE] How is it i would get the user to logout? I guess by deleting the session? Thanks | |
Hi I have this login box that drops down once clicked. I would like it so if the user doesnt click one of the fields within lets say 8 seconds then the box minimizes automatically. Here is what I have: [CODE] <script language="javascript"> function makevisible() { document.getElementById("dropform").style.display="block"; setTimeout("minimize()",4000); } function … | |
hi there im a novice to PHP and have been trying to put together a form with two buttons that post a variable value. The value is tested and then php perfroms whatever action that value points to (Update or Delete). My problem is that when I click the button, … | |
Hi I designed an online quiz site and i wanted users after mtaking the quiz, to be able to click button and their results are printed from a printer. Having trouble coming up with the source code. Could someone point me in the right direction? | |
I have a program that writes on a text file. I'm using CStdioFile to write on a text file. The problem is, once the writing size exceeds 190kb, it stops from writing and causes the program to not to respond. I tried threading in my application and the "not responding" … | |
i am having an issuse not sure how to approach this i have setup a area that grabs user's / user data by a search now i dont get the same results when i do lower case and uppser case any ideas ? [code]$query = "SELECT * FROM `users` WHERE … | |
how can i find size of my database what is the max table size in mysql is table size shown is in terms of kb or mb in mysql by default actually dis is the max_data length shown using "show table status" 281474976710655. means data size is shown in kb … | |
I have been rushing trying to get this done by Monday 2am est. I'm trying to create a new project which consists of at least two classes: a base class and a derived class. The code of your project should include * a composite object * an example of inheritance … | |
hopefully its easy. in main class I have got method from proff [CODE=java] private class AddBBQChips implements ActionListener { public void actionPerformed(ActionEvent ae) { addChips( BagOfChips.Flavor.BBQ ); } } private void addChips(final BagOfChips.Flavor flavor){ BagOfChips bag = new BagOfChips( flavor ); System.out.println(bag.toString()); }[/CODE] and from my class "BagofChips" [CODE=java] public … | |
Write a JAVA program that generates a "random" (drunk) walk across a 10 X 10 array. Initially the array will contain all periods(".") The program must randomly "walk" from element to element – always going up, down, right, or left (no diagonal) by one element. The elements "visited" will be … | |
Can somebody provide me the solution's for below 3 question: 1) Construct a program that is capable of printing the multiplication table for two variables. For example if the user enters x as 5, and y as 6, the multiplication table that will be printed out is as follows: 1*6=6 … | |
hi im a newbie at this but im getting a error message that says: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/pickurau/public_html/classes/Lib/Query.php on line 27 and line 27 starts with the if(!mysql_affected_rows() || mysql_num_rows($this->rs) < 1) return false; does anyone know how can i fix … | |
Hi guys, i m working on matrimonial website. now a days preparing admin panel for that... in the admin panel when admin click on edit(here i m able to recieve id using $_GET), another page opens lets call it showsuboptions, with three sub options edit profile, edit desired profile, edit … | |
Hello, Maybe I do not understand the concept behind a constant definition but I have been trying to define a default location for file uploads: [CODE] <?php // Define the upload path define('UPLOADPATH', 'C:\wamp\www\web\images_files'); [/CODE] Every time I try to run the script: [CODE] Notice: Use of undefined constant UPLOADPATH … | |
I am getting an error saying NumberOperations can't be instantiated. Here is the code. [CODE][LIST=1] [*]public static void main(String[] args) { [*] // TODO Auto-generated method stub [*] // declare variables [*] int num1, num2, sum, diff, product, average, absolute, max, min, adjusted1, adjusted2, adjustedSum; [*] // Display Program Title … | |
Hi, How can i find the OS name in C++ on which the program is executed. like Windows 2000, Windows XP or Windows Vista? Thanks for any help. | |
Greetings to you .. gentleman First thanks for all ... and keep it up i'm using ASP.NET 2008 C#.NET i have controlpanel.aspx page .. this page i don't want from any user not login to see it .. when user login and user name and password is ok then show … | |
I has a login page in my web application, when the user login my web application through login page, he is redirected to the welcome page. All this is ordinary, but the problem is when the user press Back button of IE he return to the login page then if … | |
Could someone please give me the simplest possible C# code snippets / SQL queries to determine whether: * a given SQL database exists, * a given existing SQL database is accessible, and * a given table exists within a given existing SQL database? Thanks for whatever help anyone can provide. | |
Hello, I have a form inside a form. The problem is that IE does not submit the parent form for some reason... It works very well in FF and chrome see [url="http://www.daniweb.com/forums/thread110758.html"]same problem[/url] Any help appreciated. | |
Hi, Pl tell me the code to [COLOR="Red"][B]copy the existing table of Access or SQL [/B][/COLOR]and give the [B]new file name to it[/B] from VB6 at Run time without changing the field name. (k. S) | |
Hi, Every body, I have one problem that I want to get window logged in user in asp.net, each and every time it is giving ASPNET, I want only window user. I have WindowsIdentity class, HttpRequest.ServerVariables, Environment Variable class. But still giving ASPNET, Plz help me. Thanks | |
I tried looking on Google for info on this, but not much came to light. I'm trying to do a query string that takes info from text files and renders them as PAGENAME.php?id=1 - without using a database, if possible. My file is called test.php and this is its content: … | |
Hi, I want to create tree like menus in php,but the values will be retrieved from mysql,i want menus with submenus which means tree structure,i don't know how to display the mysql value in a menu tree structure,please help me out for this problem. | |
I've been trying to figure this out for a while and figured I'd ask some experts: For a school assignment, I need to create a datebook program. One of the classes is a DateAndTime class. One constructor on the class is supposed to take an unsigned integer and convert it … | |
I need someone to explain to me this code step by step: [code=cplusplus] /* File config.txt: num = 123 str = hello flt = 12.2 */ #include <iostream> #include <fstream> #include <sstream> #include <string> using namespace std; struct Config { int num; string str; double flt; string myadd; }; void … | |
I fixed the StackOverFlowError problem from my last thread.. however, my ActionListener is still not working. if any GUI guru here may point out the issue, it would be great. i think this is something very simple and i miss it. [code] //my ActionListener class import java.sql.*; import javax.swing.*; import … | |
Hi, How can i delete the file in the middle of the program in C++ Thanks | |
Hello, I have to make a program that takes in a 2 character & out puts their eqivalent in ASCII Decimals. For example; input = j b , output = 106 98 (ie, j= 106 in ASCII table, b= 98) eg 2; input = J B , output = 74 … | |
i have one serial file n1\n2\n2\n4\n5\n6\........n want to read last file only in above file....can any one tell me how come/ | |
Hi friends, This is my first post here. Please forgive me as I am a complete novice with Python. I have experience with HTML and CSS, but my main gig is electronics...So, please excuse me if I am out of line asking this question here! A friend was helping me … | |
Help Please!! I made a struct array, and I'm trying to pass the entire array of that object to another function. [code=c] struct Crypt { char english; char code; int count=0; }; void main (void) { Crypt Key[26]; analyze(key); } void analyze(?????????) { int i=0; /*just a sample of the … | |
Hello everyone, I am currently developing a chat application and I want to encrypt all send messages. I am using the example below: [code] import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypto.NoSuchPaddingException; import javax.crypto.IllegalBlockSizeException; import javax.crypto.BadPaddingException; import java.security.Key; import java.security.Security; import java.security.NoSuchAlgorithmException; import java.security.InvalidKeyException; public class DESCryptoTest { public static void main(String[] … | |
Hello all, I have been teaching myself PHP through others writting; so bear with me if you find something foolish. Having said so, I want to make a simple Music library with MySQL/PHP. I have made this very simple Login form as shown below. I want after someone successful login … | |
[CODE] import java.util.Scanner; public class testcircle { public static void main(String[] args) { System.out.println("welcome"); double i; Scanner sc = new Scanner(System.in); Scanner scan = new Scanner(System.in); String choice = y; while (i<=10) { while (choice.equalsIgnoreCase("y")); { System.out.println("Enter the Radius"); String radius=sc.next(); System.out.println("Enter the Object name"); String Object = scan.next(); if(Object.equalsIgnoreCase("circle")) … | |
Hello everybody, I hope I can explain myself clearly. I would like to design a preview for a program that print some data on a special card. Because the user can choose where to print the data on the card, I think it would be useful to give him a … |
The End.