199,114 Archived Topics
Remove Filter ![]() | |
I'm making a program in Ubuntu with wxwidgets, the goal is to recognize faces but for now I just want to load an image into a frame. I load images by clicking on a load menu item which is linked to this function. [code=c++] void Face_Catcher_Frame::on_load(wxCommandEvent &event) { wxFileDialog * … | |
I have simple question. I have long code in my .cpp file with classes functions etc. I would like to divide it into separate cpp and .h files. What are rules governing the stuffing? Any good tutorial/example? Cheers :) | |
Hi, I have 2 frames. In left panel i have a hyper link. Whenever i click on hyper link (on the left panel) of the page should open in right panel of the frame. Here is the frame code. [code] <html> <FRAMESET cols="200,*"> <frame name="left" src="page.html"> <frame name="right" src="#"> </FRAMESET> … | |
Hi, Can anyone please help me with my command button. What it's suppose to do is if vbYes is chosen, then it will update a Field (fieldname "Approved") = True. If vbNo then the updates will be deleted. This command Save button is in a form which calls on a … | |
I'd really like some advice on a project I'm working on. I'm working on a school project where I'm supposed to build a system for a small dietitian clinic. One of the things I have to do is create a way for a receptionist to book, change and cancel appointments. … | |
Alright i am trying to read from a file so that it opens into the array temp_array. the idea is to have the data previously added to the file open into the array so i can search it and sort it this is giving me alot of stress it is … | |
when excecuted it gives an error 424 object required what i intend to do is download a pdf file to a location in my pc [code= vb]DoEvents If DownloadFile(ie3.locationurl, App.Path) Then MsgBox "Download Complete", _ vbOKOnly Or vbInformation, _ "Done" End If ' Download a file. Return True if we … | |
How would I make a program that can insert text into a text field in another program? Or click a button in another program? | |
Hi, I want to load an image from the code-behind. I have the path of this image ("C:\somedironwebserver\somefileonwebserver.jpg") and i need to get the url ([url]http://www.mysite/somefileonwebserver.jpg)[/url]. Currently I am combining strings to get get this URL but i think there must be a better way. google didn't realy helped me. … | |
Hi, i am developing the JSP/Servlet system now. Let we discuss database pooling, how you normally do that? My developing application is open/close database object every single class instance. My design is every time, we need access database then we invoked a database class object, execute SQL and close it. … | |
I'm writing a spellchecking program using a hash table. The hash table (a char * array) serves as the dictionary, storing words inputted from the file wordlist.txt. When I call the lookup function, a floating point exception occurs. Any suggestions you have on how to find what's causing the exception … | |
Hey, I need help keeping a http connection alive. I have used setsockopt to set keepalive to 1, and in the http packet i set keep-alive to 300, but the server replies with: [code] Connection: close[/code] my packet looks like [code=cplusplus] string buffer2="POST "+P.path+" HTTP/1.0\r\nHost: "+P.httpUrl+"\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows … | |
Hello, I'm brand new at shell scripts and I am attempting to complete a homework assignment but I am not quite sure what I am doing wrong here. The instructions are [B]Write a bash script that takes two arguments and generates a nicely formatted, plain-text, manual page for the command … | |
Hello, I am trying to do something very simple but my dial up connection is making it hard to research so I'd like some help! I'm trying to store instances of classes I created in a file. Something along these lines: [CODE] class apple { int flavor; String color; apple(int … | |
Here's a question i got in my assignment... [QUOTE]Create a method with signature public String testWindDirection() that creates a local object of type WeatherReport using the constructor with no parameters, and returns its initial wind direction, e.g "ESE"[/QUOTE] I createrd it here... [CODE]public class Reporter { private WeatherStation ws; private … | |
Summary of task: I have to write a program that adds 3 places to each char of a user input string to encrypt and vice versa for decrypting. Doesn't seem to hard, but as a beginner I am having an issue. I am having problems getting the user input string … | |
Hi I am doing a project to read the output of an instrument and store in excel sheet. I have succesfully read the data thru mscomm1 and am able to show it in a text box. The data from serial it read from 3 second in 3 second using a … | |
Hello all!! I wonder if anyone can help me and I hope I am posting in the right place, forgive me if not. I have a fairly complicated scenario but to simplify it, I have a Customer table which is connected to Order table. Staff members can be customers and … | |
Hello, I'm writing an abstract program that keeps a record of Names and Phone numbers. I've created a Record class that inherits a Name and Phone class. All the functions work great except for delete. The delete function is supposed to replace the record value with "DELETED". The program says … | |
I keep on getting the following error, I've tried modifying the constructor, but I can't get it to work. "C:\Users\Documents\NetBeansProjects\Assignment-1\src\Bank.java:34: cannot find symbol symbol : constructor Customer(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) location: class Customer Customer customer = new Customer(last, first, street, city, state, z, acctNum); 1 error BUILD FAILED (total time: 0 seconds) " … | |
Hello, I need to find the code in netbeans where the name is stored as shown in the Title bar of the program and the taskbar of windows. Any ideas where to find that? ive been looking and searching for days now. I want to edit "Openbravo POS - 2.30beta" … | |
we have static ip address. i need code(vb.net) to send and receive a file from static ip. is it possible in vb.net? if it is possible, what are the basic things are required for it.How to transfer files? Please help me. thanks in advance. | |
Hello every1, I'm using CAS permissions in my app, everything is working except when I want to load an assembly. All CAS Settings now are: [CODE]<Assembly: FileIOPermission(SecurityAction.RequestOptional, Unrestricted:=True)> <Assembly: FileIOPermission(SecurityAction.RequestMinimum, Unrestricted:=True)> <Assembly: UIPermission(SecurityAction.RequestOptional, Unrestricted:=True)> <Assembly: UIPermission(SecurityAction.RequestMinimum, Unrestricted:=True)> <Assembly: FileDialogPermission(SecurityAction.RequestRefuse, Unrestricted:=True)> <Assembly: FileDialogPermission(SecurityAction.RequestMinimum, Unrestricted:=True)> <Assembly: IsolatedStorageFilePermission(SecurityAction.RequestOptional, Unrestricted:=True)> <Assembly: IsolatedStorageFilePermission(SecurityAction.RequestMinimum, Unrestricted:=True)> <Assembly: … | |
Hi everyone I'm new to python and programming in general and wonder if anyone would be able to help me... I am trying to open a text file, search for a certain value (1585 in this case), and then write all of the lines containing this value to a new … | |
I attach a file. In this file I make a querie. all the (data) field of both tabel show in the querie. I want all data will add up in querie. I mean a calculate field. like : (200,200,300) this amount was in both table. in querie it will show … | |
Alright, I'm a novice in programming DirectX but very adept at c++ in general, and I really want to learn how DirectX works! I borrowed a book from the local library called "Windows Game Programming for Dummies". Seeing as I'm dumber than a Dummie, I really didn't understand the chapter … | |
ArrayList arrayList = new ArrayList(); for (File g : f.listFiles()) if (g.isFile()) { arrayList.add(g); } I hope from the code above you can understand what Im trying to do. If a file is a file then add it to an arraylist. I dont know if this is the best one, … | |
Hi, I need to parse an HTML string received from an AJAX request. I wrote a function that places the HTML string into an unappended (not added) [ICODE]<div>[/ICODE], which opens the string up to the DOM hierarchy. However, when I try to access the elements of this [ICODE]<div>[/ICODE], I get … | |
[code] #include <iostream> #include <cstdlib> #include <cassert> using namespace std; struct node { int info; node *link; }; void insert(node *first, node *here, int x) { node *temp = new node; temp->info = x; if (first == NULL) { first = temp; } else { here->link = temp; } } … | |
When I run this, my charactor won't move, i don't get any errors, he just doesn't move. I've been trying to fix this for ages to no avail, heres my code: [code=python]import pygame pygame.init() class Player: def __init__(self, speed, image): self.move_speed = speed ##self.x = 640/2 ##self.y = 480/2 self.speed … | |
Hi I am trying to write a function in a program that reads a 2d array withs 2 rows & determines the largest number & whehter that number is in row 0 or row 1. For example: [QUOTE]Enter distinct integers for a 2d array with 2 rows and 5 columns. … | |
I'm trying to teach myself C++ through internet tutorials and such. Right now I'm trying to write a program that find the diameter and radius of a circle if the circumference is entered, and does the same if one of the other two measurements is entered instead. I'm using switch/case … ![]() | |
i'm trying to call a method from a different class and i just cant get it to work.... code from method displayTutorGroup(): [code] /** * Displays the names and marks for the students * in the tutor group in the Display Pane */ public void displayTutorGroup() { for (String name: … | |
Hi. Please forgive me if this is posted in the wrong section. I'm starting a sports website and I'm hoping to have a section with each sports team that will display the team roster in a table format. Each player will have a line for their name, position, height, weight, … | |
I have javascript working on IE but not on FF, are there things I should look for inparticular? Inparticular that is not working is the "onclick function" I call. Thanks, Regards X | |
So, as a scientist, I have plenty of geeky friends... and one of them is interested in creating a sound file from the brain waves she records. Essentially, she has a brain wave, and wants to feed it into a sound program to play it as if it were a … | |
Hi, I need help, to get the get working directory of the class file on a Windows system. I'm opening up a txt file to read from in the same folder as the class file, when I just enter the location of the txt file, it says: [CODE]java.security.AccessControlException: access denied … | |
When you click save in this program , it is saved nicely but the txt file being saved is all in one line. How can i overcome this matter? Just FYI, when anyone try to save, dun forget the file extension (*.txt) [CODE=java] import java.io.*; import java.awt.*; import java.awt.event.*; import … | |
Can anyone please help that [B]How to scroll div in middle of window when window is scroll?[/B] | |
[CODE]You are to design a class class called Employer data members: char name[] long int ID double salary , and two constructors _Default construtor Person () _Copy constructor Person ( char n[30],long int id,double s) _setPerson (char n[30],long int id,double s) that allows user to set information for each person … | |
ok so this is what im trying to do. this is a products page and the products diplay but i want to create a filter so if they want to view only the in this case tvs that are sony they use the from that is in the coding to … | |
Hi , I have a text field in a table and i would like to split it into pages for viewing pleasure. I know how to split it into set of pages if it is in rows. But i couldn't get clue how to split a lengthy text field into … | |
I'm having a problem with adding onClick events to [ICODE]<a>[/ICODE] tags. The attribute is never added at all, but no errors are shown in the JavaScript console. I'm using Firefox 3.0.10. Here's my code: [CODE=HTML] <html> <head> <script type="text/javascript"> function setAJAXAttributes() { var domain = new RegExp("(" + window.location.host + … | |
Well, I developed a c#.net Desktop Application. Its workihng properly but now I want to intall it to another PC but where no .net installed but I want specific security there. At installation time I want a special key to install the software. How can I achive this? please help | |
Dear people I have been trying to fetch some data from the web. For this I am using the LWP:: Simple module. The problem is that I have been trying to pass a value to the URL in get function. here is my code: use LWP:: Simple; $iq= 'all_proteins.data'; $id= … | |
alright, I did this without the help of documentation or help forums, I just sorta, figured it out on my own--and hacked together some code to make it work, and I'm super proud, so bare with me: I compiled a C DLL, which was loaded into a VB6 app. The … | |
Hi guys, I need some help on data binding. The table is shown as below ID Item 03 5 03 6 19 5 19 8 19 3 How do I present the data on a web page (mobile web form to be exact) such that the the ID is like … | |
Hello! I'm new in C++, and I have a basic question: When I have a function: [CODE] void foo(str* s){ char* p; p = new char[strlen(s)]; strcpy(p, s); cout << s <<endl; } [/CODE] This function will take the length of s and in bytes and will allocate that much … | |
Hi there... How can you stop IE from opening up in a WebBrowser control on a new window (target=_blank")? I've gotten the WebBrowser_NewWindow thig and tried e.Cancel and CancelEventArgs and none of these work. What do I do? By THe way, I'm using VB Express 2008 Please help me! This … | |
Hi, What is wrong with this sql? It fails in php but doesn't fail in phpmyadmin! Thanks [code] <?php $connection=mysql_connect("localhost", "root", ""); if(!$connection) { die('Could not connect: ' . mysql_error()); } else { mysql_select_db("test", $connection) or die('Could not select the table.'); $sql="BEGIN;\n"; $sql.="SET AUTOCOMMIT=0;\n"; $sql.="INSERT INTO table1 (id, name) values … |
The End.