199,114 Archived Topics
Remove Filter ![]() | |
Hi all... I hope you have good time .... I have problem in the new program and I want to your help .. I want to back up the database type from Access, but my problem I could not generate code to determine the path of the database, I noticed … | |
hello :) i'm looking for some good Combination Optimization Algorithm, which is easy to code aswell... (combination optimization algorithms like "Hungarian Algorithm", etc.) thanks :) | |
Here is a very simple segment of code. What I want is when I click on the button "First Button" then the window become empty. What actually happens is the window just becomes unresponsive. What could be the problem and what could be a solution?? import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import … | |
Hi! I'm new, sorry if this is in the wrong place, mods please move this if necessary. Basically, I'm trying to give a breif definition of interfaces and abstract classes, please check if these are right: An interface defines what should be done not how it should be done. The … | |
Hello! I've been staring at my code for a while and I really have no idea where I'm going wrong. I'm working on deleting a specific node (for example, the integer 317)....but for some reason I just keep getting a nullpointer expression. I get the error when it goes into … | |
Here is a class to SQL use an access database: Class MyDB Public DBName As String Private con As New OleDbConnection(ConStr) Sub New(ByVal DBN) DBName = DBN End Sub Private Function ConStr() ConStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & DBName & ";" End Function Private Sub ConInit() If con.State <> ConnectionState.Open Then … | |
So i'm trying to make a script that reads from forum last post first word and displays it on my site vBulletin forum http://www.forum.com/showthread.php?85788&goto=newpost it uses javascript, so I can't get any info :S My script so far <?php header("content-type: text/plain"); $myurl = 'http://www.forum.com/showthread.php?85788&goto=newpost'; $curl_handle = curl_init(); curl_setopt ($curl_handle, CURLOPT_URL, … | |
I have queue class as below public class queue { public: queue(); ~queue(); bool Empty() const; void Enqueue(message^); void Dequeue(); void DisplayAll() const; private: gcroot<String^> bindingkey; queue(queue const& obj); ListNode* head; ListNode* tail; }; queue::queue():head(nullptr), tail(nullptr) {} queue::~queue() { while (head != nullptr) { Dequeue(); } } //bool queue::Empty() const … | |
I'm getting some errors with my code, & cant seem to find where the problems are. Basically I'm making a student class that calls out the student id & name. I hope someone can point me in the righ direction to get this code working. Thank you student.cpp: #include <iostream> … | |
hello every one , ! i have same prob as the user had in this thread [Click Here](http://www.daniweb.com/web-development/databases/ms-sql/threads/421214/remote-server-access) first i thought to post my question in that thread but then i thought it is better to open new thread . in above mentioned thread a user have prob to connect … | |
i have to create a graph for my project i found an example that was working and followed it first time with graph. i wrote my code got no errors but when i run the code this is what i am getting i don't understand it can some one help … | |
I have a lab management webapp that lists servers on my network. With a click in IE I can open a terminal services session to that server. The code works in IE, but not in chrome or firefox. Can anyone suggest how I can make this work in Chrome (Firefox … | |
I'm working on playing nim, where the person who takes the last object wins. My program is currently working, but it terminates after I only take one bunch of stones (You can take up to 3 at a time), no matter what the pile size is. Is there a way … | |
Ok im a little new to php so please bare with me. this is the code i have been using to Transfer Variables from and to. What i want to do is to keep the variables in page2 untill further notice even after submited. Concept of this for customer to … | |
hello, i'm leaning about ActionListener but i can't compile my code, i don't know why :( this is the code package javaapplication7; import java.applet.Applet; import java.awt.Button; import java.awt.Color; import java.awt.Label; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Test extends Applet implements ActionListener{ Button b1=new Button("Red"); Button b2=new Button("Green"); Button b3=new Button("Blue"); … | |
  i have two tables which i attached. user can add N level question answers. i am using CI. i am using this code for generating ul li. and my array which fetch result set is like this.... but not working ... for working ul li function … | |
Hi Guys, i need to create an application that would add or remove user accounts on a mac, also provide the users with the relevent premmisions. This has to be created in order to bulk create users or remove them so the apple provided interface would not be efficiant. Any … | |
Hello guys my question is asked more than 1000 times on internet by peoples but i cannot follow any of them (everything is correct but not worked) , i have a simple login system and after that there is a simple field (Email) and a submit button, its connected to … | |
Hi! I have a php form and I am using it to update,delete and insert data.I use a drop down to display customer names and when the customer is selected, the form should be submitted with document.frm1.submit(); so that I can get company id of that customer. Problem is, when … | |
Can anyone teach me how to print "Hello World" 100 times without using the loop such as do, for, while, and foreach. Thanks... | |
create trigger ins_notification after insert on transaction_detail for each row Begin insert into sell_notifications(user_id, product_id, quantity) values(new.transaction_id , new.product_id, new.quantity); End; Can any one see where's the problem? :( | |
i have a code to read some products from a file.(.dat). it hasthe name, model number, price and its purpose. example. = knife 103 10 cut currently it can read the first 3. The question asks i make a derived class to read the purpose. Here is my code #include … | |
I am trying to echo information into a slider , but, it keeps repeating the entire slider instead of jus inserting the fields aloone. i know it is the closing tag but i dont know how else to do it..any ideas? i just want to post like address 1 address … | |
am inserting data into base it is not inserting data which i want to insert the following data into *p1_n_dis* field of table Usman Raza, who completed his MS majoring in Computer Science at LUMS with an National Management Foundation (NMF) Gold medal, has been awarded a prestigious Mark Weiser … | |
Hi everyone, I have a login form working great, until I found this strange error. If a user enters the username as user name (with a space) the login script fails. So I have tried using $username = str_replace(' ', '', strtolower($username)); I thought the above would remove any spaces … | |
![]() | Hi, I've a unit test for a protected method that contains a ref parameter. The method to test looks like this: [CODE] protected void Select(ref int? intReturnValue, ModelBase modelbase) { ...some code.... //add the return value SqlParameter paramReturn = new SqlParameter("@ReturnValue", 0); paramReturn.Direction = ParameterDirection.ReturnValue; sqlComm.Parameters.Add(paramReturn); //run the proc sqlConn.Open(); … |
** Hai friends, need your help i have done code for similarity alphabet for example if we write A it will recognize A vs B= A A vs C = A and so on.. as i shown in the picture below. But i dont know how to change the A … | |
I am a programming student and I've realized lately that while I understand many of the concepts I'm being taught, I still, after several programming classes, tend to have trouble with multi dimensional arrays. Does anyone know of a good tutorial devoted to this? I realize I can do a … | |
I am trying to insert values from a table to another table. The thing is I want it such that only a row in the source table that does not exist in the destination table should be inserted. I have set each table to have a column that automatically increments … | |
I have a private ArrayList in a class and I'd like to be able to access it outside of this class, what would be the proper way to do this? Right now I've just made the ArrayList public but I would like to allow it to be private. Should I … | |
package array1; import javax.swing.*; import java.util.Random; class pickrand{ Random rand = new Random(); public static String get(String[] array){ int rnd = rand.nextInt(array.length); return array[rnd]; } } /*********************************************************************/ public class Array1 { public static void main(String[] args) { int size = 10; String[] passcheck = new String[size]; String[] pass = {"abc345", … | |
I want to output results from a postgresql table into a csv file. I can do this however its also copying over headers and a row count. Im using \o /path then my sql query; Is there a way to get rid of the headers so i just have the … | |
I just spent some time tryin to figure this out and found out how, so thought i would share. (hope this is the right section for this.) <?php ob_start(); include('index.php'); $content = ob_get_clean(); ?> then insert where ever you want it to show up. <?php echo $content;?> Hope this helps … | |
Im having a trouble connecting my javascript to codeigniter.. I use the base_url yet it doesnt work.. do i need some libraries to make it work.. Heres my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>MY PAGE</title> <meta http-equiv="Content-Language" content="English" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" … ![]() | |
Hello everyone we use a listview box and we add some path's of the files in list and now we want to show the file icon with in file path example: listview1.item.add " D:\test.txt" listview1.item.add " D:\picture.jpg" now we want to show these files icon in my listview please tell … | |
I need to make an Evil Hangman game for my Java class. Can anyone help please? I really need help figuring out how to put the words into "families". Also, if you see any problems with my code or any ways that I can make the code simpler, please let … | |
how do u convert the below to a 'for' loop? int x = 123456; int y =0; while (x > 0) { y *= 10; y += x % 10; x /= 10;} | |
The hash table stores phone numbers and names, uses the names as the keys. The problem I have is when I use the terminal window to enter the names and numbers. The strange problem that occurs then is that all the names get the same phone number. But when i … | |
haven't been using linux for a while. remember I used to do search and replace all the time with :s/searchString/replaceString/g now I have "pattern not found: " even though pattern I was trying to search/replace was definitly there. any idea? did i forget anything? | |
Greetings. I did not write the below code. I got it from [Click Here](http://itknowledgeexchange.techtarget.com/itanswers/python-script-to-download-wallpapers-from-interface-lift/) Thanks for any help. When I try to check the syntax it gives me an error on the very last line of code. The error "SyntaxError:invalid syntax (line 119, offset 26):a.getWallpaperList()[/pre] #!/usr/bin/env python import urllib2 import … | |
Hello to all java programmers, I have a problem about method and array. The program will display the second highest value of the inputed set of numbers in the main method. The problem is that it won't accept less than four inputs which mean it is necessary to put 4 … | |
Guys I have some questions please help me., 1. if I make a tetris game out of c# will it be difficult to do? 2. Is it possible to finish it in less than a week ? 3. Also what should I use as a game studio? OpenGL, XNA or … | |
Hi im trying to learn polymorphism and i stumbled upon a question. Polymorphism to me means 1 with many forms. here is my code: // virtual members #include <iostream> using namespace std; class CPolygon { protected: int width, height; public: void display(); virtual string area () { return ("FIRST"); } … | |
Problem 1: Phone book. A phone book file is organized so that each line is an entry for one person. Each line has the following format: first, a name (one word, no spaces), then zero or more phone numbers, each preceded by a space (no spaces within a phone number). … | |
Hello, guys. This is the fragment of my program. I can't initialize the dynamic two-dimensional array. The compiler says to me that 'y' cannot appear in a constant - expression. But I need that both x and y to be dynamic. How can I fix that? ` float a; int … | |
Hi all, I'm trying to display the average of each row displayed in my table but am having a bit of trouble, any assitance would be appreciated. Basically the table displays the name, the score you gave them, and their average score. Here is my code below (example, names modified. … | |
How to get get complete column from database to combo box ? | |
hello, I want to make a program that enables me to read data from my 4-CH usb 2.0 DVR. any one to help me do that? thanks in advance | |
How do I find the number of USB ports available, and what their references are. Example there are 6 USB ports on my motherboard what code would I use to find their reference like, port 1 is called 0 and port 2 is called 1. I want a user to … |
The End.