132,726 Archived Topics
Remove Filter ![]() | |
On the risk of sounding extremely stupid, Does anyone know how to print a string representation of an exception. i.e. just the type of error? I have code that catches all errors and would like to then print the type of error as a string. My code is: [CODE=perl]def catchException(): … | |
how to bind checkbox with a column in database Software Development vb.net | |
Hello all, This is my first post here, this board seems to contain interesting stuff regarding C++, that's why I subscribed into it. Ok, let's go the problem... I have a class with two methods into it: floodLog writeToLog floodLog is intended to create threads that will execute the method … Software Development c++ | |
I get an error about "orphaned case". So this is the error. Can you help me on what I did wrong? [ICODE]client.java: 8643: orphaned case case 117: // bank 5 items - sell 1 item ^[/ICODE] This is the code: [CODE] case 117: //bank 5 items - sell 1 item … Software Development java | |
I have the binary function done for this question, but I can't get the blur function to work using arrays/matrices. Can anyone help me? This is what I have so far: [code]void threshold(int src[], int rows, int cols, int dest[], int thr) { for (int i = 0; i < … Software Development c++ | |
hello, Im kinda stuck on how to initialize the class inside the main. Or what to write instead of the ??? inside the main. Thank you in advance... [code] //********************************************************** // Work In Progress // Author Armen Babakanian // A complete set of examples to use reference and pointer issues … Software Development c++ | |
Hi...Plz i'm facing some problems on how to make my program work successfully. i'm a beginner in the c++ and i have an assignement to make a text editor using the devc++..it requires certain functions and i've written this code so far but i can't handle except the choice number … Software Development c++ open-source | |
Howdy, hoping I can get alittle help today. First off I have a real bad habit of learning one thing, and getting very fascinated by it and going off on a tangent using what i learned in as many ways as I can think of. Im a very new person … Software Development python | |
Hey guys, first post here so go easy. Ha. I am writing a program that needs to take command line arguments, a number and 2 characters. However, if one of the chars is a command line specific char (such as #, &) it must produce an error. Does the isgood() … Software Development c++ | |
I would like to populate a listbox with multiple columns of data retrieved by a query. I am using the Listbox.DataTextField = "SpaceID" to get one value but can't seem to append others using lines like Listbox.DataTextField = "SpaceID" & " " & "SpaceName" Is there a way to do … Software Development vb.net | |
I'm having a tough time conceptualizing this problem. I have a recursive function computing the number of possible combinations of two numbers. I have it working fine, just need one thing sorted out. My output needs a counter to increment each recursive step. Like this: Level 1: ... Level 2 … Software Development c++ | |
HI I am trying to print a certain number of sequences from a file. So if the sequence is like LKSAJDLSAJDLSAJDLKSJD. then I want to write from 10th character to 20th character. please help. Here is my code [CODE]#!/usr/bin/perl -w use strict; use warnings; my ($fileName, $firstSequence, $lastSequence) = @ARGV; … Software Development perl | |
Hi I am trying to read two files and then copy their content to a third file while removing duplicates please help [CODE]#!/usr/bin/perl -w { open A,shift; foreach (<A>) {$a{$_}++}; open B,shift; foreach (<B>) {$b{$_}++}; open C,shift foreach(<C>) { print unless $a{$_} print unless $b{$_} } } [/CODE] Software Development perl | |
Hi Guys, Im having trouble with my prog.. basically i have a file with lots of details in it. I want to find every time the file says for example "blah" Than i want to find the next occurence of "notblah" and i want to use the information between these … Software Development python | |
I have some errors that I can't seem to understand, could someone help me clear up this problem? [CODE=cpp]#include <cmath> #include <iostream> using namespace std; double F ( double X ) { return pow ( X, 4) - 9*pow ( X, 3 ) - 2*pow (X, 2) + 120*X - … Software Development c++ | |
i want to clear a doubt... please check out the following codes.. [CODE]int function (int p[]) { //sm code } [/CODE] another style is : [CODE] int function (int *p) { // sm code }[/CODE] here i am passing an array to both the functions...and one receives it through p[] … Software Development c++ | |
I'm helping my dad out with some of his website issues, so any help is appreciated. He is getting an error (and no I don't have the exact text at the moment) that there was a fatal error in charlint.pl The problem apparently started when the site's host updated the … Software Development perl | |
i have a question about JFrame. is there anyway to set the size of frame as automatic depending about the values in the frame.so if the values is a lot more than what is expected that frame adjust it self it fit all the data ? Software Development java | |
Hi all, Does anyone know how to change the color (or highlight) a part of a listbox)?? I need to have the negative amount (if any) highlight automatically during an if statement. I have looked through my textbook for VB, and the instructor does not think I can because the … Software Development vb.net | |
Public Class frmCommand Private Sub Command1_Click() Dim txtInput1 As Double Dim txtInput2 As Integer Dim txtInput As Integer Dim Sum As Integer Dim Average As Integer Dim Larger As Integer Dim Smallest As Integer Sum.Caption = "Sum : " & (Val(txtInput1.Text) + Val(txtInput2.Text) + Val(txtInput3.Text)) Average.Caption = "Average : " … Software Development visual-basic | |
Q. Write a function Stars() whose input are an array of characters(a), the size of the array(n), and a character(ch). This function should replace all occurrences of ch in the array, a, with a star(*), and return the number of times the replacement was made. So far I have the … Software Development c | |
Hello, I searched most of yesterday online for an answer to this question and was unsuccessful. please help. What I am trying to do, I have an emulator.exe application which is totally external from any project of my own. I want to create a control (custom control, activex control???) on … Software Development c++ | |
Hey, Any Idea why this section of code would give me these linker errors using Visual Studio 05 in a console application and using winsock2.h: error LNK2019: unresolved external symbol __imp__WSACleanup@0 referenced in function "void __cdecl CloseDevice(void)" (?CloseDevice@@YAXXZ) error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function "void __cdecl CloseDevice(void)" … Software Development c++ visual-studio | |
Hi, I have two files-- file1- Quote: dn: cn=Anandmohan Singh,ou=addressbook,dc=thbs,dc=com objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson cn: Anandmohan Singh givenName: Anandmohan mail: [email]anand_ms@thbs.com[/email] mobile: 9986010455 ou: null physicalDeliveryOfficeName: ST-6th Floor sn: Singh telephoneNumber: 41827200 Extn: 7400 title: Associate Software Engineer - Trainee uid: 1432 dn: cn=Riteshkumar Mohanty,ou=addressbook,dc=thbs,dc=com objectClass: … Software Development shell-scripting | |
I am having a problem in knowing where to start with my project that has to ask a user to enter a string of characters.. you can limit the size of characters and u decript those characters u can print them backward or u can change them into numbers depends … Software Development c++ | |
If I want to make a method to return an object's type, what type should the method return? A string, the object itself? Any suggestions? Software Development c++ | |
im starting a sub proceedure to test program once its worked through earlier processes. however to test the program, i have copied and pasted pieces of the program before hand, and because ive used the same variables they need to be declared again. but since things are stored in these … Software Development c++ | |
Hi I want to make a pure c++ application which is used to retrieve ip address of all connected users of LAN(local area network). I am using Dev c++ IDE. please any buddy have any idea to solve this problem? Thanks in advance! | |
Currently I managed to display my data inside a datagrid control. But i want to create a button control for a print function to enable user to print the datagrid content. Any idea? Software Development vb.net | |
hi, i'm a very new in unix, can u help me how would i start to read sell programming. can u suggest me some name of tutorials thanks Software Development shell-scripting unix | |
The following is the code that i have... please let me know where i hv gone wrong... Set Application = CreateObject("crystal.crpe.application") Set Report = Application.OpenReport("d:\swati\mahalaxmi\reports\ClientList.rpt") Report.Preview "Client List", 0, 0, 1200, 1200 from swati Software Development visual-basic | |
Hi, i'm new in C++ i was asking to get an input from user, eg. 12 -8 7/8 6 D. Valid input is type of whole number and fraction, and D marking end of input. i'm doing the input validation. if there is an error input, eg. 4 92 1/2 … Software Development c++ | |
following is the code for taking back-up of data in vb6.0( and MS-Access) i want to conver it into vb.net2003 (and SQL server 2000) [B]its very urgent [/B] i want to implement it into my project [code=vbnet]Private Sub mnuRestore_Click() On Error GoTo errdes C1.CancelError = True MsgBox "If You want … Software Development vb.net | |
Hi, can you guys please tell me how I can print a screenshot of a form? I am linking to a database and I want to print the form with the names of fields etc... Cheers Software Development visual-basic | |
my GUI using VB6.0 had 2 textbox to allow user enter an integer that represent a movement of motor along X and Y axes. there is any possible that i can send 2 data simultenously? do i need a delay? for your information, i used serial port. thank you VB … Software Development gui visual-basic | |
[code=java]class WrapperTest { public static void main(String[] args){ Byte b = new Byte(3); Short s = new Short(34); } }[/code] when I try to compile this is the problem I got [code]G:\WORK PLACE\work>javac WrapperTest.java WrapperTest.java:4: cannot find symbol symbol : constructor Byte(int) location: class java.lang.Byte Byte b = new Byte(4); … Software Development java | |
![]() | I want to write a shell script that finds files in a directory that are (owner permissions) readable, writeable, or executable for the owner. But I don't know the command to list files with certain permissions (rwx)... I'm sure it has something to do with ls, but I just can't … Software Development file-system shell-scripting unix |
I apologize if this does not sound clear. I will show the assignment and what the output is supposed to look like along with the code that I have so far.....My problem is pretty much typing this xxx to exit....I have always used numbers for this so a string would … Software Development c++ | |
Hi friends, I am trying to write a histogram function in Python. This is what I have managed so far: [code=Python] def histogram(s): d={} for c in s: if c not in d: d[c]=1 else: d[c]+=1 return d h=histogram('brontosaurus') print h [/code] However, I want to use the get() function … Software Development python | |
can anyone help me on [COLOR="Red"]how to create or to set a username and password [/COLOR]for [COLOR="red"]my ms-access 2003 database [/COLOR]and how can i save or [COLOR="red"]set that username and password in ADO control [/COLOR][COLOR="red"]so that i can edit that database in my vb project without opening that database in … Software Development visual-basic | |
Howdy, Im a beginner to programing and Ive chosen python as my first language to learn. I have recently completed my first "non-tutorial" code. I wrote a book modeled after the old "Choose Your Own Adventure" books. When ran it asks for your name, and puts you into the story, … Software Development python | |
I'm a student enrolled in a University beginners programming course. The problem is: [B]Write a program capable of using month and day of a given date to calculate the number of days from january 1 that it represents. Make the program capable of computing values for as many as 20 … | |
Hello:) I have a problem that keeps repeating. I work in Visual C++ 6, and i deleted a class, i erased it from program files/microsoft visual studio/my projects/bla bla.. and i deleted the code in it(the header and cpp file), and it dissapeared from the class tree in my workspace, … Software Development c++ open-source visual-studio | |
I wonder how it is possible to open 2 instances at the same time of a Form. Normally when you ex press a button to open another form, one instance of that form is opened. If I put these 2 lines inside a buttoncontrol, first one instance is opened and … Software Development c++ | |
please help me.. there anyone know how to reverse strings??? i really don't have idea for this.. please helps... Software Development pascal | |
I was wondering if anyone could help me with this little problem. What I am actually trying to do is implement 'picking' into a game I'm doing, but I'm actually stuck with some of the maths, thats why this isn't in the game forum. I'm trying to work out a … Software Development c++ | |
Hello. I just started with assembly. In my emulator (emu8086) this code work perfectly. But when i write it out to a floppy it doesn't work. I know that if i write out one letter at time, it works. Is it impossible to write this way? [CODE=asm]#make_boot# org 7c00h jmp … Software Development assembly | |
I am getting a whole bunch of these: warning C4996: 'vsprintf' was declared deprecated see declaration of 'vsprintf' Message: 'This function or variable may be unsafe. Consider using vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. I put this at the top of my code: #define _CRT_SECURE_NO_DEPRECATE but nothing changed, I … Software Development c++ | |
Take (10) integers, store them in 1D array then do the following: 1. find the max and min number of them 2. find the average 3. sort these numbers in ascending squence the first two questions are quite easy but my problem is in sorting those numbers...anyways, i came up … Software Development c++ | |
I'm new here, as you can most likely tell by my low post count... but my question is simple. What procedure/commands/whatever would I need to make the computer restart or shutdown? I have google'd for a looooong time to find this, but found absolutely nothing. Does anyone have some help … Software Development first-post google pascal |
The End.