199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ChaosTheory

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 = …

Member Avatar for ChaosTheory
0
139
Member Avatar for boydale1

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 …

Member Avatar for Clockowl
0
109
Member Avatar for 6pandn21

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 …

Member Avatar for Teme64
0
521
Member Avatar for scrypt3r

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?

Member Avatar for scrypt3r
0
95
Member Avatar for 3pid

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 :)

Member Avatar for MosaicFuneral
0
75
Member Avatar for Alicito

<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; …

Member Avatar for Ancient Dragon
0
893
Member Avatar for alicem

'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 …

Member Avatar for vegaseat
0
172
Member Avatar for PhiberOptik

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. …

Member Avatar for PhiberOptik
0
109
Member Avatar for BestJewSinceJC

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 …

Member Avatar for Ezzaral
0
103
Member Avatar for Lucrezia

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 …

Member Avatar for thoughtcoder
0
93
Member Avatar for ramanand

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 …

Member Avatar for ramanand
0
162
Member Avatar for konczuras

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 …

Member Avatar for Ramy Mahrous
0
294
Member Avatar for Merlin33069

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 …

Member Avatar for Designer_101
0
306
Member Avatar for Bladtman242

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 …

Member Avatar for Bladtman242
0
423
Member Avatar for Newbie 123

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

Member Avatar for Newbie 123
0
81
Member Avatar for Designer_101

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 …

Member Avatar for Designer_101
0
114
Member Avatar for KJATL

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, …

Member Avatar for KJATL
0
340
Member Avatar for danielagaba

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?

Member Avatar for HITMANOF44th
0
58
Member Avatar for everard

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" …

Member Avatar for Clockowl
0
95
Member Avatar for HITMANOF44th

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 …

Member Avatar for varmadba
0
136
Member Avatar for srpa01red

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 …

Member Avatar for varmadba
0
147
Member Avatar for connoisseurodg

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 …

Member Avatar for Clockowl
0
144
Member Avatar for enuff4life

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 …

Member Avatar for JamesCherrill
0
139
Member Avatar for karan_the

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 …

Member Avatar for javaAddict
0
176
Member Avatar for TechnoArt

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 …

Member Avatar for masijade
0
164
Member Avatar for will910

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 …

Member Avatar for rm_daniweb
0
274
Member Avatar for navi17

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 …

Member Avatar for rm_daniweb
0
154
Member Avatar for kssi89

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 …

Member Avatar for rm_daniweb
0
90
Member Avatar for charlie81

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 …

Member Avatar for knowledgelover
0
173
Member Avatar for nitinmukesh

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.

Member Avatar for nitinmukesh
0
297
Member Avatar for functionsys

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 …

Member Avatar for functionsys
0
128
Member Avatar for brightline

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 …

Member Avatar for P.K.Chaudhary
0
101
Member Avatar for BobLewiston

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.

Member Avatar for Ramy Mahrous
0
96
Member Avatar for newboi

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.

Member Avatar for ~s.o.s~
0
145
Member Avatar for kehar

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)

Member Avatar for rm_daniweb
0
107
Member Avatar for pradeepfusion

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

Member Avatar for pradeepfusion
0
196
Member Avatar for whitestream6

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: …

Member Avatar for BzzBee
0
137
Member Avatar for vidhyaponnusamy

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.

Member Avatar for vidhyaponnusamy
0
94
Member Avatar for aiosarem

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 …

Member Avatar for ArkM
0
4K
Member Avatar for kelechi96

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 …

Member Avatar for Ancient Dragon
0
141
Member Avatar for k2k

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 …

Member Avatar for k2k
0
115
Member Avatar for guest7
Member Avatar for gretty

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 …

Member Avatar for Ancient Dragon
0
569
Member Avatar for sivak

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/

Member Avatar for Aia
0
399
Member Avatar for mbirame

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 …

Member Avatar for mbirame
0
1K
Member Avatar for Waffles_2411

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 …

Member Avatar for jephthah
0
166
Member Avatar for neutralfox

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[] …

Member Avatar for neilcoffey
0
646
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
90
Member Avatar for redmaverick

[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")) …

Member Avatar for BestJewSinceJC
0
450
Member Avatar for Neo7

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 …

Member Avatar for Neo7
0
160

The End.