43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for shen06

Hello Guys! :) I'm Shen. I'm new here and to programming also. I hope you guys could help me learn more about IT and stuffs 'cause I'm really interested in learning things about computers and the technology. And also, I'd be very happy to meet new friends in here too... …

Software Development c
Member Avatar for David W
0
252
Member Avatar for rbyrd

I plan to write a program that allows the user to move shapes around on the canvas once they are drawn. A given shape will be drawn when an appropriate button is pressed. I'm using simple test programs to learn my way around. I've looked at a number of examples …

Software Development python tkinter
Member Avatar for vegaseat
0
365
Member Avatar for razree

Hi guys, I'm having some problems with sum of array values and I hope you can help me out. I have a form from which there are multiple values added and saved to txt file. Than on button click, these values are read from txt file to array and shown …

Software Development vb.net
Member Avatar for razree
0
2K
Member Avatar for chophouse

I'm trying to design a lambda function that returns any line in a file that begins with any digit [0-9]. The point would be to return the whole line if it does, and skip any line if it doesn't. This is for log analysis where I want all the lines …

Software Development python
Member Avatar for Gribouillis
0
343
Member Avatar for Nikolas9896

Hi! To Everyone! Could you tell me how I can use GCC with that file comunicatoin, because : g++ main.cpp program1.cpp -o program1.exe - not valid - It didn't saw program1.h and all declaration in him. I had the task : Write a program that prints the numbers from 1 …

Software Development c++
Member Avatar for Nikolas9896
0
371
Member Avatar for desert564

A pseudoperfect number, sometimes also called a semiperfect number (Benkoski 1972, Butske et al. 1999), is a positive integer such as which is the sum of some (or all) of its proper divisors, A pseudoperfect number which is the sum of all its proper divisors is called a perfect number. …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for Mr.M

Hi Dw. I'm developing a system using c++ for the XFS. I've followed the documentation on how to install the SDK but the problem is that I've successfully installed the SDK but when I start to create the sample, when I try to put the required includes they are not …

Software Development c++
Member Avatar for Mr.M
0
188
Member Avatar for iqra aslam

what is the basic use of keyword return? if we donot use it what is the effect?

Software Development c
Member Avatar for iqra aslam
0
149
Member Avatar for QwertyFish

How would I get a list of all ip addresses that are on a network using python.

Software Development python
Member Avatar for QwertyFish
0
350
Member Avatar for Kris_3

Hi guys so I just finished all the basic tutorials on C++ on this channel [Click Here](https://www.youtube.com/playlist?list=PLS1QulWo1RIYSyC6w2-rDssprPrEsgtVK). I don't know if its any good but it started me off. But now I have watched everything and I am wondering where to continue and I decided to ask here. Any good …

Software Development c++ video
Member Avatar for Kris_3
0
240
Member Avatar for chophouse

I've written this function to take a list and shift each member right by the number supplied as the offset. I want to preserve the supplied list and return the shifted list. My problem is that the function modifies the supplied input list itself as well as returning a new …

Software Development python
Member Avatar for chophouse
0
298
Member Avatar for MasterHacker110

I hear that the new version of Java, Java 8, does not support a way to connect to MS Access database... I have a rather big problem in this case as I created all my databases with access (And im not porting them to SQL). I wanted to update my …

Software Development delphi java
Member Avatar for Schol-R-LEA
0
617
Member Avatar for Wei_3

Runtime r = Runtime.getRuntime(); Process pr = r.exec(cmdString) I can get the prompt result when I try "cmd /c type f1.properties", however, when the size of file is larger the command will hang and no output I could get and no exception occurred. Is there any limitation for java to …

Software Development java
Member Avatar for JamesCherrill
0
677
Member Avatar for Aish_14

hello.. I am trying to write a code which can ping multiple ip addresses and depending on the reply print whether the server is on. My approach is to save the addresses in an array, then ping them using a for loop. I am not sure about the data type …

Software Development c
Member Avatar for Aish_14
0
1K
Member Avatar for gajen007

I faced a NullPointerException for below code. What is the cause? import javax.swing.*; import java.awt.*; import java.awt.event.*; import net.sourceforge.jdatepicker.*; import net.sourceforge.jdatepicker.graphics.*; import net.sourceforge.jdatepicker.impl.*; import net.sourceforge.jdatepicker.util.*; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class selectDate extends JFrame implements ActionListener { JLabel CheckDate; JButton check; public UtilDateModel model; public JDatePanelImpl …

Software Development java java-swing
Member Avatar for raj.mscking
0
7K
Member Avatar for robert.knighton.79

I'm simply trying to keep a log list for my application events. I'm trying to send text to the log from a seperate thread with the following code: Imports System.Threading Public Class Main Private worker1 As Thread Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load worker1 = New …

Software Development multithreading vb.net
Member Avatar for AleMonteiro
0
495
Member Avatar for kamilacbe

HI, I have a class1 and Class2 which is generic class and when i create object for class2 which should be able to acces class1 method which is MethodA() please advise.Thanks in advance namespace generics1 { public class B { public void methodA() { } } public class A<T> { …

Software Development
Member Avatar for Suzie999
0
152
Member Avatar for KnifeDarky

Hello, I am making a program, when I click picturebox, some text appears on the form. So I got that part right, I am clicking picturebox and text is appearing, but the problem is, that I dont know how to clear that text one by one after certain amount of …

Software Development vb.net
Member Avatar for KnifeDarky
0
155
Member Avatar for Slavi

It's been a few days since I had the time to dig into java, now I went to eclipse and all I see is errors .. Here is a picture. Any ideas how to fix it? That is just weird because it says no build path was found while i've …

Software Development java
Member Avatar for Wei_3
0
118
Member Avatar for frankie198

I only started learning Python a few days ago, so as a beginner, what IDE should I be using? Should I just start with IDLE, then move on to something else when I'm more advanced? I've been using Pycharm for the past few days, I didn't know if that's an …

Software Development ide python
Member Avatar for Jack_9
0
856
Member Avatar for Kris_3

Hi again, so guys I want to add some color to my text but all the explanations I find are some links to complicated ways of doing it with almost no explanation of the operators functions and so on. Could you show me an easy way to make for example …

Software Development c++
Member Avatar for Kris_3
0
182
Member Avatar for Miffy

Hi, Please help me write this C code as i am clueless and helpless in C programming Write a C program, which allows the user to enter a valid filename and then prints the file content to screen, two lines at a time. The program should pause after displaying the …

Software Development c c# c++
Member Avatar for Hiroshe
0
248
Member Avatar for Joemeister

Let me explain what I want to do: I want to change a expression like this: x * (2 + 3) - (y + 1) to this: 5 * (2 + 3) - (6 + 1) using this: instVar('x', 5); instVar('y', 6); The problem is I get the following output: …

Software Development c++
Member Avatar for iamthwee
0
166
Member Avatar for Jack_9

I haven;t even started learning perl yet, I know languages like java, c and python, but is perl even worth learning? I mean it's a preety old language (what am Isaying age dosen't matter, think of how much C is still used) but the thing that I meant is that …

Software Development perl
Member Avatar for Hiroshe
0
303
Member Avatar for chris99

I am trying to create a window with a custom background after playing with the different styles, to practice declarations and destroying objects for future reference. Whenever I try to compile the code I get the following errors: "undefined reference to CreateSolidBrush@4" and "undefined reference to DestroyObject@4". Where in my …

Software Development c++ microsoft
Member Avatar for chris99
0
244
Member Avatar for Mike Askew

IQueryable<CustomObject> obj = (from table in db.TableName orderby table.ObjectId descending select new CustomObject { //Properties mapped here }).Skip((pageNumber - 1) * pageSize).Take(pageSize); The above is a stripped down version of the query I am running. It is missing about 10 joins and then just the bulk mapping of the object, …

Software Development sql
Member Avatar for Mike Askew
0
201
Member Avatar for henryz_box

This thread was started in [Click Here](http://www.daniweb.com/software-development/java/threads/482431/adding-controls-to-a-background-label-and-structuring-the-source-code), and I created this thread in hopes of making it easier to find. I have been working on a program that creates several controls dynamically in a LayeredPane.The code to add all the controls to the Pane has gotten really long. Is there …

Software Development java
Member Avatar for henryz_box
0
332
Member Avatar for singersongrita

I learned how you can use the switch statement to make the program go through the stuff inside and choose the one that matches the condition set. Isnt that basically what "if" statements do? so does this mean we can completely replace 'if' with 'switch'? because it seems way more …

Software Development c++
Member Avatar for happygeek
0
157
Member Avatar for xuexue

Hi! Could you help me initialize or load the data into a Data Grid View Control using iDB2 Connection? I've tried this code I've seen from the net but it does not seem to work :( I am initializing the connection using form_load and not in the Properties Window. Imports …

Software Development dataset vb.net
Member Avatar for cgeier
0
328
Member Avatar for Jack_9

Hi, i'm developing an app with python where I need to link it to MySQL? Can somebody tell me how I would do that? Anything would be gladly appreciated!

Software Development mysql python
Member Avatar for Jack_9
0
151
Member Avatar for ddanbe

I know this may seem a bit like nitpicking, but would it make any difference to use public int foo() { if (myInt == 1) return 2; if (myInt == 2) return 1; return 0; } or public int bar() { if (myInt == 1) return 2; else if (myInt …

Software Development
Member Avatar for JOSheaIV
0
144
Member Avatar for Jack_9

Is C++ worth learning for webapps? I know python and it works well, so would it even be worth it to learn c++?

Software Development c c# c++
Member Avatar for Jack_9
0
161
Member Avatar for PerplexedB

I have this control on my (wpf)form Status <TextBlock x:Name="Status" HorizontalAlignment="Left" Margin="138,0,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Grid.ColumnSpan="3" Height="67" Width="577" Grid.Row="1" IsHyphenationEnabled="True" UseLayoutRounding="False"/> It seems that just setting Status.Text=someValue from within a click event does not refresh until the event is completed. How can this be done (in C#) if one wants …

Software Development
Member Avatar for ddanbe
0
148
Member Avatar for lionaneesh

**Introduction** Hi guyz today I am going to writing a tutorial on dictionaries in Python....As per as getting comments from my readers I'll try to make this tutorial short.... **Layout** 1.What are dictionaries? 2.Why dictionaries? 3.How to declare/make dictionaries in Python? 4.What all you can do with a dictionary? 5.Interesting …

Software Development python
Member Avatar for vegaseat
0
668
Member Avatar for dimi231080

hello,i have one application in vb net where i have 2 datetimepickers and one button and one datagrid. When i press the button a sub is called(below) and it is supposed to take the datetimepicker1.text and datetimepicker2.text and display the existinf records between these dates .The column that stores the …

Software Development vb.net
Member Avatar for dimi231080
0
5K
Member Avatar for xuexue

Hi! These are the basic things I know about iDB2Commands to be used in Visual Studio 2010. Could you please help me how could I extract data from DB2? I know `INSERT`, `DELETE` and Record Count. But `SELECT` or Extract Data and `UPDATE` I don't know. Imports IBM.Data.DB2 Imports IBM.Data.DB2.iSeries …

Software Development vb.net visual-basic visual-studio
Member Avatar for xuexue
0
1K
Member Avatar for frnds2vivek

Hi, I just completed a project in VB6. It was running smoothly when I tested it on my console, i.e. development PC. Then, I created a setup file of it using the InstallShield Wizard and tried to run it on a fresh test PC. The setup completed successfully but when …

Software Development visual-basic
Member Avatar for OrionBlastar
0
8K
Member Avatar for gbhs

I have created a workbook using VB.net and I need to Hide all columns to the right of Column K in all worksheets. To hide column K alone I can do Worksheet.Range("K:K", missing).EntireColumn.Hidden = true How can I hide column K and ALL the columns to the right of column …

Software Development vb.net
Member Avatar for gbhs
0
4K
Member Avatar for Kris_3

So I just started using the Goto command and I have some trouble with it. I will post my code and explain the problem. cout<<"So here we are at your first choice."<<endl; cout<<"-Do you 'stand' there and TRY to get me out of your head..."<<endl; cout<<"Or do you 'follow' the …

Software Development c++
Member Avatar for mike_2000_17
0
204
Member Avatar for Jack_9

Why learn Pascal or delphi? They are both old and not used much. So why learn them instead of a more popular language like Java?

Software Development delphi pascal
Member Avatar for Jack_10
0
222
Member Avatar for gua543

I have no errors when public static void main(String[] args) is not in the program, but when I put it in everything becomes a mess. package classexample; public class ClassExample { public static void main(String[] args) { int Power = 0; int Speed = 0; int TraveledDistance = 0; void …

Software Development java
Member Avatar for gua543
0
439
Member Avatar for nathan.pavlovsky

Is it poor convention to create a c++ file only to store various functions, and then include it into the main.cpp? This would be done so that the functions could be used in different programs as well.

Software Development c++
Member Avatar for nathan.pavlovsky
0
473
Member Avatar for Kris_3

Hi guys so I am still learning and there might be an easier way to do thing than how i do them but still i need some help. So I was thinking of making a program in which it asks you a question , lets say Yes/No question and you …

Software Development algorithm c++
Member Avatar for Kris_3
0
134
Member Avatar for aluhnev

class Animal { string _name; string _type; string _sound; // private constructor prevents construction of base class Animal(){}; protected: // protected constructor for use by derived classes Animal(const string & n, const string & t, const string & s) : _name(n), _type(t), _sound(s) {} public: void speak() const; const string …

Software Development c++ visual-studio
Member Avatar for NathanOliver
0
225
Member Avatar for Jsplinter

I do not understand what the following code does: enum testEnum: unsigned char { FOO_ENUM, BAR_ENUM }; unsigned char sideFilter1 = 1 << FOO_ENUM; unsigned char sideFilter2 = (1 << FOO_ENUM) | (1 << BAR_ENUM);

Software Development c++
Member Avatar for NathanOliver
0
184
Member Avatar for amithunter

Actually i am confused with concept of database conectivity in c++ with any traditional Dbase server is it possible if yes then how....pls help Thanks for the help in advance

Software Development c++
Member Avatar for rubberman
0
208
Member Avatar for amithunter

Please help me to create a automaticcaly executable file in c .when cpu boot up it should automatically execute once. Thanks for the help

Software Development c
Member Avatar for amithunter
0
167
Member Avatar for Nebil

Hi, I've got a little issue with a progress bar.I have a label and the progress bar on a form.I've some calculation to be performed and then stored to the database.I wanted to show the progress of this process to the user.The calculation process is on another form.when the process …

Software Development vb.net
Member Avatar for Nebil
0
364
Member Avatar for xuexue

Hi! I have no problem when trying to execute and `insert` or a `delete` SQL Command. However, this `update` command does not seems to work well and I am having a hard time to figure it out. Kindly help me please. I am using an i Series or AS/400 database. …

Software Development vb.net
Member Avatar for cgeier
0
509
Member Avatar for Kris_3

Hey guys. So I have made a little project but I want to give it to a friend to test it out. I am using Code::Blocks and I want to save the file so that when you click it it comes out like the window I get when I run …

Software Development c++
Member Avatar for Kris_3
0
128

The End.