132,726 Archived Topics
Remove Filter ![]() | |
No, this is not an assignement. Recently I decided to pick up writing code again and the project I started writing I came to a rode block with something that I never learned in class (I don't think). How would I be able to write this better (should I stick … Software Development c++ | |
Please can anyone tell me how to convert an ArrayList<Integer> to byte[] Thank you Software Development java | |
Hi, I'm hoping someone might be able to help me with what I think might be a simple problem. I have came across the need to add to an unsigned char array a literal single quote "'" My question is how can I achieve that? unsigned char uArray[4]; uArray[0] = … Software Development c++ | |
Hi , I have an xml which is in the following format. <root> <x> <y> <uri>ssomeuri</uri> <date>2012-07-11T10:29:08+00:00</uri> </y> </x> <x> <y> <uri>ssomeuri2</uri> <date>2012-07-11T11:01:08+00:00</uri> </y> </x> </root> I wanted to get uris in the order of date. I am very new to xpath, can any body help me on this. the … Software Development xml | |
hello! i am currently working on a simple file make application , this application read data from foxpro .dbf file , i want to get records between two dates , from date and to date , the invoice date field name is fl02 here is my query but this is … | |
i used this code to delete row from datagridview but it dosnt delete the selected row it delete the first row , where is the problem?? Dim sCommand As SqlCommand Dim sAdapter As SqlDataAdapter Dim sBuilder As SqlCommandBuilder Dim sDs As DataSet Dim sTable As DataTable ***** Dim connectionString As … Software Development dataset open-source vb.net | |
I would like my vb2010 program to click on a javascript element on this webpage depending upon what they choose, here is the source of the rating system, thanks in advance: <div class="basic-info-rating basic-info-user-rating" style="display:none"> <div class="rating quick-rating"> <p class="average rating-3">3 stars</p> <ol class="user" data-analytics='{"click_id":1865,"events":"event6,event7,event24"}' data-ypid="5550608"> <li class="rating-1"> <a data-analytics='{"rating":1}' … Software Development java javascript vb.net visual-basic web-browser | |
Hello i am new to programming using Vb.net and we are required to make a web-based application for our thesis .. Can i make a web-based application using vb.net ? sorry for my english .. Software Development vb.net | |
hi all. i have implemented Karatsuba algorithm for multiplication of large numbers . when i compile .c file it is giving correct output using followin commands in **linux** terminal. **gcc ulti.c ./a.out < hi.txt** But problem arises when i try to run it in **ARM** using following commands. it give … Software Development algorithm assembly file-system | |
Please, i want to compare a column in table with 2 colomns in another table. Such dat if the values on the first column corresponds to the other then it will do something. I've tried SELECT * FROM tblToad frm d first table and then SELECT color FROM tblcolor, bt … Software Development visual-basic | |
pls help guys i have the digital persona biometric i have the problem in getting the id i need id because im just use id to save into database plss help me tnx. Software Development visual-basic | |
hii..sneha here , i'm studying in te-it, and i was in search for some interesting and innovative topics for my dbms project for which we have to use vb as front end & oracle as back end... so plss can u suggest me some of them.pls avoid regular & popular … Software Development oracle visual-basic | |
Can anyone help with a coding an application to produce rosters for a school time table assigning teachers periods. Software Development | |
Hi all, I am having trouble getting a tree to and from a text file. The text file will hold questions and animals. Each node should hold one question and one animal. So if you can imagine: Does it have 4 legs? / \ Does it purr? Does it swim? … Software Development c++ data-structure file-system | |
New to C#. This is the code I am working with: using SC = System.Console; public class Lab01 { // Main Method public static void Main() { string hoursWorkedAsString; string payRateAsString; double hoursWorked = 24; double payRate = 11.5; double grossPay = hoursWorked * payRate; double stateTax = 0.04; double … Software Development | |
Hey, I'm trying to change the color of a textbox border say if a value returned false. private void UserBox_TextChanged(object sender, EventArgs e) { ControlPaint.DrawBorder(e.Graphics, this.ClientRectangle, Color.Red, ButtonBorderStyle.Solid); } } the problem is EventArgs e doesnt have a graphics member, EventArgs should be a PaintEventArgs, but when i change its … Software Development | |
Hi there. I developed a program that creates Data Reports using this way : [Click Here](http://www.vbtutor.net/vb6/lesson40.html) But instead of using "Microsoft Jet 3.51 OLE DB Provider", I used "Microsoft Jet 4.0 OLE DB Provider" because when I used "Microsoft Jet 3.51 OLE DB Provider" it couldn't connect to the database … Software Development microsoft visual-basic | |
We are atsked to create a net salary calculator or something that computes the net salary. I used three radio button in which if it is selected, it has corresponding solution for each selection. The three radio button are probationary, regular and permanent.......here is the code Private Sub Command1_Click() Dim … Software Development visual-basic | |
Ok i manage to autoselect items on listbox till reach the end of list, but i need it to automatically loop back to the fist selection of indexes when it reach the end list and so on .. i need help on this part newbie here :) if Me.Listboxs1.SelectedIndex + … Software Development vb.net | |
anybody help me "how to write our own (by user) scanf function so that it will works exactly as scanf function defined in liberary, what will be its declaration and definition ". Software Development c | |
hello, im having troblue getting my linked list to show everything on the list. it only shows the first node, and nothing afterwards. #include <iostream> #include <string> class list { private: struct node { std::string name; std::string phone; node *next; }*head, *tail; public: list() : head(0), tail(0) {} ~list(); void … Software Development c++ linked-list | |
In the below programme i use one boolean variable named check , which is being accessed inside main function by two objects of Tst1 and Test2 . But the value of check variable is not maintained in the programme . we can use static but i want to know some … Software Development c++ | |
#include<iostream> #include<cstdlib> #include<fstream> using namespace std; int main() { int n=3; float total,wait[3]={0}; float p[3],twaiting=0,waiting=0; int proc; int stack[3]; float burst[3],arrival[3],sburst,temp[3],top=3; for(int i=0;i<n;i++) { p[i]=i; stack[i]=i; cout<<"Enter arival time : "; cin>>arrival[i]; cout<<endl<<"Enter burst time: "; cin>>burst[i]; temp[i]=arrival[i]; sburst=burst[i]+sburst; for(i=0;i<sburst;i++) { proc=stack[0]; if(temp[proc]==i) { //temp[proc]=i+1;; twaiting=0; } else { twaiting=i-(temp[proc]); … Software Development c++ | |
Just wondering how the game would be put together, maybe even a step by step tutorial. I could use this to practice with the commands used without Tkinter or Pygame. This could be a good learning experience. | |
Hi guys, i'm trying to program a simple Tic-Tac-Toe game with extern Buttons. When i'm compiling the Code there's no mistake, when i press Button1 every thing ok, but on the most other Buttons a mistake is shown up : Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at grafik.Zeichenfenster.farbeAufloesen(Zeichenfenster.java:330) at grafik.Zeichenfenster.zeichnen(Zeichenfenster.java:276) at … Software Development java java-swing | |
I'm trying to find an event that handles which tab is clicked? I know it has to be simple, I'm just missing it. I want to say "when tab1 is clicked, do this, when tab2 is clicked, do that" Software Development | |
![]() | Can i allocate memory to an array of it or char using malloc ? if yes, then why is it so ? And if no then also why ? I am confused a little bit. thanks in advance to james sir ;) Software Development c ![]() |
Hello, I am new to the forums and I am just starting to learn python. I have been writing the following program and have ran into a problem with getting it to work right. If anyone can offer some advice on what I am doing wrong I would be thankful. … Software Development python | |
Hello programmers! My Library Software with DataBase is 99% finished and I have an error. When I click Save or Delete I got error message: **Cannot insert explicit value for identity column in table 'Table1' when IDENTITY_INSERT is set to OFF.** I want to know **HOW** to set IDENTITY_INSERT to … Software Development vb.net | |
hi, i have a file which contains dfca2345f1278aba11110012567ade21 i also have a structure i need to read from file and print the values of struct in decimal form (i.e s.a=3754566469 , similarly b,c,d,e) so i ve come up with only this, i am not getting how to populate struct and … Software Development c | |
i'm tring to make a diary. i need nice background. user could edit text anytime if he/she wants. but i cant do that, because i cant make transparent background on textbox or i cant make editable label. is there any way to do transparent background on textbox? how can i … Software Development vb.net | |
Which of the following code is likely to take less time to get executed? /*Format 0*/ main(){ int a=3,b=5; printf("%d",a*b); } /*Format 1*/ int mult(int a,int b){ return a*b; } main(){ printf("%d",mult(3,5)); } /*Format 2*/ inline int mult(int a,int b){ return a*b; } main(){ printf("%d",mult(3,5)); } As of now,I understand … Software Development c | |
Hi community, I wanted help in making shortest path Finder for non grid based game. Below is the image attached of which i wanted to do shortest path finding. There are nodes and each node may link to 5 or 6 nodes. I have no idea which algorithm will get … | |
#include <iostream> #include <vector> #include <string> #include <fstream> #include <sstream> #include <windows.h> using namespace std; class Subject { protected: string sub_code; string sub_fac; public: Subject(string sub_code="", string sub_fac="") { this->sub_code = sub_code; this->sub_fac = sub_fac; } string getSubCode() {return sub_code;} string getSubFac() {return sub_fac;} }; class Student { protected: string … Software Development c++ | |
I want to input text in one TextBox and as soon as I finish my input, it should do some background work and show the results on the other TextBox. I do not want to use any 'button', 'enter', 'tab' or any other triggering mechanism. The end of input in … Software Development vb.net | |
I want to make level editor in which I want it to have three buttons CreateNode , Reset Node Create Node - It will add node in screen Reset Node - It will reset all the links from the Node And when the node is created on window if I … Software Development c++ | |
Hi I have a vb.net form connected to an access database using vb.net .All my other button except for the add new button If Valid = True Then CustomerBindingSource.AddNew() Me.TableAdapterManager.UpdateAll(Me.DB_ShopDataSet) End If I want this code to add a new row to the customer table.However the current code modify the … Software Development vb.net | |
I'm getting the exact output I want but I keep getting an error that says "Run-Time Check Failure #2 - Stack around the variable 'c' was corrupted." Now I have to for this assignment use strncpy, and strncat and I'm trying to append two strings togethor with the max amount … Software Development c++ | |
Hi, The code below selects all items in a listview control,fine,but I was wondering how I could code to select all but the very last line in the array. [CODE]Private Sub SelectAllToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SelectAllToolStripMenuItem1.Click Dim i As Integer Dim lvItm As ListViewItem Dim … | |
int a = 10; int b = ++a++; printf(b); The code when compied shows lvalue error. | |
import java.util.*; public class EmployeeTest { public static void main (String[] args) { Employee[] staff = new Employee[3]; staff[0] = new Employee("Carl Cracker", 75000, 1987, 12, 15); staff[1] = new Employee("Harry Hacker", 50000, 1989, 10, 1); staff[2] = new Employee("Tony Tester", 40000, 1990, 3, 15); for(Employee e : staff) e.raiseSalary(5); … Software Development java | |
I can't find the bug in my code. The error that pops up says "Expression: invalid null pointer". Visual studio isn't giving me any line to go to or really any help except once I run the program the error above pops up. The weird thing is everything compiles correctly … Software Development c++ visual-studio | |
I'm having a hell of a time trying to print from an RTF box. I can do it, but for my test file (Lewis Carroll's "Fury said to a mouse..." with each word on a different line), I keep getting the first two pages printed on the same page, completely … Software Development vb.net | |
Hi all, I have a simple program: #include<iostream> using namespace std; 6 int main() { char x; do { scanf("%c", x); } while (x != 'y'); return 0; } and for some reason when i gcc test.c i get "test.c:1:20: fatal error: iostream: No such fiel or directory compilation terminated." … Software Development c | |
#include<stdio.h> void quicksort(int [10],int,int); int main(){ int x[20],size,i; printf("Enter size of the array: "); scanf("%d",&size); printf("Enter %d elements: ",size); for(i=0;i<size;i++) scanf("%d",&x[i]); quicksort(x,0,size-1); printf("Sorted elements: "); for(i=0;i<size;i++) printf(" %d",x[i]); return 0; } void quicksort(int x[],int first,int last){ int pivot,j,temp,i; if(first<last){ pivot=first; i=first; j=last; while(i<j){ while(x[i]<=x[pivot]&&i<last) i++; while(x[j]>x[pivot]) j--; if(i<j){ temp=x[i]; x[i]=x[j]; … Software Development c | |
Greetings, I'm a bit new at Visual Basic 2010, and i have one main problem. I want to creat a Calculator for a game, however i have issues getting it to work. When i select a setting from my main Combobox i want it to add different settings for the … Software Development vb.net visual-basic | |
Is there a way to convert a double to string. I tried to do it like this x.toString() and it didnt work as well as implicitly converting it. Software Development java | |
Is it possible to store the value of a variable? For example the value of a string variable: [code]strImgFile[/code] containing a file destination, that is saved along with the program, so that the next time the user runs it, the value of the variable [code]strImgFile[/code] is restored. Software Development vb.net | |
Why the method of the following class is getting invoked several times even if the condition is false.Please help me with my code... public class PRDDayBook { int remX; public PRDDayBook(int x) { remX = x; PrinterJob pj = PrinterJob.getPrinterJob(); PageFormat pf = pj.defaultPage(); Paper paper = new Paper(); double … Software Development java | |
Please how do I convert a string of hexidecimals “10B71356C845FB08E04951AAA2FF9F49” to integer? I tried using getBytes then Integer.valueOf but I got 32 integers instead of 16. Any help would be greatly appreciated. Thank you. Software Development java |
The End.