132,723 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for k2k

My program should find any 4 letter words and change them into string "love" ... i have successfully found all the spaces and modified any 4 letter words before the spaces... however, the last word before the '/0' doesn't change... please help. btw, is there any string class function check …

Software Development c++
Member Avatar for VernonDozier
0
129
Member Avatar for GadiK

Hi Guys, I'm trying to write a program (MFC) that while working displays a log to the user. For this log I thought I'd use an Edit Box because I can set it to be "multiline". What I had in mind is to display each new log entry in a …

Software Development c++
Member Avatar for GadiK
0
1K
Member Avatar for shahab.burki

Hi, Can we use structures within classes as data type? if yes then please give some examples? Thanks

Software Development c++
Member Avatar for Comatose
0
79
Member Avatar for jobi116

Hi.. I had a problem using a Control [ListView] out side its Class[main form class].. So i made that control [ListView] Static ..Now I can Add and Remove Items from The ListView with ease.. Now the problem is that i cannot use the Event's of this ListView. I need Your …

Software Development listview
Member Avatar for JerryShaw
0
209
Member Avatar for sid78669

Hey! What i am looking for is help on how to work with databases in c#. I have basic knowledge of C# and a pretty good working knowledge of SQL. But I have never learned how to use them together. Can someone point me to a tutorial or something similar …

Software Development c#
Member Avatar for JerryShaw
0
197
Member Avatar for ryan311

i cant load my data in listview this is my code [code]Private Sub LoadCustomerListView() Dim strSQL As String Dim objCurrLI As ListItem strSQL = "Select Lastname" _ & " , Firstname" _ & " , Address" _ & " , Idnumber" _ & " , Gender" _ & " From …

Software Development listview visual-basic
Member Avatar for Comatose
0
72
Member Avatar for BradenMurphy

Hi, I would like to know how to port this code in Delphi [CODE] a : Word; b : ^Word; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin b := @a; Inc(b^); //Display a end; [/CODE] To code in .NET, The problem is converting the pointer. The Migrating Pointer Types section …

Software Development delphi pascal
Member Avatar for LizR
0
88
Member Avatar for TheBeast32

Hi, I'm trying to use LogonUser. I think I'm doing everything right, but I keep getting this error: 1326 (ERROR_LOGON_FAILURE). I know my user and pass are right. [Code=C++] #include <stdlib.h> #include <stdio.h> #include <conio.h> #include <windows.h> void GetPassword(char *pass, int maxlen, char hidechar) { char ch; int len = …

Software Development c
Member Avatar for nucleon
0
216
Member Avatar for scru

Does Python have a concept of class properties (static properties if you may)? I know there are class attributes, but I can't just use one. It's very critical that I control what values can bet set as the class attribute, which I can use the property setter to do.

Software Development python
Member Avatar for Ene Uran
0
102
Member Avatar for rasingh24

Hi, I have to create a project in C# in which i have to create a XML Tree View, select a xml file from hard drive(System) it is displayed as Tree View on winform. When a [B]user selects a particular node/element in the tree view,its attributes and values have to …

Software Development hard-drive xml
Member Avatar for rasingh24
0
905
Member Avatar for papuccino1

Anyone know how I can aquire my database connection string? My professor taught me a way like so: [IMG]http://i40.tinypic.com/2v154cm.jpg[/IMG] [IMG]http://i41.tinypic.com/1059tvr.jpg[/IMG] [IMG]http://i39.tinypic.com/2le3sly.jpg[/IMG] [IMG]http://i42.tinypic.com/2eoy2qa.jpg[/IMG] However after click the new connection button the window that is supposed to open doesn't open. I don't know what's wrong. Is there any other way to obtain …

Software Development
Member Avatar for sknake
0
438
Member Avatar for localp

i want to play an audio file in java without opening a player ... like an alarm ... does any1 knows how to do this.. and r there any sample codes available online ... (please provide relevant links only)

Software Development audio java
Member Avatar for localp
0
181
Member Avatar for r.stiltskin

I have two problems with the focus on buttons in this project. I've pared the code down to barebones to show the problems; there are only 2 simple classes remaining & still the problems persist. It compiles, runs (java ColorView), and all that's required to see the problems is simply …

Software Development java java-swing
Member Avatar for r.stiltskin
0
88
Member Avatar for wendas

Just got VS 2008 for work, I am converting some items from VS 2006 to VS 2008.. But one project I want to split. So I converted the old project to VS2008. Then created a new shell project. Using the "add existing item" I tried to copy the forms in.. …

Software Development
Member Avatar for LizR
0
906
Member Avatar for winrawr

How would I write a function with an undefined number of arguments? Like, how when using printf(), you write the string in the first argument and in the string use format identifiers. Then, for each format identifier you use is an argument specifying what should be put there in the …

Software Development c++
Member Avatar for ArkM
0
517
Member Avatar for mahela007

Why is inheritance an important aspect of object oriented programming?

Software Development python
Member Avatar for lllllIllIlllI
0
652
Member Avatar for devilz

I’m very very new in VB6.0 in my project I need a function where I want to pass month name as variable value which will be selected from a combo box by user and the function will generate the full date from starting to end along with the weekday name. …

Software Development visual-basic
Member Avatar for devilz
0
549
Member Avatar for jhonnyboy

hey guys im pretty new to java but im very eager to learn and want to make my first game :) I want a simple RPG game, but also want to make a GUI. I am using Netbeans as my IDE, do i need anything else to make a GUI? …

Software Development gui ide java java-netbeans
Member Avatar for stultuske
0
203
Member Avatar for mumuXdoll

im making a game, called memory game. i don't know the exact codes to make a picturebox move when clicked. i saw a game file that becomes a gif image when clicked, then it randomizes the last image every start of the game. i wanted to make something like that, …

Software Development visual-basic
Member Avatar for mumuXdoll
0
317
Member Avatar for dmanw100

Hello, I am working on a project that requires a set of points to be sorted by their angles in relation to the x-axis. The angles, which are in radians, store their angle as a double value. My insertion sort algorithm is failing to properly sort the points based on …

Software Development algorithm java
Member Avatar for dmanw100
0
103
Member Avatar for rayda

[CODE]import javax.swing.JOptionPane; import java.util.Random; public class guess2 { public static void main(String[]args) { int num; int guess; int diff; String input; int Diff; Random randomNumbers=new Random(); guess=randomNumbers.nextInt(100); diff= num - guess; Diff=Math.abs(diff); input=JOptionPane.showInputDialog("Enter your guess."); num=Integer.parseInt(input); for(int i=0; i<5;i++) { while(num<0 || num>100) { input=JOptionPane.showInputDialog("Invalid number!Please re-enter: "); num=Integer.parseInt(input); if(Diff==0) …

Software Development java java-swing
Member Avatar for ~s.o.s~
0
315
Member Avatar for rudasi

Hi, I have been trying to figure this out and I know it must be something simple but I cant get it. Why does the following code give an answer of 1. double a=8; cout<<pow(a,1/3); I would think it should be 2. Thanks

Software Development c++
Member Avatar for rudasi
0
158
Member Avatar for Variance

Is it possible to take a label and add the caption to a database? If I try to link the label to the DataField when I run the program it obviously shows no label, and I'm unable to input the data that I need to. I know I could just …

Software Development visual-basic
Member Avatar for Variance
0
97
Member Avatar for Innercoder76

Hey everyone, I need help with my program it is an ipod simulator that goes like this: [CODE]/* FUNCTION - void initaPod Initialize all the slots to blank and 0 size memory*/ void initaPod (); /* FUNCTION - int addSong attempts to add a new song to the aPod returns …

Software Development c++
Member Avatar for ArkM
0
100
Member Avatar for viber101

why my executable jar file created in Netbeans cant write/output a .txt file. . .my program must create a text file and write with it, how can it doesn't work when i convert it to .jar but if i run it in netbeans it work fine?..

Software Development file-system java
Member Avatar for viber101
0
4K
Member Avatar for azwraith69

hello everyone.. thx for droppin' i need to write a program, a recursive sudoku solver and this is what i have so far... [B]main.cpp[/B] [icode] #include <iostream> #include <vector> #include "sudoku.h" using namespace std; int main() { vector< vector<char> > rows; // Load grid rows=load(); // Check if grid is …

Software Development c++
Member Avatar for azwraith69
0
155
Member Avatar for Stefano Mtangoo

Please anyone help me on classes. I have written this class example and keep getting error on that the function is private. I though variables in functions are private but mmh, I think I'm wrong. Can anyone clarify how to rectify this? Also, could you explain to this New Bee …

Software Development c c# c++
Member Avatar for Stefano Mtangoo
0
86
Member Avatar for ternor

Hello, this is my first post here, so thanks for your time and comprehension. English isnt my first language, so I'll be trying my best. OK, I'm in need for a tutorial where I can find examples on how to make use of files, bit operations and registers(whats a register …

Software Development c career
Member Avatar for ternor
0
100
Member Avatar for nicck0

I've been trying on putting up large decimals on the register and when i typed: mov bx, 100000d on assembling the program it says: ...Error: Value out of range something like that.. what should i do.. can you pls help me.. thanks.. btw im using tasm..

Software Development assembly
Member Avatar for nicck0
0
170
Member Avatar for shamila08

Hello! here c++ program. my problem is i need to find the permutation is even and odd. However the value +1 (even )and -1(odd) is not appear for each permutation. [code=cplusplus]= #include <stdio.h> #include <stdlib.h> #include <iostream> #include <memory.h> #define MAX 100 char num[MAX + 1]; int n; using namespace …

Software Development c++
Member Avatar for shamila08
0
114
Member Avatar for murderotica

I've been new to c# and windows services. I've been studying for about a month and been doing a lot of basic stuff. I just want to confirm this issue to you guys. How would it applied to windows services? Would it be possible for IPC mechanism like the clipboard …

Software Development c#
Member Avatar for sknake
0
938
Member Avatar for viswa_007

how to create desktop applications in c# using http requests and http response with iis

Software Development c c# c++
Member Avatar for sknake
0
144
Member Avatar for regina99

hey guys. i'm having trouble with looping a program. my assignment is to get the user to input a string and then display it backwards. i've successfully done this, but it's supposed to ask if you want to run the program again, and that's where my program fails. [CODE]public class …

Software Development java
Member Avatar for regina99
0
88
Member Avatar for VBNick

I literally picked up asm today. I have been trying to create a 3d software rendering engine in C++, and figured out doing things directly would be faster....but, I tried the following code: [code="cplusplus"] int _tmain(int argc, _TCHAR* argv[]) { int num, timestart, dur; timestart = clock(); for(int i = …

Software Development assembly
Member Avatar for VBNick
0
124
Member Avatar for eyewirejets

I'm trying to restrict the users input to the selected characters only. "W" "w" or "L" "l" Anything else entered, an error message should display. Can anyone please look at this and tell me what I'm doing wrong? Thank you [CODE] # User Enters either W = Win and L …

Software Development python
Member Avatar for jrcagle
0
118
Member Avatar for mahela007

Hi.. this is my first post on these forums. I learn python as a hobby. Will learning sequential programming be sufficient for my needs? (I won't be pursuing a career in programming. I just do it so that I can keep my self busy and because I like programming with …

Software Development career python
Member Avatar for jrcagle
0
80
Member Avatar for Digvijaysinh

Hiii i am creating login form, and all the logic is correct by me but when i run the form it executes and inspite of i am providing the correct username and password i get the same message "Wrong login info is provided". please help me on this topic, thanx …

Software Development open-source
Member Avatar for sknake
0
92
Member Avatar for MJV

I have 3 text boxes 1TB,2TB and 3TB. I would like to multiply 1TB by 2TB and put the answer in 3TB. Can anyone help me with this code. Im new to C# and I keep getting errors. Thanks in advance.

Software Development
Member Avatar for ddanbe
0
134
Member Avatar for oldSoftDev

When I was using Python I created a program using basic knowledge of object orientation to compare between different cars. now when i switch to java I come up with a plan to compare lines I have created a point class and get the lines as well but now i …

Software Development java
Member Avatar for oldSoftDev
0
195
Member Avatar for Abhishek_Boga

Hi, im not getting of how to vies the data in the database when user select the cndidate id from combobox and the data should be shown in the datagridview. let me know the source code of the problem.. Regards, Abhishek

Software Development c#
Member Avatar for skc23
0
3K
Member Avatar for kishore84

Hello friends i have been facing problem in reading from a file consisting of both float values and strings.In need to read them and print them out. The input in the text file i have been using is 0 5.1 3.5 1.4 0.2 setosa 1 4.9 3.0 1.4 0.2 setosa …

Software Development c file-system
Member Avatar for nucleon
0
272
Member Avatar for JONZ

Can anyone give me some examples on how to apply stacks and trees..

Software Development c
Member Avatar for death_oclock
0
317
Member Avatar for TheBeast32

Hi, I was wondering if there was an alternative to the ShellExecute function of the Windows API; one that is universal on every OS. Is there one?

Software Development api c windows-api
Member Avatar for death_oclock
0
84
Member Avatar for Skorpion

I want to make a program that takes input 10 random numbers from user and arrange it in ascending order. Give me help for startup plz...

Software Development c
Member Avatar for TheBeast32
0
152
Member Avatar for scru

I know Python introspection feature are powerful, what I can't seem to figure out is how to get the name of the current class. Example: class Foo: def bar(self): print(classname) Then my output should be `Foo`. Bonus points if I can get which module it resides in too. Thanks!

Software Development python
Member Avatar for Ene Uran
0
135
Member Avatar for mahela007

I have installed python 3 on my kubuntu PC. However as the default version of python on kubuntu is 2.5 Idle uses python 2.5 instead of the newly installed python 3 (i used the "python3.0" package for installing python and "idle" package for IDLE when i was installing using synaptic …

Software Development python
Member Avatar for Ene Uran
0
69
Member Avatar for kavithabhaskar

Hi: I have a problem.. I have 3 text boxes and 12 comboboxes. the idea of the form is that the data entry on form has to be stored in Access.. which happens.. but i to limit the user in choosing only the values available from the combo boxes and …

Software Development microsoft-access open-source vb.net
Member Avatar for Lawr
0
119
Member Avatar for Xtreath

First of all hi to evryone. I tryed to make a exe work on most pc's but it only works on mine. My friends got a error when they try to run it. "The application cannot be started because the configuration of the application is wrong. ( or something like …

Software Development c++
Member Avatar for cikara21
0
80
Member Avatar for curiouskitten

I am a beginner python programmer and need some help with this problem. To provide a code that will lowercase all consonants and upper case all vowels. Needs to be a relatively simple code (like 2-3 lines lol) For example i have started this: S=raw_input("Enter Sentence: ") print S.upper() # …

Software Development python
Member Avatar for Ene Uran
0
11K
Member Avatar for mattwaab

hey, i am working on this project, and have made it to the end of the hard coding part. Now i need to work out the bugs / get the thing to compile. I am having some trouble though as i am getting error messages that i dont understand. here …

Software Development c++
Member Avatar for StuXYZ
0
96

The End.