132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for GoneGirl

SO i feel totally annoying but I got to ask for advice. As you see in the title im trying to call a constructor from an other class. Im trying to add and create a new gymMember for every weight that is found in the file into a new array …

Software Development java
Member Avatar for GoneGirl
0
165
Member Avatar for aditya55

[B]Can anybody tell me that session can be use in windows Form if yes how?.....[/B][/B]

Software Development session
Member Avatar for ChrisHunter
0
566
Member Avatar for PinoyDev

Good day! I have a listview loaded in a form in a **lvwIcon** view with checkboxes enabled.. I have checked some items from it, let say 5 items. Now when I switch the view to **lvwReport**, the checked items are gone. How to make it selected again? Thank you for …

Software Development listview visual-basic
Member Avatar for PinoyDev
0
183
Member Avatar for My_1

I got 1 when i pass button and if i pass the second timeis still 1 not is ++ int click = 0; public ButtonHandler(int x, int y, MineGrid g) { row = x; col = y; grid = g; } public void actionPerformed(ActionEvent event) else { click ++; JButton …

Software Development java
Member Avatar for My_1
0
181
Member Avatar for OMER AHMED

why i am receiving this error and how i can solve it See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.IndexOutOfRangeException: Index was outside the bounds of the array. at WindowsApplication1.fol_hide.fol_hide_Load(Object sender, EventArgs e) in D:\Projects\3 …

Software Development assembly vb.net
Member Avatar for OMER AHMED
0
740
Member Avatar for Papa_Don

Group, In a post in VB 4/5/6, I question how to open a file with a wildcard as the file extension ([https://www.daniweb.com/software-development/visual-basic-4-5-6/threads/488809/accessing-a-file-with-a-ever-changing-name](null). That worked fine for VBA. However I'm trying to do the same thing using VB.net. I'm having trouble finding the correct syntax. I hope you can help. Specifically, …

Software Development file-system vb.net visual-basic
Member Avatar for Papa_Don
0
4K
Member Avatar for Noorul Ariff

Hi Friends, I want to do a project for Parsing Resume in C#. i.e when we upload resumes(More than 100), it should extract Name, email id, phone no, skills. **Please don't tell that software’s are available. I tried those soft wares, but they are not working properly.** So, I wanted …

Software Development c#
Member Avatar for overwraith
0
1K
Member Avatar for CodyOebel

OK down below where my IDM button is under WM_COMMAND: is my checkbox processing body. Under WM_CREATE is the checkbox being created. The problem is my application always starts with the check box checked, and will NOT let me uncheck it with the mouse. Please help would be great! /********************************************************************/ …

Software Development c++
Member Avatar for CodyOebel
0
677
Member Avatar for CodyOebel

Can someone please tell me why when I check one of my boxes, and click the button I get no message box in accordance to which checkbox I checked. #include <windows.h> #include <dos.h> #include <stdlib.h> #include <fstream> using namespace std; #define IDC_MAIN_BUTTON 101 // Button identifier #define IDC_MAIN_EDIT 102 // …

Software Development c c# c++
Member Avatar for CodyOebel
0
1K
Member Avatar for Labdabeta

Hello, I posted on this forum two times before about a particular pair of non-printing characters being inserted into my code. You can find the threads [here](https://www.daniweb.com/software-development/threads/441611/stray-non-printing-characters-in-my-programs) and [here](https://www.daniweb.com/software-development/cpp/threads/450296/arbitrarily-appearing-non-printing-character). Two great posters tried their best to solve this problem (mike_2000_17 and deceptikon) to no avail. Finally, using the hints that …

Software Development c c++ gaming
0
157
Member Avatar for veselin.lalov.3

I want to get the occurence of the symbol ';' for each line of this C program. I type the name of the file Source.c and try to count the occuring symbol, but i am getting the value for ALL of the ';' for each line. #include <stdio.h> #include <stdlib.h> …

Software Development c open-source
Member Avatar for Labdabeta
0
160
Member Avatar for CodeWarrior14

Hello everyone, I'm new here - just joined. I'm strugling with a bit of code. Im trying to check if a number is a prime number, but my program produces weird results. Herse the code: { Vefies if a value is prime. } function TMactacHash.IsPrime(value: integer): boolean; var i, overValue: …

Software Development pascal
Member Avatar for CodeWarrior14
0
323
Member Avatar for StarZ

How come this program doesn't run? Well.. not just this program, all my other ones. There are no mistakes, I wrote the code as this textbook says but its not running and its giving this error (on dr java): 1 error found: File: (no associated file) [line: (no source location)] …

Software Development java
Member Avatar for stultuske
0
428
Member Avatar for samishaikh

Problem Your task is to write a program that plays the game of life. This game is a computer simulation of the life and death events in a population of single-cell organisms. Each position in a two-dimensional grid (Petri dish) can support one cell. The program determines whether each position …

Software Development c++
Member Avatar for chahinez.abdelo.9
0
537
Member Avatar for jonardy

This class is designed to test the efficiency of the two search models. You will simultaneously populate both arrays with the same random numbers. This will guarantee that both arrays have the exact same content. Sort only ONE array using Arrays.sort. This sorted array will be used with the bin_search …

Software Development java
Member Avatar for jonardy
0
120
Member Avatar for ZeroEddy

Hi im new to python and am trying to make a simple tank game where I want the tank gun to follow the position of the mouse cursor. Im am having some trouble in doing this. Below is my code. Whenever I run I get an error. So far I …

Software Development gaming python
Member Avatar for ZeroEddy
0
415
Member Avatar for yaya1234

Hey, I would like to break one char for example "t6" into to chars t and 6 look at what i did... int a,b; temp = *arraystr[2] % '10'; a = temp - '0'; temp = *arraystr[2] / '10'; b = temp - 'a';

Software Development c++
Member Avatar for sepp2k
0
116
Member Avatar for Papa_Don

Group, I'm taking a text file that is storing ID numbers in a single column that looks like this: 123 3050 3971 I'm looping through the text file line for line and putting each ID number into a textbox. My question is: Am I writing this code the most efficient …

Software Development vb.net
Member Avatar for Papa_Don
0
3K
Member Avatar for muhammadshahroz
Member Avatar for jtodd
0
183
Member Avatar for GoneGirl

Hi guys, Im trying some stuff out in java but im a little stuck and confused by stackoverflow answers so I wanted to ask here if its ok. I have a lot of code but I just took out this one little part that i wanna be able for a …

Software Development java
Member Avatar for GoneGirl
0
139
Member Avatar for kidkardel

Hi again. I am on the part where I am ready to publish my .cs program and tried to install it to my friends pc when I noticed it doesnt connect to the sql and just makes an error, I noticed that i declared all my paths like this: Sample …

Software Development visual-studio
Member Avatar for mridul.ahuja
0
168
Member Avatar for Slavi

Hey guys, some of you might know me from other sub sections of Dani Web. I am about (just started) to learn Python. And not just learn but possibly make it my prefered language over all. So, I've read the thread from `vegaseat` for beginners and it has a link …

Software Development apache python
Member Avatar for vegaseat
0
240
Member Avatar for Vahid_1

Hi, This two parts of code both are intended to do one thing. get two numbers from user, calculate sum between them. print it. now only the first code is working properly. second one is faulty. but why? what's the problem? code no1: #include <stdio.h> int main() { int n, …

Software Development c
Member Avatar for jnneson
0
91
Member Avatar for har58

Hi, I have created TY.py. The Ty.py file executes and runs successfully. I am trying to make its executable using py2exe and by creating setup.py. It is not able to include the requests. I think it is because 'requests' is not present in 'include' folder for python27. The path of …

Software Development python session
Member Avatar for vegaseat
0
1K
Member Avatar for smurfy

Hi everyone ; Thanks to Dani, there are lots of links provided around the topics like this. I am a single Java programmer, writing short java programmes in Eclipse. However, i need to work with others and produce long but managable java codes. Briefly my ambition is : 1.Creating some …

Software Development java oop
Member Avatar for smurfy
0
507
Member Avatar for TIP.Synergy

Hi, how to transfer datagridview record to listview? anyone have an idea?

Software Development listview vb.net
Member Avatar for kevinmark
0
3K
Member Avatar for wesam.teto.9

Similarity(X,Y): For i = 0,...,m: SIM[i,0] = i*g For j = 1,...,n: SIM[0,j] = j*g For i = 1,...,m: For j = 1,...,n: SIM[i,j] = max( SIM[i-1,j-1] + s(X[i],Y[j]), SIM[i-1,j]+g, SIM[i,j-1]+g ) EndFor EndFor Return SIM[m,n]

Software Development python
Member Avatar for Gribouillis
0
229
Member Avatar for ali11

getting following error: incompatible types: vmpr cannot be converted to JFrame JFrame VendingMachine = new vmpr(); import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JLabel; import java.awt.*; import javax.swing.*; import javax.swing.JFrame; public class vmgu extends JFrame implements ActionListener { public JButton button[]; public JLabel label; public JLabel label2; public …

Software Development gui java java-swing
Member Avatar for stultuske
0
349
Member Avatar for Tigr@

do { Console.Write(" <jaar 1582 - 2500>..."); } while(!int.TryParse(Console.ReadLine(), out jaar) && jaar < 1582); Why doesn't this work in C#? you can't test a integeren in a do while when there's a tryparse apperently whats the best way of doing this? Thank you for your time.

Software Development
Member Avatar for Tigr@
0
168
Member Avatar for EdJones

As part of a study exercise I wrote a procedural script and would like to ask whether anyone has a more polished version. Your version can be procedural or object oriented. #! /usr/bin/env python3 # This script simulates a monkey on a typewriter trying to come up with one sentence …

Software Development python
Member Avatar for Gribouillis
0
134
Member Avatar for rela

Could someone please tell me how I can run my C++ code using Command prompt? How should I open it, and what I need to write? And if there are more than one text files in my code including input data, how I can choose one of them to run …

Software Development c++
Member Avatar for CodeWarrior14
0
414
Member Avatar for haulover

Reading Stroustrup: Programming -- Principles and Practice Using C++, chapter 4, exercise 4: "Write a program to play a numbers guessing game. The user thinks of a number between 1 and 100 and your program asks questions to figure out what the number is (e.g., "Is the number you are …

Software Development c++ programming-construct
Member Avatar for Maritimo
0
383
Member Avatar for Pompy

Hi! Im trying to do this class work for Comp Programming class! This is the assignment. Using integer and modulus division, determine how a deck of 52 cards can be represented by randomly generating 52 numbers(1 to 52). Each Number should have a value and a suit ( Ex: 4 …

Software Development vb.net
Member Avatar for Pompy
0
89
Member Avatar for Simon180

Am crating abit of code to save and add a menuitem to main menu but am having a small problem when reloading the saved lobby.dat file when its saved it should be save just click the lobby name is below **Support Group Lobby=56** but it keeps thinking the space is …

Software Development pascal
Member Avatar for SalmiSoft
0
155
Member Avatar for rasha80

i want to build program that recive (c code in txt file) then searching for words (int , double, char, float) and count number of vaiables appear according to that. then store the variables in array (e.g. int x; i want to store X in array and so on). i …

Software Development c++
Member Avatar for rasha80
0
213
Member Avatar for divinity02

hi guys remember that I had a game to build and was asking for help, well I spoke with my lecture and the game what I was talking about is more or less a program. it is a Java multiplication table math game but I have to build it like …

Software Development java
Member Avatar for Taywin
0
201
Member Avatar for Scott_9

Hello everyone, I am new to the website! I've looked over the different forums and I think I'm in a dilemma. In my past (1996) I went to college to learn "Computer Service Technology", and in those classes I was taught Qbasic, Visual Basic, and a little bit of C …

Software Development career visual-basic
Member Avatar for Scott_9
0
320
Member Avatar for Tcll

so I've reverse-engineered Tkinter's tkfiledialog functions askopenfilename and asksaveasfilename to figure out how they work: import Tkinter class Open: "Ask for a filename to open" def __init__(self, master=None, **options): self.master, self.options = master, options if not master and options.get('parent'): self.master = options['parent'] def _fixoptions(self): try: self.options["filetypes"] = tuple(self.options["filetypes"]) # make …

Software Development file-system python qt tkinter
Member Avatar for Tcll
0
302
Member Avatar for JOSheaIV

So hopefully the title makes a little sense, but I'll explain a little more. Currently I am developing a program at work that is designed to query a SQL database for results. The code is meant to be stand alone, a single .exe that can be run on any machine. …

Software Development assembly sql
Member Avatar for JOSheaIV
0
344
Member Avatar for Tcll

I've been working on this in other places so it's a little ahead of it's time, but it still has a few minor issues... heh here's an example to get started: x = struct( 12, # struct size 'x,y,z', # variable order x = bf32, y = bf32, z = …

Software Development file-system python
Member Avatar for Tcll
0
232
Member Avatar for rama.krishna.9003

I have three files, each one containing 5 columns. Every line begins with a name (column 1) and it has a range associated in column 4 (beginning range) and column 5 (end of range) File:A A5WV02_DANRE 35.64 188 3030 3217 A5WV02_DANRE 34.24 184 3934 4117 A5WV02_DANRE 33.68 193 2707 2898 …

Software Development perl
Member Avatar for 2teez
0
171
Member Avatar for myk45

Hi all I have a qt application in which I have a QTreewidget that displays some content in the QTextBrowser. I set the contents for the html document in the textbrowser using the setHtml() function. All I want now is to fetch the url of this html document so that …

Software Development c++ html-css qt web-browser
Member Avatar for myk45
0
484
Member Avatar for Taufique111

Hello Everyone. I'm basically new to c# database project so any can give me code as to pass a data value from one datagrid table to other form with another data grid view table . also i wanted to know as how to get specific value of a row when …

Software Development c c# c++
Member Avatar for Taufique111
0
116
Member Avatar for Lilgenski16

//BlackJack // Plays a simple version of the casino style game of blackjack; 1 - 7 players #include <iostream> #include <string> #include <vector> #include <algorithm> #include <ctime> using namespace std; class Card { public: enum rank {ACE = 1, TWO , THREE , FOUR , FIVE , SIX , SEVEN …

Software Development algorithm c++
Member Avatar for マーズ maazu
0
2K
Member Avatar for vegaseat

This snippets shows how to have fun replacing multiple words in a text. The target words and the replacement words form key:value pairs in a dictionary. The search and replacement is done using Python's regular expression module re. The code also gives an example of a function within a function.

Software Development python
Member Avatar for Gribouillis
0
20K
Member Avatar for rfresh

I think this is an unusual question but here goes. There is a winform app that has a window with controls on it that can only be operated via a keyboard. The design of how this works is really bad. I'm wondering if I can write a utility app that …

Software Development
Member Avatar for rfresh
0
159
Member Avatar for wilferraciolli

Hi I wonder if anyone can help please. I am stuck after unmarsheling complex type from JAXB in my web service operation. I can successfully unmarshal and loop through it which is fine however i am performing a search and want to return all the elements that match the search. …

Software Development java xml
Member Avatar for Don_4
0
193
Member Avatar for ezekel

I have this hex code and i want to convert to binary. 242465313037382c3031343536373536343335363738322c5858582c3134303632363033343033375f43314530312e6a70672c32332c302cc3bfc398c3bfc39be2809e13200e100e0c13100f10151413161c2f1e1c1a1a1c39292b222f44c2ab62e2809cc387243d03c592c2a9c387434c0e38064628c39f794e202d3101c2a4c2a601452534c593c39201282002c5bec2abc3b8c5bec39401c2a505c2a948c382e2809a15c39bc2ab3535c5a0c38648690139c3aa5ac2b4e280b921c2a1c28d2065210e7d4d371de280a127c39054c38b5654741de280b0c3986120c380c3b734c3a16f70c3b804c386e282ac761cc393c3a615e280a1c3bde28098c388c3834ec398c3bf6540c2a3c3acc5a00fc38d70c398c3bac5a0571ecb863cc2ab45c3ab213fc28d01c2ad13c2a47bc2bec2abc5a149e282acc2be7c23c3aec383c3ba203ec3947fe280a0151f5a2f7013c3ad52c3ba20c3bc2920c384c387c3b8c388c3ba2041713cc3997fc3a7c2abc3be746e73c395c39bc3b33420c3a1c38fc2ad1408514b400b566c57c3bd6b7d050345e280b010c2bc6ce282acc3a3771401e280b03de2809a01c3bac39058c3bc53c3a219e2809cc3b0c2a4c3981fc3bfc390c3abc2b6c5937bc393c3820e6801c3a146314b4c02c5a0282002c5a06b20742a4706c2b3c39e36195ec592290114e2809a5946646520c3bdc395c3afc3b5c2a8192a3741 but I don't know how to convert this kind of data. Thank you in advance.

Software Development java
Member Avatar for cgeier
0
843
Member Avatar for Weejin

Sample output: Please enter a number(Less than 8 digits): 1203021 how can I sure only 8 digits key in and how to count the zero inside the given number. Please teach me final is coming :(

Software Development c
Member Avatar for Maritimo
0
83
Member Avatar for Adami

Hi, I wrote the following program: #include <stdio.h> #include <stdlib.h> #define TRUE = 1; #define FALSE = 0; static int *arr; static int size=0; void createSet() { arr= (int *)malloc(sizeof(int)); size=0; }/*createSet function*/ void putInSet(int num) { int *temp; size++; temp=(int *)realloc(arr,size*sizeof(int)); if(temp!=NULL) { arr=temp; } else { printf("Insufficient amount …

Software Development c
Member Avatar for Maritimo
0
1K

The End.