199,114 Archived Topics
Remove Filter ![]() | |
Hello, My program needs to capture the screen every 1 second until stopped by pressing the GUI button. In the GUI class I used a for loop to go infinite, but that probably does not work because it takes time to capture, & save screenshot, but the for loop fires … | |
im trying to get the user to enter information into a textbox and then after clicking submit button the page has a table containing with that information in the rows. so for example the table has the heading Artist, Songs, Year made, Gene and the user has to enter data … | |
Hello, I am creating a toolstrip and then adding a toolstripcombobox to it. My code so far is as follows: Dim tsMenu As New ToolStrip tsMenu.Name = "tsMenu" tsMenu.Dock = DockStyle.Top tsMenu.Visible = True Dim tsComboBox As New ToolStripComboBox tsComboBox.Name = "tsComboBox" tsComboBox.Visible = True tsComboBox.Items.Add("Item 1") tsComboBox.Items.Add("Item 2") tsMenu.Items.Add(tsComboBox) … | |
Hi. Does anyone know how to migrate a Merge Module project from .Net Framework 2.0 to 3.5? I have been able to move the WindowsFormApplications and msi project but got stuck with the msm. Thanks | |
Hi I want to know if I can search my database, with the help of a text box. When the search button is clicked, the results is displayed in a list box so that the user then can select the result that suits him and then add that text to … | |
<?php session_start(); include("header.php"); include("conection.php"); include("modal.php"); if(isset($_SESSION["userid"])) { if(isset($_GET[first])) { } else { $_GET[first] =0; $_GET[last] = 10; } if(isset($_POST["button"])) { $resultac = mysql_query("SELECT * FROM examination"); echo mysql_num_rows($result); } else { $result = mysql_query("SELECT * FROM examination LIMIT $_GET[first] , $_GET[last]"); } $result1 = mysql_query("SELECT * FROM course LIMIT $_GET[first] … | |
Hey everyone, so I have this project for windows phone i have to do and I have to put some pins on a bing map, but in order to do that I make an API request to google for google places. I get back an XML file and it's like … | |
can any body Please tell me how to start or call windows service installed on remote server from windows based application in c# Help will be apreaciate Thank you in advance | |
I am attempting to make an interface with textfields where the data entered into the fields is stored in a variable, and then written to an external file. I am trying to use FileWriter fw = new FileWriter() to tranfer the variable to the file, but I cannot find an … | |
Hi everyone, Ok so let me start by saying I am COMPLETELY new with MySQL, I have only tried to use it for the first time hours ago. This might be an easy one for you guys... Here's my code: <?php // Grab User submitted information $email = $_POST['users_email']; $pass … | |
hi All, I have question around Douglas Crockford "method" method. Function.prototype.method = function (name, func) { this.prototype[name] = func; return this; }; function azerizor(value) { this.value=value; } azerizor.method('toString', function () { return this.value; }); var me = new azerizor('salam').toString(); alert(me); this is it. But here arises question regarding **return this**? … | |
How could I add a external library to the native c++ lirary path at Ubuntu to be found by #include from source code? I have some couple of sources that I try to include them by all the codes written on my machine thus instead of coping all the library … | |
I got an error with my codes? Is anybody can help me ? The Error list said Identifier Expected? the error pertains on the last Underscore in my code but i dont know how to solve the error, Hope can someone will give an Idea to make it right :) … | |
**Algorithm** step1: display 3 choices step2: user inputs one choice step3: Choice is store in one variable step4: selected choice is transfered to switch function step5: choice is compare to cases step6: a text document is created stating you choice. **This is layout of the code:** #include<stdio.h> void main() { … | |
I need help writing a program that declares a minutes variable to represent minutes worked on a job, and assign a value to it. Display the value in hours and minutes. For example, 197 minutes becomes 3 hours and 17 minutes. Unfortunately, I don't know much about programming...so, any information … | |
I am trying to set up a 12 month table summary in a bank account program. The problem I have is I am trying to figure out how to set it up correctly. Here is my class and application from the bank account: Here's the class part: [CODE]class SavingsAccount { … | |
Private Sub cmdSimulate_Click() Dim comm As CommandButton Dim zi As Long, ki As Long Dim shorts(10) As Integer, count As Integer Dim temps As Integer, z As Integer, n As Integer, m As Integer, i As Integer If typeSched = 1 Then temps = 0 btnP(0).Width = Val(txtBT(0).Text) * 100 … | |
I recently just found out about Facebook's Notification API. However, I do not know where to place the codes at... Can anyone enlighten me where to place the codes? Your help is greatly appreciated! (: | |
Hello! I need a help from my code in filtering the male/female regular/contractual employees. Scenario: I have 4 checkboxes the 'cbox' for contractual, 'rbox' for regular, 'mbox' for male and 'fbox' for female. What I wanted to happen is when I check 'mbox' it will display male employees in as … | |
Hi i have a registration form .. somewhere in my form i have an image(registration is written) btw div tag: <div id="test"> <img src="..."/></div> <label>username:</label> ....... .... ... <div><label onclick=Onchange(1)>Login</label></div> Now i have an option :login" on this form if user has already registered. When click on "login" the image … ![]() | |
Hello everybody. Here is my remove method for bst. As you all know, there are 3 cases to consider while removing a node from bst. For the last case, when a node (which is to be removed) has 2 children, I want to use predecessor instead of successor to change … | |
i've been working on a game project, its a slider platformer and i've been having problem with getting the movement working, the movement is time based instead of being fixed to the frames per secound so the movement is consistent. the movement was working when i was testing out the … | |
Hey everyone. I was doing a simple test program today that my professor is asking us to do just to test to see if his Ant script works correctly and I came across a problem that is confusing me. My prof wants us (after created all of our homework class … | |
I just built a new computer and I am trying to keep it as "clean" as possible. I have the purchaised version of VisualStudio 2008 but I dont know wether I should install that, or the latest express version? | |
Hello everyone, I'm attempting to log into Hotmail using Web Requests, but I'm having a little trouble. It seems I can log in fine, but when I try to access Hotmail, it takes back to a login page with puts me in a constant loop. The important code can be … | |
Hey guys i have a small problem i would love some advice..this code outputs a hollowed box the problem is i cant get the right most column of the box in the right postion without tabbing it across..which will create problems if i want the user to determine how big … | |
hello. i doing my work and facing problem in "<<" operator i declare that method in the class public: friend ostream& operator<<(ostream& out, T theList); and in the main i am using that to print the list in this way cout<<"First List is \n"<<list1; but it creat error in the … | |
#include<conio.h> #include<stdio.h> #include<string.h> int mistakes_ctr=0; int x=52, y=22, i; void printM(){ gotoxy(20,20); cprintf("m"); } void printP(){ gotoxy(22,20); cprintf("p"); } void printL(){ gotoxy(24,20); cprintf("l"); gotoxy(34,20); cprintf("l"); } void printA(){ gotoxy(26,20); cprintf("a"); } void printN(){ gotoxy(28,20); cprintf("n"); } void printT(){ gotoxy(30,20); cprintf("t"); } void printO(){ gotoxy(32,20); cprintf("o"); gotoxy(36,20); cprintf("o"); } void printG(){ … | |
how do i detect the current position in vlc video-playback in vb.net? Basically as the clip is playing, I want in a label for it to say "02:58/21:35" relating to the current clip being played. So I'll need to somehow figure out how to detect current position and end position. … | |
I am trying to have a C++11 compiler that works. It seems (if the publicity is right... and typically it never usually is!) that gnu g++ 4.8 might be it. So I installed Ubuntu 12.04 read the instruction on multiple sites, did EXACTLY as it was said, got (obviously) errors, … | |
Is the sizeof operator in c a compile time or run time operator..Because the following code works fine with a gcc compiler int a; scanf("%d",&a); printf("%d",sizeof(a)); But I found in one of the tutorials thatsizeof is compile time??Can someone please clear the confusion? | |
I have this file 3 10 10 10 0 0 0 0 0 1 1 0 0 1 1 1 1 0 0 0 1 1 and I want to read the first line as intger in X the 2nd line in camp1 the 3rd line in camp2 line 4 … | |
#include<iostream> #include<conio.h> using namespace std; char square[10] = {'o','1','2','3','4','5','6','7','8','9'}; void box(); int checkwin(); int main() { char f, g, e[10]={'o','1','2','3','4','5','6','7','8','9'}; int a; int c, d; for(a=1;(a<=9);a++) { int b; system("CLS"); box(); if(a%2==1) { cout<<"player 1 enter your num\n"; cin>>b; } else { cout<<"player 2 enter you number\n"; cin>>c; } if(b==1&&square[1]=='1') … | |
Hello Is there anyway to move a string array elements to a vector and have an output that list these elements? Let's say the array contains the following elements `String arraySize[] = {"A", "B", "C", "D", "E"};` and I want to move these elements to a vector.. How would I … | |
In this code, I need to put a limitation in every part where the user is asked to input data. The user will be asked to input a grade ranging from 50-100, and if his input is not in the range, the program will display a warning, and if the … | |
Hi I have the following script to upload an image to the server. Instead of the script producing a unique name for the image, I actually want to just replace one image with another..ie. overwrite an image which is already there, with another of the same name. I'm getting a … | |
this is the question. www.codechef.com/problems/CTEAMS i wrote this code http://ideone.com/h5Gimy it gives success but when i pass an input it gives sigsev error.please someone help!! | |
I try to reference a struct from another class in my code and it gives me an error, saying I have a syntax problem. //Figure index struct FIGURE_TYPE { //Where to crop the image from SDL_Rect crop; int x; int y; }; That's the struct in Figure.h, void set_camera ( … | |
Dear All gone through amny articles on uloading excel to mysql excellent code in http://phpexcel.codeplex.com/ http://sourceforge.net/projects/phpexcelreader/ MY issue is i cannot upload following (this is cut and pasted from an excel file) where in t1 is actually t and subscript 1 opposite to (n² i.e. n and superscript 2) I … | |
Another quickie. This is a basic class for working with Windows path strings. It's based off of .NET's System.IO.Path class, but doesn't contain any API dependencies (and thus doesn't normalize the paths, it's all straight string handling). Methods that I've personally found to be useful are included. The class is … | |
guys i need ur help i want to insert data directly into the sql table using c# here is my code all that i have been able to do is get the values from the table not insert them i tried to do it this way but apprently there is … | |
![]() | Hello people, here is a question related to sharing of databse between two applications. I am developing an application which has two parts: 1) Client Side. (Student) 2) Server Side. (Faculty, teacher) What I want to accomplish is that if a teacher creates question paper the student should be able … |
I have 3 tables that I wish to produce but I just cannot get my head around the logic for producing them. I'll try and explain the best I can. I have one table and the contents are as follows team | group A | 1 B | 1 C … | |
I am new to c++ and to using graphics libraries, so please forgive me if I have made a silly mistake. I am trying to compile a program that creates a window with one button from an example I found online. This is the error I get when I try … | |
Can someone tell me why I get this error "terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check Abort trap" when i run the following code? user and reservations are vectors of two classes else if (str == "lookup") { getline(cin, Name, '\n'); if (Name == user.at(i).getName()) { for … | |
I am having a problem with a program I wrote.. For the life of me I can't figure out what's wrong with the program.. the program should calculate a random value and then outputs an intrest rate and present value.. The problem is that I am getting zeros instead of … | |
Hello to everyone I am a begginer in VB6. My project consist just on a form and a web object, the problem is that I want to dissable the sound that make the application when I click on links. Can someone help me?! Plese write the code here because I … | |
Hi, I'm trying to insert the contents of this this file (assets.txt) into my database: B02W0Y2^EUROSTAR LTD^35.09^^ B02V64S^NORTHERN ROCK^21.97^^ B06N3Q2^MOTOR OIL SAPA^7.24^^ B05WF50^COLT TELECOM GROUP^20.29^^ B03R2SA^XEROX CAPITAL^35.65^^ B09G3SD^COREALCREDIT^12.10^^ B04F5GD^ULSTER BK LTD^16.46^^ B02DH5H^EUROTUNNEL FINANCE^53.24^^ B05D3WK^BRADFORD & BINGLEY^18.07^^ B05DGEF^SKIPTON LTD^4.50^^ B07DHX4^EBAY INC^46.55^^ B08VEW1^FURSTENBG CAP^86.36^^ B06HS34^LBG CAPITAL^54.22^^ I'm using this code: mysql_connect($mysql_hostname,$mysql_user,$mysql_password); $sql … | |
hey guys im trying to compare 2 num_rows the append the result on the $data array then access it via ajax. $get_section = "SELECT * FROM section a LEFT JOIN advisory_sections b ON(a.section_id = b.section_id) LEFT JOIN school_faculty c ON (b.faculty_id = c.faculty_id) WHERE a.school_id = '$school_id' ORDER BY section_level … ![]() | |
I need to integrate sms to my php project, i want the user to get an sms on his mobile immediately he got to the welcome page. I had created a registeration form and a form for phone number, my sms gateway is something like this http://index.com/smsapi.php?username=joe&password=something&sender=sendername&recipient=12345678&message=Youarewelcomeblablabla Please help, i … ![]() |
The End.