132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cabsjonel

Hi folks , I have a created a listview its almost done, the only thing that is missing is search, can you teach me how search in listview god bless folks.....

Software Development listview visual-basic
Member Avatar for cguan_77
0
675
Member Avatar for jinjonBoo

Hi there everyone. I'm new to Python, and i'm programming a game application, using pyOpenGL. The thing is, the program crashes and exits when i push a key (but i don't want (at least for now) help for that), but i wish i could see the error that appears on …

Software Development opengl python windows-xp
Member Avatar for Tech B
0
350
Member Avatar for BobbieJean

[COLOR="Red"][I]Hey everyone, I've finally gotten my program to build with no errors or warnings and I can run it but it doesn't give all of the correct output. The Instructor provided my class with what the correct output should be and my program gets it partly right just not all …

Software Development c++ queue
Member Avatar for BobbieJean
0
265
Member Avatar for GAME

This is my regex originally from VB. [code]using System.Text.RegularExpressions;[/code] [code] #region "Regex" public object preg_match(System.Object sRegex, System.Object sHaystack) { // Declare some varis MatchCollection Matches = default(MatchCollection); // My Regex to match some text. It is actually a whole <div> block. Regex TheRegex = new Regex("sRegex"); // Get the Source …

Software Development regex
Member Avatar for ivatanako
0
120
Member Avatar for marcoakis

Hello there! I'm new programming in C++, have been learning it for 2-3 months. Now, this uni assignment is working properly, but I'd like to read your advice on how to improve it. All comments are appreciated. Thanks! [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; const int …

Software Development c++ ios
Member Avatar for mrnutty
0
79
Member Avatar for pasido

ok, so in Java you do "blahblah " + variable + " blahblah" which outputs into "blahblah 23 blahblah" but how do I do this in VB? I wanted to have a label with HPvariable + "/" + MAXHPvariable so it'll display 18/23 etc...

Software Development visual-basic
Member Avatar for vb5prgrmr
0
86
Member Avatar for G_S

The question is simple: I have two scrolled text widgets (I'm using tkinter and python 3.x), and I want to synchronize them, that is I want both scrollbars to move at the same time when the user moves the mouse wheel. Both widgets are suppossed to contain the same text, …

Software Development python tkinter
Member Avatar for SoulMazer
0
490
Member Avatar for gtateco

Hi, I'm trying to do a hashing project using separate chaining. In order to do the separate chaining I believe I need to make a dynamic array of pointers to the linked lists. This is due to the fact the user can specify the hash table size at runtime. In …

Software Development c++ linked-list
Member Avatar for mrnutty
0
3K
Member Avatar for ayan2587

Hello guyz !!! I came across this problem and I am still unable to come up with a good algorithm to solve this problem Problem : given, 1<=n<=1000000, and 1<=k<=9 , calculate the first and last k digits of n^n. for example if n=13 and k=4, then result : first …

Software Development algorithm c++
Member Avatar for ayan2587
0
204
Member Avatar for vbx_wx

[code] cout << "Introduceti numele: "; // 1 getline(cin, firstname); cin.ignore(); p.setNume(firstname); cout << "Introduceti adresa: "; //2 getline(cin, adr); cin.ignore(); p.setAdresa(adr); cout << "Introduceti CNP: "; //3 cin >> c_n_p; cin.ignore(); p.setCnp(c_n_p); cout << "Introduceti seria si numarul buletinului: "; //4 getline(cin, serie); cin.ignore(); p.setSerienr(serie); cout << "Introduceti valabilitatea …

Software Development c++
Member Avatar for vbx_wx
0
126
Member Avatar for Excizted

Hi people, I'm trying to match strings from a pattern containing[B] wildcards[/B]. Basically I need to be able to go through a stack of strings, and see which of them matches my pattern. Fx [B]My*.txt[/B] will match only one of these. [U]MyFile.txt[/U] [I]MyFile.php[/I] I'm aiming to end up with a …

Software Development c++
Member Avatar for NathanOliver
0
5K
Member Avatar for radioflyer1

I am attempting to design and implement a horse race game, but I keep getting lost in the while loops and if statement in the horse selection and wager prompt. Would someone please help me get passed this problem? Thanks. [CODE]print ("It's a beautiful day out here folks. A fine …

Software Development python
Member Avatar for radioflyer1
0
197
Member Avatar for iwanttolearnc

im trying to use c to interface with a zilog microcontroller. the problem is that i cant do much without the library <ez8.h>. ive been searching the web now for any links to download this particular library to no avail. does anyone know where i can get this library? thanks …

Software Development c
Member Avatar for iwanttolearnc
0
156
Member Avatar for yossi321

Hi How can I protect/lock a drive from deleting files and format it ? Is there a way to hook a drive?

Software Development c++
Member Avatar for yossi321
0
61
Member Avatar for G_S

Hi, I have a very simple question: first of all, my code: [CODE=python] import os def test(): x = "Linux" y = "Windows" if os.name == "posix": print(x) if os.name == "nt": print(y) else: print("there is a problem") [/CODE] Run that code on Linux (don't know about windows) and it'll …

Software Development os-x python
Member Avatar for G_S
0
146
Member Avatar for G_S

Hi, I have a minor quesion today: can somebody tell me how to change basic style options for buttons using ttk. I'd like my buttons and entry fields to have rounded corners. I know this is possible but documentation on ttk (for python) seems to be inexistent on the Web. …

Software Development python
Member Avatar for G_S
0
9K
Member Avatar for shuklax

Hello, I am very much new to perl and to this forum also... pls help for this prob... I have 200 two colom data files like, xyz_channel_1.dat .....xyz_channel_200.dat. Coloms of each file is similer like below; First colom 'X' starts from 1 and ends at 200. and second colom 'Y' …

Software Development perl
Member Avatar for shuklax
0
206
Member Avatar for mohamed mo'men

[code]package taskvip; import java.util.Random; public class Main { public static void main(String[] args) { int y =0; Random t =new Random (); fun1 e = new fun1(); for ( e.i = t.nextInt(50); e.i < 100; e.i++) { e.A[e.i]= e.k.nextInt(50); y=e.k.nextInt(); } for ( e.i = 0; e.i < 100; e.i++) …

Software Development java
Member Avatar for mohamed mo'men
0
410
Member Avatar for radioflyer1

I can't determine how to randomly list horses as they cross various parts of the track. Will someone please point me in the write direction? [CODE]if bet > 1: #starts the race, if bet when bet is placed print (""" Here come the horses now, folks. They're being loaded into …

Software Development python
Member Avatar for griswolf
0
154
Member Avatar for SoulMazer

Hi, I've tried searching around for other problems similar to mine, and I was unable to find any. I seem to not be able to "color" text in a TextCtrl widget on Windows, but I can on Linux. I have a little screenshot and some code to show this: [URL="http://i189.photobucket.com/albums/z266/Capn_Soul/WinLinuxDifference.jpg"]Screenshot[/URL] …

Software Development python
Member Avatar for SoulMazer
0
815
Member Avatar for SoulMazer

Hi, I'm trying to color some text with wxPython but I am having some trouble. I am using the SetStyle method of the TextCtrl widget. My problem is that the coloring works perfectly on Linux but does not under Windows. My script basically gives a vocabulary test, and if you …

Software Development python
Member Avatar for vegaseat
0
148
Member Avatar for learnerAccess

[code = c] #include <stdio.h> #include <string.h> int main() { int n = 0x000000FF, i; char *p = (char *)&n; for(i = 0; i < sizeof(int); i++) printf ("value : %d\n", *(int *)(p + i)); return 0; } [/code] I'm expecting something like 255 0 0 0 OR 0 0 …

Software Development c
Member Avatar for learnerAccess
0
91
Member Avatar for lewashby

In the following program I have a few questions. [B]results.txt[/B] Johnny 8.65 Juan 9.12 Joseph 8.45 Stacey 7.81 Aideen 8.05 Zack 7.21 Aaron 8.31 [CODE]scores = {} result_f = open("results.txt") for line in result_f: (name, score) = line.split() scores[score] = name result_f.close() print("The toop scores were:") for each_score in sorted(scores.keys(), …

Software Development python
Member Avatar for vegaseat
0
98
Member Avatar for lewashby

[CODE]line = "101;johnny 'wave-boy' Jones;USA;8.32;Fish;21" s = {} (s['id'], s['name'], s['country'], s['average'], s['board'], s['age']) = line.split(";") # above, why is "s" and the end of the key list surrounded by parenthesis? print("ID: " + s['id']) print("Name: " + s['name']) print("Country " + s['country']) print("Average " + s['average']) print("Board type: " …

Software Development python
Member Avatar for snippsat
0
159
Member Avatar for Prometheus6626

I am currently working on a project that involves the use of data base sources, namely ODBC. The problem is I have designed a form using the Data Source Configuration Wizard that doesn't update. I've ensured that I have a primary key in my data and that the Copy to …

Software Development vb.net
Member Avatar for ericpierre
0
273
Member Avatar for Terminator_Null

Following the thread title, I too am having trouble populating the listbox in my unit converter. I keep getting the error message "Conversion from string " " to type 'Integer' is not valid." when I input an accepted piece of code in VB for displaying the results in the listbox. …

Software Development vb.net
Member Avatar for finito
0
86
Member Avatar for nsutton

I want to make a smarter child program. Smarter Child incase you don't know was an aim bot that was designed for kids. It was extremely abused but it had pretty good AI and comprehension of what your type. I don't really know how on this. I would probably be …

Member Avatar for nsutton
0
171
Member Avatar for littlestewie

[CODE]#include <stdlib.h> #include<iostream> #include<conio.h> typedef struct kume1{ int data; struct kume1 *next; }; typedef kume1 *kume1ptr; void insert(kume1ptr *x,int a); void del(kume1ptr *x); int main(){ int t=1; kume1ptr first1=NULL; kume1ptr first2=NULL; int x; int i; for( i=10;i>=1;i--)//ikisi içinde 20 şer tane random sayı üretiyoruz { x=rand() % 100 + 1; …

Software Development c linked-list
Member Avatar for abhimanipal
0
104
Member Avatar for MrBlack

in my code [B]Devide [/B]method is not working it gives an error "ExceptionHandling.Program.Devide(int, int)': not all code paths return a value" When i change public int Devide method in to void,the programe is workig , plz explain me what is the wrong with my code, im new to programming , …

Software Development
Member Avatar for MrBlack
0
142
Member Avatar for toddermohan

[CODE]#include<stdio.h> main() { FILE *fp; fp=fopen(*PR1.c","r"); if(fp==NULL) { puts("cannot open"); exit() } }[/CODE] -------------- in this program why they are using *fp and pl reason full program.. and also how fp=fopen(*PR1.c","r"); works

Software Development c
Member Avatar for Radical Edward
0
119
Member Avatar for dmr9215

I'm implementing my own hashtable class as practice, but I'm having trouble retrieving values from the table that were inserted from a file. When I do so from an array however, the program finds the values without a problem... I've tried modifying my hash function to adapt for any potential …

Software Development c++ file-system
Member Avatar for Radical Edward
0
148
Member Avatar for frenchie4111

[CODE]struct piece { piece(){} piece(int spacs[][3]) { spaces = spacs; } int spaces[][3]; };[/CODE] /home/myname/Programming/C++/blokus1/game.hpp|11|error: incompatible types in assignment of ‘int (*)[3]’ to ‘int [0][3]' How can this be fixed?

Software Development c++
Member Avatar for frenchie4111
0
181
Member Avatar for griyshvarya

Hi , I am developing a windows application in C#.I have a table with questions and answers. When my page loads all the questions in the table will get displayed as link labels,where these linklabels are created dynamically based on the number of questions in the table. I have a …

Software Development
Member Avatar for griyshvarya
0
137
Member Avatar for Loony064

Hey All! I'm working on a project where there is a lot of data input from the user. There are numerous combo boxes to help minimise user input and prevent input errors. One of the combo boxes (ComboType) needs to be populated with all the records from the relevant database …

Software Development dataset
Member Avatar for finito
0
200
Member Avatar for Humaira Qureshi

Hy! I have a project and hav to submit it at 13 june. Can somebody help me to add "Search Code" in this code. Its a student class a data abt student. If i want to search student data printed as Name: Father name: Id: and other data like this …

Software Development c++ data-structure
Member Avatar for daviddoria
0
116
Member Avatar for GAME

I need to be able to check one textbox and another one on keypress. If both textbox characters are over 4 characters then a button will become enabled. So far... I have.... [code] private void txtUser_KeyPress(object sender, KeyPressEventArgs e) { if (txtUser.Text.Length >= 4 && txtUser.Text.Length < 20) { btnLogin.Enabled …

Software Development
Member Avatar for ereruh
0
152
Member Avatar for disablealex

Hello guys!i am kinda new to C# and i am just learning....the thing is..i want to make a little app.I made something like a login form with a username and password textbox.i need these textboxes to go into the acces database(which i succesfully added to the project and all it …

Software Development c c# c++
Member Avatar for Ramy Mahrous
0
202
Member Avatar for DrApe1

For my Programming class I have to write a program to get the Date and time from a Daytime protocol server. If you don't know, the format for the Daytime protocol is as follows: [code]JJJJJ YR-MO-DA HH:MM:SS TT L H msADV UTC(NIST) *[/code] YR being the last two digits of …

Software Development java socket-programming
Member Avatar for aspire1
0
132
Member Avatar for rythreion

[code]import java.io.*; public class BaseTransform { private final BufferedReader buffer=new BufferedReader(new InputStreamReader(System.in)); public BaseTransform(){ try{ System.out.print("Enter any integer: "); int input=Integer.parseInt(this.getInput()); System.out.print("Enter a base[2...16]: "); int base=Integer.parseInt(this.getInput()); String answer=this.transform(input,base); if(answer!=null){ System.out.println(""+input+" at base "+base+" is "+answer+"."); }else{ System.out.println("Error!"); } }catch(Exception e){ e.printStackTrace(); } } public static void main(String args[]){ BaseTransform …

Software Development java
Member Avatar for peter_budo
0
97
Member Avatar for niemo

Dear all, As the title says: How can I get the most frequent string (that occurred the most) in an array of strings ?

Software Development
Member Avatar for EricTetz
0
1K
Member Avatar for aay

Write a program that reads in a sentence of up to 100 characters and outputs the sentence with spacing corrected and with letters corrected for capitalization. In other words, in the output sentence, all strings of two or more blanks should be compressed to a single blank. I don't know …

Software Development c++
Member Avatar for aay
0
684
Member Avatar for tony_waza

Hi, I am developping an image viewer and everithing is working fine. Now, i associated this application with all jpg files. It's fine too. But when the application is launched, the image is not being opened. I supose that i have to do something like this: Private Sub Form1_Load(ByVal sender …

Software Development vb.net
Member Avatar for Teme64
0
217
Member Avatar for EricTetz

Is is possible to define a method which returns a delegate, without first creating a delegate type? For instance, in C or C++ I can define a function pointer type, then define a function which returns a function pointer of that type: [code=c]typedef int (*IntVoid)(); // function pointer type IntVoid …

Software Development c c# c++
Member Avatar for EricTetz
0
360
Member Avatar for mitch9654

This button will only appear if you move your mouse over it. See here: [url]http://mitch9654.zymichost.com/Java/index.html[/url] You hava to move the mouse around the top left my applet is this [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package …

Software Development java java-swing
Member Avatar for mitch9654
0
103
Member Avatar for Crysomere

Hello, I attempted to create a linked list in Assembly which takes the values from x and stores them into the list LinkNode. While it does work properly in doing this, I am unable to get any calls to procedures to work after calling my GetLink procedure. The calls seem …

Software Development assembly linked-list
Member Avatar for Crysomere
0
93
Member Avatar for tdk420n

Hi. I'm having a little trouble figuring this problem out. What I need the program to do is take an email inbox and print out only the Headers for each message. Assuming each max line length to be 1024. I can read the file line by line but I don't …

Software Development c file-system linux-kernel oracle
Member Avatar for tdk420n
0
194
Member Avatar for daniel88

Hi guys, I am bringing a problem which I thought I had solved, but it has re-reared its ugly head. The problem is one of user input (I can hear you veterans audibly say "Aargh!"). I wish to remove serial numbers (of type string) from a set. To give you …

Software Development c++
Member Avatar for daniel88
0
141
Member Avatar for drfrev

hello, I'm rather new to python, and I'm trying to make a simple macro program, i have the mouse setup but duplicating the keyboard actions is a giving me a bit of trouble. the website I'm using isn't for python but i found it for a reference: [url]http://www.codeproject.com/KB/system/keyboard.aspx[/url] I found …

Software Development python
Member Avatar for jcao219
0
383
Member Avatar for bsse007

[B][I]wii anybody plz tell me that how can we count a char in file when it repeats;[/I][/B]

Software Development c++
Member Avatar for Radical Edward
0
127
Member Avatar for speedy94519

Hey guys Im having trouble printing out a string. Could someone help me out? I would like to enter a string like: "julie perez" and print out "julie perez" but my program only outputs "julie". The code that prints out only "julie" is the following: practice.c: [CODE] #include <stdio.h> #include …

Software Development c
Member Avatar for speedy94519
0
142

The End.