43,549 Solved Topics
Remove Filter ![]() | |
Hello I have a Java Agent which I need to maintain (dev was done by someone else), with the following code samples extracted: String type = (String) types.nextElement(); DemByDate dd = (DemByDate) client.typeDemande.get(type); Vector v = (Vector) dd.demandes; Calendar calendar = Calendar.getInstance(); calendar.set(dd.d2.getYear(), dd.d2.getMonth(), dd.d2.getDate()); int maxDay = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); dd.d2 … Software Development java | |
How do I pass a single row of a 2 dimensionsl aarray to a function? #include <iostream> #include <iomanip> #include <fstream> #include <cstdlib> using namespace std; // ------ Prototypes ------------------------------------------------------ double calcNums(double[]); // ****** MAIN ************************************************************ int main() { double nums[2][5] = {1,2,3,4,5,6,7,8,9,10}; calcNums(nums[1][5]); return 0; } double calcNums(double nums[1][5]) … Software Development c++ | |
How to create a class in visual studio 2012? Software Development c++ visual-studio | |
Good afternoon! I seem to disappear from this forum for a while then re-appear...I've been so busy with my first born baby girl that I haven't had time to check my email much less work on any of my projects, but something has come up and I need some input. … | |
So, I wrote some code for appending to an array, and I thought to myself, would be cool to make the method more generic using an interface. I keep getting this error though that basically says that the compiler's best overloaded method that can match this is _____, and it … Software Development | |
I'm trying to iterate through the controls on a form and set the tabIndex to 0 for all labels. I copped the following code from google but it doesn't work for me and I'm pretty certain it's because all of my controls are on a panel and not on the … Software Development vb.net | |
i'm building a data base.. heres what i did: 1 - create the forms and put the controls; 2 - create the Service-base DataBase(add New Item); 3 - a toolbox, on left, is showed and then i create a new table; 4 - using the mouse right button, i select(on … Software Development open-source vb.net visual-basic | |
how to edit a record in database by using vb6, i don't any clue :( Software Development visual-basic | |
I have a MSHFlexGird (fgdCompany) and a search command. When the user enters the search data into "txtSearch", the command should search for the data and show it to the user by : Highlighting the record in the MSHFlexGrid -OR- By bringing the row that contains the searched data to … Software Development visual-basic | |
Please can anybody explain me the following things below:: 1.What is a hashmap 2.Its use 3.What do we do to avoid collisions.... Software Development c | |
Below is my code for printing prime numbers up to a given input by user. However, my calculations are not working correctly and my output is printing twice. Any idea? :sad: #include <iostream> #include <cmath> using namespace std; void prime_num(int); int main() { cout << " Enter a number and … | |
Hello everyone. Here is the code first Private Sub Grid1_Click() Dim i As Integer, j As Integer Grid2.Cols = Grid1.Cols Grid2.Rows = i + 1 C = Grid1.Row For j = 0 To Grid1.Cols - 1 Grid2.TextMatrix(i, j) = Grid1.TextMatrix(C, j) Next j i = i + 1 End Sub … Software Development visual-basic | |
So im posting this here and not under game development because this is more of a problem solving question, not directly game related. Im making a simple RPG using xna. Im currently working on collision detection, however running into difficulty. I can successfully check for a collision between the player … | |
I have been trying to create a script that will fetch an image file, store it in a 2d grayscale non-alpha byte array based on the x and y axis so I can perform math operations then save that array back to a new image file. I have come close … | |
Hello, I need help in solving 3 errors in my C++ code The first error is** line 95 'output_minus_10' was not declared in the scope** The Second error is **line 96 'output_plus_10' was not declared in the scope** The warning is **line 104 unused variable 'R_junction'** #include <cstdio> #include <cmath> … Software Development c++ | |
Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim ofd As New OpenFileDialog Dim strFile As String With ofd .Title = "Select a List" .Filter = "Text Files|*.txt|All Files|*.*" .ShowDialog() strFile = .FileName End With If System.IO.File.Exists(strFile) = False Then Exit Sub Dim Reader As … Software Development vb.net | |
Recieving the error "Dynamic SQL generation is not supported against multiple base tables." When pressing the save button Code for Save button: private void btnSave_Click(object sender, EventArgs e) { DataGridQuestions.EndEdit(); adapter.Update(ds, "Questions"); MessageBox.Show("Updated"); DataBind(); } Code for filling data adapter private void DataBind() { string connectionString = ("Data Source=" + … Software Development dataset open-source sql | |
Good day, I must be blind .. I am developing my first "Visual Studio" desktop application. My apps are normally always Internet Apps. I have about 20 text boxes, but I want to give the user the ability of pressing Enter, and "defaulting" to the Enter button on the screen. … Software Development c++ microsoft visual-studio | |
Hi guys, I tought I'd experiment a bit with layout managers, trying to get to grips with them. I will start with a flowLayout, then hopefully move on to more complex ones. OK, so here is the code for the first example, very simple one: /*FlowLayoutManager.java layout manager tests*/ import … Software Development java java-swing window-manager | |
Hi All, I started developing an application in WPF but I think the generic syntax for Relay Command and Delegate Command cannot be found very easily over the web and hence alogwith asking this question, I intend to start a thread for both Relay Command and Delegate Command. So, I … Software Development asp.net | |
what is the code for the program in vb.net that automatically adjust resolution based on the computer you are using? i use WindowState.Maximize but only the background image adjust. my other stuf such as buttons, labels picturebox are not..can you help me guys? thanks Software Development vb.net | |
Hello Community, Why I the port I'm trying to read looking really weired. I'm using an Arduino to produce the port data (It just has two button inputting "BUTTONONE" and "BUTTONTWO" when pressed). This is the result I'm getting: BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONONE BUTTONONE … | |
![]() | I have a Delphiproject that suddenly got its appearance changed. It used to have rounded buttonedges but now got suddenly sharp corners. Also the MonthCalendar changed its appearance with blue ribbon at top and the current day circeled with a broken red circel line as it had many years ago. … ![]() |
I've been working on a Textbox that only accepts 0-9, Decimal Point, and the Backspace Keys. Also keeps it in the base form 0.00. Max value is 999999.99 can be set as needed. It works as expected, but I have to ask if I have remade the wheel. This sub … Software Development vb.net | |
So here's the thing and it's been quite simple up to here. I have never been required to do something like this and most tutorials are vague at best. I have a Stackpanel with numerous children. Each child then has a label and an image. These were all dynamically created … Software Development | |
Hi there guys I just want to know how I can create a reset button that will erase all the contents written by a user in textboxes? I am creating an Enrollment Form for Students and I need some help about it. I have attached a screenshot for you guys … Software Development | |
Hello everyone! I got this question in a book.. I thought of doing it using map() or using loops return the first count multiples of number in desc order in a list. e.g call with input (3,2) returns [6,3] call with input(5,3) returns [15,10, 5] but the hint along with … Software Development python | |
Hi Is there a way a vb form structure the same as its backgroud picture? Its same with making the form invisible and let its background picture remain Im trying to make a program that when it runs, it displays like widget. thanks Software Development vb.net visual-basic web-design | |
Hello.. good day evryone, i encounter a problem with my save as form..i use savefiledialog..the result is that the page is saved..but when i open the word doc, it is empty..there is no data whatsoever.. i dont use database..it is suppose to save the the data that i filled in … Software Development vb.net | |
So, Im making a game in c# using Xna. I have a function that will read a text file and display a map on screen, using numbers in the file as texture references. The file is a integer multidimensional array. I have another file which is used to set collision … Software Development | |
Hi Dw I'm working on a program which has many forms and these forms are for setting the functionality of this program so now I want to detect if, let say Shift+F is pressed then the appropriate form will show. I don't want to use the Form_KeyPress or KeyDown or … Software Development vb.net | |
So i'm making an rpg game with c# and xna. How can I create a simple camera that follows the player as they move? I only wish for the camera to move as the player reaches the middle of the screen. I dont require it to rotate, zoom in/out like … | |
Hi. I am learning Java and now stuck in the exceptions chapter. I wrote a code to understand exception. But i am not getting why there is an error saying "Unreachable catch block".Please help me out here. Code is as shown. public class GetException { static int i; public static … Software Development java | |
Greets to all! I have 2 user defined controls. 1 is the main, the other is the control that contains all the radio buttons. One of the criteria is to have a clear button in the main control to select the 0 radio button that clears all the text fields … | |
I've been toying with some code for the last thirty mins to try move a substring from one cell to another. In debug I can see the correct contents being picked up and moved to the new cell and even got a save prompt popup when running over line 31. … | |
Hi, I am wondering if there is any easy way to up the frame rate of a pygame program. For example locking the frame rate? I don't know. Thanks in advance! 26BM Software Development python | |
I am beginner to Java , I would like to know is there any Difference between JDK 32 bits and 64 bits? For example in terms of performance or something ? Software Development java | |
Hi, the following is the code for my a2 computing project. Essentially what I have tried to do is set up two basic structures of GUIS and then inherit them into other classes so I can add components to the basic structure. However, when I create a MainMenu object, only … | |
vb.net project shifted from one pc to another pc.project includes some private dlls.I include those dlls and some activex controls are linked with these dlls.At the time of loading form it is throwing some exception.when I create controls.It is running well,But after creating exe file.It is showing error file not … Software Development vb.net | |
Hi to all I have two forms, one is form1 for registration and the other one is form2 for my main menu. How to call the form2 if the user successfully register with the form1. The code in form 1 is me.close (to close the form1) then form2.show but it … Software Development vb.net | |
Hi, I built a Polygon() class that originally only was initialized with veriticies: Polygon(verts=(1,2,3,4) But as the code evolved, I added a few @classmethods to construct the Polygon from other inputs. For example: Polygon.from_center(center=(1,2), length=5) Now my problem is that I'm trying to find the canonical way to choose which … Software Development python | |
I would like to convert Control objects wich are in my array to progress bar Objects if possible. I know that the reverse conversion can be done explicitly without a problem but this one seems tricky. If impossible then please suggest something else instead. TNX Software Development programming-construct | |
I have same type of errors in my program please help me out.... I am just a Beginner in C++.... #include "iostream" #include <stdio.h> #include <conio.h> #include <stdlib.h> using namespace std; class form { private: char fname[20]; char lname[20]; char add[50]; char city[25]; int contact; public: form() { fname[20]='\0'; lname[20]='\0'; … Software Development c++ | |
I've rewritten this question a half dozen times and each time it makes less sense. In a nutshell, I want to populate a listview with large icons representing image files but I can't get them to come out unstretched. They are always stretched along the x or y axis because … | |
Hello. i use this code to print my vb page form : PrintForm1.Print() But only half of the page from the form is printed. i tried using this , code : PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.CompatibleModeClientAreaOnly) Nothing is prinetd on the printed page. I got only a black page. What can i do … Software Development visual-basic | |
firstly I admit I am asking this because of my homework secondly, my c++ is still at a beginner level. so I need some help. ok..going back to my question. I am trying to remove a line containing username and password from text file. so I tried to following, 1)Read … | |
I know python is an interpreted language but is there a way to compile your code? What if you write a program in python 3 and the user has python 2.x, or worse yet, doesn't have python at all. How can you create an executable via compiling or any other … Software Development python | |
hy i m trying to do a smal vb.net project using sql server 2008 in vs2012,and i dont know how to use those database in my project for eg : using select/insert/update/delete queriesfor my controls(textbox,combobox datagrids etc..) please help me with detail how to connect database and use it in … Software Development microsoft-access vb.net visual-studio |
The End.