43,549 Solved Topics
Remove Filter ![]() | |
Good day. I wana know what is the code (VB 2008) to get line that contains selected data that the user want from notepad? example: apple, red, 180 pear, green, 200 melon, yellow, 250 the user will type "apple" in the textbox and the msgbox will tell in which line … | |
Hi I had written an in VB.net that took addresses from a database put them into a csv file then took the csv file data and performed a mail merge in Word to allow the user to print them out on to an Avery L7163 label sheet. The app was … | |
![]() | How do i call back a variable in void method into the main method?? [CODE]public void multiply (int x) { Vector3 v3 = new Vector3(num1*x,num2*x,num3*x); }[/CODE] Software Development java ![]() |
How can i generate next increment number for alphanumeric serial . i.e first cheractor is alphabet and next four cherectors are numeric. ( N1125 ) Software Development visual-basic | |
I am currently working on my first serious GUI application in python using Tkinter. I currently have a toplevel window that opens from the root window. when i envoke the window from the root i can see all 7 of my other widgets, but the widget: btncancel = Tkinter.Button(addboard, text … | |
These are the problems: Ground Beef Value Calculator Different packages of ground beef have different percentages of fat and different costs per pound. Write a program that asks the user for: 1. The price per pound of package "A" 2. The percent lean in package "A" 3. The price per … Software Development java | |
Hello, I am new to C++ windows programming and have only taken 1 class in c++ in my life (I have experience with other languages and OOP). I'm using Visual C++ 2008. and my project is created by the wizard for a Windows Forms Application. (I'm guessing this means CLI … Software Development c++ oop visual-studio windows-api | |
Hi, So i have 2 form, each has 1 datagridview. In the FORM1, the datagridview contain some product column and user can input the number of product quantities they want to buy. if user press the "buy" button, i want it to open FORM2, with datagridview containing the list of … Software Development vb.net | |
Hi, I have a small issue, wondering if anyone could help. I have a form, FormBorderStyle is set to None. I have a groupBox on the form called gbLogin. I want to be able to move the form via anywhere on the groupBox. I have searched the net and have … Software Development | |
Hello, I thought I was doing things right when I created a delegate to call a function to access the container's data, but it still throws an exception. I have something similar to: [code] public ref class myform : public System::Windows::Forms::Form { private: System::Windows::Forms::ComboBox^ form_combobox; private: delegate String^ getItemDel();//<-- delegate … | |
![]() | I'm looking to learn C++ from online sources. Which would you recommend considering I have no prior programming experience. Also, is it necessary or helpful to learn C beforehand? Software Development c++ |
Hi, I was pondering this earlier and wasn't sure if it was possible. Say, for example you had 2 objects; [B]spam[/B] and [B]eggs[/B], and you wanted to create a function to change attributes - e.g. colour. So spam.colour = 'Blue' and eggs.colour = 'Green'. How would you change that attribute … Software Development python | |
Hi, Sorry for my ignorance but the problem I have is probably so simple that I cannot seem to find an answer for it. I am just learning about the Java.Util Package but in following my course module I am getting an error. here is the simple code : [CODE]import … Software Development java java-netbeans | |
Hi! I would like to create a button for deleting all JLabel components on JDesktopPane. My code is shown below. The error message is shown below the code. For instance, let's say there are 3 JLabel components (the 4th is not JLabel). In this case, only 2 of 3 JLabel … Software Development java java-swing | |
Hi, I'm in my first Java class and I am working on a problem that I could solve if I just figure out how to convert a char to an int. i.e. convert A to its letter equivalent with a function like this: [CODE] intLetter = charLetter.parseInt(); [/CODE] am I … Software Development java | |
Hello, I'm just wondering how you return a vector from a member function. I've looked online but had no luck. At the moment my function is set to long double, and when I tried setting it to std::vector it came up with lots of errors. Here is my code: [code] … Software Development c++ | |
I have a zip file on a CD that has an EXE in it that I want to run. Is there a way that I can use Process.Start() to extract the zip to TempDir and then launch the exe? Software Development vb.net | |
I,ve set up a JTable and want to populate it from an Access database useing jdbc odbc. The data returned is placed into an array but my problem is how to use the array results with... jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {list[0], list[1], list[2], list[3], list[4]}, }, new String … Software Development java java-swing | |
Ok, so i don't think I need to post all the code....most of you have seen a lot of it anyways, if I need to I don't mind. But anyways, I made the outFileDrs Stream, then at the end of the program it closes it. But its only 1 kb? … Software Development c++ | |
Hello all, So I have been trying to "redo" a c++ program in c and I am getting stuck on strings (I dont code in c never have still learning). Any who in my C++ program, I use string concationation tools to print out select output, however c does not … Software Development c | |
The assignment says "Write a program that asks the user to type in numbers. After each entry, the program should report the cumulative sum of the entries to date. The program should terminate when the user enters 0." I have partly been succesfull I guess. But I dont know how … Software Development c++ | |
Hi, i know how to read specific line form a text file but if we want to delete lines by specifying the line number. here is the code, but it's not working: i want to delete line 1 and 2 of the text file. [CODE]import java.io.*; public class ReadSpecificLine { … Software Development java | |
Hi, I am a beginner who is trying to write a small piece of code which holds down the FN key and presses the F10 key. I think this is called a keypress or keydown. I have a brain injury which causes memory problems and makes it very difficult for … Software Development vb.net | |
The question is "write a program that request the user to enter two integers. The program should then calculate and report the sum of all the integers between and including the two integers. At this point, assume that the smaller integer is entered first. For example, if the user enters … Software Development c++ | |
Dear All, I’m implementing a vector class that allows me to do vector arithmetic. What I’ve implemented is the following: [CODE]class mVec { private: float vec[3]; public: mVec(); mVec(const float * const parray); mVec(const float a, const float b, const float c); ~mVec(); mVec operator+(const mVec& param); mVec operator-(const mVec& … Software Development c++ | |
Hi guys I just started writing in c++ yesterday, although I did write in visual basic before. After watching some basic c++ youtube video's i decided i wanted to make my first game, tic tac toe. So as a warning i did this without using anyone else's code or any … Software Development c++ visual-basic | |
#include<iostream.h> #include<conio.h> void main() { clrscr(); int first=0,second=1,third,n; cout<<" enter the number of elements"; cin>>n; cout<<"\n Fibonacci series="; cout<<first<<" "<<third; for(int i=2;i<n;++i) { third=first+second; cout<<" "<<third; first=second; second=third; } getch(); } Software Development c++ | |
I am trying to do the following in C++, the C# code is here test is a string btw. [CODE]if (test == null || !test.Equals("Item Name\t")) return data;[/CODE] I did this in C++, but its crashing the program [CODE] if (test.compare(NULL) == 0 || test.compare("Item Name\t") != 0) return data;[/CODE] Software Development c++ | |
This loop is going slow because of the push_back part at the end, can i make this go any faster? Basically this is what it does 1) Reads file into a char array 2) takes each char in the array and transfers to vector. [CODE]char *tempItem = new char[1]; delete … Software Development c++ | |
Hi, How to make at code that calculator will operate with 3 numbers (Example: 15 - 2 * 5) and that [U]multiplication and division[/U] have precedence over [U]addition and subtraction[/U] ? At that code it operates just with 2 numbers: [CODE] int num1; int num2; string operand; float answer; Console.Write("Please … Software Development | |
Ok, here's another problem which i really need help. One suggestion from our panel suggested if we can have a module which do not allow deleting a record (one or more) in the database which are Administrator type. Those records cannot be deleted whether through 1. the program itself (via … Software Development visual-basic | |
Hi Guys, I am a relative new member in this forum , My name is Javin Paul and I am Java programmer. I have question related to garbage collection in Java Does garbage collection occurs in PERM Area of Java Heap ? As per my knowledge PERM area is used … Software Development java | |
hi, i'm new to python. i want to read from a text file (as attached) and i want to plot a scatterplot. i want to plot lane as X-axis, EyVt and EyHt as Y-axis. i have a sample code but i need help on how to get python start reading … Software Development python | |
Hi, I'm new to Python and having difficulty opening my .py file (ex1.py). In the command prompt I cd to the folder containing the file and when I try to open it nothing happens. The prompt just gives me a new line. It looks like this... 1. I open the … Software Development python | |
I am confused, I seem to be losing the variable item.Size when i go from one for loop to the next....why? When i show item.Size the first time it shows all the #s, the second time I get straight 0s? [CODE]for (unsigned long int q = 0; q < tableCount; … Software Development c++ | |
I have a question about function precedence. How does the compiler decide which function to call in quasi ambiguous situations? Is it laid out in the standard or is it implementation dependent? If you look at the attached code you'll see I'm outputting the value contained by the myint object. … Software Development c++ | |
Hello, My friend and I are learning to program by creating and solving little challenges for each other. In the most recent one, he hid something in the resources of his program. I can find and save the resource off manually using .NET Reflector; but I am trying to do … Software Development assembly | |
Hi! I would like to make transparent my two JScrollPane components. Could please someone explain me why the code [ICODE] scrollPane1.setOpaque(false); scrollPane2.setOpaque(false); imagePanel.setOpaque(false); beads.setOpaque(false);[/ICODE] does not work? Thanks! [CODE] public SelectablePanel() { beads = new BeadsCollection(NR_OF_BEADS); imagePanel = new ImageSelectionPanel(0, NR_OF_BEADS_SIZE); p = new Point(); JInternalFrame jif = new JInternalFrame("Title", … Software Development java | |
if i were to do this in a program, would it possibly overwrite data/memory that is already being using by my application? int main() { char *pointer = "hi"; pointer = "weeeeeeeeeeeeeeeeeeeeeee"; return 0; } Software Development c | |
Pretty much what it says in the title, _orgDrspath = std::string, newDrsName = std::string [CODE]std::cout << "Opening original " << _orgDrsPath << std::endl; // Store all bytes into a variable called exe std::ifstream inFileDrs(_orgDrsPath, std::ios::in | std::ios::binary); inFileDrs.seekg(0, std::ios::end); size_t len = inFileDrs.tellg(); int newLen = 1024*1024; char *theDrs = … | |
If i may ask, Is it possible to update multiple rows in a database at once. if yes, how? I have a dbase of almost 100 people. Each one has a unique reference number like this: NPHCDA/MSS/109 but i want to update the records of the hundred people and include … Software Development vb.net | |
I I'm trying to create an application in real mode that uses the flags to store the results of calculations and other stuff. I'm trying to do this to take up less memory. So can someone please give me some example code or tell me how to do this. I … Software Development assembly | |
Hi everyone! I want to design a biometrics system. already, i've got it working to an extent. i can now save individual details with their images and thumbprints but i want to do a validation on the thumprints so no one person can be registered twice. thanks Software Development vb.net | |
Hi, I am trying to write a simple c++ script to learn more about file manipulation. First script is adding some info a file as a structure and second one is reading from the file. However when i try to read from my file it always shows the found values … Software Development c++ file-system ios | |
Hi, I'm a relative newb to Python and I'm starting my first major project - a logarithmic graphing system. I'm using tkinter for the GUI part of the design, but I've run into a problem. Basically, I want my graph (a tk canvas) to appear in the same (root) window … | |
Hi! Can someone tell me on how could I display the data from my SQL to a ListView? I only have one column to display. Thank you very much and God Bless! :) | |
I have been googling all day today and I've been trying to find some small, i know it won't be small, amount of code that will allow me to skin my VB.NET project. I don't want to do much to it as far as skinning. If you google GeekSquad MRI, … Software Development vb.net | |
Hi all, I've scoured the internet for examples that would allow me to figure out how to apply functors in my specific case, but I just can't seem to make the shift from the examples I find to figuring out how to use it for my own code. Here is … Software Development c++ | |
![]() | Having an issue switching a listview from Tile to Details View with groups. When the list view has groups and the Default View is Tile, when changing the view to Details the first Group is not shown. Its under the column header. I jerry rigged it with creating a global … ![]() |
Hi to all! In the following code I am trying to implement a non-directed graph using adjacency lists. Even though there are no compilation errors, I don't get any results. When I am debugging the code it seems that there is a problem when I try to insert a second … |
The End.