199,114 Archived Topics
Remove Filter ![]() | |
I am learning ASP.NET and have built a basic web site that I want to use as a template for future sites. I am wondering if I should build a code generator that will take as an input an xml file which describes the application and then generate the base … | |
I recently wanted to get involved in C++0x (Native, OS independent thread support?! Heck yes I want that!), and it seemed as though my compiler supports it. So, I added it in Code::Blocks, under Settings >> Compiler and debugger.. >> Global Compiler Settings >> checked "Have g++ follow the comming … | |
I have a requirement that my java application should open a web browser when user click on a button and thereafter the web browser open up a page in which user have two options "Agree" and "Not Agree", depending on the button he clicks on, some code comes in the … | |
![]() | Hey, I have a potentially very stupid question. I'm working on a project where I need to input a few numbers. What I would like to do is run it via the command line like, "java test 2 3", where 2 and 3 would be the inputs. I want to … |
I can't seem to find this answer anywhere. All i want to do is write a list of numbers to a file using the file.write() method however i wanted to format the numbers as if i had been using a print statement. When you print you can use %0.2f for … | |
HEY im pretty lost i need to make a program where user has in enter a name and after it has been entered it has to repeat the name 100 times can someone please help me im fairly new and i cant get it to work =/. this is what … | |
Hi I need some help I have a variable stored in db which is created when a new person is added it takes the day of todaysDate on the day they register and stores only the day I would like to use this date as the same day of every … | |
Hi, I have the following code to edit a .txt file, but it says there is an error on line 34, I am not sure what it is. Also there are bound to be other problems with the code, so please feel free to point them out. [CODE]<? if ($_POST['pw']!="") … | |
We have a problem similar to [URL="http://forums.techguy.org/all-other-software/947576-solved-java-applets-only-working.html"]this[/URL] Clean boot doesn't help and the unchecking of services doesn't help ether. We have a Java applet that's working correctly on xp but isn't working correctly on win 7. The applet runs and the browser asks you to accept the certifiket but the … | |
I'm having trouble finding information on the implementation of "or". I want to use it in the do while loop below. [CODE] do { cout << "Please enter 1 for random or 0 for pseudorandom." << endl; //bool, 1 is TRUE, 0 False cin >> random; } while (random !0||!1);[/CODE] | |
Can you kindly tell me why I am getting a runtime exception when trying to run this code? [CODE] Sub BtnNowClick(sender As Object, e As EventArgs) Dim myProcess As New Process Dim processFile As String = dlgFolder.SelectedPath Dim pyLocationDel As String = Path.Combine(dlgFolder.SelectedPath, "pdfmerge.py") Directory.SetCurrentDirectory(dlgFolder.SelectedPath) myProcess.Start(pyLocationDel) myProcess.WaitForExit() System.IO.File.Delete(pyLocationDel) End Sub[/CODE] … | |
can anyone help me add a title to a graph? the code i run to create the graph is [CODE][B]Dim strConn As String = connectionstring Dim conn As New SqlConnection(strConn) Dim sqlProducts As String = "SELECT * from VW_OEEBrakeDowns_ByYear where Year ='" & Me.lbyear.Text & "' and LineNumber =" & … | |
Errors: imagepng(): supplied argument is not a valid Image resource in /home/publicr/public_html/dynsigs/anything.php on line 29 Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/publicr/public_html/dynsigs/anything.php on line 29 PHP: [CODE] <php><?PHP function sql_sanitize( $sCode ) { if ( function_exists( "mysql_real_escape_string" ) ) { // If PHP version > … | |
i have a little form with a select list, and i am submitting the form every time i select an item. the problem is that, after selecting a value and submitting the form, the selected item doesn't remain selected. Is there any method to keep the selected item selected in … | |
Hi This is a code for placing a few labels. Now, I have a problem with my grid. I want the 0,0 point in the upper left corner but at the moment it is around the middle. Can someone help me please? [CODE]import javax.swing.*; import java.awt.*; public class test { … | |
i have many questions to ask with regards to C++. In our programming class we do not use the "#include<iostream.h>" or something like that and MANY MORE! :D it is a lot different from ours anywhere i look. :D here is an example of our program. :D [CODE] #include<stdio.h> #include<conio.h> … | |
Is it possible to store a document in a database and then be able to load it into VB and populate specific areas with data from textBoxes? like address or name details I suppose a bit like a mail merge ? | |
[CODE] IpPairVec matches; blah blah other definitions for (unsigned int i = 0; i < matches.size(); ++i) { drawPoint(img1,matches[i].first); drawPoint(img2,matches[i].second); const int & w = img1->width; //.........etc etc etc } std::cout<< "Matches: " << matches.size(); //This returns a number after every iteration which is continuous. //I am able to redirect … | |
hello everyone! I need help....a prof asked for our help to create a simple program for her assignment but i am having a hard time doing it for I am still not an expert in java.....here is the scenario..... [QUOTE]You are about to go to the Super market and would … | |
Hi, I just completed a beginner's course to programming, in the Python language. I am now enrolled in a VB programming course, and I am more of a hands on type person, so I'd like to get a head start on things before the start of my class. I am … | |
Hey Folks, Just starting out with vb.net and am struggling with an equation I have a fixed percentage 0.3% I need to multiply this by a number of months which varies 1 to 12 Having done this I need to add the percentage to a pre-determined number so as an … | |
I have some really big problems changing the appearences of my urls.. Cant seem to get this to work: I want to change this url: [url]http://www.enkelt-webdesign.dk/index.php?sid=1&titel=FORSIDE[/url] Into this url: [url]http://www.enkelt-webdesign.dk/Forside[/url] I have tried many things in my .htacess file now, and just dont get the desired result. This is what … | |
how would I go about assigning more than one value to a dictionary - rather like a list. for example I have students who each have courses. Each student name is a key (unique) e.g as a dictionary student = {"name":"course"} but students can have more than one course student … | |
Here is what I have so far... [code]import java.util.Scanner; public class tst { public static void main (String [] args) { Scanner stdIn = new Scanner(System.in); String sentence = "This is the test."; char response; // user's y/n response int ctr = 65; do { System.out.print ("Would you like to … | |
hey im a new coder and the reason im getting into coding is to do some mathematical tests ive created several mathematical formulas that i want to turn into a program i dont have the c++ know how to do this though. what im wondering is if anyone would like … | |
i create small application in struts but it give me following error : SEVERE: Servlet.service() for servlet jsp threw exception java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491) at org.apache.struts.util.MessageResources.<clinit>(MessageResources.java:57) at org.apache.struts.taglib.html.FormTag.<clinit>(FormTag.java:93) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126) at org.apache.jsp.Index_jsp._jspx_meth_html_005fform_005f0(Index_jsp.java:109) at org.apache.jsp.Index_jsp._jspService(Index_jsp.java:87) at … | |
[CODE] #include<iostream> #include<windows.h> #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<fstream> #include<string.h> #include<windows.h> #include<fstream.h> #include<ctime> void checking(); void display(double); enum check{correct,incorrect}; class words { public: char word[20]; check cword; check cchar[20]; }; void main() { ifstream fin("Book.txt"); char ch; char wrd[20]; time_t start,end; double dif; cout<<"\n Enter the text below. Press 0 to finish … | |
Doesn't appear that a radio button has a value property other than true/false so I was hoping someone could help me out with this one. I'm writing a method applied to the "CheckedChanged" event. The method is applied to all of the radio buttons, so it always triggers regardless of … | |
please help me understand when does one use *n=m and when to use n=&m [code]int *n,m; *n=5; m=2; *n=m;[/code] //gives an error | |
hi, i got a message board kit that connects to the computer (i talked about it here: [url]http://www.daniweb.com/software-development/vbnet/threads/379541[/url]) and now (i hope) its working. I want to make a code that when i press on a button its will send the correct hour & date and then its will update … | |
hi, i bought a Programmable Message Board kit, this kit connects to the computer and i can send from the computer massages to the kit LCD screen. I got an sample file, that comes with that kit. My problem is that this sample file are an old Visual Basic 6 … | |
I am not really sure where my syntax error is. I have gone over it several times and it appears everything is right and I dont think I am using any reserved words. Any help would be greatly appreciated. Every box is TEXT in access for now even fields that … | |
This isn't really a PHP question but I couldn't find the right place for it. I'm getting these strange characters -  - in my source code before the Doctype tag. I've encountered this before when working in Notepad++ using ANSI as UTF-8 or similar formats with BOM for encoding. … | |
I'm Using [ICODE]fwrite[/ICODE] to print the contents of a sturcture in a file. [CODE] #include <stdio.h> #include <stdlib.h> struct com{ int code; char* name; }; int main() { struct com py[2]={{21,"Monty Python"}, {22,"Python lang"} }; FILE * fp; if((fp=fopen("data.txt","w+"))==NULL) exit(1); fwrite(&py,sizeof(struct com),1,fp); /*int i; for(i=0;i<2;i++) fprintf(fp,"code:%d,name:%s\n",py[i].code,py[i].name); */ fclose(fp); return 0; … | |
I have this code for mysql, and in my table i have date entries in my date field from my date table ....i want to make use with between clause ...below is my sql statement..but it displays nothing even there are dates in between... SELECT * FROM date WHERE date … | |
Can anyone help on how to show a message box showing that existing record has been entered in database if i tried to enter the new record. However, if the input is new record (record added), the record is saved into the database. I'm using visual basic 2008 and Microsoft … | |
Pls how do I write d code for find and replace in c# for a notepad program | |
Can someone please show me how to show my paypal balance in a textbox | |
Error directive : Must use STDCOMP.H This error come out when I try to link various .cpp files and a .h file with borland 5.5 any help ??? | |
Hi all i am creating a project in to which i will tell user to upload pdf all functionality is complited the problem is i have one image box where i have to show a first page of the pdf so anybuddy who knows how to convert foirst page of … | |
Hello every one, i am an seo person but i want to learn php too as a beginner. so please advice me some helpful techniques to learn it from the beginning. thank you ![]() | |
[CODE] Dim sw As StreamWriter Try sw = File.AppendText(CurDir() & "\deskimages.txt") sw.Write(TextBox1.Text & " " & TextBox2.Text) sw.Flush() Catch exc As Exception MsgBox(exc.Message) Finally If Not sw Is Nothing Then sw.Close() End If End Try Dim tw As IO.TextWriter tw = System.IO.File.CreateText(CurDir() & "\profiles2\" & TextBox1.Text & " " & … | |
I try to install smarty and when I write the require code I cannot find the path [CODE] require_once ('d:/wamp/bin/php/php5.3.5/Smarty-3.0.8/Smarty.class.php'); [/CODE] or if you could tell me which is the correct syntax in the ini.php page. Thanks ![]() | |
Dear experts, i need your kind assistance of the following question: Build a simple banking simulation around the BankAcct class. Require to write a program to act as the "Bank", which provides the following services: a. Create new account. A new account will be created, with a unique bank account … | |
anyone have a link? I want to display data on the GUI that I made using NETBEANS.. I started learning java today, I got error non-static variable jTextField1 cannot be referenced from a static context. [CODE]Connection con = DriverManager.getConnection("jdbc:mysql://localhost/sample", "", ""); Statement stmt = (Statement) con.createStatement(); String select = "SELECT … | |
is it possible for me to send SMS by using PHP code ?? If yes, could anyone guide me how can i do so ?? Thanks | |
[ATTACH=RIGHT]21994[/ATTACH]The latest in a series of round table industry events held in the UK, and featuring a panel of experts in the field of commercial software development, has warned that ignoring the popularity of casual and mobile gaming is a big mistake for any successful digital development strategy. Interestingly, it … | |
I'm a newbie in PHP, I have a dynamic textbox which looks like these name="name1" name="name2" name="name3" the number of fields depends on how many user wants but the problem is on the SQL script, I need to put the $ctr besides "$_POST[name]" in order for the compiler see all … ![]() | |
Hello My task is to write a procedure which has to get information about price of a product and updates the data base for produc_id=777. if product_pirce < 400 then product_price=500 if product_price > 400 then product_price=300 IN PL/SQL: [CODE] create or replace procedure change_price is begin if (select price … |
The End.