132,726 Archived Topics
Remove Filter ![]() | |
Hello VB.net I don't know if I am in the right thread; but it is most closer to my problem; Currently I have no idea or a near code to solve the problem; In excel, Developers tab, there is a Visual Basic Application; What I'm trying to do is color … Software Development vb.net visual-basic | |
Write a C++ program to determine a student's grade. It reads three test scores (between 0 and 100) and calculates the average score and converts it to a letter grade. Grade Conversion Rules: rule a. If the average score is 90 or more the grade is 'A'. rule b. If … | |
how to calculate square root of function..using formulae b2-4ac.... Software Development c | |
Hello everyone, I am new to VBA and i would appreciate any help as i am pretty confused. I have imported some csv from a folder to different tabs. i need to calculate the average of the range A3:A7, then B3:B7 till E3:E7 and report their values on cells K7 … Software Development visual-basic | |
i now can save a fingerprint template from database using this code.. Dim fingerprintData As MemoryStream = New MemoryStream Template.Serialize(fingerprintData) fingerprintData.Position = 0 Dim br As BinaryReader = New BinaryReader(fingerprintData) Dim bytes() As Byte = br.ReadBytes(CType(fingerprintData.Length, Int32)) Dim cmd As SqlCommand = New SqlCommand("INSERT INTO fininger_table VALUES(@FIRSTNAME, @LASTNAME, @FINGERPRINT)", conn) … Software Development vb.net | |
I made a little app using access db in my computer, and also make an exe file of that. The db location is on c drive. Now i took only the exe file & and the db to another computer. I put the db in c drive there too. but … Software Development visual-basic | |
Hi guys , Assume the following is my program, is there a way to see how the memory is being allocated by the java program ? How do I use jconsole to find out where in main memory that Integer i = 10 is being saved? public class IntegerCmp{ public … Software Development java | |
Hi, I have created a class which I user to create several list of different values. I am them going through all the list to count for frequency of the values. The problem is I want to consider say value1 = 1, value2 = 2, value3 = 3 to be … Software Development | |
It took me 4 weeks to write this code. The chess game works now . there are no bugs... everything confirms to the chess rules (part from stalemate that i was too lazy to do). i have been learning java for 4 months. what do you think of my code … | |
Hi,have slight problem,my delete function does not work in avl tree: #include "stdafx.h" #include "TreeType.h" using namespace std; // menu helpers int ShowMenu(void); template<class T> void ProcessMenu(TreeType<T>& tree); // callbacks template<class T> void InsertItem(TreeType<T>& tree); template<class T> void DeleteItem(TreeType<T>& tree); template<class T> void PrintTree(TreeType<T>& tree); int _tmain(int argc, _TCHAR* argv[]) … | |
I can not get this program to compile, the problem lies in the method inputData. Does anyone see anything wrong it? #ifndef JEDI_H #define JEDI_H #include <stdlib.h> #include <iostream> #include <string> #include <fstream> using namespace std; class Jedi { public: Jedi(string name, int maxHealth, int currHealth, int attackBonus, int defenseBonus); … Software Development c++ web-design | |
Hi all I have a table with a Masked column. How can I INSERT or UPDATE data into the masked column at run Time with out Loading the column into a textbox. The column is as Folows ID Process 1 StartY CompleatY 2 Start_ Compleat_ Thanks in advance. Software Development vb.net | |
Well i want to know if there is any code for converting the date time retrived from windows system date to a unix format, :?: | |
I load some data into a datagridview, I use a loop to do that. When I need to load new data I get rid of old data like so... foreach (DataGridViewRow row in dataGridView1.Rows) { dataGridView1.Rows.Remove(row); ; } Now I try to add new rows, because new data might different … Software Development vb.net | |
I'm a tad confused on a homework assignment. I'm supposed to write a program that displays a table of the Celsius temperatures 0 through 20 and their Fahrenheit equivalents. I got the loop to work just fine, but I'm supposed to display the results of the loop in a TextArea … Software Development display java java-swing | |
Hello I hope someone can show me a path to get in right direction. I need a datagridview with offset columns, as shown on the photo. I have tried to add three datagridviews next to each others, but this messes up horisontal scrolling when I add data to them. Hopefully … Software Development vb.net | |
Login functionality in C-language : Here the user enters the user id and password. The entered user id and password will be compared with the stored ones and user will be authenticated. While user enters password, characters should not be displayed on the screen. user id comparison must be case … Software Development c | |
Hi,i have a code like this in .h file: #pragma once #include "stdafx.h" #include"iostream" using namespace std; // balance factor enum enum BalanceFactor { LH, RH, EH }; // treenode struct template<class T> struct TreeNode { T info; TreeNode<T>* left; TreeNode<T>* right; BalanceFactor bf; }; template<typename ItemType> class TreeType { … Software Development c++ data-structure | |
Hi i have a bit of code: On the 1st day of Christmas, my true love sent to me A partridge in a pear tree. On the 2nd day of Christmas, my true love sent to me Two turtle doves, And a partridge in a pear tree. On the 3rd … Software Development java | |
Actually when the main function is running in a class, it implictly speaks a Main thread is in running in background. public static void main(String[] args){ ...... } Now when we create a thread objects in the above function like this . For example : public class NewThread extends Thread … Software Development java | |
I have a class which is using IEnumerable and I now need to implement IDisposable class Class1 : IEnumerable<Class12> { ;stuff } How can I do that? My first thought was class Class1 : IEnumerable<Class12> : IDisposable { ;stuff } Which I obviously cannot do. (edit) Sorry, I believe it's … Software Development | |
Good afternoon fine DaniWeb folks! I am about to pull my hair out on this one and I'd like to know if someone knows of a simple or obvious "gotcha!" for this problem. I've got a form with some detail fields on it (below)  When a user attempts … | |
So, I have heard about code porting, basically where you take existing code from one language, and translate it to another language. What I want to know is how does this process work? Are there automated tools for preforming this type of thing, or is it always a manual process? … | |
I have three files 1. Bank Instance 2. Bank 3. Main // Bank Instance.java public class BankInstance implements Runnable { public Bank bank; public Thread t; public BankInstance(Bank bank,String nameOfCustomer){ this.bank = bank; t = new Thread(this,nameOfCustomer); t.start(); } public void run() { System.out.println("========================================================"); System.out.println("Initial amount in bank"+bank.displayAmount()); System.out.println("Amount after … Software Development java | |
we have the following code: I get the response (ValueError: Mixing iteration and read methods would lose data) Any help def extract_data(filename): def extract_data(filename): infile=open(filename, "r") #infile.readlines() v0 = infile.next() #or []/{}/ t=[] for line in infile.readlines(): t.append(line) return v0, t v0, t = extract_data("ball_file.txt") Software Development python | |
Hi I am fairly new at pyhton and I am trying to create a program to append a new row of raw input to the bottom of my existing .csv file. So far I have this: [CODE]import csv x=1 y=1 n=0 citiesx=[] citiesy=[] city_names=[] total=input("How many cities do you have? … Software Development python | |
i want to make an artificial system in c++ language for a doctor or any judge that will take input from the user and by using rule of inference it will display the result as true or false, can anybody help me to solve this problem Software Development c++ | |
Hello All, I really want to create a network sniffer. What kind of topics do I need to understand to create a simple one? Thanks Software Development c# | |
Hi, I'm trying to create cascading comboboxes, and my code isn't working. I've looked at other threads and I don't know why it isn't working properly. The first combo box displays System Names and the second combobox should populate the all Locations of that specific system chosen. When I run … Software Development dataset vb.net visual-basic | |
I've had a real good look around at it seems to be quite difficult, all I can find is ones that claim to work in PHP, I tried them anyway and get invalid groupings, escape sequnses etc... I cannot find one for C#. I do not have the ipv6 to … Software Development regex | |
Dear sir, I have basic knowledge of VB .net I want to sum records (integer) of a column in a table if I give a specific value (text) in a field. Dim ds As New DataSet Dim AccessConn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=p:\inquiries.mdb;") Dim sql As String = "Select SUM(orders_amount) FROM … | |
For those interested in operating system development, this snippet tests status of A20. It is the line that allows memory beyond 1 meg to be addressed, otherwise it will just wrap around which some applications and versions of DOS depend on. My bootloader **MBR1_44** has switched system to protected (*32 … Software Development assembly operating-system | |
I need help generating a timestamp the same way you generate one in flash (actionscript) [code]new Date().getTime()[/code] That's how you generate it in actionscript, it returns a 13 character int. eg 1202497647515 [code] Dim date1970 As Date = "#1/1/1970 12:00:00 AM#" Dim datenow As Date = Date.Now days = DateDiff(DateInterval.Second, … Software Development actionscript flash vb.net | |
Hi All, Good Day I need some clarification , When serializing the inner class alone(implements Serializable only for inner class) I am getting java.io.NotSerializableException: SerializeinnerClass. At the same time when I am serializing static inner class I am not getting that exception. can any one explain me. Thanks in advance … Software Development java | |
![]() | I am in the process of making a small game-engine for educational purposes, and I have come accross a very fustrating error. When debugging the program with the c++ gdb debugger an error occurs on the `glGenVertexArrays(0, &m_vertexArrayObject);` - line 21 in the implementation of the `addVertices` method, line in … Software Development c++ ![]() |
I'm creating an inventory system which should display the products that needs to be restock. If the quantity of the product is only 10 it should display a message that says you need to restock now. But I don't know how to do that I'm sorry, hope u guys understand. … Software Development display vb.net visual-studio | |
Write a program that displays the same string in four different colors,using a loop. Call the SetTextColor procedure.Any color may be chosen, but you may find it easiest to change the forground color. Include irvine32.inc .data Str BYTE “This is the string”, 0 Color BYTE red,yellow,blue,cyan .code Main PROC Mov … Software Development assembly | |
I have a text box , Combo box and a dgv in a form . I want to insert text box input and Combo box selected item into dgv. combo box is bound to database table column. can someone provide me with a link or sample code? Thanks Software Development vb.net | |
This is a small one. Some time ago this table came in handy, testing out low level multiplication. And I just love multiplication tables. We all do, now don't we? :) Software Development | |
Hi there, well, i have homework of packet sniffing software i'm not suppose to write the code,but i need to make a report of an existing code and explain it in details. I found the following code somewhere(the code should be of a packet sniffer) ,but i couldn't run it.I … Software Development c++ | |
Hello All, Recently, I have been thinking of creating a software that will detect network packets and then develop it as I go along. Can you help me point to the correct detection. As in, if there is any articles you can recommend which I can read? I would appreciate … Software Development c# | |
So I was thinking, what is the best software for reading xml comments embedded in source code(C#)? Are there alternatives, or is sandcastle the only one? If there are alternatives, which one is the easiest to use, and which ones are free? Software Development | |
I have this string, it looks like this 1.2.3.4 sometext 9.8.7.6 othertext 5.6.7.8 moretext sometext has a space before new line and moretext has a tab at the end (and maybe a new line) I need to remove white space only at end of each line but excluding new line … Software Development regex | |
I need to write a shell script that will filter out all files in a directory that are more than two months old and then remove those files. Example: Suppose I am running this script on May 1st 2007. It should list out all files which are created before Mar … Software Development file-system shell-scripting | |
- - - - - - - - - * - - - - - - - - * * - - - - - - - * * * - - - - - - * * * * - - - - - * * * * * … Software Development java | |
Hi guys I have two files as listed below. I want to compare first column from second file with the first column from first file, if exists, give it the same value of second column from the first file as second column for the second file. If not, increase the … Software Development perl | |
Hi all expert, Need help here. RS.Open "Select * From TABLE where Box_ID = '" & BOXID & "' Order By CASE_NO ASC", con1, adOpenDynamic, adLockOptimistic Set DataReport.DataSource = RS DataReport.Sections("section1").Controls.Item("Text1").DataField = RS("BOX_ID").Name DataReport.Sections("section1").Controls.Item("Text2").DataField = RS("LOT_ID").Name In my program i am able to printout the data field. But how can … Software Development visual-basic | |
Hi there, I am having a problem using this scanner. I would like to find a specific value in the text file inside of my textfile is: 1 iamSamantha 143iluvu Samantha Jones 23 Female 2 AdamLambert ilove8 Adam Lambert 25 Male 3 saharaDoneth doneth123 Doneth Sahara 28 Female heres my … Software Development java | |
Hi Dw. I have a very huge text file with size "662 MB" and its can't be opened by a notepad on my computer so I created a program to only read the last line because there is a software that is writing to this file some counts, so I … Software Development vb.net |
The End.