132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Xozz

Hi. I just installed Code Blocks. I want to just get started with programming. It seems that I have to configure Code Blocks therefore, setting up a compiler. How should this be done? Help Leon

Software Development c++
Member Avatar for Xozz
0
1K
Member Avatar for NKR13

I have been 2 player programming othello. The program checks for possible areas to place piece "O" and flips pieces. I have got the code for "X" ready too but I can't get the program to switch to player2 "X" and execute code associated to it. Can someone help? class …

Software Development c#
0
220
Member Avatar for slavedogg

This code will call a phone number and try to play a wav file. It sounds like a man on a CB that you cant understand. It should be a woman voice. I dont know if its the flo control or something else. Does anyone have any ideas?

Software Development
Member Avatar for Reverend Jim
0
4K
Member Avatar for Violet_82

Hi all, I'm having some issues with the Scanner not waiting for input from the keyboard. The first method processChoice takes the userChoice and the idea is that in the switch statement there is a call to a method getUserInputForProcessing that takes the action and there scanner takes an input …

Software Development java
Member Avatar for Violet_82
0
1K
Member Avatar for Allyson_1

Help i need to have 3 login attempts then the program will lock down but the message box shows up 3 times consecutively, it will close then pops out it will do this for 3 times then it closes ... help pleassseee :( Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal …

Software Development vb.net visual-basic
Member Avatar for andrevanzuydam
0
722
Member Avatar for NKR13

I am programming the game Othello in c#. i have managed to generate the grid however the starting pieces are not in the right position. I think it because the indexing from 0 when I want it to start from 1. Can someone try and help me out. private const …

Software Development
Member Avatar for tinstaafl
0
352
Member Avatar for NadiaNl

Hi, I have an idea of building an API for **Machine-to-machine payments.** The API will enable to assign wallets to connected devices, record available amounts of something valuable, as well as all incoming and outgoing movements of value. Would love to hear back from developers who are seeking to address …

Software Development api
Member Avatar for RuMedia
0
930
Member Avatar for Amit_66

when i am trying to insert date into the datefield of the oracle then date value are stored in to database but each date value are same like DOB 01-JAN-70 01-JAN-70 01-JAN-70 public class practicdate { JDateChooser dateChooser,dateChooser1; practicdate(){ dateChooser = new JDateChooser(); dateChooser.setBounds(200, 200, 150, 20); getContentPane().add(dateChooser); public void …

Software Development java oracle
Member Avatar for RuMedia
0
489
Member Avatar for nxcx

package de.extrema.java; import java.util.Scanner; public class Pogramm { public static void main(String arrg[]) { try (Scanner scanner = new Scanner(System.in)) { double a , b , r , A , h; int number2; int number; System.out.println("Körper: "); System.out.println("Deine Wahl: "); number = scanner.nextInt(); number2 = scanner.nextInt(); switch(number) { case 1:{ …

Software Development java
Member Avatar for Nutster
0
381
Member Avatar for Raena

I don't know whether this questions fits here or not, but if it doesn't let me know. I'm very much beginner in programming, and I've started it in vb.net for a project I've to do for my college work. To add the data of a user from a form, when …

Software Development vb.net
Member Avatar for Reverend Jim
0
502
Member Avatar for aromazing

I don't know whether this question fits here or not, but if it doesn't let me know. I'm a much much beginner in programming, and I've started it in vb.net for a project I've to do for my college work. To add the data of a user in the database …

Software Development vb.net visual-studio
Member Avatar for DGPickett
0
475
Member Avatar for VRamone

Hello, how can I insert a single image on the top of a XSL document? I tried this code below: <xsl:stylesheet version="1.0" xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="urn:my-scripts" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" > <xsl:template match="/"> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40"> <!-- Styles added.... --> <Styles> <Style ss:ID="Default" ss:Name="Normal"> <Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/> <Borders/> …

Software Development c# image xml
Member Avatar for rproffitt
0
310
Member Avatar for priya2278

i need to enhance the existing code to add on the user locked if the user failed 3 times... even after they enter the username & password, the system should track whether the user have been tried to login before... once it have been try for three times, the user …

Software Development visual-basic
Member Avatar for Allyson_1
0
3K
Member Avatar for ravss

I am trying to write a C++ solution for a problem which is written C, I have learnt C++ very long ago(may be 15 years), and the way C++ is evolved now is kind of taking long to understand and not easy as 'C' to develop a solution. Would request …

Software Development algorithm c++
Member Avatar for wwwalker
0
335
Member Avatar for Curious Gorge

Looking to create an asset for the Unity Asset store in C#. I don't want to give away the source code, yet I want users to be able to purchase + download my work and use it in their projects. I'm not sure what this is called or how to …

Software Development
Member Avatar for wwwalker
0
1K
Member Avatar for woomar

Hi. I was wondering if anyone could help me with checking for a valid move in Othello. I was thinking about hard=coding everything but that takes too long. this is what i have so far: 1. Check which direction is valid (adjacent piece is different from piece being placed) 2. …

Software Development java
Member Avatar for JamesCherrill
0
5K
Member Avatar for Gizen

Hi everyone, I'm new to parallel programming, and my project is the two-dimensional matrix vector multiplication using mpi in C programming language. I have this multiplication function, but I don't know exactly how to run it with mpi. Can you help me, please? I write these commands, $ mpicc -g …

Software Development c++ matrix-multiplication ubuntu
Member Avatar for rproffitt
0
2K
Member Avatar for mko_1

#include<iostream> #include<string> using namespace std; class stack { string item; int top; public: stack() { top=-1; } void push(char ch) { top++; item[top]=ch; } char pop() { char ele; if(isempty()) { printf("\n stack overflow!!"); return '@'; } ele=item[top]; top--; return ele; } char peep() { return(item[top]); } int isempty() { …

Software Development c++
Member Avatar for kevenm
0
468
Member Avatar for Tân_3

1/Write a TeachArithmeticFrame class that teaches children arithmetic. The frame uses a JLabel for a problem and a JTextField for the user answer. When the user presses the Enter key (while the JTextField object is active) or clicks the OK button, display a message stating whether the user’s answer is …

Software Development java
Member Avatar for rproffitt
0
316
Member Avatar for Bishop_1

Help me , Search data with dataGuidViewer and print that searching result (vb.Net). I am try verious Code thous are found youtube, but it not work...... Please Help me VB.Net (2010, 2012,2013,)

Software Development vb.net
Member Avatar for Bishop_1
0
1K
Member Avatar for Mariam_9
Member Avatar for amvx86

Hello Everyone, I'm trying to create / edit a binary value within the windows registry so far I have this: Dim data As Byte() = New Byte() {&H48, 96} Microsoft.Win32.Registry.SetValue("hkey_local_machine\hardware\description\system\bios", "SystemProductName2", data, Microsoft.Win32.RegistryValueKind.Binary) However, I want to set a product name say "Acer Stuff" to the registry and what is …

Software Development microsoft vb.net
Member Avatar for rproffitt
0
345
Member Avatar for bookday502

**Task** Your task is to write a program that will draw graphs and output them as coloured image in the .ppm file format and display them using a suitable external image viewer (IrfanView). The program will use code generated sine waves, and harmonics of these, to calculate and display the …

Software Development user-interface
Member Avatar for bookday502
0
2K
Member Avatar for JerryShaw

Well I guess it is my turn to ask a question, since most of the time I spend answering questions on DaniWeb. The Problem: DataViewGrid throws a "System.ArgumentException parameter is not valid..." when the dataset contains an SQL 2005 TimeStamp type column. The error occurs in System.Drawing.FromStream... da da da …

Software Development dataset sql
Member Avatar for work.caglar
0
1K
Member Avatar for matt21mcr

Hello everyone, I am writing this post again because there were ambiguities in the previous one. I need help with this task tomorrow. I will present what I have, what I got from you and ask which code is best to use to perform this task. I will start with …

Software Development c++
Member Avatar for Reverend Jim
0
628
Member Avatar for namra

i am new to c++ and m having a problem in making a scientific calculator plsss help me i dun know how to make the power function work here is my program m working in visual studio 2005 ,c++ getiing this error error C2064: term does not evaluate to a …

Software Development c++ visual-studio
Member Avatar for Jawad_9
0
8K
Member Avatar for mister-fett

I am new to C and C++, but I wrote this calculator in C++. It compiles okay on borland 5.5, and can do addition, subtraction, multiplication, and division of two numbers. If you type any characters except numbers, +,-,*,/,or e, there will be lots of beeping noises and error messages! …

Software Development c++
Member Avatar for Jawad_9
0
1K
Member Avatar for M_27

I made this game equivalent to tictactoe but with a slight twist called find the X between two players using socket programming with Java. Don't know where I went wrong in trying to find the X but for some odd reason my count variable never updates allowing the victory message …

Software Development java java-swing socket-programming
Member Avatar for JamesCherrill
0
501
Member Avatar for joy_deep

Hello, I am new to Python. I am learning boxsizer. I want to put two buttons on my panel. One at top right corner and one at bottom right corner. How do I achieve this? Thanks

Software Development python
Member Avatar for Jonny_4
0
1K
Member Avatar for Saran_1

I have scoured Stack over flow and the Pandas documentation for a solution to this issue. I am attempting to recursively move through a directory and concatenate all of the headers and their respective row values. Below is what I have so far after much experimentation with other libraries: import …

Software Development file-system python
Member Avatar for m_26
0
18K
Member Avatar for sofia-net

Hello, help me When you apply the save, an error occurs Dim c As Integer Dim val As String If cmbfeuille.Text = "" Then Exit Sub xlApp.ScreenUpdating = False xlApp.DisplayAlerts = False xlWorkBook = xlApp.Workbooks.Open(chemin) xlWorkSheet = CType(xlWorkBook.Worksheets(cmbfeuille.Text), Excel.Worksheet) For l As Integer = 1 To DataGridView1.RowCount - 1 For …

Software Development vb.net visual-basic
Member Avatar for RobDownUnder
0
408
Member Avatar for Kincso

This is a program to get a student mark, as an input from user and print its grade based on the following criteria: if mark>=80 print 'A' if mark between 70-80 print 'B' if mark between 60-70 print 'C' if mark between 50-60 print 'D' if mark < 50 print …

Software Development python
Member Avatar for Reverend Jim
0
643
Member Avatar for Gacso

Hello everyone! I'm sorry to bother you all, but I really need your help. I'm an economy and management student at uni, but somewhy I have to deal with programming. We got a task that looks like this: There's a 5x5 sized field where there are 8-8 disks for both …

Software Development c# visual-studio
Member Avatar for Reverend Jim
0
364
Member Avatar for henks

first of all, I wanna say hi to u all as I'm new to daniweb. I'm a freshman in a college so I don't know much of c yet. So please be understanding in case that I will ask some n00b question later on :) So this is my problem...first …

Software Development c
Member Avatar for therese_1
0
509
Member Avatar for pixma

Hi! We are a 4 member group for our thesis and we already have submitted 5 topic proposals yet nothing was accepted...and here are the topics: enrollment system, gadgets on track, employment resource system, subdivision technical entry pass Now, I need a help for new ideas that can be developed …

Software Development vb.net visual-studio
Member Avatar for Aldrin_1
0
6K
Member Avatar for zdreggs

Hello, I am trying to understand how to use C-style strings in C++. My goal is to store a C-style strings into a string type array. If I pass "This is a test" into word_token, it displays: This Is A test So from here I believe my setup is almost …

Software Development c++
Member Avatar for rproffitt
0
262
Member Avatar for BirdaoGwra

Hi, I am getting an error while making a vector. frame.h #include <wx/wx.h> class Frame : public wxPanel { public: Frame(wxPanel* parent, int xx, int yy); ~Frame(); private: int x; int y; } frame.cpp #include "frame.h" Frame::Frame(wxPanel* parent, int xx, int yy) :wxPanel(parent) { x = xx; y = yy; …

Software Development c++
0
845
Member Avatar for Satyam_1

Hi, I hv vb.net applivcation. I have following CODE1 to save data & to prevent duplicate data entry into table. The following code I put in button save event. However I want to put this CODE2 in perticluar textbox e.g. here SpecimenNoTextBox. so that when the user enter duplicate SpecimenNo.it …

Software Development dataset open-source vb.net
Member Avatar for kamal_22
0
5K
Member Avatar for RudolfRyan

I have this small monitoring system which monitors customers on daily, weekly, and monthly payments. How do i sum all the numeric values in the "type of payment column"? How do i delete the current record selected by the user? IE, i select a name, then hit delete, deletes all …

Software Development
Member Avatar for puppynp
0
2K
Member Avatar for glez_b

I interpolated temperature data observed on an urban area formed by 12 locations. Now i would like to remove all interpolated values that are outside the shapefile layer. How can i do it? The shapefile links: https://www.dropbox.com/s/0u76k3yegvr09sx/LimiteAMG.shp?dl=0 https://www.dropbox.com/s/yxsmm3v2ey3ngsp/LimiteAMG.cpg?dl=0 https://www.dropbox.com/s/yx05n31dfkggbb6/LimiteAMG.dbf?dl=0 https://www.dropbox.com/s/a6nk0xczgjeen2d/LimiteAMG.prj?dl=0 https://www.dropbox.com/s/royw7s51n2f0a6x/LimiteAMG.qpj?dl=0 https://www.dropbox.com/s/7k44dcl1k5891qc/LimiteAMG.shx?dl=0 The Data is: Lat Lon T 0 20.8208 …

Software Development python
Member Avatar for rproffitt
0
1K
Member Avatar for trippinz

What happens is when the dialog comes up, if I press cancel it opens "c:\\text.txt" How do i make it so that if i press cancel the program reads nothing (it reads "c:\\text.txt" right now) SaveFileDialog [code] private void button38_Click(object sender, EventArgs e) { string l_text; string l_filename = "c:\\text.txt"; …

Software Development
Member Avatar for JamesCherrill
0
3K
Member Avatar for Jeyaa

Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click 'TextBox1.Text = Token() If Button1.Enabled = True Then Label1.Text = Label1.Text + " A1 " If Button1.BackColor = Color.Yellow Then Button1.BackColor = Color.Red Else Button1.BackColor = Color.Yellow End If Else Label2.Text = "" Label2.Text = True End …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
1K
Member Avatar for TickleMeElmo

Hey guys, I'm in desparate need of assistance with my A-Level project. I'm writing a Banking system in Python and I'm being told by the idle log that a function hasn't been defined - even though that function is right above it! My Full Code is: #'http://effbot.org/tkinterbook/tkinter-index.htm' <<< Tkinter Tutorials …

Software Development python tkinter
Member Avatar for woooee
0
1K
Member Avatar for Rohan_12

HI everyone, _SBLOCK *allocateMemBlock(size_t size) [ _SBLOCK *block = (_SBLOCK*)sbrk(0); void *memadr = (void*)sbrk(0); void *allocate_mem = (void*)sbrk(BLOCK_SIZE + size); if(allocate_mem == (void*)-1) [ return NULL; ] else [ block->next = NULL; block->isfree = false; block->size = size; block->memoryAddress = memadr+BLOCK_SIZE; return block; ]

Software Development c++
Member Avatar for ravss
0
2K
Member Avatar for Joshua Louiz

how to select an item in the combobox and then put item quantity in the textbox. and how to price the combobox items. Really need help .. Next week is my system defense.. Thank you

Software Development vb.net
Member Avatar for Reverend Jim
0
1K
Member Avatar for Vrunda_1

Create a Project name Banking which will have the following classes with the given instance variables and the methods Create a class Account with first name , last name, address , phone number, balance (instance variables) Withdrawal and deposit methods Create checking account class extending the account class, Having additional …

Software Development java
Member Avatar for Reverend Jim
0
309
Member Avatar for Violet_82

Hi all, I have an application which saves data (books details like book title, author and location) to a mySql db and performs CRUD operations. I thought I'd use hibernate to take care of the ORM side of things and everything was OK when it came to create a record, …

Software Development github java session storage
0
931
Member Avatar for Blink383

My problem is setting the size of the JButton. I want it to be a little button centered below the "Hello World" JLabel field (as it is now it spans the full width of the JFrame). I am unsure what is causing the setPreferredsize to be ignored. I am an …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
2K
Member Avatar for kouty

I dont understand the appearent discrepency in the treatment of the variabe x, y, and z. Why y isn't treated as x and z? #include <stdio.h> #include <string.h> int main() { char result[100] = "Philippe Dupont 30"; char x[50]; char y[50]; int z; /*We use sscanf to give a value …

Software Development c
Member Avatar for kouty
0
1K
Member Avatar for Saboor880

Now I am making my pos software client - server based software. I am using java derby as the database. On the local host I am running the program successfully. But on the remote server I face an exception. First I tell you, how I am connecting to the remote …

Software Development apache client-server java
Member Avatar for JamesCherrill
0
389

The End.