199,114 Archived Topics
Remove Filter ![]() | |
how can I trigger anything outside the method ??? like carry the boolean a outside [CODE]public void windowClosing(WindowEvent arg0) { System.out.println("Window Closing"); a=true; // cant refer to non final variable a inside an inner class defined in a different method[/CODE] I want to use "a" in while loop for instance … | |
Hello Everyone, I have a database that has some items and I would like to fill a combo box with the items and have the combobox selected value set the corresponding item ID. I have seen so many ways to do this I am not sure which way to go. … | |
In Visual Studio 2008, I received the below error message while trying to add a web reference to my Web Application. "There was an error downloading '.....asmx'. " I had no issues when I tried the same in Visual Studio 2003. What would be the problem? Please help me, It's … | |
[code] Public Sub add_emp(ByVal emp As EmployeeObj) Dim con As New SqlConnection Dim sqlcmd As SqlCommand 'Dim sqlrdr As SqlDataReader Try If is_emp(emp.Id) = False Then con.ConnectionString = My.Resources.ConnString con.Open() sqlcmd = New SqlCommand("INSERT INTO [Employees] (" _ & "[Id], [SocialSecurity], [FirstName], " _ & "[MiddleName], [LastName], [Suffix], " _ … | |
Hi guys, I've been developing basic websites for the past 2 years. Recently, a relative of mine had started a vehicle leasing company and has asked me to create the website for him. Now the majority of the site will be no problem to create however, as it is vehicle … | |
Are there any C\C++ libraries what will allow me to plot in real time? If any explanation is needed the perfect example I saw of this was for a API, Swarm, that is used for simulating large numbers of agents. In my program with it a bunch of workers basically … | |
Hello, I'm trying to read dictionary words from a file and store the output in a struct element of type unsigned char *. I keep getting a bunch of memory related errors and segmentation faults which Im sure are totally related to me trying to access something that's not really … | |
is it possible to use php as a client side scripting language? if it possible, how can i read values releated with the form? | |
![]() | Hello, I am pretty new to php I have to restructure all my code to avoid the famous warning error [INDENT]"Warning: Cannot modify header information - headers already sent by (output started at...)" [/INDENT] I get this at least 4 times in my code due to cookies and session start. … ![]() |
Hello everyone, I'm new to PHP and having a very basic problem of instaling the web server correctly. Now,I tried to run PHP 5.2.9 , The instalation program asked me to choose a web server and for not having much understanding in this I chose apache 2. The problem was … | |
Hello , I have a source code that could potentially upload files onto an FTP server using winsock. But there seems to be a small glitch and the files are not getting uploaded. Could someone please guide me as to why this is happening. I would be forever indebted. thanks … | |
How would you count how many opening HTML tags there were & then closing tags in a line? eg [CODE] for line in something: for match in re.match("[I]opening_regex_here[/I]",line): # will match <H1> or <html> or whatever opentags += 1 for match in re.match("[I]closing_regex_here[/I]",line): # will match <H1> or </html> or … | |
i dunno im sure this output the good result i dont understand why it got not the output that i want [code] #include <stdio.h> void Squeeze2(char *str,char *save) { int i,x; int buffer=0;//used to save stuff for( i=0 , x=0 ; str[i]!=0 && save[x]!=0 ; i++, x++ ) { if( … | |
Maybe I've just missed this one and its easy .. but I like to write my local css styles using a single line .. But everytime I drag a control onto the web page VS creates the .Style1, .Style2 etc etc. Trash to clean up. If I DO clean it … | |
Hi, I have java code, in the code there is about 5 lines that I wont to open in new Thread, I don't wont to crate all new class for 5 lines , can I can I implement the Thread inside the method without new class? | |
I want to find the first null child in a tree and return that node of the tree. Im thinking something like this but it doesnt seem to work the way I want. [code=cplusplus] node *Find_Empty_Node(node* root) { int index = 0; if(root) { if(root->data == 0)//<--I want this child … | |
hey guys, I have a fixed length .txt file. Values in the file correspond to columns in a db table. ex file row is something like: [B]India 3455 78787 89898[/B] table has columns something like: [B]column_name length startPosn EndPosn[/B] country 6 1 6 ID 6 7 13 so you see … | |
I'm seeking for help with storing and retrieving/calling numerous sound and picture files. I've about 200 both .bmp and .wav files and it might get bigger. So I'm not sure if it's wise to embed that many files in the Resources, or should I add them to a special directory … | |
Hey guys, So I have compiled my first home-written static library (named PixGUI) that happens to call OpenGL functions. However, I noticed that when compiling (using MinGWs GCC with Code::Blocks project set to "static library") it doesn't matter whether I supply the linker with libopengl32.a or not, it simply compiles … | |
![]() | I have a string, say for example: [CODE]str="aasd<script>"[/CODE] How do I make Python to note down one character at a time until it encounters the '<'? I know it has to be a loop, but which function? Thanks |
Hey, I am curious about making an application that will show current printers that are installed on the computer, will be windows XP, and at first returning them back for the user to see in command prompt. Although I am unable to find out how I can check to see … | |
I've been browsing the web for a while looking for an answer to this but I can't seem to find it. I created a .resx file in one of my DLL files that has a bunch of images stored on it. In this DLL I'm using an extended ImageManager (CustomImageManager) … | |
![]() | Hey guys.... I use Python 2.6.2. I recently created a program which accepts commands from my website, here's the code I used: [CODE]import urllib import subprocess import time open_site=urllib.urlopen("http://www.sravan953.webs.com/command_python.htm") read_site=open_site.read() def run_program(): current=time.asctime() print 'Runnning program'+' ['+current+']' subprocess.call(read_site) def check_argument(): current=time.asctime() if read_site=='': print 'No command given'+' ['+current+']' timer() else: … |
I think I've run into a thread synchronization problem. I have a C# program where I have a extended Panel class (MapEditorPanel) and I also have a form that contains that MapEditorPanel. I have a MouseClick Event on both the Form and the Panel. The MapEditorPanels event updates the variables … | |
I have to develop a Academic Automation System as College project in OOP C++. need your help in this regard so i can complete it. I already have defined the following classes, 1-CourseAdministrator 2-Student 3-Tutor 4-Course 5-CreateLogin 6-Security (For Validitaion, check for login and password) is there any meterial which … | |
I am a new to php and i've managed to populate a combo/list box with data via mysql but i can't find a way to display a tooltip or description with the onmouseover event. Any ideas? | |
[code=c++] #include<iostream> #include<string> using namespace std; struct one { char name_book[80]; char name_author[80]; int no_of_books; }one1[500]; int insert() { int i,j; cout<<"Enter the No. of Books you want to enter : "; cin>>i; cout<<endl; for(j=0;j<i;j++) { cout<<"Enter the name of book "<<j+1<<" : "; cin>>one1[j].name_book; cout<<"Enter the name of the … | |
Hello, can you PLEASE put a SIMPLE traceroute code in java. i googled traceroute but i got a bunch of compicated codes. im new in networking programming, i want to implement the traceroute command . i already managed to create a network and wrote a program for the laptops to … | |
[CODE="Visual Studio 2008"] #include "storage_sql.h" #include <string.h> #include <stdio.h> #include <stdlib.h> #define strcasecmp _stricmp #include <cstring> #include <cstdlib> #include <string> #include <sstream> #include <algorithm> #include "compat/snprintf.h" #include "common/eventlog.h" #include "common/util.h" static const char * sql_backslash_to_underscore(const char * key) { if (!key) { ERROR0("got NULL key"); return NULL; } std::string rep … | |
how to write " how are you " in a text file and read the file and display the contents..can anyone tell me the code for this? | |
I am using pygame I want my program to read an image file that only has black on it and whenever the character moves over a part that has black on it, he stops moving, any ideas on how to get started? The black image is not to be shown. | |
Hi guys. I've worked on OOP before, and since in general 'get' functions are used to return private attributes in classes, I was thinking how I could make this test code work. [CODE=c++]#ifndef _testing_h #define _testing_h class Testing { private: char * name; public: Testing(); Testing(char*); ~Testing(); char* getName(); void … | |
I have the following script: [CODE] import sys import os import re pages = [] if len(sys.argv) > 1: for root, dirs, files in os.walk(sys.argv[1]): for f in files: filename = os.path.join(root, f) if (filename.endswith('.html')) or (filename.endswith('.htm')): pages.append(filename) for page in pages: f = open(page, "r") count = 1 for … | |
Hi everyone, I am trying to set my own calendar in JAVA. What I mean is, unlike the default Calendar I want to construct my own Calendar where a day will be only 13 hours for example instead of the 24 and there will be 30 days in every month. … | |
sir how can i add two fraction nos. to get again fraction eg. a/b+c/d=(ad+bc)/bd I would be very happy if u send me code. | |
![]() | Hi, is there an internal module / method to change the colour of the text in the pythonwin? I am asking this so that I can make more exciting text based games ![]() |
Hi guys, these days Social Networking Sites are spreeding faster around the world and they getting more users into their networks daily. My question ist. How to implement an algorithm as simple undirected graph in social networking site and how to search and find special groups who know each other … | |
Hai, Am Using SQL SERVER - 2000 Table Structure CARDEVENTDATE CARDEVENTTIME CARDNO 20090224 92007 485 20090224 92345 321 20090225 163932 168 20090225 164630 471 20090225 165027 488 20090225 165137 247 20090225 165147 519 20090225 165715 518 20090225 165749 331 20090303 162059 240 20090303 162723 518 20090303 155029 386 20090303 155707 … | |
I guess what i need to figure out is how to do this program. but i need to make the functions call by address. any help would be great. [code=cplusplus] #include <iostream> #include <fstream> using namespace std; int findLarge(int x[]) { int i = 0; int largest = -99999; while … | |
Hi, all i am new to this site please help for code given below when i executed it not updating it is giving error please help Thanks in Advance Private Sub UpdateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UpdateButton.Click Try Dim com As New OleDbCommand com.Connection = con … | |
So, I have an interface I would like to use, and I need to put lines on a JPanel within a Frame. Because I need other controls in the Frame so if I set the frames focus to the lines I won't have the controls. And also, I have another … | |
Hi all, I need a help regarding with the extraction of a single value from the specific field that contains the datatype [B]nvarchar(MAX).[/B] | |
hey there, i need some help in understanding pointers. this is an example from school but i cant quite figure i out. i know the basis of pointers but could someone give me some more info. [CODE] #include <stdio.h> #include <string.h> int string_len(char *s); int main() { char s[80]; strcpy(s,"Hello"); … | |
i did it like this but it seemed stupid : [CODE]string path = Assembly.GetExecutingAssembly().Location.Substring(0, Assembly.GetExecutingAssembly().Location.LastIndexOf("\\")) + "\\Sounds";[/CODE] any other ideas? my actual goal is to locate the files in my project output directory. it can be any directory i created under my windows application. it is not as straight forward … | |
Hi I am trying to modify a class and I found this code in it: [CODE] $query = " SELECT * FROM menus WHERE show = '1'"; $id = $this->menuid; if((isset($id)) && ($id != '')) { $query .= " and menuid in($id)"; } $query .= " ORDER BY menuorder ASC"; … | |
heey guys.. i'm trying to run this pro but i have one error.. can someone check it please. [CODE=language]#include <iostream> #include<cstdlib> void JOTAKU_LOGO (); //This function calls the flight agency's Logo. void ABOUT_JOTAKUAIR (); //This function displays a briefe history and information about J-Otaku Air. double DOLLAR_TO_YEN (double dollar_Z); //This … | |
hello, first of all welcome, secondly someone please help me? this wont compile :( [code] #include <iostream> int main() { float pi; float radius; float area; pi = 3.1415926535; radius = 2; area = radius * pi; std::cout << "The area of a circle with a radius of 2 is … | |
Hi i would like to know, how can i get the color of a certain pixel on screen? Like when i am in a game and i press a button on the keyboard it will get what color it is in one specified pixel say... (100, 50) Thank you so … | |
Hello all, My website has a feature in which I can turn on/off a feature which allows members to add their own CSS code for their profile design! If possible I want to allow this as it would mean a much better platform for my members but I wanted to … | |
I have a little problem that my Form gets stuck when I run this first code. I have a lot of code in the event. The code runs fine but if I now will deactivate the form by clicking with the mouse on the desktop and again click somewhere on … |
The End.