199,114 Archived Topics
Remove Filter ![]() | |
While my program loading, I have a splash screen. After the program is done loading my Splash-screen closes and the main form (form1) shows (all good up to that point). But the problem is after the Splash-screen I cannot close form 1, nor can I move it. here is what … | |
Hi guys, I am able to delete record from specified table when I just run the program from visual studio 2008. I am using ms access as database. My connection string is: Provider=Microsoft.Jet.OLEDB.4.0;data source=" + @Directory.GetCurrentDirectory() + "\\smsmanager.mdb;Jet OLEDB:Database Password=matmat However, after setup and deployed in Program Files folder and … | |
Statement: Connection with server takes a long time and provides "No message either it is timeout or someother thing other than time out". The state of the mouse during that time will be in "cursor: wait (an hourglass)" state. This problem is being faced occationationly, but now a days it … | |
Hi, I have the following code which compiles absolutely fine.. [CODE] using namespace std; #include<iostream> #include<stdio.h> #include<conio.h> struct node { int data; struct node *link; }; void add(struct node **,int); void display(struct node*); int count(struct node *); int main(void) { struct node *p; p=NULL; add(&p,5); add(&p,1); add(&p,6); add(&p,4); add(&p,7); display(p); … | |
Hi, how can I check in php/js when the youtube video is end? :) | |
Hi guys, I'm currently attempting to create a game similar to that of a Rubik's Cube but I've come to a standstill. I have a Cube made up of 8 smaller cubes, so its 2x2x2. Problem is, I have no idea how to go about rotating each of these cubes. … | |
I am creating a website for my company's helpdesk and need an Event Calendar for conference room reservations. User need to be able to check the availability of conference rooms and enter a reservation on the calendar. Please help | |
Hello everyone, I am currently working on text processing with Python and I want to parse a .txt file into its sentences as a whole. I tried to create some regular expressions but I failed to do so. I only managed to come up with a regex that splits each … | |
Hei, [CODE]list = [line.split() for line in open(file) if line is not None][/CODE] and output: [CODE][linux@localhost ~]$ [[], ['text'], ['text', 'text', 'text', 'text'], ['text', 'text', 'text', 'text']][/CODE] How to remove none types [] or something. | |
[code] #include <iostream> using namespace std; using std::cerr; using std::cout; using std::endl; #include <sstream> #include <string> #include <fstream> using std::ifstream; #include <cstdlib> int main() { ifstream indata; // indata is like cin char num; int sar,ri,sat,ha; sar=0;ri=0;sat=0;ha=0; char s[]=".txt"; for(int some_int=1;some_int<=3;some_int++){ ostringstream buffer; buffer <<some_int; string s1 =buffer.str(); s1+=s; indata.open(s1.c_str()); … | |
we were asked to input a number and display the sum of the odd and even integers. eg. number: 10 sum of odd: 25 sum of even: 30 [code]intnum = CInt(txtnum.Text) Dim counter% = 1 Do Until counter = intnum intcompare = counter Mod 2 If intcompare = 0 Then … | |
Hi, Is it possible to display the output of a C program in different font sizes by setting it in the code? If yes, please guide regarding the same. Thanks. | |
Hi guys, I have implemented pagination in datagridview by using example from this page [url]http://www.codeproject.com/KB/miscctrl/Pagable_DatagridView.aspx[/url]. The pagination works well. However, when I create 2 datagridview with each using different bindingsource, and I click on next for the first datagridview, the other datagridview also automatically paginate to the next one. I … | |
Hi All, Im after some advice on extending classes. ive got a vehicle class, which is extended by the motorcycle class. my question is how do i create a class of the motor cycle that includes the vehicle class elements. [code] <?php class vehicle { private $wheels; private $engineType; private … | |
using namespace std; int main() { vector<double> row(3, 0); vector<vector<double> > table(3, row); printVectorOfVector(table); Fill in a 2 dimension 3x3 array with odd numbers. The display shows the array as it is being filled. Use random integers to fill the array. Use numbers between 1 and 10. Initialize array to … | |
Hey everyone, I am trying to send an email and I never receive it, but I do get a message when I debug that: "Property access must assign to the property or use its value." Here is my VB code: [CODE] Imports System.Web.Mail 'Send email confirming purchase Dim notification As … | |
Hi, I’m trying to return a value from VB 6 to Access 2007 report and the unbound textbox remains empty. It seems that actually the problem is not coming from the coding itself, but due to connectivity between the two ends. In fact, I tried to enter a Beep instruction … | |
I am quiet new to using NetBeans IDE. I have created a file menu. When the user selects an option from the menu, a window should open,or a form should be loaded. So as far as i have figured out, the event needs to be handled by a mouseClick method. … | |
How would I make something like a high scores function on a java applet? Like how would I record the score the person got and then access later? | |
So, due to my last question, [url]http://www.daniweb.com/forums/thread303487.html[/url], I am becoming acquainted with the vector template. However, I clearly am not using the commands correctly. Below is a section of code which, eventually, leads to a segmentation fault later in the program. First an introduction of the variables: [CODE] using namespace … | |
Hi I am creating a DLL which will often make calls to another DLL. I have gone through the procedure of getting a handle to the other DLL and this works fine for some function calls. It seems like the functions which don't modify a parameter work fine. The access … | |
Hello Everybody... I am very new to VB.NET coding..My manager assigned me to write a Single Program that uses OOP concepts like Abstraction,Encapsulation,Inheritence and Polymorphism.As there is a time limit plese help me in this.............Thank You all..........CintoJose. | |
I have a perplexing problem which may turn out have a simple solution (hopes!). I am writing a little GUI to allow a user to enter information which will get built into an XML file which is linked to flash-based graphic. One of the fields I have is a Tkinter … | |
I need to use log4j and I have already imported the .jar, and added the necessary code to my project. I get the following warnings when trying to run my program: log4j:WARN No appenders could be found for logger (multithreadsprocessor20.MultiThreader). log4j:WARN Please initialize the log4j system properly. log4j:WARN See [url]http://logging.apache.org/log4j/1.2/faq.html#noconfig[/url] … | |
Hi Guys, I am struggling on an assignment where I have to enter an odd number to produce a triangle of stars. e.g. If I enter 5 - then it should look something like this ***** *** * My code is as follows: [COLOR=#0000ff]Private[/COLOR] [COLOR=#0000ff]Sub[/COLOR] btnEnter_Click([COLOR=#0000ff]ByVal[/COLOR] sender [COLOR=#0000ff]As[/COLOR] System.Object, [COLOR=#0000ff]ByVal[/COLOR] … | |
Hi, I am trying to incorporate a struct and class in the same program to calculate overtime pay and hours for one person. I am having a hard time with these two and especially putting them together. I am not sure what to do to get the program to compile … | |
![]() | Hi all Is it possible to intergrate my website to my phpbb forum so that when users register with my site, they also get registered with my forum. If anyone knows how to or if they know any sites that tell you please could you post them here. Thanks in … ![]() |
Hi to all, i am building a site with movie reviews.. due to the fact that a movie may have more than one category ex action, adventure, sci fi etc i ended up using a sinlge column to add all tha categories in comma delimited form.. 1st question. is the … | |
I have started programming in python . I want to know the best GUI binding to use .pyqt and wxpython which one is the best and easy to learn and install on federa 13 | |
I have two tabs in a form . The first form has some buttons which are common to the second tab. But there are some additional buttons in the second tab which need to be worked on . I have included the buttons in the second tab .But I am … | |
I have a problem casting a long to an int in c++ There is a long "biWidth" in the &pVideoInfoHeader->bmiHeader struct, I simply want to read this into an integer value "Width" [CODE=c]//check the video info header Width=(int)(&pVideoInfoHeader->bmiHeader.biWidth); Height=(int)(&pVideoInfoHeader->bmiHeader.biHeight); //break point here [/CODE] When I step through the code to … | |
Hi, I have this following code for watershed algo to segment an image. But I do not know what the error is. Can someone help me out [CODE]namespace watershed1 { public partial class Form1 : Form { public int X; public int Y; public int Height; // labels the pixel … | |
Hi. I'm fiddling around with Python and MySql. I keep getting an error with this little script to try and read the rows in a table. The error is: TypeError: unsupported operand type(s) for +: 'int' and 'tuple' Here is the code snippet. Any help would be hugely appreciated [CODE]import … | |
I want to make a graphic of certain data in my program. The problem is that the zedgraph doesn't zoom out to see the dots or lines in the graphic. This is my code: [CODE] Sub llenar_graph(ByVal zgc As ZedGraphControl) Dim myPane As GraphPane = zgc.GraphPane myPane.Title.Text = "Algoritmo Genético" … | |
hi guys i ve a problem in doin my project. wen i give some data in the sales bill form i ve created, tat should appear in ms word bill format i ve designed how to connect my vb form with word and to take a print of it, plz … | |
hi all, Im trying to add a "title" to a switch case statement below, but for some reason im unable to complete, what I thought was a simple task. Hope someone can help and explaine the reasons why cheers, Lloyd [code] switch($ad) { case "add1.gif"; header("Location: http://www.google.co.uk"); break; case "add2.gif"; … | |
I have a picture uploaded in the picturebox in c#. What i need to do is to draw a rectangle into this picture and cut the part of image that's in the rectangle and show it next to the image box and then save it with a submit button. Can … | |
okay i have an array of a struct. [CODE]struct MYSTRUCT { float myFirstVal, mySecondVal, myThirdVal; unsigned char myByte; } int myCountFunction(MYSTRUCT *&myArrayOfStructs) { int myCount; // question area return myCount; } [/CODE] here is my question. how do i count the number of elements in an array of type blah … | |
Hi C++ experts, I am looking for a script which given a structure made of basic types can generate a C++ class which encapsulate the structure and it also generates the stream in and stream out method for the structure e.g [code] input int a ; char b; string c; … | |
I know how to se the font of a regular JTextArea, but how would I get an reference to the selected text and only select that? Here is what I have so far: [Code] setFont(new Font(font, style = Font.BOLD, size)); [/Code] this works but changes whole area [Code] textArea2.getSelectedText().setFont(new Font("sansserif",Font.BOLD, … | |
Warning: mssql_connect() [function.mssql-connect]: message: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. (severity 14) in \usr\local\htdocs\connect.php on line 5 [B] We are using the following code for connectivity[/B] mssql_connect('servername,port', 'username', 'password'); mssql_select_db("dbname"); | |
I believe there may be something wrong with my PHP.ini as I can create cookies using the setcookie function but cannot access the cookie using the COOKIE function. Please note: I have enabled cookies in my browser I then have 2 very simple scripts in separate files file 1 [CODE] … | |
i have created a registration page. when user fill it and submit a unique user_id will be given him. but problem is when user_id has been given if user refresh the page a new user_id will be alloted to him. if he refresh the page for thousand time a new … | |
helloo, hello can you help me please i want to write to a file using bufferedwriter and bufferedreader but the problem is that i don't know how to use it i get an error please help me,hoping for your positive responds... [CODE] import java.io.*; import java.util.*; class Writefile { public … | |
Let's say, I have a web application where many users are going to submit the iformation at the same time to be redirected to another pages and complete the rest of this application process. The problem is, how can I distanguish among all the users and be able to retrive … | |
hi i am trying to make a currency converter to convert British pounds, US Dollars and Euros . i have the GUI made but i wanted to make a separate class to handle the conversion of the currencys but im not sure where to start so i was wondering if … | |
After hosting, i get this error:"Can't connect to MySQL server on 'localhost' (10061)" The code was working fine in my computer. I have hosted it in windows platform and i am using mysql and php. Here is my code for db connection $connection = mysql_connect(localhost,uname,pword) or die (mysql_error()); $db = … | |
How to pass an array of struct as a function parameter? This is not working: [CODE] struct Person { char* name; int age; Person(char* name, int age) { this->name = name; this->age = age; } } struct XYZ { int count; Person* people[]; XYZ(int count, Person* people[]) { this->count = … | |
Hi, I have two Pthreads and two named semaphores, the semaphores are created within the threads, is there a way in which i can declare a semaphore in one thread and then open and use it in the other one ? Thanks | |
Hello everyone I am new with algorithm, this is one of my problem which I am trying to sort out. Can anyone help me with some clues for this... Design an algorithm that will read an input weight for an item to be shipped search an array of shipping weights … |
The End.