132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bryt

Someone created a point of sale for a supermarket. Now i need to track all deletions made. We use f10 key to delete an entry. Can someone please help me with an idea or solution? Thanks in advance, your help will be highly appreciated.

Software Development visual-basic
Member Avatar for DenisOxon
0
80
Member Avatar for Rikard

Hallo! I've been having some trouble getting a save/load function to work properly. I'm trying to save object and their properties to a file in binary using fstream. And then being able to load the object from the binary file the next time im running my project. Quick breakdown: I …

Software Development c++ ios oop
Member Avatar for Rikard
0
214
Member Avatar for packetpirate

I'm trying to draw a string at the center of an applet. The problem is that it's STARTING to draw at the center of the applet and going off to the right. I need for the center of the string to be centered. Here's my code so far: [CODE] /** …

Software Development java
Member Avatar for NormR1
0
1K
Member Avatar for rcplguy15

hello, I wanted to ask you all a question. suppose that my c++ program has read from a text file a set of characters like the one below using the command inData >> temp. i output the characters of the text file and stored all the characters in a string …

Software Development c++
Member Avatar for rcplguy15
0
332
Member Avatar for virusisfound

Hi, I am working on tree View in taht i want to do two thinks i.e 1. add new node at run time 2. what data is stored in a database is shown in the tree view as parent node and its child for second i have do some coding …

Software Development dataset display
Member Avatar for devaclement
0
147
Member Avatar for danholding

i am getting a ValueError message when running my code i am currently converting from 2 to 3 and have come across a brick wall any help would be great :) [code=python] # sorts files by modifed date, collects the 6 most recent files, and delete all others. #created by …

Software Development python
Member Avatar for woooee
0
419
Member Avatar for anraevlus18

Hi, In my perl script p1 i am calling another script p2 which logs into a remote machine and executes a script p3. The $file defined in p3 does not exist. So copy operation in p3 will error out with error code 256 and p3 stops execution with exit staus …

Software Development perl
Member Avatar for mitchems
0
243
Member Avatar for sniper6560

this code is for bessel function Y n (x) 2nd kind I'm in the level 4 at computer engineering my prof. gave me that assignment , I want help to improve it to get an accurate results thanks!

Software Development c++ engineering
Member Avatar for sniper6560
0
2K
Member Avatar for jnip

I am so lost with this Bubble Sort array. I am trying to alphabetize these baseball players. Having a lot of trouble getting everything right. [code] Public Class frmBubbleSort ' Declare array with Class (form) scope Dim players As String() = {"Crawford", "Upton", "Longoria", "Bartlett", "Pena", "Navarro", "Garza", "Shields", "Price", …

Software Development vb.net
Member Avatar for agitorotot
0
117
Member Avatar for Dazamondo

Hi Guys, Probably a simple one but im struggling to find it in VS 2008. How do you enable a VB program to allow a user to press enter rather than click on the button? I have a text box which the user types a number and then clicks a …

Software Development gui vb.net
Member Avatar for codeorder
0
1K
Member Avatar for BroncoTrojan

I cannot figure out the declarations to write to an excel file that is already open. I open the excel file and make it visible with this: Private Sub Button1_Click Dim objExcel As New Excel.Application Dim objWB As Excel.Workbook objWB = objExcel.Workbooks.Open("F:\My Software\files\test.xls") objExcel.Visible=true End Sub What are the declarations …

Software Development vb.net
Member Avatar for BroncoTrojan
0
269
Member Avatar for dmh22

OK, here is my dilemma, I am trying to read an input file into 3 arrays. The file must be formatted as such (ie - with each value on a new row): 3 - n value for an n x n matrix 'a' 1 - a11 - Next n^2 terms …

Software Development c++
Member Avatar for dmh22
0
129
Member Avatar for rajeshmithy

tell me code for designing a simple text editor using C++ with open,save,save as,like other options..

Software Development c++
Member Avatar for prvnkmr449
0
67
Member Avatar for jemimaloh

Hi everyone, does anyone know how i might implement a 2D Vote table? Would using a 2D array for it be possible? I'm trying to implement a voting system for the indexes into hash table arrays. Any ideas?

Software Development java
Member Avatar for jemimaloh
0
110
Member Avatar for hany-h

Hi guys, I have a file named DrawPanel and this class is supposed to draw different shapes which i declared before by using mousedrag. I am not able to draw more thatn one shape and put them in an array.It seems that i don't know where to change the value …

Software Development java
Member Avatar for NormR1
0
280
Member Avatar for The physicist

Hi all, bit of a c++ newbie and hoping you might be able to help me with a problem. I'm trying to calculate the elapsed time between two dates using difftime, however I keep getting an elapsed time of 0. Can anyone see where I'm going wrong? Any help greatfully …

Software Development c c# c++
Member Avatar for The physicist
0
839
Member Avatar for NH1

i get that error when i try and run through my code. Can any one please tell me what is wrong with my insert statement. It looks correct. [code=c] OleDbConnection connect = new OleDbConnection(); connect = new DBconnect().DbConn(""); string insertStatement = "INSERT INTO Restrict " + "([Company ID], [User Type], …

Software Development
Member Avatar for NH1
0
197
Member Avatar for kazkikay12

why i cant run graphics.h in turbo c++ but i have graphics in my llibrary :( help plss

Software Development c++
Member Avatar for daviddoria
0
83
Member Avatar for COKEDUDE

Can someone please remind me what "->" means and how to use it.

Software Development c++
Member Avatar for Colezy
0
111
Member Avatar for jmcorpse

Hello, I have been working on this program for the past four hours and was doing good till I got to this point. I am pretty sure that I probably can't do it this way, but I'm just learning and it isn't becoming apparent to me how to correct it. …

Software Development algorithm c++
Member Avatar for jmcorpse
0
153
Member Avatar for overlook

Hi, I have to make a script with parameter that limits the character. This is the code snippet So script.pl -teacher [string] where teacher should only be allowed of [A-Za-z0-9_-]# , if not, print error message which is "error". Other thing is that, the parameter -teacher have to follow the …

Software Development perl
Member Avatar for overlook
0
172
Member Avatar for adobe71

i hav created software in visual studio 2008 window application using C#,now i want to add serial number.how can i do it pls give ur suggestions.

Software Development asp.net visual-studio
Member Avatar for Serialz
0
189
Member Avatar for sebcbien

Hello, I'm trying to update a dictionary using variable in a class. Something looking like this : [code=python] class testClass(object): def __init__(self): self.data0 = 0 self.data1 = 1 self.data2 = 2 self.data3 = 3 self.d = dict( data0 = self.data0, data1 = self.data1, data2 = self.data2, data3 = self.data3 ) …

Software Development python
Member Avatar for snippsat
0
175
Member Avatar for newbie_java

Hi! I am just a newbie here! I just wanna ask how to do the file handling in java applet? Do I have to do the certain policy/permission to perform it? If so, how would I do it? And another one, how can I close the APPLET WINDOW once I …

Software Development file-system java java-swing
Member Avatar for NormR1
0
472
Member Avatar for frogboy77

when i try to use pow with cmath header i get error message pow(int,int)is ambiguous it also gives other possible options i.e pow(double,int) why is int^int ambiguous? how could it be less ambiguous?

Software Development c++
Member Avatar for Fbody
0
142
Member Avatar for ASTA LAVISTA

hi every body>>>> please i am student and this my homework very important to me the question is : how to complete this simple program to make its return 0 ????? the answer is some thing instead of: [CODE] /* some statments */ [/CODE] please i am new here and …

Software Development c++
Member Avatar for ASTA LAVISTA
0
412
Member Avatar for jude1693

hi guys... I am having a hard time figuring out how i could determine the winner of the game and how I can determine if a game is a draw. Any suggestions or code that i should input in my porject? Please help me. Im new in C#.

Software Development c#
Member Avatar for moteutsch
0
144
Member Avatar for fire_

I need your help... Again... How can i combine reading from file with [iCODE]std::getline(file, std::string);[/iCODE] and [iCODE]UpdateData(FALSE);[/iCODE] ? UpdateData() accepts only CString and getline only std::string, and then i try to use it like that: [CODE]std::string readbuff; int length; std::ifstream file("file.txt"); while(getline(file, str)) { length = str.length(); for(int i=0; i<length; …

Software Development c++
Member Avatar for fire_
0
636
Member Avatar for SALONOY,MANIX

How to used for loops inorder to output sum of the cubes

Software Development
Member Avatar for ddanbe
0
50
Member Avatar for frogboy77

hi, beginner question i am planning to write code for different values of a^b. both a and b will vary in the program and both will be long long ints; as my compiler wont allow pow(int,int) as it is ambiguous(dont know why) either while have a as a double and …

Software Development c++
Member Avatar for frogboy77
0
90
Member Avatar for frogboy77

trying to write a fuction to work out the GCD of two numbers seems to run ok but the return is incorrect any help much appreciated #include <iostream> #include <cmath> using namespace std; int g_c_d(int a,int b); int main() { cout<<g_c_d(2871,4060);/*test example*/ cout<<endl; system("pause");/*been advised not to use this but …

Software Development c++
Member Avatar for frogboy77
0
125
Member Avatar for kashifboy

[code] how can we check that user [B]inter [/B]an [B]integer[/B] or not? [/code]

Software Development c++
Member Avatar for Narue
0
100
Member Avatar for Bri426

I'm new to C++ and I'm having trouble understanding how to determine what to put inside a loop. I know it differs from program to program, but a lot of my assignments deal with the user inputting a number of how many numbers they want to input (it can be …

Software Development c++
Member Avatar for frogboy77
0
236
Member Avatar for burcin erek

there is a mistake on the code. I would like to write "test" like t e s t but it writes reverse. it is easy but my brain is not enough. [CODE]#include <iostream.h> #include <string.h> #include <conio.h> int main(void) { char *pointer="test"; int index; for(index=(strlen(pointer)-1); index >= 0; index--) /* …

Software Development c++
Member Avatar for burcin erek
0
90
Member Avatar for glenak

Hi, Java has been my choice programming language for many, many years now, and I want to start doing C++. I've written in C++ before, but that was a while back. I'm treating myself as a beginner at the moment. I use Eclipse to write Java, and I recently updated …

Software Development c++
Member Avatar for glenak
0
233
Member Avatar for gybte.wartex

Hi all! i have a problem. From my database im streaming out a file and will save it with filestream.savetostrem() method into the windows temp directory. thats work correctly. after that i open the file with the shellexecute command. and the question: on forms close event: make a method to …

Software Development delphi pascal
Member Avatar for pritaeas
0
392
Member Avatar for Jawahar prabhu

Here the code for get three digit value 'n' and calculate r=2^n+1 then find that value 'r' is a prie or not, here i like store the integer value 'r' without exponential function and big Integer, please make a great help to me. thanks in advance.. import java.*; import java.io.*; …

Software Development java
Member Avatar for stultuske
0
140
Member Avatar for end3r

Hy, I have a .properties file with a key-value defined like this: [icode]my_property.value=text text text bla bla bla {0} qwerty {1}.[/icode] I need to know what class should I use if I want to read the value and insert parameters in {0} and {1}. In the past I used to …

Software Development java
Member Avatar for end3r
0
4K
Member Avatar for localp

There's a header class called example.h [CODE] #ifndef __Sample_H__ #define __Sample_H__ namespace example { namespace Samples { class AlgorithmSample { public: virtual void release(void) { delete this; } virtual boolean process(void); }; class AlgorithmDesc { public: virtual String getName(void) const { return "some example program"; } }; }; }; #endif …

Software Development c c# c++
Member Avatar for Valaraukar
0
137
Member Avatar for kra9853

// The purpose of this Lab is to start the program used in Lab 1 and modify it // to calculate the average of 4 grades entered by the user and display the results // on the console through the use of the math operators in C++. // Part 2 …

Software Development c++
Member Avatar for Valaraukar
0
174
Member Avatar for bops

Hello. When implementing a KeyListener in my application I have the following code. I have added the KeyListener to a JTextField control using addKeyListener(this) and the current class implements KeyListener. [CODE] @Override public void keyPressed(KeyEvent ev) { System.out.println("Pressed: "+ev.getKeyCode()); } @Override public void keyReleased(KeyEvent ev) { System.out.println("Released: "+ev.getKeyCode()); } @Override …

Software Development java
Member Avatar for bops
0
988
Member Avatar for Nidhi S.
Member Avatar for Nidhi S.
0
97
Member Avatar for waphon

like a Picasso's present return to natural memory

Software Development c++
Member Avatar for chiwawa10
0
116
Member Avatar for alcx88

I'm trying to sum command-line integers. My total is constantly 473. I dont know how to get the right total. [CODE]#include <stdio.h> 4 #include <stdlib.h> 5 #include <ctype.h> 6 7 #define MAX 100 8 9 void sum(char *a, int n); 10 11 main (int argc, char *argv[]) 12 { 13 …

Software Development c++
Member Avatar for chiwawa10
0
108
Member Avatar for mrbungle

Ok, here's what I've got. In the screenshot, you'll see three things- a start time, end time and total time. So the goal is this- A user puts in a current start time by hitting F1 at the start of shift. They tab across the end time to the "time …

Software Development vb.net
Member Avatar for codeorder
0
157
Member Avatar for Eric Cute

Hi everyone. Im trying to upload a file to an ftp server. I found this code in the internet but its not working for me. Can anyone please tell me where the error is?? This is my code [code]import java.io.*; import org.apache.commons.io.FileUtils; import org.apache.commons.net.ftp.FTP; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; public class …

Software Development apache client-server java
Member Avatar for Eric Cute
0
337
Member Avatar for viandante

I'm trying to make a siple list to display sqlite rows in a grid using wxList. I can't come up with something decent. I can't place correctly the items in the list. [code] #!/usr/bin/env python # -*- coding: utf-8 -*- # generated by wxGlade HG on Wed Sep 22 12:34:17 …

Software Development python sqlite
Member Avatar for viandante
0
137
Member Avatar for Dazaa

Hi, I usually use C++, but I am working with some very old code and need to do it in C. So i understand malloc is used char *p; p = malloc(200); where 200 is the amount of bytes I need. and yes i know I need to use free. …

Software Development c
Member Avatar for sree_ec
0
178
Member Avatar for doffing81

Let's create a continuing thread to program Crazy 8's from scratch for learning purposes! [B]DECK/CARD IDEA'S[/B] My simple starting suggestion: [CODE]deck = ['2C','3C','4C','5C','6C','7C','8C','9C','10C','JC','QC','KC','AC', '2D','3D','4D','5D','6D','7D','8D','9D','10D','JD','QD','KD','AD', '2H','3H','4H','5H','6H','7H','8H','9H','10H','JH','QH','KH','AH', '2S','3S','4S','5S','6S','7S','8S','9S','10S','JS','QS','KS','AS',][/CODE]

Software Development python
Member Avatar for doffing81
0
1K
Member Avatar for LevyDee

So i guess its easy enough to encrypt text, but what if you wanted to encrypt a video file or some other file that wasn't text? By writing my own program I mean. How does that work, any links? Thanks

Software Development c++ encryption
Member Avatar for LevyDee
0
85

The End.