43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for varunrathi

HI EVERYONE, I HAVE GOT A VERY INTERESTING PROBLEM THIS TIME. U HAVE TO FORM A PALINDROME OF AN ENTERED STRING. IT`S NOT THE UASUAL STUFF OF CHECKING WHETHER AN ENTERED STRING IS A PALINDROME OR NOT. IN THIS PROGRAM, SAY IF THE GIVEN STRING IS: "A3BCA" THEN THE PROGRAM …

Software Development c
Member Avatar for yellowSnow
0
193
Member Avatar for Nada_ward

hello I want to take data ( number) from text box on second form ,and break running for first form when second form closed , the first form continue it running this code for first form [code=vb.net] public number As Integer dim numofcondition as form Private Sub button1_Click(ByVal sender As …

Software Development vb.net
Member Avatar for Nada_ward
0
134
Member Avatar for sravan953

Hey guys, I have some trouble understanding global variables, threading, and functions... Code: [CODE] import threading a=1 class myThread(threading.Thread): def run(self): global a print(a) a+=1 t=input("Specify the number of threads: ") for b in range(t): myThread().start() raw_input() [/CODE] [I][B]#1 doubt:[/B][/I] [CODE] class myThread(threading.Thread): def run(self): global a print(a) a+=1 [/CODE] …

Software Development python
Member Avatar for Stefano Mtangoo
0
225
Member Avatar for Dixtosa

hi again!:) when i use urllib.urlretreive(somthing,local_somthing) it crushs cpu,comp. what can i do? sorrry for my english that is code: [code] class UPDATE(wx.Frame): def __init__(self): pass def Download(self): wx.Frame.__init__(self,None,-1,"Downloading",(0,0),wx.Size(500,500)) panel=wx.Panel(self,-1) self.gauge = wx.Gauge(panel, 57, 100,(100,100), size=(250, 25)) wx.StaticText(panel,-1,"downloading please wait..",pos=(0,0)) self.Show() self.geturl("http://vpython.org/contents/download/VPython-Win-Py2.5-5.11.exe","hoho") def _reporthook(self,numblocks, blocksize, filesize, url=None): #print "reporthook(%s, %s, …

Software Development python
Member Avatar for Dixtosa
0
156
Member Avatar for sackymatt

Hi guys am new on VB6 and would like your urgent help, i have created my POS half way and have created a form for sales, now what i want is when i enter an item code all the other information related to the item diplays at the respective text …

Software Development visual-basic
Member Avatar for sackymatt
0
212
Member Avatar for avirag

hi...... i m making a window application in which i want to divide my form into 3 panels(left,right, and top) in left panel i have tree view(with some nodes n childs), in top panel i have some pics now i want that when i click on tree view node, so …

Software Development
Member Avatar for avirag
0
126
Member Avatar for nrobidoux

I'm trying to figure out how to attach a class with pure virtual <</>> operators to other classes for the purpose of saving/loading the application state. So I started off with: [CODE]class IWriteable { public: IWriteable(): pCls(NULL) {} IWriteable(void *p): pCls(p) {} virtual ostream& operator << (const void * &p) …

Software Development c++ file-stream
Member Avatar for nrobidoux
0
132
Member Avatar for kashn

Hi, I'm trying to include a Intellisense in my Rich Text Box, but i'm having problems. I'm trying to implement the one from: [url]http://www.codeproject.com/KB/cs/diy-intellisense.aspx[/url] Can someone please point me to a much more simpler open source intellisense for C#, importing methods from a DLL file? - Thanks!

Software Development c c# c++ open-source
Member Avatar for kashn
0
152
Member Avatar for Curgol

Well as the title ... example: [code] string ss="this is an encrytpion program"; unsigned char temp[32]; //={0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f}; temp=ss //that's what i need ! [/code] Have converted the string to it's hex representation .. [code] char string1[64]="yeah …

Software Development c
Member Avatar for Curgol
0
2K
Member Avatar for Lakshith

Hi I want to show a crystal report in my windows application.In my Access DataBase I have a column called Payment type and its type is number.(ie data in that column is stored as 0 or 1).If payment type is 0 I want to show it as a string called …

Software Development
Member Avatar for kvprajapati
0
244
Member Avatar for ndeniche

Hi all. Is there any collection object that will let me create a list of items which I could call by name, instead of by number? so instead of soing this: [code=c#] //Create List List<ClassType> list = new List<ClassType>(); //Assign values to list list.add(new ClassType(params, [params, [params]])); //Call list items …

Software Development
Member Avatar for ndeniche
0
95
Member Avatar for BlkR

Hi, Currently have a working solution in displaying data from the database to listview through specific dates selected, however the problem lies with it sometimes selecting the right data for the dates and sometimes it doesn't. Just would like someone to check whether the code i have is correct or …

Software Development listview open-source vb.net
Member Avatar for BlkR
0
98
Member Avatar for Leniel

well this a parallel array and also be able to process the arrays but it doesn't do so can some one give me a hint of what i might be doing wrong. Thank you before hand. ------------------------------------------------------------------------- [code=cplusplus] #include <iostream> #include <new> using namespace std; int main () { int …

Software Development c++
Member Avatar for Leniel
0
186
Member Avatar for ahoyikisoba

I am trying to find the SDK for sony ericsson, I can't seems to find it anywhere! Any info for me? Thanks!

Software Development java
Member Avatar for ahoyikisoba
0
205
Member Avatar for ravikiran032

I am doing mini project in [B]VB.net[/B]. Actually my project contains [B]form1[/B] and [B]form2[/B]. I have opened form2 from form1 using "[B]form2.show()[/B]" method. While closing form2, my application still remains in debugging mode. I thought my form1 has not yet been closed and used [B]me.close() [/B], to close form1 while …

Software Development vb.net
Member Avatar for ravikiran032
0
93
Member Avatar for perlfan

The following code: Exits immediately and produces the message below when search pattern "[COLOR="Green"]\b\w+{3}\b[/COLOR]" is entered: [code=perl] #!/usr/bin/perl -w #matchtest1.pl use strict; my($pattern); my($true); $_ = '1: A silly sentence (495,a) *BUT* one which will be useful. (3)'; do { print "Enter a regular expression: "; chomp($pattern = <STDIN>); if …

Software Development perl regex
Member Avatar for perlfan
0
137
Member Avatar for goody11

Hey, I was attempting to make a password protection system in windows API where someone can type the password in an editbox and if it is the right password, then continue the program else display an error message box. I've tried a bunch of different things but can't get one …

Software Development api c++ windows-api
Member Avatar for goody11
0
113
Member Avatar for spalax

Hi, i'm a beginner in Java. i'm just trying to code a program that extract some specificline from a text file. for example : i want to extract line No 5000 and lineNo 5100 and lineNo 5200. Here is my code, but it only extract just one line from my …

Software Development java
Member Avatar for spalax
0
3K
Member Avatar for EvilOrange

hi, its been a long time since i've had to work on c and i've stumbled. I'm basically trying to get a string[5] into a 2d array stringarray[10][1] [INDENT][CODE] char string[5]; char stringarray[10][1]; void workfunction(); int main(){ workfunction(); for(i=0;i<10;i++){ printf("%s", stringarray[i][0]); } } workfunction(){ for(j=0;j<10;J++){ //does something to get me …

Software Development c
Member Avatar for EvilOrange
0
121
Member Avatar for jake43

I have an issue with this assignment, the instructor says that I use the brackets incorrectly that is why the program will not compile. Please provide feedback to correct program. #include <iostream> using namespace std; int main() { system("color 4"); restart: int number, ans; number = rand() % 100 + …

Software Development c c# c++
Member Avatar for Salem
0
205
Member Avatar for cougarclaws

OK, with some help from all of you, I have this working, but I am at a loss as to how to display the number of steps the user asks to show (if they say 10, then every tenth answer displays until the final one) and we need this to …

Software Development c++ display
Member Avatar for cougarclaws
0
129
Member Avatar for ddanbe

I'm working on a Complex number struct. To display the numbers I've overridden the ToString method like this: [CODE=c#]public override string ToString() { if (_imag >= 0) return String.Format("({0}+{1}i)", _real, _imag); else //imaginary part negative return String.Format("({0}{1}i)", _real, _imag); }[/CODE] Works fine. My numbers get displayed as (a+bi) or (a-bi). …

Software Development
Member Avatar for sknake
0
329
Member Avatar for yellowSnow

I'm still relatively new to these forums. I just like to put out a query regarding threads and their solvability. For Daniweb forums, is it considered good practice for OPs to flag threads that they have started as being solved if they have received appropriate posts that have answered their …

Software Development c
Member Avatar for yellowSnow
1
288
Member Avatar for recycle_carlbin

This code will run but it has some errors in it( I mean,logically wrong.) What is its error? Can you help me figure it out? [CODE]void preOrder(){ myPreOrderTraversal(this); } int myPreOrderTraversal(BinaryTree t){ if (t != null) // {} missing return t.getRoot(); //return should be removed myPreOrderTraversal(this.getLeft()); //replace this with t …

Software Development java
0
82
Member Avatar for speedy gonzalos

Hi I am trying to update more than 1 field in an Access table. I am developing a windows application using an Access database in vb.net. This is the code that i have for my Update button, which works fine if i want to update the field 'CategoryName' however when …

Software Development vb.net
Member Avatar for sknake
0
2K
Member Avatar for Stefano Mtangoo

I have two different pyApps, and I want to make a task bar Icons. For one I use .ico file and another .png file. The .ico one works but not the .png file. Does it mean I cannot use PNG file to make taskbar icon? Here is a code that …

Software Development python
Member Avatar for Stefano Mtangoo
0
93
Member Avatar for iamsmooth

So for my comsci assignment, I need to read in this text file with a butt load of messages. Here is what the text file looks like: [code] 1 R Jemma Harry What were you thinking? Harry, You seriously need to stop claiming your paperclip orders under the heading art …

Software Development c++
Member Avatar for thelamb
0
116
Member Avatar for RobBrown

I am getting an error of "syntax error befor "else" " when i enter this code into the compiler: [CODE]#include <stdio.h> #include <stdlib.h> int main () { float Balance, creditDebit, newBalance; printf("This is your checkbook balancing utility.\n"); printf("You will enter your current balance followed by\n"); printf("checkbook entries. Use + and …

Software Development c
Member Avatar for yellowSnow
0
182
Member Avatar for Pacman21

Hi All on Daniweb.. I am starting a little project that needs hardware and software.. I decided to first start with the software and thats where Im having some trouble right now.. I can easily make a virtual keyboard that runs in vb.net but what i want it to do …

Software Development vb.net
Member Avatar for Pacman21
0
830
Member Avatar for nova2177

i wrote a code which should accept only two values, but it seems to accept any values instead. can some show me where i went wrong. sorry about the long code, still a newbie at this. double hr::change_r(double sr) //implementation from class section { dr = sr; if(sr == 17) …

Software Development c++
Member Avatar for nova2177
0
111
Member Avatar for Nada_ward

Hi I have problem on dragging label when the application show msgbox , it stop responding I do n't know what is problem in my code : [code=vb .net] dim l1 as label Dim serverindex, serverP As Integer Dim serverref As String Dim copiedFragment As String Private Sub Form3_Load(ByVal sender …

Software Development vb.net
Member Avatar for Nada_ward
0
124
Member Avatar for cougarclaws

Hi again, My logic is not too good. I am supposed to get this function to be used twice for two different inputs calling the "strings" from within the function and returning the values to main (perhaps my mistake is attempting to call this program twice??? except that is what …

Software Development c++
Member Avatar for cougarclaws
0
185
Member Avatar for cougarclaws

Hi all, I have tried this several ways. I need to get the user function to return userIn1 to main. I don't need to read anything from the call to the function, but if I leave out paraneters, it really does not work. My original issue was that the string …

Software Development c++
Member Avatar for mrnutty
0
102
Member Avatar for codedhands

Hello, i have a problem constructing a regular expression to strip out puntuations from a document.Below is a simple example of my code [CODE=c++] # //headers here //... string a="kennedy .really-really. .cool"; string replace=" "; string newStr; boost::regex expression("[ ]+(\\.)|(\\.)[ ]+",boost::regex::icase); newStr=boost::regex_replace(a,expression,replace); cout << newStr << endl; //output kennedy really-really …

Software Development c++ regex
Member Avatar for codedhands
0
89
Member Avatar for SeeTheLite

The google references were a bit varied and ambiguos and my textbook ironically doesn't cover templates ._. if I were to make [code=c++]template <typename typ> class stk { public: stk(); ~stk(); private: struct STK { typ dat; STK *lnk; }; *chn; int ctr; }; [/code] do I have to do …

Software Development c++
Member Avatar for SeeTheLite
0
97
Member Avatar for Evil_genius82

hey guys, im very new to java so bare with me... i cant seem to bubble sort my arraylist... The data needs to be displayed unsorted in a jlist, then when user clicks process the list is sorted according to student id. If anyone could guide me through it would …

Software Development java java-swing
Member Avatar for Evil_genius82
0
260
Member Avatar for hardikvd

consider this: float a=3.145698,b; que: now how can I assign b=3.14 using 'a' instead of 3.145698. pls help me... thank you very much....

Software Development c++
Member Avatar for mrnutty
0
89
Member Avatar for shea279

OK so how can i have sscanf scan a string with an undetermined number of separators in it, then separate it out into separate strings inside a array of strings. So essentially, how can I modify this code to make it work? [CODE=c++] char * commands; //simple string as pointer …

Software Development c++
Member Avatar for shea279
0
2K
Member Avatar for kou yuuzhen

hello, i have an assignment to create and print a calendar programme the prob is, we have to add in various additional features in order to get higher marks since i'm new to C, i need help and suggestions to improve on my code also, can anyone please show me …

Software Development c
Member Avatar for yellowSnow
0
136
Member Avatar for abu taher

I made a Data report. I write code like: select *from table1 where date1 and date2 between dtpicker1.value and dtpicker2.value but the data not show in report. but when I write like: select *from table1 where date1 and date1 between dtpicker1.value and dtpicker2.value then data show. what problem? another thing …

Software Development visual-basic
Member Avatar for dspnhn
0
98
Member Avatar for abu taher

I made a datareport. I select a date from dtpicker and the datareport show that date data. here I want the selected date (by dtpicker) will show in the report. like: 05-06-09 or from 01-06-09 to 05-06-09 any body help me please.

Software Development visual-basic
Member Avatar for dspnhn
0
84
Member Avatar for mandofl

I'm supposed to write a program that stores data about a soccer player in a structure: Players name, players number, points scored by the player. The program should keep an array of 12 structures. Each element for a differnet player on the team. When the program runs it should ask …

Software Development c++ data-structure
Member Avatar for mandofl
0
7K
Member Avatar for Basicgear

Im brand spankin new to C# but did only a bit of console work with C++ in high school. I am working with the form application walk through and decided to try a few things. I want to have a check box toggle the background of the form between red …

Software Development
Member Avatar for sknake
0
92
Member Avatar for Agent-of-Chaos

hi i am new to visual basic and i am using vb6, i have senior year project for invenotry managment system..my problem is that if one form is open then the user must not b able to peform other functions(open another form, close application etc) unless the current form is …

Software Development visual-basic
Member Avatar for Agent-of-Chaos
0
102
Member Avatar for mustafaneguib

hey all, i am now making a gpa calculator. i am using 4 classes which form into seperate linked lists. one linked list is for the custom gui, and the other linked list is for the data list. i am using custom images for this program which i import using …

Member Avatar for mustafaneguib
0
183
Member Avatar for aulason

hi there, there are 9 labels on the form with the name say [B]Label1[/B], [B]Label2[/B], [B]Label3[/B], ... now i would like to set their text to "". is there anyway to use a loop and find them just by knowing their name. any help is appreciated, Sean

Software Development
Member Avatar for aulason
0
89
Member Avatar for loozax

can someone help me w/ this?! how to evaluate the EVEN or ODD..all EVEN numbers should store on arrayEven variable,while all ODD numbers store on arrayOdd variable.. [code] import java.util.Scanner; import java.util.Arrays; public class online1{ public static void main(String args[]){ int SIZE= 10; int []number = new int[SIZE]; Scanner input …

Software Development java
Member Avatar for loozax
0
239
Member Avatar for iamsmooth

Hey guys, I'm stuck on an assignment for school, was wondering if you could help me out. So I have a text file similar to this: [code] Joe Jim Hello Jim, Just wanted to say hello! -Jim EOF [/code] This is supposed to be like a message system. The first …

Software Development c++
Member Avatar for iamsmooth
0
97
Member Avatar for RobBrown

I am having a hard time writing a program to do the following: [QUOTE]Your program should create an array that contains ten (10) variables of the following type: typedef struct { char firstName[30]; char lastName[30]; char street[35]; char city[20]; char state[3]; int zip; char phone[15]; int accountId; } Customer; You …

Software Development c data-structure
Member Avatar for RobBrown
0
447
Member Avatar for perlfan

I am reading the book "Beginning Perl" by James Lee and have been pretty happy with the content so far. That said I am stuck on chpt 7 which deals with regular expressions - I can't get the backreferences to work even when I copy the source verbatim. source: [COLOR="Green"] …

Software Development perl
Member Avatar for perlfan
0
123

The End.