132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for James_43

Hi there, trying to do something I thought was pretty basic, but can't get around this error. I have a ListBox, List (AllImages) full of image paths, and two image elements. Image 1 displays the selected item, Image 2 displays selected item + 1 I have: `int inx = Convert.ToString(ImageList.SelectedIndex);` …

Software Development
Member Avatar for James_43
0
3K
Member Avatar for Mysquldata

Which package is imported by default in java?

Software Development java
Member Avatar for jwenting
0
116
Member Avatar for boomtifier

I have my instructions in the top of my code. But for some reason when I input a decimal and then return my error message like it is supposed to then I input a valid amount it prints everything twice, once for the valid input then once for the valid …

Software Development algorithm python
Member Avatar for boomtifier
0
3K
Member Avatar for lalamax3d

Hi Everyone. History: i am self taught developer (5 years + ). mostly doing simple automations in 3dsmax / foundy nuke, maya etc. i worked at a studio (film / animation) as Technical Artist. My weaker side is (server / client). i have done basic sockets tutorials etc to send …

0
205
Member Avatar for James_43

Hi all, I'm very new to software development. My main area is HTML/PHP/JavaScript, but have done a bit of C# before. I don't believe the idea I have is suited for a web development option, so am looking for ideas / a starting point for a solution to the below …

Software Development video
Member Avatar for James_43
0
181
Member Avatar for Mhargail11
Member Avatar for Reverend Jim
0
59
Member Avatar for Curious Gorge

I'm working on a simple encryption program (for school). It is not currently "homework" just FYI, I'm just practicing the examples in the book. It uses a Caesar's Cipher method (an alphabetical shift). I have not tested this code very much. If something is wrong with it I probably don't …

Software Development display encryption java
Member Avatar for Curious Gorge
0
240
Member Avatar for mbowenitj

I need help. I have a search button and 2 textboxes.Textbox1 should diplay the employee id when the search button is clicked (and it works fine).But I need to automatically see the employee name in textbox2, based on the employee id on textbox1.I'd really appreciate your help. Below is my …

Software Development cybersecurity display vb.net
Member Avatar for mbowenitj
0
232
Member Avatar for cambalinho
Member Avatar for cambalinho
0
451
Member Avatar for EarhawkPH

**I'm using netbeans btw if you notice the long code for the GUI** I'm doing a quiz game. The questions are randomized. My problem is, the randomized questions do not appear on the questionLabel (JLabel Variable). I don't know what to do. Help? /* * To change this license header, …

Software Development gui java java-netbeans java-swing oracle
Member Avatar for EarhawkPH
0
177
Member Avatar for Charite

Hi everyone! So I am really new to C++ and am currently taking this computer science class in school. We use Visual Stuio 2013. Tomorrow I have 3 programs due and I have only finished 1 so far. Everything I read in my textbook and what the teacher says confuses …

Software Development c++
Member Avatar for Moschops
0
264
Member Avatar for debee

Hi there, I wondered if some one would be able to put me through with this, as i am a newbie in Java. I have the following text file named dvdifo: *Donnie Darko/sci-fi/Gyllenhall, Jake Raiders of the Lost Ark/action/Ford, Harrison 2001/sci-fi/?? Caddy Shack/comedy/Murray, Bill Star Wars/Sci-fi/Ford, Harrison Lost in Translation/comedy/Murray, …

Software Development java
Member Avatar for JamesCherrill
0
208
Member Avatar for coder91

Hi, I've recently been assigned a task in a new job where I have to compare XML paths against Acord XML paths to find out what the ancestor path is. I've never done anything like this before and just want to check that I am doing it correctly because i've …

Software Development xml
Member Avatar for dtpp
0
218
Member Avatar for Pavol

Hi, I have text file where I have these lines with numbers: e, 1, 2 e, 1, 3 e, 2, 1 e, 3, 4 etc. I need remove similar lines, in this case line e, 2, 1. Is it possible?

Software Development python
Member Avatar for David W
0
307
Member Avatar for jamesjohnson25

#include <stdio.h> #include <stdlib.h> char* format(char* buffer,size_t size, const char* name,int quantity,int weight){ snprintf(buffer,size,"Item: %s Quantity: %d Weight: %d",name,quantity,weight); return buffer; } int main() { char *buffer = (char*)malloc(90); printf("%s\n",format(buffer,sizeof(buffer),"Axle",25,45)); return 0; } When i run the above program, i expect the output Item: Axle Quantity: 25 Weight: 45 But …

Software Development c
Member Avatar for Moschops
0
139
Member Avatar for Olanrewaju_1

Hi everyone! i am currently working on a project that involves a mssql 2012 database. i have some table columns that i want to calculate and get the amount saved in the total column. And at the same time, i want to be able to display the table with datagridview …

Software Development mssql vb.net visual-basic
Member Avatar for Santanu.Das
0
354
Member Avatar for Tanner_1

I need to fix a minor error in my assignment. The prompt is: Assignment #2 will be the construction of a program that reads in an unspecified number of integers from standard input, performs some calculations on the input numbers, and outputs the results of those calculations to standard output. …

Software Development java
Member Avatar for JamesCherrill
0
197
Member Avatar for Tierra

When I run this I get an error, it's like it's not reading the printf and honestly I have no idea what else to do, can someone help me? import java.util.Scanner; public class MyCarPool2 { public static void main (String [] args){ //Declarations final int WEEK = 5, MONTH = …

Software Development java
Member Avatar for rubberman
0
437
Member Avatar for anumash

I am defining a class outside a function and inside a function and returning the address of the object using new to main. I have no problems when the class definition is outside any objects but when I initialize the class definition within a function I am getting errors, this …

Software Development c++
Member Avatar for David W
0
210
Member Avatar for Osagie_1

I have an xml structure : <Pages> <!--This is the root node--> <Home> <url>...</url> <menu> <item>Help</item> <item>About</item> <item>Contact</item> </menu> </Home> <Help> <url>...</url> <menu> <!--i need to select this if its parent(Help) is listed in Home/menu/item above--> <item>Business Help</item> <item>Web Help</item> <item>Tour Help</item> </menu> </Help> <About> <url>...</url> <menu> <!--And Or select …

Software Development xml
0
132
Member Avatar for zachattack05

I am trying to programatically create and dispose of file system watchers, but I am running into an issue when trying to dispose of them. When I try to use the code: // dispose of any existing watchers. foreach (FileSystemWatcher fileWatcher in this.Controls) { fileWatcher.Dispose(); } I am receiving a …

Software Development
Member Avatar for zachattack05
0
420
Member Avatar for Suzie999

Hi all. I have a need to use native/C++ code in C# application. I basically want the lower level functionality of C++ with a good looking C# GUI. Calling native functions from C# via Dllimport is not what I want to do. The native code will need to be running …

Software Development c# gui ide vb.net visual-studio
Member Avatar for Suzie999
0
832
Member Avatar for divinity02

hi james/anyone/stultuske I am again trying and practicing my java. I am doing this payroll program which include doing methods and array and have no idea where I have gone wrong again i have debug it but inno me, cant find the error and it is there somewhere anyway here …

Software Development java
Member Avatar for divinity02
0
193
Member Avatar for SoftBa

Hi, I have started this project and come to the point where I can't figure out how to finish it. First Want to say that I'm noob for VB6 and programming in general, but I saw some examples and make it work this part of job I need. I will …

Software Development visual-basic
Member Avatar for dageci
0
1K
Member Avatar for GeorgiosMeNTUA

I have an image (frame.bmp, uncompressed, resolution 640*480, 3bit depth, 900KB size) stored at C:\Frame.bmp. I want to load it and put it in my program as an array a[N][M], N=479, M=639. After that to modify its elements (e.g thresholding) and create a new array B[479][639]. Finally, to store it …

Software Development c++ display image
Member Avatar for triumphost
0
7K
Member Avatar for altjen

Im trying to create something like a simple OS. but Im trying to make the drag and drop system, I dont know even how to start with this, any help?

Software Development operating-system vb.net
Member Avatar for rproffitt
0
249
Member Avatar for Imam_3

Hi All Masters, According to advice from master shark 1 and read [Tutorial about BackgroundWorker](https://www.daniweb.com/software-development/vbnet/tutorials/477520/how-to-use-backgroundworker-to-create-threads) created by Rev.Jim I'm trying to use BackGroundWorker for querying database an set new labels...here's my code: Private Sub FormMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load BgWorker.RunWorkerAsync() End Sub Private Sub BgWorker_DoWork(ByVal …

Software Development dataset vb.net visual-studio
Member Avatar for Reverend Jim
0
1K
Member Avatar for anumash

I want to declare an ordinary pointer (not a member pointer) to a member function. I have tried but apparently I am getting errors. Is this allowed in C++? Why is it not? #include<iostream> class A{ private: int m; public: void show(void){ std::cout<<"M= "<<m<<std::endl; } }; int main() { A …

Software Development c++
Member Avatar for anumash
0
257
Member Avatar for jigglymig

I downloaded visual studio 2013 and added xna to it so that I can run a game I made in vs2010. However I am having an issue in which it is not allowing me to start debugging or start without debugging. The xna I downloaded is from here https://mxa.codeplex.com/releases/view/117230 if …

Software Development visual-studio
Member Avatar for jigglymig
0
220
Member Avatar for djrico8

Hello there, iam new to this forum but iam also new with retrieving data from a mysql database to an label in vb.net. Iam using vb 2010 and my mysql is hosted on a server. Here is my code: Imports MySql.Data.MySqlClient Imports System.Data.Sql Imports System.Data.SqlClient Public Class Gamefrm Dim con …

Software Development mysql vb.net
Member Avatar for djrico8
0
305
Member Avatar for Toheed Rana

how to prepare a result card in dev cpp??? i want help. any one programmer plz?

Software Development c++
Member Avatar for rubberman
0
115
Member Avatar for can-mohan

Hi All, in below code snippet, I have been facing memory leak issue while free memory for string.Could you let me know thereason for the same.I believe if we are allocating memory then it needs to be freedbut what i observed if i don't free the memory it works fine …

Software Development c
Member Avatar for can-mohan
0
1K
Member Avatar for hari_10

Hi All, when i click the save functionality my request is processing and values are stored in database.but the request is coming from chrome browser its not processing and redirected to my error.jsp page.could you please help for this issue.

Software Development java
Member Avatar for stultuske
0
114
Member Avatar for Ghost0s

hi, the question is simple how they made the 1st compiler Ever !

Software Development
Member Avatar for Ghost0s
0
176
Member Avatar for gtel

Noob Question. I need some clarifications with using class as a reference datatype or if you have any links that direct to a straightforward explanation,i'd highly appreciate that. (I had been surfing the net for hours, read some books but the explanation is either vague or just an introduction.)

Software Development java seo
Member Avatar for JamesCherrill
0
153
Member Avatar for naz1234

Hi, from the result in my "for" loop, have stored four value. How to extract that value to show the value(sprintf) ? Kindly refer to the attached the image file. Thanks Regrads, nazif

Software Development c programming-construct
Member Avatar for naz1234
0
231
Member Avatar for Mayukh_1

Can you please explain the reason of the garbage output instead of the each words in the string.. #include <stdio.h> #include <string.h> #include <stdlib.h> int count = 0; //char** memptr = NULL; char** push(char* word, char** memptr){ if(count > 1) memptr = (char**)realloc(memptr, (count * sizeof(char*)) ); memptr[count - 1] …

Software Development c
Member Avatar for JohnMcPherson
0
118
Member Avatar for Imam_3

Hi All Masters This is my Second question and problem ...i have some code here Sub SetLabels() Call MySqlConnect() Dim str As String str = " Select * from room " da = New MySqlDataAdapter(str, conn) ds = New DataSet da.Fill(ds, "room") For i = 0 To ds.Tables("room").Rows.Count - 1 …

Software Development dataset vb.net visual-studio
Member Avatar for Imam_3
0
1K
Member Avatar for mholten

> The holy grail of software delivery is to commit to your source repository and watch the new version of your code automatically deployed and running to your beta or QA stack. If you're deploying to a PaaS, such as Heroku, you can already do this today. However, for the …

Software Development
Member Avatar for rubberman
0
117
Member Avatar for naz1234

Hi, I got error in send_string(lala): how to fix it ? thnaks ... #include <p24Hxxxx.h> #include <libpic30.h> #include <stdio.h> int FBS __attribute__((space(prog), address(0xF80000))) = 0xCF ; //_FBS( // BWRP_WRPROTECT_OFF & // Boot Segment Write Protect (Boot Segment may be written) // BSS_NO_FLASH & // Boot Segment Program Flash Code Protection …

Software Development c data-protection
Member Avatar for rubberman
0
197
Member Avatar for deshazer.jad

I'm working on a website that uses System.Runtime.MemoryCache to cache information from a SOAP service that's running on another server. I'll start out by saying that I don't know a lot about the application or how the cache works, the issue however is that I just finished migrating the application …

Software Development web-server
0
192
Member Avatar for sajidk25

Please take a look at the following codes and explain what’s happening here: a = 256 b = 256 a is b #True its ok c = 257 d = 257 c is d #False why e = 258; f=258; e is f //True // why?

Software Development python
Member Avatar for vegaseat
0
361
Member Avatar for saurabh.mehta.33234

While referring to a particular course I came across the following code to retrieve the current day: int julianStartDay = Time.getJulianDay(System.currentTimeMillis(), dayTime.gmtoff); long dateTime; dateTime = dayTime.setJulianDay(julianStartDay); day = getReadableDateString(dateTime); private String getReadableDateString(long time){ SimpleDateFormat shortenedDateFormat = new SimpleDateFormat("E MMM d"); return shortenedDateFormat.format(time); } My doubt is why are we …

Software Development java
Member Avatar for Taywin
0
384
Member Avatar for ddanbe

I'm referring to my snippet [Inheriting the stack class](https://www.daniweb.com/software-development/csharp/code/498828/inheriting-the-stack-class) After looong loong searches and many tries and tests, I finally came up with a version that works as I wanted to. Stacker can now handle any type of object, even with arethmetic methods in place. The virtual way as proposed …

Software Development
Member Avatar for JOSheaIV
0
279
Member Avatar for srider1969

Thank you in advance. I believe the items below should give a whole view. .Net 4.5.1 / x86 When using a SqlAdapter with new SqlParameter() { SqlDbType = SqlDbType.DateTime, ParameterName = "@FromDate", Value = "09/01/2008" }, I get the error "Conversion failed when converting date and/or time from character string" …

Software Development dataset
Member Avatar for srider1969
0
336
Member Avatar for Ajay Negi

what are the things a new developer should keep in mind while writing a program? please reply.

Software Development java
Member Avatar for stultuske
0
235
Member Avatar for krofox

I have been trying since long to extract data using xpath in google sheets but everytime 'am getting message 'imported content is empty'. i need help . The url is http://reports.ieso.ca/public/IntertieScheduleFlow/PUB_IntertieScheduleFlow.xml

Software Development google seo xml
Member Avatar for xml_looser
0
380
Member Avatar for Rashee

How do i write a simple login page using Java programming language with the following components -JLabel -JTextField -JButton

Software Development java
Member Avatar for stultuske
0
284
Member Avatar for Johnny Joe

after adding this it will update in datagrid.how can i view the selected row in datagrid in my textbox and will allow me to edit and update it.thank you! Private Sub btnSave_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click if not conn.state=connectionstate.open then conn.Open() End If Dim sql …

Software Development vb.net
0
110
Member Avatar for Saran_1

Here is the CSV file that I am working with: `"A","B","C","D","E","F","G","H","I","J" "88",18,1,"<Req TID=""34"" ReqType=""MS""><IISO /><CID>2</CID><MemID>0000</MemID><MemPass /><RequestData><S>[REMOVED]</S><Na /><La /><Card>[REMOVED]</Card><Address /><HPhone /><Mail /></ReqData></Req>","<Response T=""3"" RequestType=""MS""><MS><Memb><PrivateMembers /><Ob>0-12-af</Ob><Locator /></Memb><S>[REMOVED]</S><CNum>[REMOVED]</CNum><FName /><LaName /><Address /><HPhone /><Email /><IISO /><MemID /><MemPass /><T /><CID /><T /></MS></Response>",0-JAN-10 12.00.02 AM,27-JUN-15 12.00.00 AM,"26",667,0 "22",22,1,"<Req TID=""45"" ReqType=""MS""><IISO /><CID>4</CID><MemID>0000</MemID><MemPass /><RequestData><S>[REMOVED]</S><Na /><La /><Card>[REMOVED]</Card><Address /><HPhone /><Mail /></ReqData></Req>","<Response …

Software Development python xml
0
202

The End.