64,152 Solved Topics
Remove Filter ![]() | |
I have a question that I hope someone can help me with. I have a website that I am loading dynamic content from a database. In my files and instruction I reference the contact page, that is only because that is the file I have been testing this on. Here … | |
Hi folks, I'm wondering how to close a VB6 multiform application using the red x on the main form. There should be a message box that lets the user confirm the exit ( yes ), or ( no ) resume the application. Thank You! | |
hi. wondering if someone can take a few min to help me out. Well im taking this opencourseware from MIT, intro to programing. I got this assignment [url]http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/assignments/pset9.pdf[/url] and I could do it on my own... the only problem is I dont understand what the hell they want me to … | |
Given the degree of the polynomial and a vector with the polynomial's coefficients is there a more efficient way to recursively calculate the polynomial result for a given x? This is what i have tried, and it works, but I am asking if there is a more efficient way to … | |
This code is supposed to get one int and one string.But after entering the int, the [B]getline[/B] line is acting weird...it dont prompt me for any string input, rather then it shows the same value as the int. [CODE]#include<iostream> #include<string> using namespace std; int main() { int teacherID; string teacherName; … | |
I'm trying to use a switch statement in my code but I'm having a bit of difficulty. I have an error message I do not understand and do not know how to fix. The message reads, "switch quantity not an integer". I'm new to C++ and would appreciate any help … | |
my image veiwer has stopped working properly, I dont know why. It resizes as its meant to, but dosent pop the veiwer window. Can you find the problem? [CODE]<script type='text/javascript'> var popbackground="http://i14.photobucket.com/albums/a345/Instar/greenbgfade17oi.jpg"; //specify backcolor or background image for pop window var windowtitle="Image Viewer" ; //pop window title function detectexist(obj){ return … | |
Hi, i want to do a listener and this is what i have at the moment: [code] class MyListener extends MouseInputAdapter implements KeyListener{ @Override public void mousePressed(MouseEvent e) { if(e.getButton()==1){ out.println("MSE press "+e.BUTTON1_MASK); }else if (e.getButton()==2){ out.println("MSE press "+e.BUTTON2_MASK); }else if (e.getButton()==3){ out.println("MSE press "+e.BUTTON3_MASK); } } @Override public void … | |
Hi I'm devolping a project in which backend is ms access and front end is vb 6.0. For security reasons i made the ms access as password protected. when i tried to connect the vb and access, the following message is displayed. How to handle it? Please help me.. [IMG]http://i48.tinypic.com/ddyge0.jpg[/IMG] | |
import MySQLdb db = MySQLdb.connect(host = "localhost",user = "root",passwd = " ",db = "TESTDB" ) cursor = db.cursor() sql = """CREATE TABLE CRAWLER ( FIRST_NAME CHAR(20) NOT NULL, LAST_NAME CHAR(20), AGE INT, SEX CHAR(1), INCOME FLOAT )""" cursor.execute(sql) db.close() when i execute this code there is an error occure like … | |
![]() | Hi folks, I have a tiny blog script that is just for personal use. It works fine. I was wondering if it was possible to post entries to this blog via email so I started looking at email parsers. The ones available for purchase are far too overpriced for my … ![]() |
Hi! I'm writing a Java simulation of a physical system. I wrote the whole simulation without any problems and later decided to add very simple GUI to paint the current sate of the system after each iteration. This is where the first problem occurred. After creating my JFrame and JPanel … | |
Hi daniweb team, I am new to Servlet concepts can any one tell why peoples use doGet and doPost method in the Same program.And What is the difference between doGet and doPost method. Thank you, With Regards, Prem. | |
how to install the msqldb package and where to place it in python? then when i compile the code there is an error like no module named MySQLdb.... pls clarify this.... | |
Hello All! I ran across a bit of code that I wanted to try. In this code it had a line reading, "[COLOR="Red"]orig = POINT()[/COLOR]" When I tried to run I got this error: [COLOR="red"]NameError: name 'POINT' is not defined[/COLOR]. This led me to believe that I didn't have the … | |
Hey guys, i want to check if reader.read has a null value, however im struggling to do this.. any ideas? [code] <%@ WebHandler Language="C#" Class="Handler" %> using System; using System.Web; using System.Data.SqlClient; using System.Data; using System.IO; using System.Collections.Specialized; public class Handler : IHttpHandler { public string GetConnectionString() { //Gets Connection … | |
I am currently using AppServ to display my PHP code. I am having a problem of the content of the body not displaying however. Here is the code that I am using: <html> <head> <title>My First PHP Page</title> </head> <body> <?php echo "Hello World!"; ?> </body> </html> When I try … | |
Hi guys I am willing to know how to match a website s title using regex. Many thanks in advance | |
I am trying to grab some data after opening a text file with append flag. I am using the following code...but nothing is being printed and program execution is progressing forward. Can anyone point me my mistake... [CODE] fstream outStream("test.txt", ios::app);string testID; cout << "Enter Teacher ID - "; cin … | |
Hey, I have the code: [CODE] Form1(void) { array<Label ^>^ labels = gcnew array<Label ^>(itemCount); InitializeComponent(); for (int i = 0; i < itemCount; i++) { labels[i] = (gcnew Label()); labels[i]->Tag = (int)i; labels[i]->Location = Point(1, (i + 1) * 50); labels[i]->Size = System::Drawing::Size(250, 50); this->Controls->Add(labels[i]); } } [/CODE] This … | |
hi all, in my web there is a menu named Custom DNS for what reason mw use custom dns record can anyone help me Thanks in advance | |
He all I am currently working a on a problem to convert the entire contents of an STL container into a string. For example if I had this: [code=c++] int foo[] = {1, 2, 3, 4, 5}; vector<int> bar(foo, foo + 5); [/code] I would like to convert [icode]bar[/icode] into … | |
Hey guys and gals; I've been chipping away at some code today and tried to run my program I am getting the error: Parse error: syntax error, unexpected '&' in........on line 68 [CODE] $stmt = $dbh->prepare("SELECT username, password FROM client WHERE username = :username AND password = :password"); [B] &stmt->bindParam(':username', … | |
I am trying create a button that when clicked prints hello world in the text box above it. however im a complete noob on winforms. I normally just make console programs any tutorials on winforms ? with C++? | |
I was creating this code and I hit a brick wall. Maybe because I have been doing this code for 5 hours and I am burnt out. I just need help to get it working please. Here is the code [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Random; public class … | |
Hello, I am trying to write a program in python to test the reading speed to a file, apparently,after the file is created, it's automatically in the cache and read() method will grab the data from the cache thus result in a much faster reading speed, how should i directly … | |
Hey guys, I was hoping someone could help me out here again. I've seen people pulling entries from multiple MySQL tables by using the JOIN clause, but I can't seem to get it to work with what I am trying to do. I have 3 tables which I wish to … | |
Hi, I'm trying to create a 2d array that will fill itself up with numbers i have in a text file. My text file looks like this: 1 5 4 2 6 3 3 9 4 4 1 8 5 2 2 So, I want to create an array with … | |
Hello All I’m trying to hook the mouse scroll wheel using SetWindowsHookEx with WH_MOUSE_LL. The callback function I am using operates correctly, and identifies when the mouse wheel is scrolled. However I am unsure of how to identify which direction the mouse has been scrolled. My code so far: [CODE] … | |
[CODE]<?php $file = 'GPSserial.txt' or die('could not open file!'); $handle = @fopen($file, "r") or die("could not open file!"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); $GPSstr = $buffer; $GPSarray = explode(',', $GPSstr); if ( $GPSarray[0] == '$GPGGA'){ echo 'congrats'; } else{ // move to the next line … | |
I'm a newbie at java and I need help in coming up with the correct answer for this JOption java program. I enter in 2k, 30fps, 4min, 0seconds, and I should get 10.6842041GB (16.02630615GB total space needed). Please let me know if you have any advice on how I could … | |
Hello im a new member to this forum so if this is in the wrong place im very sorry. any way i have been developing a piece of software that reads from a .txt file soo far i have got it working but only on my pc eg "c:\documents and … | |
if i were to create a program which required the user to enter multiple values, but i do not no how many. How would i go about anticipating the input. For instance if the user were permitted to input any amount of numbers and i wanted to add all the … | |
![]() | Hi everyone I am trying to develop a friend system where you can view friends who you are friends with. I have been able to get it to show one result but it wont show any other. Please can someone tell me what I am doing wrong. Here is the … ![]() |
Hi guys, I am stuck with this piece of code for a long time. The errors that come are: bfs.cc: In function 'void greedyMatch()': bfs.cc:9: error: expected initializer before '*' token The relevant code is [code=c] #define forallXNodes(u,G) \ for(arc *bfs_ee=(G.getSource())->firstOutArc(),arc *bfs_stopA=(G.getSource())->lastOutArc(),u=bfs_ee->head(); bfs_ee <= bfs_stopA;u = (++bfs_ee)->head()) #define forallYNodes(u,G) \ … | |
Hi everyone Forgive me if I am asking a foolish thing, i have seen several time this sign "->" in php. example is below $total_report['turnover_cost_annual'] = round($rows->turnover_cost_annual); It is bold here "ound($rows[B]->[/B]turno" can anyone please let me know how it is pronounced and whats its use in php. Any usefull … | |
I've been developing in lot's of other languages, and never had this difficult a time setting up. On a XPSP3 machine, I have WAMP in the root folder, with all parts installed. Then I have eclipse-helios for php installed as well. My file path is C:\www\HelloWorld\hello.php The follow code renders … | |
Hey, I have just switched from C#, and in C# there was a way you could create an item (Example), and set parameters. [CODE] Example text = new Example(); Example.parameter = value; //etc [/CODE] I have searched the internet, and could not make any sense of it. Any help would … | |
Hi, I have some pictures in a MySQL database that i am able to retrieve and display. How ever, i want to display them as images in a gallery, but not able to. The MySQL query is ok, it retrieves the images, i think the problem is with my PHP … | |
Hi Guys, can anyone help me to write a regex function for the following string .So my string is contents=false book_title='The Old Man and His Sons' sections=[ 'The Old Man and His Sons' ] now i want to extract just The Old Man and His Sons so far my code … | |
![]() | A question has been knocking my mind today,is it possible to convert a executable file back to its source code in c++?? ![]() |
hi, sorry for this question, but i really didn't know. i want to load flash animation and put in my project? please help me.. thx, i really appreciate that. | |
Hi everyone, Somewhere in my need i need to create strings like ( x,y,z ) with 0<x,y,z<N. I was trying to use 3 for loops but it didn't work. That's what i wrote: for(int i=0;i<N;i++){ for(int j=0;j<N;j++){ for(int k=0;k<N;k++){ string t="( "; t+=i; t+=","; t+=j; t+=","; t+=k; t+=" )"; } … | |
hi! i have a class from which other classes are inhertited. I then create a function GetInput() & I want it to funtion for evry object inherited by MAIN. I don't want to create separate functions for each. Is there any way for it? Thank you. | |
I cannot seem to get Reportlab's 4 state bar code to work. I keep getting "NameError: name 'USPS_4State' is not defined", yet if I 'dir' the module it's clearly loaded; dir(usps4s) arcode', 'USPS_4State', '__all__', '__builtins__', '__doc__', '__file__', '__ e__', '__package__', '__version__', '_crc11', '_initNof13Table', '_ru13', '_t The usage is correct as … | |
Can this be done in python and which module would i have to look at. I haven't experimented with this and if I have to guess would it be the os.renames() function. | |
This problem originates from a job interview which could be solved in C++ or C#. As far as I can remember it was to implement a queue that can be added to by multiple threads and accessed by multiple threads. I haven't tried it in C# yet although I think … | |
Hi all, My question pertains to the reading of a text document. Currently I am reading a text file searching for certain syntax and once it finds it then it uses that line. The thing is, I am currently doing this: [CODE] while (reader.readLine() != null) { DOSTUFF(); } [/CODE] … | |
I'm working on a problem where I am trying to validate the user input to verify only digits have been used. I'm trying to use the ASCII code to do so, but I'm stuck. I would greatly appreciate any help that can be provided. Thank you in advance!!! *Delilah* [CODE]#include … | |
I downloaded OpenCV last Wednesday and tried to link it with DevC++ I followed the instructions found [URL="http://www.cypax.net/tutorials/opencv/index?language=en"]here[/URL] and I get the error cannot find -lhighgui ld returned 1 exit status I'm sure the code that I tried to compile is working because I previously compiled and ran that code … |
The End.