43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for metalla_nz

Hi all, Im developing a small app that stores information in a database. When I first released, I tried to make sure my DB was future-proofed against any changes. However i'm about to release a new version that requires a change to the DB schema. Currently my terrible way of …

Software Development
Member Avatar for Garr
0
315
Member Avatar for Papa_Don

Hi group, I'm discovering that my Excel spreadsheets that are being created by a VB.net app I've written isn't completely closing them as they should be. I'm struggling to understand why and how to fix this. Here is the code for the portion of the app that creates the workbook, …

Software Development microsoft-office vb.net
Member Avatar for Papa_Don
0
5K
Member Avatar for can-mohan

In below code snippet , I am trying to add the intefeger and float values in Array template but was surprised to see below output for float value as 5.1 was expected there but getting 0 . Can anybody let me know what can be wrong here. output value=5 value=15 …

Software Development c++
Member Avatar for can-mohan
0
365
Member Avatar for Papa_Don

Hi group, I'm making a handful of changes to an existing program I wrote a year or so ago. For some reason I can't get it to build as I'm getting an error that says: 1> Copying file from "obj\x86\Debug\Restran Solutions.exe" to "bin\Debug\app.publish\Restran Solutions.exe". 1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(3506,5): error MSB3113: Could …

Software Development vb.net
Member Avatar for Papa_Don
0
692
Member Avatar for David W

This thread will be an attempt to develope a SIMPLE (and good enough) class for beginning Java students, to ease their coding for valid and crash proof, user (Console type) input, (and also handle Console output.) We assume here that beginning students need not worry much, about obtaining the fastest …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for PCSAWICK829

Alright. I'm teaching myself python from 'Learn Python the Hard Way: 3rd Edition' by Zed Shaw.. it's been informative so far. Definitely learning. After his lessons, he gives study drills, extra project to put your learning to use. He challenged us to: "Find out what Zork and Adventure were. Try …

Software Development python
Member Avatar for Conrad_2
0
9K
Member Avatar for Sudo Bash

I am writing a game in which I need to know whether or not a user preforms an action in one second or less. I can not use time() because it measures time in seconds. If the user starts the action half-way through a second it would mess with accuracy. …

Software Development c++
Member Avatar for Yangang
0
4K
Member Avatar for giancan

Dear All, I have a very long list of values as follow (43, 560) (516, 1533) (1316, 3047) (520, 1528) (3563, 1316) (45, 557) (3562, 1312) (2686, 1964) (2424, 3340) (3559, 1317) (50, 561) (2427, 3336) (1313, 3046) (3562, 1313) (3559, 1318) (2689, 1962) (2429, 3339) (3721, 2585) (1317, 3048) …

Software Development python
Member Avatar for JamesCherrill
0
824
Member Avatar for Pandey_1

I have generated checkbutton from inputstatus dictionary to set as default values.After tht once it get display on GUI when i select it respected text and status will be added to new dictionary '''inputstatus = { 'maggi': 1, \ 'pizza': 1, \ 'cold drinks': 1, \ 'fries': 1, \ 'chapati': …

Software Development gui python
Member Avatar for Gribouillis
0
513
Member Avatar for glao

Hello , I have this: #include <iostream> #include <cstdio> #include <cstdlib> #include <vector> using namespace std; typedef struct { float x; float y; Point *next; } Point; int main() { Point *thePoints = new Point[2]; thePoints[0].x = 2; thePoints[0].y = 3; thePoints[1].x = 4; thePoints[1].y = 5; (thePoints[0])->next= 11; cout …

Software Development c++
Member Avatar for glao
0
436
Member Avatar for Nol_1

Hello DaniWeb Community, I'm a beginner Java programmer. The LoanTableTester contains the main method and the LoanTable is a class separate from the LoanTableTester class. May I please have help with a cannot find symbol - variable mortgage error? I wrote the methods for calculating the c, monthly payments, number …

Software Development java
Member Avatar for Nol_1
0
404
Member Avatar for Pandey_1

from Tkinter import * from ttk import Style class Example(Frame): def __init__(self, parent): Frame.__init__(self, parent, background="#333") self.parent = parent self.parent.title("sample") self.parent.iconbitmap('sample.ico') self.pack(fill=BOTH, expand=1) self.centerWindow() self.initUI() def centerWindow(self): w = 500 h = 450 sw = self.parent.winfo_screenwidth() sh = self.parent.winfo_screenheight() x = (sw - w)/2 y = (sh - h)/2 self.parent.geometry('%dx%d+%d+%d' …

Software Development operating-system os-x python tkinter
Member Avatar for Pandey_1
0
7K
Member Avatar for Sashika_1

I had question about vb.net. I know normally this is simple. But in this case it's dificult. Let me explain this. I had three forms. Form1 is mdi parent form. Others 2 parent forms are child forms which named form2 and form3. I want to send form3 text box value …

Software Development vb.net
Member Avatar for tinstaafl
0
1K
Member Avatar for Artur_5

Hello, I'm totally new to programming and wanted to make a text-based game based on what I know, but I've met a problem I don't know how to fix. Also this code is not finished, I'm just trying to get it to work first. Basically, I want the loop to …

Software Development microsoft python
Member Avatar for Gribouillis
0
484
Member Avatar for Sashika_1

I find answer for this question from internet and also here. Some got some help from here. But it doesn't worked 100% fo my situation. So let me describe all things detailed. This is about three forms. To our easy understand I'll named those Form1,Form2,Form3. Only Form1 is MDI parent. …

Software Development vb.net
Member Avatar for tinstaafl
0
297
Member Avatar for zetologos

im having a bit of trouble using the object i add to my arraylist. i used this as my reference: [url]http://www.java2s.com/Tutorial/CSharp/0220__Data-Structure/ArrayListandyourownobjectAddobjectstoArrayList.htm[/url] [CODE] import java.util.ArrayList; public class TestArrayList { public static void main(String[] args) { Object item1 = new ObjectMaker(); Object item2 = new ObjectMaker(); Object item3 = new ObjectMaker(); ArrayList<Object> …

Software Development java
Member Avatar for jwenting
0
25K
Member Avatar for Sashika_1

hey everyone. I need you experties help to the correct this login form code. After the best effort I find this code. But it occur one error. Before the explain error I'll describe how this work. This login form check user name and password from the mysql database. After Normaliy …

Software Development vb.net
Member Avatar for Sashika_1
0
2K
Member Avatar for IcyFire

I made a client server program to send an image from the server to the client. The image is being sent being but its not showing up in client window immediately. If i click send on the server then i minimize (or maximize) the client window then open again the …

Software Development client-server image java java-swing
Member Avatar for rproffitt
0
7K
Member Avatar for AssertNull

I've always been bad with regular expressions syntax. I am converting text into Bezier curves, polygons, etc. Part of that is identifying points in the form `(x,y)` where x and y are coordinates in a graph. I am extracting x and y as doubles and creating Point objects with those …

Software Development java regex
Member Avatar for AssertNull
0
379
Member Avatar for ddanbe

I have a `List<double> MyList` something looking like this: 4.75/1.01/5.66/NaN/42.42/3.33 I’d like to get the minimum value of 1.01 out of it, but I get d = NaN when doing `double d = MyList.Min();` Tried, after some long internet strolls, something with LINQ to no avail. Some LINQ afictionados around …

Software Development asp.net
Member Avatar for ddanbe
0
265
Member Avatar for opman234

Please , help me. I could not find crystal report view control in my toolbox. I am using visual basic 2010. I don't know if I need to add something. Thanks

Software Development vb.net visual-basic
Member Avatar for samuel_11
1
3K
Member Avatar for AutoPython

Okay, I'm trying to make a python game (not with pygame), I want it to use the arrow keys. But the thing is, I don't know how to get it to respond to the arrow keys. So here's what I want to do. If the user presses the up arrow …

Software Development python
Member Avatar for Gribouillis
1
49K
Member Avatar for TheGuy831

Hi Im trying to Populate my datagridview from data scraped off of webpage i Want to be able to report progress when datagrid finished updating.. with a progressbar.. Please Help!!!!!! Thank You.. Heres My code Dim theElementCollection As Windows.Forms.HtmlElementCollection theElementCollection = Form1.WebBrowser2.Document.GetElementsByTagName("a") For Each curElement As HtmlElement In theElementCollection Form1.DataGridView1.Rows.Add(curElement.GetAttribute("title"), …

Software Development multithreading vb.net
Member Avatar for TheGuy831
0
3K
Member Avatar for Mr.M

Hi guys. Well according to the research I had, and MP3 file structure is as follows: ` AAAAAAAA AAABBCCD EEEEFFGH IIJJKLMM ` which is refered to as frames, and each. Each letter is one bit. I've seen samples demonstrating how to get data from this but what I want is …

Software Development c++ data-structure vb.net
Member Avatar for AssertNull
0
972
Member Avatar for Tim_8

Hi, I have a project which runs on 'dual monitor' PC's. I only want to use one monitor at a time, but I want the user to pick which monitor they want to use (Primary or Secondary). I have set form1 to have a manual start position, and the user …

Software Development vb.net
Member Avatar for tinstaafl
0
907
Member Avatar for sumod

Q.Write a program using 2D array. A company manufactures three products P1, P2 and P3. Company has hired five salesman. Each salesman sell all three products. Accept from user number of each product sold by each salesman. Find the product whose sale was largest.Also find the salesman whose sales were …

Software Development java
Member Avatar for sumod
0
2K
Member Avatar for hpoddar

How to read properties file in Python? I found ConfigParser() but it has a 'section' limitation, so looking for other alternatives. Thanks, Harsh

Software Development python
Member Avatar for Anand_10
0
12K
Member Avatar for V3N0M

Hi guys after fixing my previous bug this one has resulted. What I am trying to do: 1. Make getchar() read only one character per input 2. Make the while loop not accept numbers 3. When the user enters duplicate characters the program should only accept the first character. code: …

Software Development c c# c++
Member Avatar for V3N0M
0
323
Member Avatar for Peter_36

Why wont the if look for both Peter and John? #include <iostream> #include <string> using namespace std; int main() { string Name, Mood; // obvious string cout << "Whats your name?" << endl; cin >> Name; if (Name == "Peter"|| "John") { cout << "Hello, master! How are we feeling …

Software Development c++
Member Avatar for AssertNull
0
369
Member Avatar for V3N0M

Hi guys I am looking to go through C then transition to C++ later this year. I am having a minor problem with switch statement and I am not in a position to ask anyone as there are no tech savvy that I know. So I thought it was better …

Software Development c c# c++
Member Avatar for V3N0M
0
338
Member Avatar for badkid32

I'm trying to write a basic program for a C++ lab for class, and running into some trouble. Senario is that the program averages grades. A user enters the number of grades, then enteres a letter grade, then the program runs for however many grades the user has, then averages …

Software Development c c# c++
Member Avatar for Xavier_3
0
11K
Member Avatar for VIPER5646

Hi all I'm new using LinQ. Im having Specified Cast not Valid in this Function. Hope someone let me know what I'm doing wrong. this is the Function Private Function GroupedBy() As DataTable Dim Sales As New ds_Sales_OELI Dim dt As DataTable = Sales.Not_SCheduled GroupedBy = New DataTable Dim dr …

Software Development asp.net vb.net
Member Avatar for VIPER5646
0
1K
Member Avatar for Glitz_1

how to loop the auto calculation in data grid view column example : 14 32 32 64 11 75 15 90 the calculation is 32 + 32 = 64 64 +11 =75 ok.. now the problem is what if i edit the first column number 32 to 30 and the …

Software Development vb.net
Member Avatar for rproffitt
0
390
Member Avatar for Crazyscript77

Hi all, I have been trying to use python to automate a sequence of processes on my computer, one of which is starting a hosted network. I have used subprocess to interact with command prompt (windows 10), and am struggling to pass sequential commands. I am trying to first send …

Software Development python windows-10
Member Avatar for Gribouillis
0
11K
Member Avatar for Matthew_15

I am trying to have a textbox set up where multple texboxes are used in teh layout of a table, each one as a seperate box in. (I havn't got the exact size figured out yet but for the sake of testing i've been usieng a layout of 2 rows …

Software Development vb.net
Member Avatar for Reverend Jim
0
152
Member Avatar for Suzie999

Hi all. I've had a good look around for info, and come up short. Does anyone know of a way to get the thread id under which a service is running, from either safehandle or unsafe handle properties of the object? wmi with Win32_Service does not appear to provide it, …

Software Development
Member Avatar for Suzie999
0
669
Member Avatar for Hi-Tone

Hi all, I trying to add two matrices together using a typedef struct, but i seems to get an error doing this. I asked my professor, but he couldnt help me. Is there anyone who might know why this problem is caused? Thank you so much! Code: /* Structures */ …

Software Development c
Member Avatar for Akbar_5
0
3K
Member Avatar for Jollyyy100

Is there any way possible to display a slideshow of pictures on a vb 6 form? What steps are required? Thankyou

Software Development display visual-basic
Member Avatar for Supermike
0
2K
Member Avatar for Mr.M

Hi Guys. First of all is it possible to detect a file copying/moving within the system, I'm sure this is done in lower languages like C++ but I've tried searching but I don't seem to find not even en example, maybe it because I don't know how it correctly called. …

Software Development c++ file-system vb.net
Member Avatar for pritaeas
0
1K
Member Avatar for Mr.M

Hi Guys. I'm trying to suspend a process by it name, but I found the sample that demontrate this using ProcessId. The problem is that I don't know the process ID of the process I want to suspend/resume. [Here is a sample I used.](https://social.msdn.microsoft.com/Forums/en-US/cdde6cef-3971-40a6-b4dd-02db963868ce/suspend-an-application?forum=vbgeneral)

Software Development microsoft vb.net
Member Avatar for Mr.M
0
577
Member Avatar for Suzie999

Hi. I invoke method from other thread which did not create ui. Appears to work well... DVG.Invoke((MethodInvoker)(() => dgv.Rows.Add(DGVR))); But I need return value from Add method, so I do... int Index = (int)DVG.Invoke((MethodInvoker)(() => dgv.Rows.Add(DGVR))); Unfortunately I get an error... "Object reference not set to an instance of an …

Software Development
Member Avatar for Suzie999
0
231
Member Avatar for yawar260

Hi,my name is yawar i am a student learning c#.I have combobox,when i select an item in combobox there comes data which i want to display on labels,but my problem is there comes many data,i want to display only 3 labels when only 3 data rows comes from database and …

Software Development
Member Avatar for Santhosh_3
0
276
Member Avatar for Chris_38

Can someone give me some programming ideas to keep my knowledge up-to-date? I received a masters degree in computer science back in December and been job searching since then. I want to tell an employer something.

Software Development c c++ java
Member Avatar for rproffitt
0
292
Member Avatar for FakeTales

Hey i have a basic game which requires a client to guess the number which is located on the server side, mutliple clients can access the same game. The client sends their guess this in turn passes to a middleware server then this then goes to the end server. If …

Software Development c c# c++ client-server regex
Member Avatar for Arman_5
0
531
Member Avatar for Violet_82

Hi, I'm thinking to upgrade from java sdk 7 to 8 (JamesCherrill will be pleased,lol!) and I was just wondering if there is anything I need to be careful with, especially in eclipse. I will start first with Windows, and then do the same thing in Ubuntu. My eclipse seems …

Software Development java ubuntu
Member Avatar for JamesCherrill
0
300
Member Avatar for Ghast

I want to create a program to delete a partition using VB.NET or CSharp.NET But I have no idea how to do it. I know a big portion of VB.NET now and not this. I can“t find it on the whole internet and this website is my best bet.

Software Development vb.net
Member Avatar for Ghast
0
299
Member Avatar for Isky

Hi, I'm new to this Java world, and just can't figure out this problem. After I use nextInt or nextDouble, and try to use nextLine, it won't work unless I put nextLine twice. What's the problem there, and what would be the good way to handle this? Just gave a …

Software Development java
Member Avatar for stultuske
0
21K
Member Avatar for Tom_15

Hi: I wasn't able to find the exact solution to my problem on Daniweb, although there are several posts regarding the game of life. This situation came the closest: http://www.daniweb.com/software-development/cpp/threads/242338 My situation is a bit different because I HAVE to use a combination of functions and a class in the …

Software Development assembly c++
Member Avatar for Reverend Jim
0
2K
Member Avatar for Suzie999

Here is example class, the commented code in constructor works as well as the initializer. My question is, what is the correct way? class NClass { public: int _pid; std::wstring _name; NClass(int pid, wchar_t * name) : _name(name) { //_name = name; } void Print() { std::wcout << _name; std::getchar(); …

Software Development c++
Member Avatar for Suzie999
0
3K
Member Avatar for Tom_15

I need help inserting the assert function within my code, and creating the neighborcount function as listed below, heres the guidelines: default constructor: initialize all of the array elements to false get: return the current contents of a single array element. Use arguments to indicate the row and column of …

Software Development c++
Member Avatar for Tom_15
0
696

The End.