132,726 Archived Topics
Remove Filter ![]() | |
I have mentioned the code for checker board made on visual studio .I dont know whats the problem with this code .. it just draw only one row of checker board on the drawing window :( help me //#include <windows.h> // use as needed for your system //#include <gl/Gl.h> #include<stdlib.h> … Software Development c++ ios multimedia visual-studio | |
Hey i am just a little confused. I am creating a system where customers order items and i have just realized that i cannot add more than one item per order how do i get around this i am using sql and vb thanks Software Development vb.net | |
Hi i need to add crosshairs to my code, like draw 2 lines across the screen on a JPanel, i also need to be able to turn them on and off with a checkbox which is on a JPanel. the other panel needs to be drawable on like a paint … Software Development gui java java-swing | |
hello everyone! how to make radio button and combo box has default value? Software Development vb.net | |
Hi! I'm working on a school project and ran into a problem. We're creating an ArrayList of basketball games where each game is set up as: [CODE] public Game (String homeTeam, int htScore, String opponent, int oppScore) { this.homeTeam = homeTeam; this.htScore = htScore; this.opponent = opponent; this.oppScore = oppScore; … Software Development java | |
hi please I need help how to sort int line by line & get number of int in each line I have Input 4 2 32 8 6 10 7 9 21 2 3 14 1 5 Output must be 2 4 6 8 32 count = 5 2 3 … Software Development c++ | |
![]() | [CODE] Private Sub TimerZoominOut_Tick(sender As System.Object, e As System.EventArgs) Handles TimerZoominOut.Tick Dim zoom = Document.ZoomFactor Select Case zoom Case zoom = 63 toolBar_zoomin.Enabled = False Case zoom < 63 toolBar_zoomin.Enabled = True Case zoom = 1 toolBar_zoomOut.Enabled = False Case zoom > 1 toolBar_zoomOut.Enabled = True End Select End Sub[/CODE] … Software Development vb.net ![]() |
hello everyone i have wrote a code but it shows [B]"org.apache.tomcat.dbcp.dbcp.SQLNestedException:"[/B] error org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at listener.MyContextListener.contextInitialized(Unknown Source) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at … | |
hello frnd i am wriing program on in which i try to connect mysql with servlet but it gives error here is my code [CODE] [B]Test.java[/B] package my; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.sql.DataSource; … | |
Hi, I don't understand why we typecast malloc. For example, while creating a string/character array, we normally do, [CODE]line = (char*)malloc(200 * sizeof(char));[/CODE] assume we have already declared char* line; I was just reading the malloc man pages and it says that malloc allocates that much memory and returns a … Software Development c | |
Below is a part of an experiement. I am trying to mprotect the whole of the stack area but mprotect needs page aligned space. I can get the address of the current pointer using ucontext.uc_mcontext.gregs[REG_ESP] . But how do I get the page-size aligned address to use in the mprotect … Software Development c | |
I know how to search a text file for a specific line, but what I don't know is then how to delete that line? Can anyone help? My text file is set up as such: 021,Donovan,56 Eynesford Crescent,Bexley,SE5 1TR,09/08/1967,13 March 2012,Bronze 062,Fredrikson,6 Freil Road,Gravesend,GR9 TRB,12/06/1995,13 March 2012,Silver So I know … Software Development seo vb.net visual-studio | |
Dear Sir/Madam, I have two form in my application form1 and form2. Here, i want to show the form2 from form1 by using a button. And i want to reverse back to my form1 from form2 using same technique. But i want to close form1 (Not visible=false or hide) after … Software Development vb.net | |
Hi friends.. Is there a way in vb.net to check whether new memory pages have been created inside a process(such as winlogon, svchost etc) For eg : if i there is a certain value that may change if new memory pages are created inside the process. Then i can compare … Software Development vb.net windows-xp | |
my problem in here is that i want to input chairs for the barber shop, there should be input chairs button and i will input how many chairs i want, and if for example i will input 4 and press ok, the barber chairs will become 4 also , and … | |
Hi, I'm having a problem with my forms. Basically I have one form that adds,deletes,updates transactions that are made when a registered member makes a request. Doing this then gets saved in the database under a transaction table. I then have another form which then calculates my transactions based on … Software Development pay-per-click vb.net | |
I create an xml file on startup in my application which contains the connection string of the database. [CODE] Dim contactDoc As XDocument = <?xml version="1.0"?> <database server=<%= TextBox1.Text %> name=<%= TextBox4.Text %> userid=<%= TextBox2.Text %> password=<%= TextBox3.Text %>> </database> Dim str1 As String str1 = Application.StartupPath contactDoc.Save((str1 + "\data.xml")) … Software Development encryption vb.net xml | |
Hi, I just want to know which is the best way to transfer files between clients and server. My server is accessed from client through internet. I found some results after googled as using tcp/udp/ftp... So , i just want to know which one is best and why ? . … Software Development c# client-server tcp-udp | |
Hello, I was given a question a few few days back to write a program that lets a user enter a value for an angle and quadrant in which the angle lies is printed using switch statement. I was able to make this program using if-else very easily but making … Software Development c | |
Hi every one. I need help with regards to application distribution. The application i have made is in vb.net with sql server as database. I have 2 laptops . i want to install the application on both computer So that one computer will be for administrator and other for employee. … Software Development vb.net | |
i am reading from file called inputfile and storeing in char array line. Lets say the word in char array line is "black cat". than I am strtok word "black" and puting in ch. After that iam testing if the 1st word is black or not. Inside the if statment … Software Development c | |
Hello guys, Have anybody seen a program with a small button (Like us on Facebook)? well i would like to accomplish something like that on one of my projects. to be honest i haven't click on any program with that little like button.. So i was wondering if they just … Software Development visual-basic | |
How to add the numbers between nodes example. input 1*2+3 first 2 and 3 will add and it will become 1 5 nodes then 1 * 5 = 5 then node will becaome 5 only this is my sample program #include<stdio.h> #include<stdlib.h> #define p printf #define s scanf struct node … Software Development c ![]() | |
![]() | Hey there! So I have am writing a multi-chat client for my college course. I have completed most of it, however there is a problem which I am unable to identify. When I conect multiple clients to the server only the the last client to connect is able to send … Software Development c client-server socket-programming ![]() |
Hi, I have a textbox which I want to change the font colour when you input a number after a certain number (in my case Pi*2).. Although the code I wrote gives me this error : Unable to cast object of type 'System.Windows.Forms.TextBox' to type 'System.IConvertible'. I don't understand the … Software Development | |
I am trying to make an array so I can store monthly coffee usages. I have used the code below which puts the monthly usages into a listbox and enables me to store new usages by entering them into a textbox and clicking a button. However, I want the values … Software Development visual-basic | |
I have a school project and what is needed is to Write a program that prompts the instructor to enter the 10 grades of midterm 1 and store these numbers in an array. Next prompt for the 10 grades of midterm 2 and store these numbers in a different array. … Software Development java mathematics | |
hey, so I am just starting java3D, and I am running into some pretty basic problems... I started a tutorial online (from [url]www.java3d.org[/url]) and the first sample program is: [CODE]import com.sun.j3d.utils.universe.SimpleUniverse; import com.sun.j3d.utils.geometry.ColorCube; import javax.media.j3d.BranchGroup; public class Hello3d { public Hello3d() { SimpleUniverse universe = new SimpleUniverse(); BranchGroup group = … Software Development java | |
hi below code is an example.I hav couple of questions 1)The highlighted bold red code(myParrot[0]...)can it be simplifyed? 2)Can i use random to generate a given set of numbers?How? [CODE]public class Bird{ public static void main(String[] args) { int[] myParrot = new int[3]; [B][COLOR="Red"]myParrot[0]=1; myParrot[1]=2; myParrot[2]=3;[/COLOR][/B] for (int feature=0; i<myParrot.length; … Software Development java | |
I was told to use a while loop and call the nextNumber method until the input matches the corresponding fibonacci number, i.e. an input of 4 would give fib(4)=3. I'm getting fib(4)=1. Here is my code: [CODE] /** Class used to generate a Fibonacci number with a given input */ … Software Development java java-swing | |
How can i store strings in my program. #include<stdio.h> #include<stdlib.h> #include<string.h> #define p printf #define s scanf struct node { char nbook; struct node *next; }; typedef struct node *nodepointer; void addbook(nodepointer &head,char book) { nodepointer newnode; newnode=(nodepointer)malloc(sizeof(struct node)); newnode->nbook=book; newnode->next=head; head=newnode; } void display(nodepointer head) { if(head==NULL) { p("\nNothing … Software Development c | |
I Want To Make A Utility Like The Old DOS Command "rdisk" In C++. The Things I Want It To Be Able To Do Are: WIN: Be Able To Specify The Drive Letter (Like rdisk's /:Z) UNIX: Be Able To Specify The Mount Point (/mnt/rdisk or /media/somthing, etc) BOTH: Make … | |
![]() | Hi, i'm fairly new to .NET after getting tired of using VB6 due to the lack of functionality. I'm trying to create a log on method for a system which will involve users selecting a colour from a paint panel and then placing/drawing the colour in 1 or more tiles … Software Development vb.net ![]() |
how can i check if the number is positive or not by using switch statement please who know the answer help me and answer the question Software Development c++ | |
How do you read the default values from the appName.exe.config file? My application only reads these values on first installation. Subsequently, it reads the updated values sitting in the user.config file. Please assist. Thanks Software Development vb.net | |
I have to write a program that will print the chain of a number using a hailstone function, as well as with a range of numbers. That part of my program works perfectly but I cant figure out how to write a function that will find and hold the number … | |
Hi everybody. I'm trying to display web page that located in my computer or just (google web page). But everytime I'mgetting nullpointer exception. Please help me to figure out the problem. here is the absolute path that I'm using: [CODE]serg@serg-PORTEGE-Z835:~$ find $PWD -type f -name test1.html /home/serg/Projects/java/GUI/src/its/TestData/test1.html [/CODE] But the … Software Development gui java java-swing | |
any way to do this as the program not responds when trying to httpwebrequest. Dave Software Development vb.net | |
what I'm pretty sure I learned in school and what like every website said when I tried to look this up online was that the C++ code for generating a random number with floor: 1 and ceiling 100 (err I guess 101) is: [CODE]int number = rand() % 100 + … Software Development c++ | |
A black-hat cracker attacked to your computer and he took a very important sequence from it. Also, he replaced this sequence with five mutations of the sequence. The sequence has length of N and it's content are numbers between 1 and N (all the numbers one time) in a random … Software Development c++ | |
Hello! I have created a ChatClient in Visual C++ 2010 Express, cmd console only. Now I want to make it in Windows Form Application. I have come a long way but the thread function to start a new thread is a bit of a problem.. I get these errors: error … | |
This function of this find the median of three values inside an array. I was wondering if there's a more elegant solution to finding the median value between 3 values. [CODE] int mid =((p+r)/ 2); if(V[p]<V[r]){ if(V[p]<V[mid]){ if(V[mid]<V[r]) swapfunc(V[mid],V[r]); } else swapfunc(V[p],V[r]); } else{ if(V[r]<V[mid]){ if(V[p]<V[mid]) swapfunc(V[p],V[r]); else swapfunc(V[mid],V[r]); } … Software Development c++ | |
Hello, I've got this problem with an intro to Java class. To lay some background down, the professor teaches the 'theory' behind java, and nothing of actual code, so my knowledge is very limited here. The reason I'm here is I can't discern for the life of me how to … Software Development java | |
[B]Example: John Listed: John john JOhn jOhn JoHN JoHn johN jOhN[/B] How can i list like that all probability ? Software Development vb.net | |
So basically I have to import a file of names and then be able to sort them alphabetically I've managed to import the file using the followig code [CODE] import java.io.*; public class Name{ public static void main(String[] args)throws IOException{ String contents; File f = new File("names.txt"); FileReader fr = … Software Development java | |
I wrote a recursive function using System.IO stuff in order to copy a directory and all its contents to another location. I'm using Windows 7 and Visual C# 2010. It looked like a simple task but it really isn't. First, when i tried to run the code i got a … Software Development c# ide visual-studio | |
Probably a simple answer to a stupid question. But i cannot figure it out myself. I am using [CODE]Date.Now().ToString("D")[/CODE] on a label. Now i was wondering how you could use a similar string. But to add 1,2,3 ect... to that. So that i can have a label for each day … Software Development vb.net | |
I'm getting this error variable might not have been initialized on ch2 and ch3: [CODE]import javax.swing.JOptionPane; public class calculatorJava { public static void main(String[] args) { String ch, ch2, ch3, add1, add2, sub1, sub2, mul1, mul2, div1, div2, choice1, exp; int chans, chans2, chans3, addo1, addo2, subO1, subO2, mulo1, mulo2, … Software Development java java-swing | |
So I've currently been studying C++ independently for a couple weeks with the help of good old books. One of the exercises was to make a "games library" where you can see your list of games, add a title, or delete it (has nothing to do with games). The catch … |
The End.