199,114 Archived Topics
Remove Filter ![]() | |
Hello, Unforunatly had to replace my hard drive on my laptop so having to start from scratch, i already had eclipse installed, so when i went to reinstall, downloaded JRE and JDK and 32bit eclipse (my machine is 32bit vista) but i get the error message [I]"A java Runtime Environment … | |
Hello! I would like to ask for tips on how to handle database concurrency in a client server application in c#. I am using SQL Server 2008 r2 as my server. I have minimum to zero ideas on how to handle such and would really appreciate any help that you … | |
[CODE]insert into po_detail (item_code,qty,item_rate,item_tax) select a.item_code,qty,item_rate,item_tax from mr_detail a,mr_head b where a.mr_no = " & combo_mr_no.Text & " and a.mr_no=b.mr_no""[/CODE] what's the error in the above code ? | |
'i am trying to get f_name + m_name + l_name three diferent columns combined from data grid view on cell content click into combobox. [CODE] Private Sub bugdgv_CellContentDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles bugdgv.CellContentDoubleClick Dim row As Integer = bugdgv.CurrentCell.RowIndex frmbug.bugcmbdeliver.Items.Clear() Try obcon.cmd.CommandText = "select d.del_name from … | |
I've already got a game project going, using C++ and SFML. I'm planning on releasing it digitally online using PayPal. Question is, how do I keep the game from being pirated? Someone could easily just make a copy of the game and its files, and they've got two versions of … | |
I want to retrieve email from database and send message to all the email address. I have written code for that but it is not working. I want someone to help me look at the code below and point out where am making mistakes and the correction. The first page … | |
Sorry to be a major pain in the ass. Im new to java and trying to figure out what to put in the path under Enviromental Variables. Heres the location of my javac. C:\Program Files\Java\jdk1.7.0_03\bin What would i write exactly in the Path location? Regards, Matthew ;) | |
I want to write this function integerPower(base, exponent) that return the value of base^[I]exponent[/I] For instance integerPower(3, 4) = 3*3*3*3 The function has two parameters my question is how can I use the for loop to control the calculation? It's not that hard to use the for loop when the … | |
Hello community members!! I have the following question: Is it possible to go through all the buttons in a form using any kind of iteration? I found that i can use this: [CODE]int x = 0; foreach (Control control in this.Controls) { if (control is Button) { if (control.Text == … | |
so this is what the output should be: A b C d E f G h I j K l M n O p Q r S t U v W x Y z heres what ive done so far class za { public static void main(String[]args) { String x="abcdefghijklmnopqrstuvwxyz"; … | |
Hello, How to program browser detection in php ? I would like to detect the browser automatically, then use if browser = ... then ... else if browser = ... then .... endif How to do so ? Thanks. | |
Hey can someone help me with my java program you have to A-Z to Z-A here s what i ve done so far: class az { public static void main(String[]args)throws Exception { String x="abcdefghijklmnopqrstuvwxyz"; int ctr; for(ctr=1;ctr<=26;ctr++) { char z=x.charAt(26); System.out.print(z); } } } | |
My .Net Code [code=c] # connDO.Open(); # SqlCommand comm = new SqlCommand("DOrders.dbo.p_Update", connDO); # comm.CommandType = CommandType.StoredProcedure; # daDirectOrders.UpdateCommand = comm; # # comm.Parameters.Add("@UOrderNumber", SqlDbType.Int, 32, uOrderNumber.ColumnName); # comm.Parameters.Add("@ConfirmationCode", SqlDbType.VarChar, 50, confirmationCode.ColumnName); # comm.Parameters["@ConfirmationCode"].SourceVersion = DataRowVersion.Original; # comm.Parameters.Add("@Carrier", SqlDbType.VarChar, 50, doCarrier.ColumnName); # comm.Parameters.Add("@Tracking", SqlDbType.VarChar, 50, doTracking.ColumnName); # comm.Parameters.Add("@OrderID", SqlDbType.Int, 32, … | |
Hey guys, I have the idea of creating a custom Java terminal, I know what I need to do for commands, etc, but I have no idea on how to style it like someone would with a UNIX terminal/Windows Command Prompt, or prompt it so that whenever a new line … | |
hi everyone, I wish to share the mdf file on the network so that other computers can use the file to capture or retrieve the data. Is there any way I can do this on MS SQL SERVER 2005? | |
I have a simple query, I am using code for "QUEUE IMPLEMENTATION USING SINGLE LINKED LIST" [url]http://ds4beginners.wordpress.com/2006/12/17/queue-implementation-using-single-linked-list/[/url] for my program but having an issue if you pleas help me. [CODE]public class queue { gcroot<message^> msg; queue* next; public: queue(); queue* enqueue(queue*,message^); queue* dequeue(queue*); void queue_display(queue*); void setbinding(String^); String^ getbinding(void); }object, … | |
I saw the movie from the link[URL="http://channel9.msdn.com/Events/GoingNative/GoingNative-2012/Keynote-Bjarne-Stroustrup-Cpp11-Style"]http://channel9.msdn.com/Events/GoingNative/GoingNative-2012/Keynote-Bjarne-Stroustrup-Cpp11-Style[/URL] Could I find something like std::async from boost?Thanks a lot | |
Hello guys i'm getting a massive memory leak which over period of 1min its increase alot and always increases. How to i prevent the memory stacking? I looked all around the internet as im not just posting coz im lazy, i cant find a solution for my code. [CODE] Private … | |
HI, i have designed a website for online discussions using wordpress 3 as the front end and PHPBB3 for the forum part, my trouble is its not sending email alerts when a new comment is posted in the forum although every member is subscribed to forum, and even when here … | |
I came across a problem that I hope you guys can help me with. On register I generate a random salt, hash the password with it and a system salt, and place it in the database. On login I generate a hash from the input password the salt that is … | |
I can't seem to figure this out- I have a single text box that has text in it. When I put the mouse in it and click it, I need the text to clear so new text can go in. Does anyone have a sample? TIA | |
Hey guys I am trying to create a game where when a condition is met the the Activity is called and now runs level 2 conditions, and so on as the levels increment. The problem is that the level integer which stores the level always resets to the initialised value, … | |
Below dynamic query will set StartDate and EndDate to 1st of March to 30th April as UK financial year. DECLARE @StartDate DATETIME DECLARE @EndDate DATETIME SET @StartDate = DATEADD(dd,0, DATEDIFF(dd,0, DATEADD( mm, -(((12 + DATEPART(m, getDate())) - 4)%12), getDate() ) - datePart(d,DATEADD( mm, -(((12 + DATEPART(m, getDate())) - 4)%12),getDate() ))+1 … | |
Recently I made a little program that could open files/exes/links. (facebook, vs 2012, ect ect) But it was in the command prompt. Worked perfect. I decided to make a forms application to do just the same, except through buttons instead of user input. But I keep running across this problem... … | |
hi anyone please send the php code for display the live currency conversion rate for all over currencies in the world thank you | |
Hello, This isn't the typical "I wrote a heap sort that doesn't work, help me please" thread, instead, I'm one step before that. I'd really like to [B]understand[/B] the innards of a heap sort before I attempt to write one. I'd like to give it a go from scratch, or … | |
Hello, So I've got trouble with a program I'm working on. The program is supposed to register studends and teachers to a register, and when I close it, I want to save all data with DataInputStream/DataOutputStream. So when I open the program, I want to see what I've registered. It's … | |
I want to store an "Intptr" type value in a file and later retrieve it to pass in a function... Can any one please guide , how this can be done?? The value retrieved by the file is of type string... Please guide how can I manage it... | |
I have a requirement to allow a user to upload a PDF document to my webserver then the webserver should send the PDF documnet to a printer driver which has been installed on the server using the print to file function to generate a new file called (original name).prn and … | |
hey, today my teacher told us to use pipe and fork to write a program without teaching us anyway... if any would recommend some good tutorials would be great~!! and what does fork a child mean really mean(example would be great), and how write to a pipe? everything is done … | |
Hi, Can anyone go through my code to brush it up?I got the correct output,printed below, but i need some polishing of the below loop assignment. 1.Should i be using 2 while loops? 2.Regarding the [B]output[/B]-How can i align the verticle columns and the output neatly. [ICODE]public class MK{ public … | |
Hi! I was wondering if there is a way to mock Date and Calendar objects for testing purposes. In other words I want to programatically be able to change what new Date() and new Calendar() etc. returns independent of the system date. Something like setting the date for the jvm … | |
So i dont know why i am getting this error, here are my 3 classes plus the tester edit: I get the null exception after i run the program, --------------------Configuration: <Default>-------------------- Exception in thread "main" java.lang.NullPointerException at University.offerCourse(University.java:35) at StudentCourseTestProgram.main(StudentCourseTestProgram.java:53) Process completed. [CODE]import java.util.*; public class Student { private String … | |
Hello everyone, i am a current PHP programmer. I am wanting to start C++, is there any good websites i could start to learn? Or is there any tips for programming with C++? Also what is C++, what is it used fore etc.. Thanks, Marais | |
By running following code and I got following output: At begining of default constructor, theApplet.isDisplayable()=false Start Init here... At begining of init(), theApplet.isDisplayable()=true At begining of constructor, theApplet.isDisplayable()=false End Init... Two questions: 1. Does anybody know why isDisplayable() is changed without do anything on it? 2. Why does the JApplet … | |
Hi All, I am trying to develop a web application in which I have provided a facility for login and logout. The problem I am facing is that I can allow user to log in succesfully, but when user clicks on the logout link and comes to login page and … | |
I want to create and write to file on a machine which is connected to my network... The code is: logfile = new StreamWriter("\\\\192.168.15.237\\C\\AdminTrace\\" + " " + DateTime.Now.ToShortDateString().ToString().Replace("/", "-") + ".txt", true); the IP address corresponds to the machine on which i need to create the file... and the … | |
I have two different forms. one has a listbox and the other has a masked textbox. the masked textbox is used as a login and i would like the masked textbox to be checked against the listbox items to be able to "gain access" and login Any ideas? | |
Hello, I recently turned in this assignment and I didn't received full credit. He wrote "It could be better." I'm not sure what to change. Here's the assignment: Write your own driver for a stack class. Instantiate one stack container object. Your driver generate random strings (uppercase letters) to push … | |
pls help me tell whats wrong here is the code of my files i am a total newbie......pls t.jsp [CODE] <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <script type="text/javascript" language="javascript" src="ah.js"></script> </head> <body> <table> <tr> <td width="36%">Userid j</td> <td width="33%"> <form name="f1" … | |
Hello to all of you guyss... I'm sharing this cause i can't find the cause of inputs to become null.. i have this [COLOR="Red"]addresident.jsp[/COLOR] jsp that contains this popup [CODE] <tr id = "Married_Form" > <td>Wife's First Name</td> <td><input id = "fname" type = "text" size = "16" maxlength = … | |
Not sure if it is possible but is there a way to multiply,add,or subtract values in a tuple? Say for example I have: [CODE] a=raw_input("enter 2 numbers separated by a /: ") #5/2 entered b=a.split("/") c=a[0]+a[1] print c [/CODE] The value comes out to 52 which is obviously wrong. Is … | |
Hello How do i reset 2 textbox text of out four textbox at random avoiding a textbox whose text = 'A' for clarification. i have Textbox1.text = "B" Textbox2.text = "C" Textbox3.text = "A" Textbox4.text = "D" how do i set an empty value "" to any two textbox at … | |
I'm new to Visual Basic and I am trying to set up a currency converter. I have converted a currency to UK Sterling on the first form and on the second form I want to have the same label with the same amount of UK Sterling as on the first … | |
![]() | Can anyone help me with my homework? Create a Java class named ArrayTest with a method called arrayCombiner that creates three arrays of size 10. The first array should contain the values 1, 3, 5, 7, 9, 11, 13, 15, 17, and 19. The second array should contain the values … |
What is the best way to change the following program into functions? Can someone show me as a good programming style? [CODE] #include <iostream> #include <string> #include <ctime> using namespace std; // Variables char R, playing, again; int roll, roll1, roll2, roll3, round, money, wager, win, loss, initial; string name; … | |
So I'm fairly sure I have everything in the correct order, it compiles correctly, but when I try to run I just crash after the first Employee ID input. I've tried all i can think and have searched the web yet can't figure out why it crashes. [CODE] #include <stdio.h> … | |
Hi all. I am having trouble with one of midterm practice problem questions again. I need to be able to get the First, Middle, and Last Name using the count function. However, my professor wants us to be using a name with more than one middle name, and I am … | |
Guys, need some help regarding this issue, i have a php file, which requests an invoice_no(invoice.php), then searches the database and returns the other value associated to it(eg,document_no,PO_no) to another php file(displaydata.php). Now the problem is, i wanna send the invoice_no not only to displaydata.php but to another file test.php. … | |
im working on this piece of code and for sum reason i cannot understand why i keep getting this message can you please advise me thanks in advance [CODE] 'sql statements strsql = "insert into c_security_user (user_name, user_pwd,) values ('" & txtuser.Text & "','" & txtpass.Text & "')" Dim acscmd … |
The End.