132,726 Archived Topics
Remove Filter ![]() | |
If I have two objects (Intern and Manager) derived from an Employee class, could I create a function that would return a pointer to a new instance of one of the two derived objects by passing the type to the function. So, could I do something like this (I know … Software Development c++ | |
Are there any limits to how many bitmap resources you can have embedded in your executable? If it matters, using visual studio 2010, windows platform. Software Development c++ visual-studio | |
I wanted to make an array of bits which I could click on and off at will. Sort of a register you could manipulate. First thing that came up was a checkbox control. But I wanted to change the usual checkmark with a 1 or a 0. With tips from … Software Development | |
hi I am using An mdi form which contain many child form and mdi form contain ToolStrip1 in that redo & cut button are not working plz help me out of this Private Sub toolredo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles toolredo.Click Dim activeChild As Form = Me.ActiveMdiChild … Software Development vb.net | |
int x; cin >> x; //If user writes 05 in x. Then I want that 05 should be printed when we cout << x; //If user writes 005 when prompted for x then printing x should print 005, because 005 may be a telephone extension. Is there any way? Software Development c++ | |
I'm building pdf software with multiple dependencies (podofo) and when compiling I'm getting the errors. error: conflicting declaration 'typdef short int unit 8' error: conflicting declaration 'typdef short int unit 16' Would anyone know if there a CXX Define command I can use to bypass these errors? My CXX flags … | |
I recently made an appication that utilizes pyqt , i could say i wrote the code pythonic and made everything work work as I wanted, but didnt used any data model , so later I realized I could have used data model since I am building list in the QListView … | |
Good Day, I have a text file in the .csv format. The file originates as a xlsx (excel) file type. The file looks something like the following. Name Number Lat Long Jan Feb Mar Apr Brockton 24-1670-06 38.145236 145.854921 0.15 0.62 1.25 2.14 Westby 24-7432-04 35.846125 132.743652 0.25 0.94 1.14 … Software Development mathematics python | |
Need help understanding this practice problem in my reading. Can someone please explain to me what it is doing at every step. Consider the following assembly code: x at %ebp+8, n at %ebp+12 1 movl 8(%ebp), %esi //I assume this is x being stored in register 2 movl 12(%ebp), %ebx … Software Development assembly | |
Is it possible to use tilde (~) in C preprocess directive in the following way? #define a 1 #if ~a==0 ... #endif Generally, I want to know how we can ~ in preprocessor directives? Software Development c | |
Hi Guys.. Hoping you can help here.. I'm dabbling with Linq as I'm wanting to pass a Node Value from the XML file into the Connection String. Currently my Code seems to be working and holding the Value in the System.(Code Below:)(Screenshot attached also) XDocument testXML = XDocument.Load("C:\\twDB.xml"); var DataBases … | |
Sorry for the long code. Here it loops through a text file with up to 5 lines and reads a random line. If the line it reads is null then it generates a random response. However when compiled with a test file of 2 lines it only has an output … Software Development file-system java | |
hi everybody, im doing a project in vb 2010 its a simple "guess the number between 1 and 30" i have it all finished working properly , my only remaining issue is, if i enter a character or letter into the combobox, it crashes the system. i got a piece … Software Development programming-construct vb.net | |
Best regards, how I can delete a record in the DataGridView and update this table len but removing it would be activating a checkbox and pressing a button. your attention is appreciated Software Development vb.net | |
Hi I have a problem with my SQL UPDATE It says here: Syntax error in UPDATE statement. Here's my code: Private Sub btnEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEdit.Click Private Sub btnEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEdit.Click Dim sqlupdate As String sqlupdate = … | |
This prompt scanner works outside of this program but when i integrate it, it doesn't work: All code work. just no together. Help would be much appreciated. Scanner in = null; Scanner key= new Scanner(System.in); System.out.print("Input file name: "); try { String filename = key.nextLine(); in = new Scanner(new File(filename)); … Software Development java | |
Hi all, I have this if condition which never seems to be true, but should be! It's the part in the code where I pull the String^ from textboxes (the regUsername textbox) and compare the inputted username with the first word from every text file line. So every text file … | |
-->>Hi, here is athing I managed to write Codes that Creates a Folder for a User when Registered... -->>The Folder takes User's registered name with some additional files inside it,works very fine... -->>The code I used is this one: MkDir GetAppPath() & "SPGPAC - File User Files\" & UCase(txtUserName.Text) MkDir … Software Development visual-basic | |
Uhh, hello. I just want to get a sample line of codes that displays the given string, insert a new element and deletes an old element. So far, this what I have done: import java.io.*; public class EmpLists { String employees[] = {"A", "B", "C", "D", "E" }; } class … Software Development java | |
Hello, I am stuck with this problem.... I have few folders that contains a filename as **registration.txt** --- note the folder names are different since as and when a new user will register a folder gets created with its name and then the text file with the details of the … Software Development vb.net | |
Hello. I would like to ask for a help. I deal with excel spread sheets and very often I need to amend specific column. The whole steps look like this: Step 1. Find the column name, Step 2. Mark the all populated rows in this column, Step 3. Proceed with … Software Development microsoft-office visual-basic | |
Hi, I want to know how to send keys like ALT, Shift, Ctrl, Entre, etc. with the My.Computer.SendKeys() function. Also, I need a code with which i can send 2 keys together like Ctrl+C If its not possible with SendKeys(), please suggest some other function to acheive this. [I use … Software Development vb.net visual-basic | |
Hi, I am facing some problems in the deployment of my VB ActiveX DLL on a server. I have a job which runs a stored procedure. The job and the SP are on the same server as the DLL. Using this stored procedure I access the classes (and the methods … Software Development visual-basic | |
Hi Sir, Kimangel is here again! Gud Day! How would I code that a cursor will automatically return to its place where it was encountered error? unless resolved. Below is my code; Private Sub txtContact_No1_LostFocus() On Error Resume Next If txtContact_No1.Text = "" Then MsgBox "Fill up the field to … Software Development visual-basic | |
Hello I'm new these forums but I really need help with this. I am trying to make an application with a small screen on 1 form and then on form2 a windows media player control taking up the whole form. What i'd like to be able to do is when … Software Development | |
import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Calculator extends JFrame{ // Declare GUI components private JTextField jtfFirst; private JTextField jtfSecond; private JTextField jtfResult; private JLabel jlblFirst; private JLabel jlblSecond; private JLabel jlblResult; private JPanel entryPanel; private JPanel buttonPanel; private JButton jbtAdd; … Software Development gui java java-swing | |
Hi how can i pass if my connection is false? i have a code here Dim con As New OleDbConnection Dim dt As New DataTable Dim ds As New DataSet con.ConnectionString = ("provider=Microsoft.Jet.OLEDB.4.0; Data Source='" & ConMonthEndLocation & "';Extended Properties=Excel 8.0;") con.Open() dt.Clear() ds.Tables.Add(dt) With Form_Month_End_Report .ListView_LOB.Columns.Clear() .ListView_LOB.Items.Clear() Dim da … Software Development dataset listview open-source vb.net | |
Hi all I have a large folder containing multiple xlsx (only one sheet) files which I need to convert to a csv format. I can convert them individually using the [xlsx2csv](https://github.com/dilshod/xlsx2csv) but I cannot make a working function that loops over all the files in the folder and saves them … | |
I have to be missing something obvious here right? I ran test on all the variables and everything looked like it was correct when i > val the loop kept running. Any suggestions? Thanks x = raw_input(":") def whileloop(val): i = 0 numbers = [] while i < val: print … Software Development python | |
Someone please give me some idea to solve this question ? Should I use Interface or I can use only Heritage ? Write classes implementing the management industrial tools: * Each one tools can be started, stopped or be stopped urgently. * There are three families of tools : 1. … Software Development | |
Hi, I'm trying to output a list of dvd titles along with some of their details. The problem is that it seems I can't get them aligned all pretty well. So I upload the screen shot as well as the code generating it. Please help me out here. This is … Software Development c++ | |
Hi people. I'm trying to run whoami using execv but I'm getting a problem: --- CHILD PROCESS --- child PID: 3146 parent PID: 3145 execv: Permission denied child exit code: 1 I already have certified myself that I have run permission for whoami for all users. I don't know what … Software Development c | |
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim strsql As String = "Data Source=.ITSupport;" & _ "Initial Catalog=Information;Integrated Security=true" strsql = " insert into table_1 (name, address, age ) values ('" _ & txtname.Text & "','" _ & txtaddress.Text & "','" _ … | |
Hello, When I run the project using my localhost, everything works fie. But when I use an other server I get this error: No suitable driver found for jbdc:mysql:// public void populateList2() { Connection con = null; Properties conProps = new Properties(); conProps.setProperty("user", "abn859"); conProps.setProperty("password", "100011399"); try { con = … | |
Collapse | Copy Code int s1 = Convert.ToInt16(dataGridView1.CurrentRow.Cells[3].Value); int s2 = Convert.ToInt16(dataGridView1.CurrentRow.Cells[6].Value); int s3 = s1 * s2; dataGridView1.CurrentRow.Cells[38].Value = s3; this is working fine when i change the value lively in dataGridView1.CurrentRow.Cells[3] it multiply with the changed value with dataGridView1.CurrentRow.Cells[6] and display the value in dataGridView1.CurrentRow.Cells[38] like cell[3] cell[6] … Software Development sql | |
Hey, I'm working on a simple command line program to download some files. I already made a Win Forms version, but wanted to do a command line version. The Win Forms app works exactly as it should, but I'm having some trouble with the command line app. Heres my code: … Software Development c# client-server file-system | |
connecting access 2003 database from remote computer .I have a vb2005 application which uses access2003 database. I want to connect to this database via remote computer connected via internet. Software Development microsoft-access vb.net visual-basic | |
Hi, In the following program i have not defined <stdlib.h> header and included rand() function and it works without this header. How? #include <stdio.h> #include <stdbool.h> #include <time.h> #define NUM_SUITS 4 #define NUM_RANKS 13 int main(void) { bool in_hand[NUM_SUITS][NUM_RANKS] = {false}; int num_cards, rank, suit; const char rank_code[] = {'2', … Software Development c | |
Hy all, I'm facing a problem with some data that I need to check and update it's status in my database.I've got a data grid with some info from a table in the database..now for evry entry I send that data to a server server then I get the server … Software Development open-source sql | |
this gives syntax error, why would it give ? `[index, each for index,each in enumerate(names)]` Software Development python | |
I want to create binary tree. With this program I wrote I have some problems. It seems the element I added to the tree is always added to the root place! Adding never happens to the left or the right subtree. This thing is prooved by result I always get … Software Development c data-structure | |
![]() | well, this question maybe so silly, but i need to know.. i have to make an application with client-server system with java (client application for on android and server application for on PC) and i asked to make the class diagram for both in one class diagram (not seperately). so … Software Development android client-server java |
Please I have been trying this code below to insert and delete record from my db but it compiles and when I check my db I dont see the update to show the query worked. But surprisingly if I use a select statement It gives me a sign that the … Software Development | |
Hi guys, I've been cracking on with this project for a few days now and had lots of useful pointers to help along the way. I've now hit a little snag where I think I have written the correct update Statement but It seems to error at the last point. … Software Development dataset open-source sql | |
I am in a fundamentals class for C++ and having a bit of an issue. I know the problem is not fully understanding. I am not looking for the answer but to get direction to better understand what I am doing wrong and how to fix it. The Problem: Write … Software Development c++ | |
Hello Friends, I am sending 5 sms from my asp.net application in c# at a time using HttpWebRequest. Its running fine but sometimes sms sending fails becoz of this error: Error : The underlying connection was closed: An unexpected error occurred on a receive. Code for sending sms: I tried … Software Development os-x | |
Hello all, i am new here and i find this forum really interesting. I have been facing an issue for some time now and hope someone could help me out here. I have a project which i have been trying to add a printing module to be able to show … Software Development c# | |
Hi All, I am new to C#. Please need your help. I have a set of 3 buttons in form1 out of which when I click on any, that particular value of the button gets assigned to text field in form2. I have used below code: Form1:- private void Btn1_Click(object … Software Development | |
I would like to save and load a listview and all of its contents. But, also, I want to make a combobox with all of the configurations of the listview. So you could add another one via a settings menu, or load one using the combobox. Many thanks in advance. | |
I have made following code.The first statement gives me output 21. That is i know that default capacity is 16 + 5 for Hello But i don't get, why it gives 44 as output as i am increasing capacity from 21 to 30 by using ensurecapacity() method. StringBuffer sb = … Software Development java |
The End.