199,114 Archived Topics
Remove Filter ![]() | |
Hello, I am having problems with templates. I wrote a templated version of vector. My vector is working. Here is the header file for it: [code=C++] // m_vector_g.h template<typename T> class m_vector { private: // Some code here... public: // Some code here... }; [/code] I want to make another … | |
So I've been trying this for a long time and I've given up. I can't code it myself and no examples are helping. I want to log on to a website and return some text from it. The returning text part won't be hard, the logging in is the problem. … | |
Hi, I use a submit button to go to next page with posting a value. When i click on back (button in the browser) to go back to previous page, it says "Page is expired. Information must be send to display this page erc etc". I don't want to face … | |
Hello everybody, I need your help for my C project..... The details of the program is given below :---- 1) [B] The input of the program will be another C program, and that is from a file.....( Please note this carefully)[/B] 2) [B] You have to check the syntax of … | |
I'm working on a project in which i have to use J2ME. I've tried a few tutorials but they seem only to be especially oriented to specific problems, and in my programming experience i've learned that's always better to globally know your environment. If anyone knows an e-book (or book) … | |
Well, I just had another issue resolved and have come to another one that baffles me, and as I can find little to no documentation on the pgdb module, I thought I'd sound you guys out again. I am attempting to insert values into a table in postgresql, and while … | |
After many frustrating hours and web searching I cannot figure out why the move_uploaded_file is appending the names of already already created files to the name of new files. As you will be able to tell from my code I an pretty new to PHP. However, I have a pretty … | |
Hey all, I have a listbox, textbox, and search button on my form. I am populating my listbox with data from a sql database. I need to be able to seach my listbox and filter it. Here is what I have so far: [code] Sub RefreshListBox() Dim DSDept As New … | |
Hey, I've been researching ways to code in C++ and manipulate excel files (i.e. read and write data). Right now I've written macros in VBA that output a .csv file that is read by my C++ program. It all works, but I'm still wondering if I can just write all … | |
So this question may be a little hard to follow, but here i go anyway. I am trying to create a table in mysql that is comprised of only the email addresses that show up multiple times in my origianl table. More specifically, the original table has a record for … | |
I created a dialogbox, with controls, by using the DialogBox() function and a resource file with the controls in it (IDD_DIALOG1). But I'm having an extremely hard time finding a function which will add a menu, also in the resource file, to a dialog created in such a way (IDR_MENU1). … | |
Hello, I'm new on daniweb, and it's my first post (to start sorry for any language mistake, my language is french). Well, I'm developping a website for a client in php, the theme of the website is that registred users can make online consultations with a doctor, in the registration … | |
Hey, So i am completely new to python. I am taking a course at school by distance and i am unable to get the help/explanation to complete...or really start, my assignment. I am supposed to make a working chequebook calculator. It will store cheques (the cheque number, the amount and … | |
when you run an ifstream in c++ and go into a textfile what is the data in the file converted to? this is my code [code] #include <iostream.h> #include <fstream.h> #include "TGraph.h" #include <time.h> #include "TDatime.h" void deeznutz() { char inputFilename[] = "data.txt"; ifstream inFile; int x; inFile.open("data.txt", ios::in); if … | |
Hi, I am very new to Java and am using Breezy Swing. I basically need to create an array of JButtons (26 in total) and display them on a form (9 on the top row, 9 in the middle and 8 on the bottom) and I have no idea of … | |
I have been using VB.NET for a while now, and I can make a ton of things. But for some reason, I can't connect to SQL. I use SQL 2008 express, and Visual Basic 2008 express(will soon get Visual studio :)) So, I go to add a database, I enter … | |
I'm trying to figure out why the regexp "[A-Za-z0-9\-]+\.jpg|jpeg|gif|png" only seems to find "gif" when I run it on the source of an html file.. For example: I have the following code [code=c#] string URL = "http://www.google.ca"; string re = @"[A-Za-z0-9\-]+\.jpg|jpeg|gif|png"; WebClient wc = new WebClient(); Stream data = wc.OpenRead(URL); … | |
Good Day, I am using an Ms Access Database to design a StockTracker applicaton. The application is used to check the stocks of users. Firstly I need to sign on as an administrator and then be able to add users and their stocks to the database. I have created the … | |
hi there, how can I change string to xml and vise verse in java, in addition how can I add values to xml according to element name , I can imagine something like "setValue(elementName, the value) ; as we are using in java, any suggestions any help , please! thanks … | |
Im stuck with my project. I have no idea how to begin this project. I need to write a function that shuffles say for example a deck of cards. which is represented by an array of 52 elements. Every element in the array is a structure for one card like … | |
I'm working on a little code snippet and my c++ seems a bit rusty. How do i go about getting the length of an array? My eclipse is giving me weird values when it should be segfaulting, so I'm trying to figure out whats wrong. Thanks in advance. edit: forgot … | |
Hey all, I'm new to C and trying to pick up good habits before I get too routed in my ways. Essentially, I have a code which runs a mathematical test on an array, and depending on the percent error, it decides to continue iterating or stop. Essentially, I have … | |
I would like to know which would be a good graphics library to begin with. I am using Allegro, I want to know if this is good enough for 2D graphics like manipulating bitmaps etc. | |
I wrote a program to write data in a text file to another text file .what i want to do is to open that modified second text file once I've entered data in to that | |
i wanted to print random line from a file. i knows how to print out the whole file but doesnt know how should i do to print a random lines from a file!!! hope someone can give me some ideals or an example. thanks! | |
I am trying to create an application. One of the task is to insert a row into a DB. I am using db express 5 with visual studio 8. It feels like I have done everthing under the sun, but still to no avail. I know I'm missing something somewhere … | |
Hi Sir, please help me with my code I've already finish the sequence. this is my part : [CODE]#include <iostream.h> int main () { unsigned long int a = 0; unsigned long int b = 1; unsigned long int c; int y = 2; int x = 2; cout << … | |
Helo frndz, I need a ebook named 'Starting Out With C++ From Control Structurres Through Objects by Tony Gaddis"...If anyone has this book in pdf or chm format, plz PM me to --snipped--. I badly need this book... Thnx Arif | |
can someone help me wit this, why does my form becomes unresponsive when i execute this code: [code=c#] private Thread trd; private int y = 0; delegate void MyDelegate(bool show); private void button1_Click(object sender, EventArgs e) { trd = new Thread(new ThreadStart(this.ThreadTask)); trd.IsBackground = true; trd.Start(); } private void ShowProgressBar(bool … | |
Does anyone know if you can use HttpWebRequest in a Windows Service? I have a small app that checks an IP, works perfectly as a Forms App but does nothing when I convert it too a service. Heres my code: [CODE]Imports System.Net Imports System.IO Public Class Service1 'declare timer Private … | |
Can anyone help with this program. Both the functions work fine separately but when for example, I tried to use "if" for simplicity the islower came out as 0 when all the characters were printed out, because it's second in the flow of control. It would also help if I … | |
i dont really know whats wrong with this, but its super basic. im not done writing the program yet, im still missing some input prompts for the user, but as i am testing my current program, i keep getting an error message that says line 70 - name lookup of … | |
Hello. As a new python student we all tried the password program Mine looked like this :) [code] def Password(): password = ent.get() if password == '12345': ent.delete(0,END) ent.insert(0,'Welcome Back Aiban') else: ent.delete(0,END) ent.insert(0,'Incorrect') [/code] ok ... it does it's job and shows me when i get it right or … | |
this is weird to explain in the title alone, but i created a program below that works and compiles properly. it does everything i need it to do. user inputs however many scores he/she wants. 6 scores get calculated for the desired calculations. if user inputs more than 6, the … | |
I have a little situation that I can't seem to resolve and was hoping someone might have some suggestions ... I have a Windows Service (Serv.exe) which runs under LocalSystem when a user is logged-on (it is only running when users are logged-on), this service is responsible for performing various … | |
Hi. I have a function which checks for a placement of a substring in a buffer after recieving it over TPC. It checks for the value up until a '&' appears in the string (As the value can be any length). However, my program crashes if the packet has no … | |
Hi, I'm binding a TreeView using the SiteMap Data. Near to each node, I have a checkbox so that the user can select the node he wants. I need to iterate through the tree checking if the node is checked and if so, write something like: Home - Node1 - … | |
Hey all I'm having trouble updating my ui across threads using WPF. Having learnt a fair deal about thread yesterday, I find myself stumped now by the Dispatcher. I've already used the dispatcher once, to check the status of a radio button, as follows: [code=c#] if ((Boolean)this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new noArgsDelegate(productIsChecked))) { … | |
I have been working with PHP for a few months now and I wanted to make a simple mailing list script to add to a website I am helping redesign. I think that a mailing list will be a welcome upgrade. Anyway the error I am getting is[CODE]PHP Parse error: … | |
Hi, does anyone know how to access a sql .mdf file directly using c# without using SQL server. I am planning to make an portable application with a database on a flashdrive, i really need some help.. thank you :) | |
OK semi new, so you may not think my brilliant discovery is oh so brilliant.. But the reprocussions knocked me dead. I found to make code more readable, I can sub class things. So I had in different class files (for readability) File # 1 had... [ICODE]namespace MyLibrary { public … | |
Hi, I want to create quick preview window for images listed in my website. For example: if you go to this site [url]http://www.templatemonster.com[/url] there are little images on the right end side. When mouse over on any image, a bit preview window opens. I want something like this. How can … | |
I'm in a situation where I have to pass javascript variable to php without redirect (no $_get[]). The code I'm working around is like [ICODE] <script> var screen_width=screen.width </script> <?php $screen_width=[B]javascript_variable[/B] ?> [/ICODE] I want to pass value of this variable to a new php variable.Please suggest me a way … | |
current code: [icode]Response.Redirect("DeviceInformation.aspx?arg=" + e.CommandArgument);[/icode] which redirects to a page with a data grid. The argument is passed into a stored proc on a database and the infor is returned in a grid. What i want, is the same thing, but, open it in a new page. So something like: … | |
Hi i'm a computer student searching for a software to make a game. i've googled and found severals but not many are free. [B]What im searching[/B] for is a software that resembles GameMaker or any RPG games ie Pokemon Red,Interactive Children Games that is easy to use and can be … | |
hey I'm having a problem trying to get some variables passed on a form to another page where the processing is handled. basically what I'm trying to do is display the titles of pages from a website that are stored on a mysql database. those titles are passed thru a … | |
I want to make a 3d aquarium They way i want to animate will not be using keyframes at all, I want to move the fish model using all programming in realtime. At first i will just be moving the fish in a sine wave, once i get the hang … | |
Hi all. I'm not sure if this is the correct place to post this, but whatever. I have a simple .reg file that adds the command 'Open Dos Box' to the menu that pops up when you right click a file (on windows) I want it to open a DOS … | |
I'm trying to write a program that will use the content in a flash video player as an input stream in C#. Any help on this subject would be greatly appreciated. Thanks | |
Hai friends, How to send and receive mail from my gmail account through java program.is there any way to access? |
The End.