199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for OffbeatPatriot

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

Member Avatar for Salem
0
351
Member Avatar for Stefano Mtangoo

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

Member Avatar for Stinomus
0
98
Member Avatar for Vandithar

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

Member Avatar for Vandithar
0
206
Member Avatar for JFunk

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 …

Member Avatar for SKANK!!!!!
0
347
Member Avatar for eostre

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

Member Avatar for Teme64
0
184
Member Avatar for K'rul

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 …

Member Avatar for szcfama
0
241
Member Avatar for lalchetian

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 …

Member Avatar for lalchetian
0
167
Member Avatar for gsingh2011

How would I make a program that can insert text into a text field in another program? Or click a button in another program?

Member Avatar for gsingh2011
0
70
Member Avatar for lqdo

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

Member Avatar for kvprajapati
0
304
Member Avatar for webster5u

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

Member Avatar for webster5u
0
135
Member Avatar for Daria Shmaria

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 …

Member Avatar for Daria Shmaria
0
404
Member Avatar for nschessnerd

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 …

0
94
Member Avatar for ViLeNT

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 …

Member Avatar for Aia
0
122
Member Avatar for dmanw100

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 …

Member Avatar for dmanw100
0
111
Member Avatar for JamesKox

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 …

Member Avatar for JamesKox
0
105
Member Avatar for Koldsoul

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 …

Member Avatar for NathanOliver
0
4K
Member Avatar for jabbaro

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 …

Member Avatar for jann353
0
149
Member Avatar for LittleB

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 …

Member Avatar for SKANK!!!!!
0
92
Member Avatar for GrilledTuna

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 …

Member Avatar for GrilledTuna
0
95
Member Avatar for tformed

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

Member Avatar for tformed
0
240
Member Avatar for jayless

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

Member Avatar for JamesCherrill
0
351
Member Avatar for daniwebseenu

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.

Member Avatar for Salem
0
94
Member Avatar for Ossehaas

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

Member Avatar for Ossehaas
0
185
Member Avatar for perksieuk

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 …

Member Avatar for perksieuk
0
99
Member Avatar for abu taher

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 …

Member Avatar for abu taher
0
80
Member Avatar for ShadowScripter

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 …

Member Avatar for MattEvans
0
132
Member Avatar for caps_lock

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

Member Avatar for caps_lock
0
226
Member Avatar for itsjareds

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 …

Member Avatar for itsjareds
0
4K
Member Avatar for timb89

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

Member Avatar for siddhant3s
0
72
Member Avatar for tomtetlaw

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 …

Member Avatar for slate
0
298
Member Avatar for gretty

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

Member Avatar for Ancient Dragon
0
6K
Member Avatar for Leopold

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 …

Member Avatar for Mouche
0
151
Member Avatar for lardshow

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

Member Avatar for lardshow
0
92
Member Avatar for powermxpx

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

Member Avatar for SKANK!!!!!
0
141
Member Avatar for OmniX

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

Member Avatar for essential
0
195
Member Avatar for aot

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 …

Member Avatar for Bill Fisher
0
148
Member Avatar for kashn

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 …

Member Avatar for kvprajapati
0
166
Member Avatar for bluerose

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 …

Member Avatar for bluerose
0
136
Member Avatar for coolest_987

Can anyone please help that [B]How to scroll div in middle of window when window is scroll?[/B]

Member Avatar for coolest_987
0
104
Member Avatar for effective

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

Member Avatar for effective
0
145
Member Avatar for juanki09

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 …

Member Avatar for Fest3er
0
156
Member Avatar for csharplearner

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 …

Member Avatar for sacarias40
0
258
Member Avatar for itsjareds

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

Member Avatar for essential
0
130
Member Avatar for hi.meral

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

Member Avatar for papanyquiL
0
131
Member Avatar for ajay_p5

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

Member Avatar for ajay_p5
0
150
Member Avatar for winrawr

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 …

Member Avatar for winrawr
0
138
Member Avatar for rayben

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 …

Member Avatar for di.arie
0
75
Member Avatar for atman

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 …

Member Avatar for vmanes
0
107
Member Avatar for bigtreeworld

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 …

Member Avatar for bigtreeworld
0
1K
Member Avatar for veledrom

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 …

Member Avatar for veledrom
0
157

The End.