64,152 Solved Topics
Remove Filter ![]() | |
HI all, I am currently expanding my knowledge by dipping into SDL, the only problem is that tiff.dll file is missing, use search of my computer, couldn't find it anywhere. Looked on Google, nothing simple just stupid adverts to download some registry fixer for free (we all know scans but … | |
Hi, In the page I’m developing, I have two textboxes, and two CheckBoxLists. Each CheckBoxList is being populated according to what the user types in the respective TextBox. In the Page Load, I’m doing the following (VB.NET): [CODE]Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load FirstTextBox.Attributes.Add("onkeyup", … | |
Hi, I have written some code which when a mouse is clicked, a red circle is drawn at that position. The x,y coordinates are stored in an ArrayList. What I now want to do is enable the circles to be selected and then dragged. When the mouse is released the … | |
I have written a program which allows the user to click on the screen which draws a circle and when the user clicks on the circle again they can drag it around. My code allows the circle to be dragged it still displays the original cirlce and draws the path … | |
I'm currently writing a small game engine and I've downloaded the Irrlicht source code to take some tricks in the design but I have a question... why use some prefixes in the file names and what they stands for? example: CGUIEditBox.cpp CGUIFont.h CXMLWriter.h IDepthBuffer.h I also saw this practice in … | |
Hi can anyone tell me what's wrong with this? Thx in advance. [code=php]$meta_tags = '<meta name="keywords" content="' .$meta_keywords' . "> <meta name="description" content="' .$meta_keywords . '">';[/code] Its throwing the following error: PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING | |
I am very green at writing Java, I am trying to go through our chapter examples and putting in data for a mortgage calculator with a GUI. This code is far from finished but the example says "Now save and compile" and this is where I am getting the error … | |
ok so my code is as follows: [ICODE]read=open('mon_17.py','r') reader=read.readlines() a=[] for line in reader: reader1=[] for i, entry in enumerate(line.split()): if i in range(0,4)+[6]: reader1.append(int(entry)) else: reader1.append(float(entry)) #float the 2 purity values only at this point #reader1=map(float,line.split())#this was made everthing diff made all floats a.append(reader1) a.sort(lambda x,y:cmp(x,y)) read.close() match={} for … | |
So, I'm really frustrated with this problem. I desperately need some good explanation about this. Why does the calling function does not reflect the change done in the called function? despite the fact that I pass the variable via pointer. Any explanations please. Thanks in advance. [CODE]#include <iostream> using namespace … | |
I am writing an app where I will need to pop up a form to allow the user to enter data and then pass back at least a portion of that data (an ID perhaps) to the calling form. I have not completely decided how I am going to handle … | |
Ok in my program i'm trying to prevent a user from adding too many objects. i have three arrays called subs airs and dests, the user shouldn't be able to have more than a total of 10 objects between them. in order to add an object to an array the … | |
[code] #include<stdio.h> #include<stdlib.h> #include<conio.h> struct node { int info; struct node* llink; struct node* rlink; }; typedef struct node* NODE; NODE insert(NODE root,int data) { NODE temp,cur,prev; temp=(NODE)malloc(sizeof(struct node)); if(temp==NULL) printf("\nOut of memory"); temp->info=data; temp->rlink=temp->llink=NULL; if(root == NULL) { printf("\n1st time\n"); root=temp; return root; } prev=NULL; cur=root; while(cur != NULL) … | |
I am trying to populate a label using a T-Sql query to a SQL Server table upon a click event. I have the click event and linking to the SQL Server table working just fine. The process (below) returns "System.Windows.Forms.BindingSource" rather than any value from the table. My code is … | |
Good morning, Can you guys please figure this out? I have to write a code that calculates de wage of employees on a self generated list. User is asked for : numberofEmployees, hoursworked, rateperhour. If the employee works 40 hrs: rate= rate * hrs between 40 and 50 rate is … | |
Hi I need some help with the following problem: This is the source code: [CODE]<html> <body> <?php //Retreiving mail messages from mail server $server = 'localhost'; $port = 110; $mail = imap_open("\{$server:$port/pop3}INBOX", 'admin', 'password'); ?> </body> </html>[/CODE] This is the error message (exception): Warning: imap_open() [function.imap-open]: Couldn't open stream \{localhost:110/pop3}INBOX … | |
Helo all, Can anyone help me .I want to put dilimiter in the substring of a whole string. Here is the string Amitav 12/3/2009,234,201,210,222 I want to put dilimiter in the left most substring like this Amitav,12/3/2009,234,201,210,222 ______________ How can i do that. Thanks | |
Hello guys I have a problem with my code: I want to print an error message every time the user enters a number lower than -273.15 . My code runs well and does the desired mathematical operation. It even loops back to the input message, but I'm having huge headaches … | |
I am trying to do this with sql code without using a cursor. I have table A with two cols and no PK ID Data I have table B with three cols the first two make up the PK ID PK SEQ PK Data If I have the following data … | |
Hi to all keen folks, can you help me to query the first 4 letters and the last 4 letters in one field. example: AAAABBBBCCCCDDDD how to query AAAA and DDDD. thank you. | |
Hi everybody In an application I have, I had to start a word app. Because it took ages to load, I put it in the class constructor, but on exiting the app is not killed. I am trying to kill it by creating a destructor [code=csharp] ~MyClass(){ appWord.Quit(); } [/code] … | |
Hello! I have made a program that prints a diamond shape. But my program should read an odd number in the range 1 to 19 to specify the number of rows in the diamond, then it should display a diamond of the appropriate side in which it is at present. … | |
chunk of code... [CODE] public void init(ServletConfig config) throws ServletException { Map map = new HashMap(); } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); [U]map.put("one1","two2");[/U] [/CODE] compiler says 'map' cannot be resoled......why so? wht shd i do? thanks, BeanBoy | |
I have this piece of code [CODE=C++]// some function int px; void SomeFunction( void *dummy ) { ... RECT rect; GetWindowRect(hWnd, &rect); px = ((rect.right - rect.left) / 2) - 60; ... // Terminate thread _endthread(); }[/CODE] And my problem is px doesn't get assigned.. it stays 0.. although in … | |
Hi, I am new to C++. I am using Visual studio 2008, MFC application. I need to do a GUI program using C++. I have come out with the GUI and now i need source code to communicate to external deivce like hard disk using serial port communication. My GUI … | |
Hi, i successfully created the JAVA Applet and embedded it in the HTML page. The applet class is as follows: [code=JAVA] import javax.swing.JApplet; import java.awt.Graphics; public class HelloWorld extends JApplet { @Override public void paint(Graphics g) { g.drawRect(0, 0, getSize().width - 1, getSize().height - 1); g.drawString("Hello World !", 5, 15); … | |
Hi, I am new to java programming. I have been creating a simple applet. Which is as follows: [code=java] public class HelloWorld extends JApplet { public void paint(Graphics g) { g.drawRect(0, 0,getSize().width - 1,getSize().height - 1); g.drawString("Hello world!", 5, 15); } } [/code] This code is saved in a file … | |
Hi, ASP .net is totally new area for me. I am trying to build one web application to be accessed internally by my team through local network. So, I am trying to add one login page in my project asking for user's username and pwd. Now, I want my application … | |
Alright so im trying to write a simple temperature conversion but i can't seem to get it to work 100%. My problem seems to be that I want to check to see which field has had a number entered in it, and then run the correct conversion function accordingly. I'm … | |
hi i have problem to use doscommand haw to install an use plise help. hire is doscmd [url]http://maxxdelphisite.free.fr/doscmd.htm[/url] | |
Hi, im trying to write some information into a mp3 file. The information i'm trying to introduce into the file must begin 128 bytes from the end of the file, and this block of information is identified by the string "TAG" at that position (128 bytes from the end). After … | |
Heres my code, which is in the head section of the page(yes, its saved as .php): [code] <?php if (isset($_GET['category'])) { if ($_GET['category'] == "property" ) { $property_link = "<span>Property</span>"; $rentals_link = "<a href="listingstest.php?category=rentals">Rentals</a>";} else { $rentals_link = "<span>Rentals</span>"; $property_link = "<a href="listingstest.php?category=property">Property</a>"; } } else{ $property_link = "<a href="listingstest.php?category=property">Property</a>"; … | |
The assign was a game called FortuneCity The prof wanted us to follow the MODEL - VIEW - CONTROLLER implemention. The MODEL contains only functions that can be used in the game. It has NO GUI stuff in it. The VIEW contains only contains the GUI interface. The CONTROLLER allows … | |
Good morning/afternoon/evening! I'm trying to run a MySQL query, but it seems to be ignoring the "ORDER BY" clause, most likely, I'm believing, because I'm using the "IN" keyword in my query (several times, as a matter of fact, along with a "LIKE"). Is there a way I can structure … | |
i tried the following code but not getting the desired output. I need to extend Applet class along with dialog class.how do i do that? [code=JAVA] import java.awt.*; import java.awt.event.*; import java.applet.*; /*<applet code="YesNoDialog" width=400 height=400></applet>*/ public class YesNoDialog extends Dialog implements ActionListener { private Button yes=new Button("Yes"); private Button … | |
i am currently working on a GUI for a program. i have created 100 jpanels which i have set opaque and colored blue. All of these blocks get an error which says that an identifier is expected for the lines which set them opaque and colors them, heres an example: … | |
Hello, I am new to Java programming and I just got the NetBeans IDE. One problem that I've been having with Java is the input. [code=java] package learning; public class Main { public static void main(String[] args) { int num1 = 0, num2 = 0; cin >> num1 >> num2; … | |
Hi i have a table which i was using with a datagrid using hyperlink to maintain a simple menu to browse a internal site. but now i decided to create a horizontal menu with the Menu Component of asp.net, i know there is a different way how to do this, … | |
I have tried to get my php scrip to work but it doesn't. can someone maybe help me to get it working please. Here is my script: [code=php]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <?php if(isset($_POST['mail'])) { $email_to … | |
Realized something today by accident. I am asking for a dollar amount in my program, and checking to make sure it is a valid amount above $0. What I am not checking for is a character response. I have tried some stuff, and nothing seems to work. Can anyone look … | |
So I was looking over someone elses code, and the main is unusual, no type. its just: #include <math.h> main(int argc, char *argv[]) I've come up with 2 theories: 1) It defaults to int? 2) #if/#endif directives somehow negate the need for int? Have no experience with this though, so … | |
Hello! I was wondering if I could get some assistance with something that is probably easy for even an amateur javascript coder, but, I just can't seem to get after trying every iteration of code I can imagine. The deal is, is that I'm trying to put together a PHP … | |
Hi i am wondering if anyone has a solution for sorting by postcode area. I wanted to be able to pick off either the First letter or first two letters and group by this. I have figured out how to group by the first to characters of the postcode using … | |
Hi all, I got the following XML C# string: [CODE=XML] <Grocery> <Food> <Fresh Food> <fruit>BANANA</fruit> <meat>CHICKEN</meat> <desert>CAKE</desert> </Fresh Food> </Food> <Food> <Fresh Food> <fruit>APPLE</fruit> <meat>BEEF</meat> <desert>PIE</desert> </Fresh Food> </Food> </Grocery> [/CODE] I want to remove the Fresh Food tags to obtain the following: [CODE=XML] <Grocery> <Food> <fruit>BANANA</fruit> <meat>CHICKEN</meat> <desert>CAKE</desert> </Food> … | |
I wrote code below it open me a new window and show current time but I want it will show it in same window and chnge each second here is my code (i think I must use [COLOR="Green"]setInterval function[/COLOR] to change time each second but if I put the call … | |
Hi, I am new to OOP and I have ended up in a situation that might force me to abondon some of the flexibility I had in mind in my project. Before I do so, I figure I'd ask here to see if there is an easier fix for me. … | |
Hi all, i need to select the paragrah from the current cursor position. any ideas? | |
Hi all, I was wondering how I would use a single text box for multiple things eg. In one text box I would type 'createfile file.txt' or something like 'stopprocess process' etc. How would I do that? Thanks | |
Ok, I am writing a client for the "instant messaging" server I just wrote. The client is in all Python, and the GUI is made with Tkinter. Anyways, my first question is this: is there a way to make a scrollbar widget automatically scroll to the bottom? Second, in a … | |
Hi, so in order to make my problem more clear, I shall just make a simple example of what I am trying to do. I will start with a little code: [code=python]from Tkinter import * master = Tk() msgbox = Text(master) msgbox.pack() mytext = raw_input("> ") msgbox.insert(END, mytext) master.mainloop()[/code] Now, … | |
Hi all :) Does anyone have or know of any examples of how to store and upload .pdf files through a c#/asp.net web application? Thanks :) |
The End.