199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for suncica2222

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 …

Member Avatar for suncica2222
0
279
Member Avatar for functionalCode

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. …

Member Avatar for Ramy Mahrous
0
79
Member Avatar for sivak

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 …

Member Avatar for Ramy Mahrous
0
109
Member Avatar for everettnewell

[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], " _ …

Member Avatar for everettnewell
0
157
Member Avatar for Lewis_UnderGrad

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 …

Member Avatar for Teme64
0
234
Member Avatar for OffbeatPatriot

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 …

Member Avatar for OffbeatPatriot
0
780
Member Avatar for beaute

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 …

Member Avatar for csurfer
0
144
Member Avatar for Anvar.P

is it possible to use php as a client side scripting language? if it possible, how can i read values releated with the form?

Member Avatar for Will Gresham
0
110
Member Avatar for laetitia--

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. …

Member Avatar for laetitia--
0
144
Member Avatar for Arctic wolf

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 …

Member Avatar for Arctic wolf
0
144
Member Avatar for rebirth007

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 …

Member Avatar for Ancient Dragon
0
421
Member Avatar for pymatio

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 …

Member Avatar for vegaseat
0
3K
Member Avatar for MrNoob

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( …

Member Avatar for csurfer
0
99
Member Avatar for kkemerait

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 …

Member Avatar for sknake
0
271
Member Avatar for stewie griffin

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?

Member Avatar for stewie griffin
0
103
Member Avatar for JackDurden

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 …

Member Avatar for rcollins
0
111
Member Avatar for Agni

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 …

Member Avatar for tux4life
0
458
Member Avatar for slowburner

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 …

Member Avatar for ptaylor965
0
205
Member Avatar for Clockowl

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 …

Member Avatar for Clockowl
0
207
Member Avatar for sravan953

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

Member Avatar for siddhant3s
0
106
Member Avatar for Sky_Blue

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 …

Member Avatar for Sky_Blue
0
137
Member Avatar for NickMalone85

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) …

Member Avatar for sknake
0
76
Member Avatar for sravan953

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: …

Member Avatar for vegaseat
0
164
Member Avatar for NickMalone85

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 …

Member Avatar for Diamonddrake
0
100
Member Avatar for yun

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 …

Member Avatar for s_sridhar
0
106
Member Avatar for IfNot

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?

Member Avatar for IfNot
0
64
Member Avatar for sudiptamondal

[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 …

Member Avatar for sudiptamondal
0
101
Member Avatar for wonder_laptop

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 …

Member Avatar for huj_v_palto
0
188
Member Avatar for stark025

[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 …

Member Avatar for Ancient Dragon
0
194
Member Avatar for sivak

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?

Member Avatar for sivak
0
85
Member Avatar for tomtetlaw

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.

Member Avatar for tomtetlaw
0
289
Member Avatar for KuriYokan

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 …

Member Avatar for Sky Diploma
0
156
Member Avatar for pymatio

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 …

Member Avatar for pymatio
0
122
Member Avatar for Metahuman

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. …

Member Avatar for JamesCherrill
0
97
Member Avatar for Birendra Dhami

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.

Member Avatar for csurfer
0
110
Member Avatar for leegeorg07

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

Member Avatar for leegeorg07
0
2K
Member Avatar for Mubo

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 …

Member Avatar for JamesCherrill
0
145
Member Avatar for jetjash

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 …

Member Avatar for cutepinkbunnies
0
126
Member Avatar for cmick56

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 …

Member Avatar for ArkM
0
106
Member Avatar for navachaitanya

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 …

Member Avatar for sweetsasthi
0
85
Member Avatar for Virux

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 …

Member Avatar for Virux
0
4K
Member Avatar for Suryaahh

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]

Member Avatar for cutepinkbunnies
0
71
Member Avatar for revenge2

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"); …

Member Avatar for csurfer
0
109
Member Avatar for serkan sendur

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 …

Member Avatar for serkan sendur
0
456
Member Avatar for khr2003

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"; …

Member Avatar for khr2003
0
123
Member Avatar for fadia

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 …

Member Avatar for achied
0
364
Member Avatar for slawted

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 …

Member Avatar for slawted
0
99
Member Avatar for meb111

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 …

Member Avatar for meb111
0
79
Member Avatar for justted

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 …

Member Avatar for digital-ether
0
160
Member Avatar for Lukezzz

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 …

Member Avatar for Lukezzz
0
99

The End.