64,152 Solved Topics
Remove Filter ![]() | |
Hi folks, quick question for ya. I'm working on getting a custom context menu to work in Firefox (it was written for IE with behaviors) and I can get the menu to pop-up, but i'm getting a javascript error when it does. (Also, nothing in the menu works, but I … | |
Hey there everyone I need a little help. Right now I am in the process of writing a program that uses subscripts and superscript but I dont have a clue how to get them. I am not even sure if they can be used in python so if any of … | |
im new with c++ and dont know much but want to save the answer to the program i made when i do it names the file ÿÿÿÿ also the type of file is just called file how can i make it like .txt or somthing also just ignore the useless … | |
I am sending a query result (query in CF8; data in MS SQL Server 2005) to an XML output (using the <cfxml variable="outputname"> and <cfcontent type="text/xml"><cfoutput>#toString(outputname)#</cfoutput> tags), using CF8. When the output (in SQL Server as nvarchar) contains special characters like "-40° to 70°C" the ° symbol causes the error; … | |
I have Created a Form1. On this Form I have a button that opens Form2 like this: [code] Form2 ^form2 = gcnew Form2; form2->Show(); [/code] Now if I click on Form1, Form2 will "dissapear" under Form1. What I wonder is, if it is possible to click on Form1, but stil,l … | |
i spent a long time trying to fix this probably somthing stupid but please help me. i dont see any problem but its probably somthing stupid. it compiles ok and when i run it it works until i get to the equations it prints somthing like 1.62111e-307 here is my … | |
Does anybody know how to setup PHP on Tomcat 5.5? I found this tutorial [URL="http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-5x/"] http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-5x/ [/URL] but i can't get it work. Can somebody help? Thank you | |
Hi.....is this code right......... [code=php]<html> <head><title>auto alto system</title></head> <body> <table> <tr> <td> category</td> <td><select name="category"> <option value="sercategory">service category</option> <option value="servicetype">service type</option> <option value="services">services</option> </select></td> </tr> </table> <?php include 'database.php'; $result = mysql_query("SELECT * FROM service_category "); while($row = mysql_fetch_array($result)) { echo $row['servicec']; echo "<br />"; } if($_POST['category'] == "servicetype") { … | |
[code=c++] #include <iostream> using namespace std; class Lock { friend class First; private: Lock() { } }; class First : virtual public Lock { public: void function() { cout << "function1" << endl; } }; class Second: public First { public: void function2() { cout << "function2" << endl; } … | |
Just thought id post here while i search google at the same time because well two brains are better than one :) The Asc function converts the first letter in a string to ANSI code, and returns the result. Syntax Asc(string) Thats the VB version of it, i need something … | |
[CODE]Linking... Main.obj : error LNK2001: unresolved external symbol "int __cdecl ConvertANSI(char)" (?ConvertANSI@@YAHD@Z) Debug/szStub.exe : fatal error LNK1120: 1 unresolved externals[/CODE] Defined: [CODE]#include <windows.h> #include <math.h> #include <iostream> using namespace std; int ConvertANSI(char sChar); [/CODE] Function: [CODE]// Credits to Dave int ConvertANSI(char szText[]) { return static_cast<int>(szText[0]); }[/CODE] Usage: [code] if(ConvertANSI(szChar) >= … | |
Hi I have Client, Owner, and Staff entity, they all are persones!! with additional criteria... Client ID, FName, MName, LName Owner ID, FName, MName, LName Staff ID, FName, MName, LName so Is there a concept of inheritance in RDBMS like SQL-Server-2005 if so how can I implement it. At lease … | |
Hi all, Nice to meet you here.... Any free downloadable tools are available for ASP ??? Please assist me to move forward with ASP... I did not found any tools here,please inform me if you know any tools.. Thank U Take Care Bye...................Bye | |
I completely rewrote the Stub i was writing because my VB -> C++ was shocking. VB Version: [code=vb] Public Function TempPath() As String Dim WindirS As String * 255 Dim TEMP TEMP = GetTempPath(255, WindirS) TempPath = Left(WindirS, TEMP) End Function [/code] The Left function returns a specified number of … | |
I want to code like this but I am limited the Problem is I dont want to brint the If statement out of the heredoc what is the solution [code]echo<<<ENDSTRING <div> if($i==2) $i is 2 </div> <div class='ProDividerA'></div> ENDSTRING;[/code] thanks Pedram | |
Hi All, I am trying to get this working. I have two drop down menus, you select one and the other is populated according to the selection from the first one. Now what I want to do is when selecting an item from the second drop down i would like … | |
I want to make an engine similar to [URL="http://unreal.com"]Unreal[/URL] for PC, 360, And PS3. Who Wants to help? | |
Hi, I am trying to use a 2D array to gather information from a dialogue box. The array has been publicly dimensioned in a module. Before the dialogue box is opened, there is data in the array, and thats fine, but as soon as soon as the dialogue box is … | |
Hi. Objective: Write a program that declares a 12*12 array of characters. Place Xs in every other element. Use a pointer to the array to print the values to the screen in a grid format. Listed below is my non-functional attempt. Any help would be most appreciated. Thanks, Molly [CODE=C] … | |
Hi, I set DataGrid1 column width as follows, but it doesn't effect when i run my program. [code] DataGrid1.Columns(0).Width = 3030.236 DataGrid1.Columns(1).Width = 1604.976 DataGrid1.Columns(2).Width = 1904.882 DataGrid1.Columns(3).Width = 1065.26 [/code] Thanks | |
I try to simply concat the arguments if they are not the same..... what is wrong with this simple code for concat??? [CODE] #!/bin/sh result=$1 shift while [ "$#" -ne "0" ] do next=$1 if [ $result = $next ] then : else $result="$result $next" fi shift done echo "$result"[/CODE] … | |
Please help with the following linked list program. Any help is good =] Use a linked list to do this program a store recieves shipmesnts of chairs at various cost. the store policy is to charge a 35% markup, and to sell chairs which were received earlier before chairs that … | |
Hi, In main.jsp i wish to display the data from the database( user information stored in user table ). my codein main.jsp is: [code=JSP]<h2> description about user:</h2> <% Statement st = null; ResultSet rs = null; rs = st.executeQuery("Select description from user "); %> <option value = "<%=rs.getString("description")%>" > </option>[/code] … | |
I am having difficulty setting my computer up in order to do JSP. Some people are telling me to use Jakarta others are saying Apache Tomcat. When I try to find the things to download there are so many options with little or not tutorials accompaining it. Could someone provide … | |
Does anybody know how to this question.... An election is contested by 5 candidates.They are numbered 1-5 and the voting is done by marking the candidate no on the ballot paper. Writea program to read the ballots and count the votes cast for each candidate using an array variable count.In … | |
My program currently takes three inputs from the user ( Wage, Hours, Tips ), then it calculates the gross income. Im brushing up on my c++ and Im not sure what functions I need to look for, but I know what I want to do. 1. I would like to … | |
Hi, I need a clue on how to design a Many to Many relational database. For example, I have a products table and a supplier table. each product can be supplied by many suppliers each supplier can supply many products how can I orgranise this data in the tables? I'm … | |
I started trying to teach myself how to program in python just a few days ago. I have been using a wikibook for non programmers and it has this piece of code as an example. I CAN NOT for the life of me figure out why it outputs the value … | |
Hi everyone, I have a problem to insert text into a text widget in Tkinter. I want to be able that each time some text is inserted (by means of an action -not directly by the user-) that text is displayed into a new line. However I can't figure out … | |
Hi all, Instead of passing the variables to the other page and coding mysql queries there.. Is it possible that we can use the mysql(DELETE...) query within the anchor tags in the same page? <a href >... to delete a particular row in mysql table? Like having a link called … | |
Hi I have been writing VB.Net for a few weeks, it has been going well but I am now stuck. I have multiple user controls on a form and I need a way to remove a selected one. I was hoping that something like this would do it [code] Private … | |
Hello, The following code works but I am having trouble formatting it with setw() and I am not sure if it possible to format it with a space so that the entire seat header fits on one line and for the rows to also fit on one line with spaces. … | |
String functions like strcpy,strcat,itoa...shows warning as "declared deprecated" in Visual Studio 8.0 instead it suggests to use functions which are enhanced secure versions of the same such as strcpy_s,strcat_s,_itoa_s.....using this in my file removes those warnings but i am using this same file in visual studio 6.0 here it gives … | |
Hi there, I'm quite new to AJAX and need some help on a peculiar firefox behavior regarding forms submission. I have have an input field ...<td id="ajax_field"><input type="text" name="hobby"></td>... I am adding an option to change this <input> to <select> if the user wishes to choose from a list instead. … | |
I am started a new with VB6 Access project. I am connected database with ADODB, DSN Method that Code Given below. '======================In module ============== '=================== Connection With Database =============== '====================================================== Public CNN As New ADODB.Connection Public RS As New ADODB.Recordset Public cString As String Public Sub Main() Set CNN = … | |
I'm making a virtual pets script. Example of problem: User 1 creates a pet named "PET". User 2 creates a pet named "PET". Should be: User 1 creates a pet named "PET". User 2 creates a pet named "PET" but gets an error saying that the name is already taken. … | |
First off i would like to say i am very new to vb, i am using vb 2008 express edition and while making a web browser (which is supposed to be one of the easiest things to do), i decided to some image links to some of my favorite sites, … | |
Help I am having the following error: error C2446: '==' : no conversion from 'int' to 'char *' When I tried the following it ignores my counter and I am not sure why. This is a serious problem because it creates and infinite loop that keeps printing. [code] if(char(seating[openSeat + … | |
Please help – I am having either some logic issues or formatting issues: My code is the following: [code] #include <iostream> using std::cout; using std::cin; using std::endl; #include <iomanip> using std::setw; using std::setprecision; #include <cstdlib> // contains prototypes for functions srand and rand using std::rand; using std::srand; #include <ctime> // … | |
The default copy constructor should work for the Polynomial class below because it does not contain any dynamic data types. However, when I create a new Polynomial via the copy constructor, it prints 0 for the value of each coefficient. How can I fix this? [CODE]#include <iostream> #include <vector> class … | |
Hey. What's better, i++ or ++i? Well ++i returns the value after it's incremented, but which is faster? (not necessarily for int, user-defined types with operator++ overloaded too.) | |
hello pals, I need a help with using re module to search and convert uppercase words in a string to title case Eg: [code] mystr='Hello everybody. Some times THERE ARE upper case words' #Results should be 'Hello everybody. Some times There Are upper case words' [/code] Hope you can give … | |
Hello, I want for the user to be able to click on a button that lets them add a <tr> full of <td>'s and <input>'s in the <td> tags. So I have code like: [CODE] <script type="text/javascript"> function addRow() { // Insert a row too the table with td's and … | |
I am currently testing replication on mysql 5.0.9 running on Win XP Pro on 2 servers , one as a master , and another as slave , basic master-slave configuration. The slave have 2.5 GigaB of RAM,300GB SATA2 HD & on Intel 2.4ghz Core Duo and the master have 1 … | |
Hello, i'm attempting to create a splash screen using the code snippet posted on this site(i.e. DaniWeb) - [URL="http://www.daniweb.com/code/snippet697.html"]http://http://www.daniweb.com/code/snippet697.html[/URL] However, I'm having some difficulty. It appears that the splash screen will continue to run w/out disposing itself. That is, the screen hangs and does not go away. Also, the screen … | |
I'm trying to update/refresh my data grid but it doesn't seem to update whenever there's a new entry. I've search the net about it and they were talking about databind(). I can't seem to have that in my datagrid. My intellisense only shows DataBindings not databind(). here's my code (when … | |
I am trying a multi select query in management studio and I am only expecting a result that is a single output per row, however, when I tried executing it. The rows I called repeated once. For example I have 2 rows in my column1 and when I multi-selected my … | |
hi , i have a simple problem here, that is how can i convert an Decimal integer into Hexadecimal integer and not in Hexadecimal string. I have wrote the following code and managed to get the output from the program. But for a certain reason i cant use it again … | |
i think it is not possible to print vertical lines along with text data in vb6..so i thot of transferring the whole contents from vb form to a word document. but now i dont know how to do that. i want to transfer the data in a specific tabular format. … | |
Hi, I have a subroutine(callMe) in Module1. I want to call "callMe" in other subroutine in Form1. I cant do it. I cant call subroutine in other subroutine. How do i do it. Thanks |
The End.