43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Simon180

Am trying to read strings from a html page to get settings the following javascript strings i like to be able to read. <script type="text/javascript"> PP['channel'] = "testchannel"; PP['channel_id'] = 39388311; PP['channel_category'] = "gaming"; PP['channel_meta_game'] = "wow" PP['channel_is_featured'] = false; </script> would be nice that i can pick the data …

Software Development delphi html-css pascal
Member Avatar for pritaeas
0
1K
Member Avatar for WDrago

All, I don't understand namespaces. Yes, I read the msdn and some online tutorials and although they explain what namespaces are, they don't explain clearly what the benefit of using them is, why I need them, when I need them, and why they're generated automatically. I have 10 classes in …

Software Development
Member Avatar for Ketsuekiame
0
205
Member Avatar for coreycebaker

Hello, I have been writing a program that allows for client/server communication. The game sends questions to the client, and allows the user to answer the question. It repeats 10 times, then gives a final score based on the user's answers. My question is how do I only allow 10 …

Software Development client-server java
Member Avatar for riahc3
0
144
Member Avatar for dusto

Ok, so i have the loop that creates the shape below, but instead of spaces, it has solid # signs. I can't figure out how to just get the design I showed below. Where am I going wrong in my code? NUM_STEPS = 6 def main(): for r in range(NUM_STEPS): …

Software Development python
Member Avatar for TrustyTony
0
268
Member Avatar for VictorK19

I'm sorry but could someone deleter this article for me? I already figured out the bug. I'm sorry :(. It's basically the function to display the message is called twice, one inside another function, and the other by me ... ---------------------------------------------- The assignment requires the implementation of both patterns I …

Software Development c++
Member Avatar for tinstaafl
0
158
Member Avatar for Doogledude123

When I run the game and try to use the Arrow keys to control the movement of the selection box, nothing happens. I'm pretty sure the game is redrawing itself properly because the ticker text is updating. Aswell, I tried doing: selectVal++; in the update function in TankShooter.Java, which made …

Software Development gaming java java-swing
Member Avatar for Doogledude123
0
753
Member Avatar for bluekb

#include <stdio.h> #include <stdlib.h> #include <string.h> #define FILE_NAME 20 #define LIST_SIZE 50 typedef struct { char *name; int score; }RECORD; float calMean(RECORD list[], int count); void sortData(RECORD list[], int count); int main (void) { // Declarations float mean; float median; FILE *fp; char fileName[FILE_NAME]; RECORD list[LIST_SIZE]; char buffer[100]; int count …

Software Development c
Member Avatar for bluekb
0
169
Member Avatar for markchua89

package Assignments1; public class project { public static void main(String[]args) { While (we have money left to spend and (itemNumber <=max number of items)) { Display amount of money left and number of items that can be bought. Read cost of proposed purchase if(we can afford the purchase) { Display …

Software Development java
Member Avatar for markchua89
0
184
Member Avatar for nexy

How could I pass value entered by user, using tkinter’s Entry to another object? I manage to print it, but couldn’t sent it further… Here are parts of the code: def novo_vreme(): vreme1 = Vreme() root1 = Toplevel(root) root1.title("Vreme") naziv = "Vreme" L1 = Label(root1, text="Zadržavanje: ") L1.place(x=10, y=30) E1 …

Software Development python tkinter
Member Avatar for nexy
0
3K
Member Avatar for ralph.d.abernathy.1

Hello everyone. I'm working on a project that acts as a function generator to output a sine wave. The program also outputs an excel file with all of the data points so one can plot the points. For some reason, when I add noise, the graph does not look right. …

Software Development c++
Member Avatar for ralph.d.abernathy.1
0
422
Member Avatar for lilbluemonky

I am having some problems with a program that I have due soon....I could use some serious help. I am going to post the requirements in this post, if you can help please let me know!

Software Development c++
Member Avatar for annefr
0
172
Member Avatar for savedlema

Hi all! I'm trying to perform a mysql database from vb.net. I use this code: Process.Start("C:\Program Files (x86)\MySQL\MySQL Workbench CE 5.2.44\mysqldump.exe", "--user=root --password=mypassword " _ & "--host=127.0.0.1 --databases MySQL databasename -r ""C:\GreatestHR Backup\BackUpDataBase.sql""") When this code runs, a command prompt window opens and goes away immediately that i can't even …

Software Development mysql vb.net
Member Avatar for savedlema
0
704
Member Avatar for SHINICHI

Hi,can anybody help and guide me on doing this java program? (Largest rows and columns)Write a program that randomly fills in 0s and 1s into an n-by-n matrix,prints the matrix,and finds the rows and columns with the most 1s.(HINT:Use two ArrayLists to store the row and column indices with the …

Software Development java
Member Avatar for JamesCherrill
0
758
Member Avatar for nathan.pavlovsky

Hello, I am making a "High Scores" Program from Chapter 4 of Michael Dawson's *Introduction To C++ Through Game Programming Book (3rd Edition)*. In it, a vector consisting of 3 numbers is made and multiple manipulations are made to it through Standard Library Algorithms. There is a situation where the …

Software Development algorithm c++
Member Avatar for JasonHippy
0
584
Member Avatar for RockJake28

Ok so I have 2 String variables holding dates in the format dd/mm/yyyy and I need to find the difference in days between them. Ideas? Eg. String date1 = "dd/mm/yyyy"; String date2 = "dd/mm/yyyy"; int difference = (date1 - date2); EDIT: and unless *absolutely* necessary, I dont want to use …

Software Development java
Member Avatar for bguild
0
230
Member Avatar for Papa_Don

Hi group, Within one form, I need to run a routine twice. Obviously, I can write the code twice in the two places it needs to run. Isn't there a way to write the routine one time and the call it in two places within the form? Would this be …

Software Development vb.net
Member Avatar for tinstaafl
0
286
Member Avatar for Nomorewine

Hello everyone. I'm trying to do simple app that has a listview, listview is populated with info from json file. 20 items downloaded at a time. And when user is scrolling to the bottom next 20 items are loaded. Problem is when my app loads next 20 items the scrollbar …

Software Development android-development java json listview
Member Avatar for Nomorewine
0
141
Member Avatar for Terminator1337

Hi there, I'm encountering an error when I'm trying to make a EntityManager for an Entity class. My problem arises when I'm trying to return the second value of a map (data). Here's my code: EntityManager.hpp: #include <iostream> #include <SFML/Graphics.hpp> #include <map> #include <memory> #include "CEntity.hpp" class CEntityManager { public: …

Software Development c++
Member Avatar for Terminator1337
0
192
Member Avatar for dusto

I'm getting an error for using a variable before it's assigned a value, but, I'm not sure why. Imports System.IO Public Class Form1 Dim colWeather As New Collection Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Add listbox items upon form load. With lstAltitudes.Items .Add("03000") .Add("06000") …

Software Development vb.net
Member Avatar for tinstaafl
0
177
Member Avatar for Griff0527

Hello everyone. I am working on creating a stub that would allow me to swap out various sorting algorithms so that I can "plug in" the algorithms and run the various sorts. The below code is for Insertion Sort (yes, I know it is the slowest possible sort), but once …

Software Development algorithm c++ programming-construct
Member Avatar for Griff0527
0
534
Member Avatar for freelancelote

Hi, just wondering... is there a site offering some sort of c++ programming mentoring? Something like: make this programme... how would you do it? and then people writing code for it. Would that be a feature for DANIWEB?

Software Development c c# c++
Member Avatar for Lynqu2
0
147
Member Avatar for IT_Techno

hi i have write this code for upload pdf to Sql DB : private void uploadPDFFiles() { string filetype; string filename; filename = uploadFilesLinkTextBox.Text.Substring(Convert.ToInt32(uploadFilesLinkTextBox.Text.LastIndexOf("\\")) + 1, uploadFilesLinkTextBox.Text.Length - (Convert.ToInt32(uploadFilesLinkTextBox.Text.LastIndexOf("\\")) + 1)); filetype = uploadFilesLinkTextBox.Text.Substring(Convert.ToInt32(uploadFilesLinkTextBox.Text.LastIndexOf(".")) + 1, uploadFilesLinkTextBox.Text.Length - (Convert.ToInt32(uploadFilesLinkTextBox.Text.LastIndexOf(".")) + 1)); MessageBox.Show(filename + " " + filetype); //Validate user upload …

Software Development c# file-system pdf
Member Avatar for IT_Techno
0
4K
Member Avatar for treasure2387

Hi, There is a concept I haven't seen before. I can understand what is happening. But I don't know what this is. It is not a class. It is not a method. What is it? Maybe I know it, but i've been on my PC all day... public DateTime Date …

Software Development
Member Avatar for ddanbe
0
127
Member Avatar for Khav

Hi I have 3 textbox linked to an Access DB by Binding source.I am having trouble to do query. Lets me help u visualise the form The form has 3 textbox (each linked to one field of a table in Access) Another textbox allows user to enter a string and …

Software Development vb.net
Member Avatar for ansumariyam88
0
1K
Member Avatar for JE821

I'm not sure if I'm freeing the memory correctly. I have the following struct and I'm trying to free the pointer in it. typedef struct RECORD { char* name; int score; }RECORD; In my main function I have an array of this struct, therefore I'm using a loop to free …

Software Development c motherboards-cpu-ram
Member Avatar for JE821
0
294
Member Avatar for nmakes

I have a **digital photo viewer keychain** by some company called **INNOVAGE**. I searched about it online but I can't find its webpage anywhere. The CD which came with it is empty and the device does nothing other than showing **"updating"** while connected to the PC. It doesn't even start …

Software Development assembly c++
Member Avatar for nmakes
0
556
Member Avatar for milkman93

Hey everyone, Im having trouble with the placement of GUI components and need you help getting the things in the right place. The problem is on the left side where the elements are all misplaced including: The JMenuBar - should be up against the left wall JLabel "content for..." - …

Software Development gui java java-swing
Member Avatar for milkman93
0
197
Member Avatar for samir_ibrahim

Hi I have a dataset created programatically and I want to use this dataset to bind it to Microsoft ReportViewer. I tried the Microsoft ReportViewer with DataSet created at design time and it works well. I have searched a lot and this is the best thing I can find but …

Software Development database-design dataset vb.net
Member Avatar for savedlema
0
1K
Member Avatar for Nandomo

I am making a battleship game with 2 boards, each is on a JFrame, but I do not know how to get them to close when a button is pressed in order to show the new one. package battleship; import java.awt.Color; import java.awt.GridLayout; import java.awt.Toolkit; import java.awt.event.WindowEvent; import javax.swing.JButton; import …

Software Development java java-swing linked-list
Member Avatar for Nandomo
0
267
Member Avatar for overwraith

I thought it would be really cool if JOptionPane could be extended to accept an array of strings that represent messages, and have the method return an array of strings that represent user answers to the messages which are entered into the dialog box. This would make getting GUI input …

Software Development gui java java-swing
Member Avatar for overwraith
0
2K
Member Avatar for MasterHacker110

I am kinda bord and dont know what to write. I have lerned the basics of strings, references, pointers, file I/O, classes, enums (simple error functions). Also some basic exceptions. And ofcourse all the other basics of chars, ints... So what are some cool "mini" project that i couldd work …

Software Development c++
Member Avatar for MasterHacker110
0
158
Member Avatar for MasterHacker110

I have this code: #include <stdio.h> int create_logfile(char *name, char *field, char *joindate) { FILE *ofile; ofile = fopen("test.txt", "a+"); if(ofile == NULL) return 1; fprintf(ofile, "%s\t%s\t[%s]\n", name, field, joindate); fclose(ofile); return 0; } int main() { char name[100], field[100], joindate[100]; printf("Name: "); fgets(name, sizeof(name), stdin); printf("Field: "); fgets(field, sizeof(field), …

Software Development c
Member Avatar for MasterHacker110
0
219
Member Avatar for MasterHacker110

I am getting an error when i try to compile this code int StartProgram(string sProgramName){ ShellExecute(NULL, NULL, sProgramName, NULL, NULL, SW_SHOW); }

Software Development c++
Member Avatar for MasterHacker110
0
4K
Member Avatar for MasterHacker110

I am trying to write a basic link list, so that I can understand how to implement it in C++. The tutorial I read was extremely advanced (giving more code than needed to understand and not explaining really how). So i tried to write this simple linked list: #include <iostream> …

Software Development c++ linked-list
Member Avatar for MasterHacker110
0
189
Member Avatar for MasterHacker110

I am trying to do something like this: public Boolean CheckLogin(String accNumber, String pin) { String checkAccNumber; String checkPin; String line; String[] splitedLine; StreamReader sr = new StreamReader(FILE); while (line = sr.ReadLine()) { splitedLine = line.Split(' '); checkAccNumber = splitedLine[0]; checkPin = splitedLine[1]; if ((checkAccNumber == accNumber) && (checkPin == …

Software Development c#
Member Avatar for MasterHacker110
0
342
Member Avatar for pixma

Hi there! What I am used to declaring database connection is that in every form I type the codes for it which is a tiring way. Now, I want to use module instead but I really don't know how. And also, how will I call the connection to every forms …

Software Development vb.net
Member Avatar for savedlema
0
2K
Member Avatar for Sammys.Man

hi guys, i have a piece of code i wrote in VB (login system) and it works great, but i want to have the same code in C# but i can't seem to get it to convert, does anyone know how to do this? many thnaks

Software Development c#
Member Avatar for Sammys.Man
0
148
Member Avatar for Nandomo

Is there any way I can place a video in a JFrame/JPanel? Can someone point me to a tutorial, I can't find anything useful through Google.

Software Development java video
Member Avatar for Ezzaral
0
196
Member Avatar for ScarWars9

Hello, I have been working on a time clock application, and I'm trying to be able to select an employee from the DataGridView and populate their information into text boxes. I have done some research and what I have found works . . . sometimes. So sometimes when I click …

Software Development mysql vb.net
Member Avatar for ScarWars9
0
2K
Member Avatar for ZeroZen

Hey folks I've finally figured out how in WPF to template all my buttons so they all behave they way I want. Basically, I want all my buttons, when clicked, to drop down and to the right a few pixels then pop back up. The problem is, I can't set …

Software Development asp.net gui vb.net
Member Avatar for ZeroZen
0
493
Member Avatar for chdboy

This is my code : import java.awt.Button; import java.awt.Component; import java.awt.Container; import java.awt.Frame; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.*; import javax.swing.AbstractButton; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.SpringLayout; public class SpringSample extends Frame implements ActionListener { private static final long serialVersionUID = 1L; SpringSample() { …

Software Development java java-swing
Member Avatar for chdboy
0
2K
Member Avatar for Suzie999

I'm having a bit of a problem with how to code something. Here is how it is in my head. I want a function which is not part of a class to access members of that class, so I want to make the class global. I have done this with …

Software Development c++
Member Avatar for Suzie999
0
475
Member Avatar for Nandomo

Ok I am making a user interface for Battleship and want a Frame to appear on the side with the title and instructions of the game in a disabled JTextArea. With the code I have now I can get the JFrame to open blank. The JTextArea only appears if I …

Software Development java java-swing user-interface
Member Avatar for bguild
0
162
Member Avatar for Suzie999

Hi Does anyone know if there is an equivilent of std::stoi (string to Int) for use with wstring that I am missing? Seems a bit odd that it would be ommitted from the library, but I cannot find anything. Thank you for reading.

Software Development c++
Member Avatar for Suzie999
0
216
Member Avatar for tony75

Hi I get a littel problem to read,sort,count and remove punctuation marks from text file. data="""I love the python programming How love the python programming? We love the python programming Do you like python for kids? I like Hello World Computer Programming for Kids and Other Beginners.""" ##f = open …

Software Development python
Member Avatar for tony75
0
494
Member Avatar for MasterHacker110

I have this xml file <?xml version="1.0"?> <xml> <accounts> <user name="User123" cellphone="000000000123" email="n/a" balance="123.12" pin="123" accNumber="123"/> <user name="User456" cellphone="000000000456" email="445@email.com" balance="456.45" pin="456" accNumber="456"/> </accounts> </xml This file is part of an ATM's database, containing the user's details. I would like to change a spesific value. Say "User123" is login at …

Software Development c# xml
Member Avatar for tinstaafl
0
2K
Member Avatar for Nebil

Hi all, I was having a huge problem,i mean i spent days trying to fix it but i get the same exception everytime when i run the app. here's the thing i have a record that is loaded from the database using the listview.it works perfect for the insertion part.but …

Software Development listview vb.net
Member Avatar for Begginnerdev
0
357
Member Avatar for MasterHacker110

I am trying to make an ATM program in C++, I was able to make one 1 C# but decided to try and implemment it int C++. I basicly have this .ini file #constant format: ACCOUNT_NUMBER PIN BALANCE 123 123 123.12 456 456 456.45 And this code: #include <iostream> #include …

Software Development c++ file-system
Member Avatar for Moschops
0
440
Member Avatar for nmakes

I'm trying to make a function similar to strcat(char,char) in string.h header file. Somehow this code does not catenate the strings. Please help me make it better. void strappend(char *a, char *b) { int i; int start_pos = strlen(a); for (i=0; b[i]!='\0'; i++) { a[start_pos + i] = b[i]; } …

Software Development c++
Member Avatar for nmakes
0
196
Member Avatar for somjit{}

i was thinking of downloading some database software that would help me learn sql. so far i have only *read* sql , ie havent done any practical sort of thing. i made a post earlier in this forum , where i was told that sql server express will be a …

Software Development sql vb.net
Member Avatar for somjit{}
0
194

The End.