199,114 Archived Topics
Remove Filter ![]() | |
Hi...I need to write dynamic menu... which will take all items from ini/cfg gile cfg file will look like that: [CODE] TEMPLATE_NAME=LEX UPDATE PL=Czesc to jest update. ENG=Hi this is uptade. TEMPLATE_NAME=WINDOWS ERROR PL=Blad ENG=Error! . etc . . [/CODE] Items will be read to dropdown menu called TEMPLATES.. I … | |
Alright, another post. This one seems to be the most complex thing I have ever tried. So, I am making a site where a user can post jokes and vote on them. They can only vote up, so a digg like system. I want the users to be able to … | |
Can someone pls pls help me??really need help creating an ERD (Database Management System)? ok so i can create an ERD for the first two statement, im just stuck on the third and fourth statement, i dont how to draw them, someone pls help me.. Given the following business rules, … | |
Hi, I was told to build a application that will encrypt data and migrate data from one database platform to another platform. Please i do not hae a clue where to start from as i am a newbie to database. Any info will be well appreciated | |
I read an article about versatile webcam and I successfully worked it out. The thing is I can't save the image from the pictureBoxDisplay to SQL. Please I really need help on this. I'm converting the pictureBox into a byte array but there's an error in this line (line 123), … | |
Hello, I'm trying to open a URL wit the default browser in C++ using ShellExecute(), however I'm unable to do this, even using the example into the mocrosoft site. I'm not sure about what I'm missing. I have: [CODE] #include <windows.h> ... private: System::Void Go_home_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^ e) { ShellExecute(NULL, … | |
Hello all...first-time poster here, and I was wondering if any of you fine folk can help me out with what is surely a simple task, but something very confusing for someone just starting off with Java. In a nutshell, I am creating a simple mobile game where a user is … | |
write a program to read in a list of exam scores (integer percentage in the range 0 TO 100) and to output the total number of grades as well as the number of grades in each letter- grade category (90-100=A, 80-89=B, 70-79=C, 60-69=D and 0-59=F) and what percentage of the … | |
Hi.. I want to take the max value of the substring of a varchar field having values as SN1,SN2....SN10.I used the query as following [CODE]select max(substring(st_no,3,4)) from tbl_st;[/CODE] I am getting the max value as 9.I want to get 10. If somebody knows please help me | |
It's only reading every other line. It's supposed to print out: 28 80.0 22 1 2 2 3 1 3 But it's only reading: 80.0 1 2 1 [CODE]//Load button - #=daynum, $=wallet, @=inventory, &=employees, !=customers if (btn2.getText().equals("Load")){ int id=0; File file = new File("savefile1.txt"); BufferedReader reader = null; try … | |
Hi to all, i created following table ------------------------------------- create table employee(name varchar(20), dob datetime) ------------------------------------- I want to extract names of all months from 'dob'. for that i wrote following query ------------------------------------- select datepart(month, dob) from employee -------------------------------------- it works and shows all months but in number format, i want … | |
Hey. I'm trying to open a dir under safe mode. and i keep getting this error : Fatal error: Uncaught exception 'RuntimeException' with message 'DirectoryIterator::__construct() [<a href='directoryiterator.--construct'>directoryiterator.--construct</a>]: Unable to access /home/mypath/mysite.com/public_html/path/to' in /home/mypath/mysite.com/public_html/site/loaddir.php:7 Stack trace: #0 /home/mypath/mysite.com/public_html/site/loaddir.php(7): DirectoryIterator->__construct('/home/mypath...') #1 {main} thrown in /home/mypath/mysite.co/public_html/site/loaddir.php on line 7 my question is : … | |
Now i am doing the split after Readline method. But, my coding always got problem. Hope someone can help me... Here is my coding [CODE] file = new StreamReader(fileOpen.FileName); StringBuilder sb = new StringBuilder(); while ((line = file.ReadLine()) != null) { //MessageBox.Show(line,"TEST"); //textBox7.Text = line; sb.AppendLine(line); } textBox7.Text = sb.ToString(); … | |
Hi All I am new to XSLT development and have stuck at simple but essential point. I want to remove the content which is in between two specific comment tag <!--E-->Text which need to remove<!--/E--> I do try with the given below code [CODE]<xsl:template match="comment()"> <xsl:text disable-output-escaping="yes"><</xsl:text><xsl:value-of select="."><xsl:text disable-output-escaping="yes">></xsl:text> </xsl:template> … | |
Hi all, I'm using a vector to store x,y,z values for objects to be draw using OpenGL. I manipulate my vector in a function and then pass it to the method which uses it to draw objects. Basically the value at an element is supposed to be '-2' but if … | |
anybody know how to load 1 column data from accessdatabase into combobox item...i mean, i have 1 table " info_table and 1 column "product..so in product column have data like nokia and sony"..i want nokia and sony to be load into combobox item or dropdownlist...anybody help me... | |
Hi, When we define any integer array like int a[3]={1,2,3}; then it will assign the values as a[0]=1, a[1]=2, and a[2]=3 But, when we define any character array as char a[3]={'a','b'}; then compiler here automatically consider '\0' null character to represent the end of the string So, my question here … | |
I made a simple slide show using jquery and "setInterval() " function. Everything working fine but I just need to start this serInterval function only after the div or page loads completely. I will post my code here ... [ICODE] 1. $(document).ready(function () { 2. var s=setInterval('slide()',3000); 3. }); 4. … | |
How can i rewrite set::inser() function,using a vector::insert() : [code] class Set { std::vector<T> set; public: void insert(const T& t) { set.insert(set.end(), t); } [/code] I tried to insert them at the end,but it wont work corectly. | |
hi im having errors with listview binding navigation specifically in last >> and first << here's my code [CODE] Dim inc As Integer Dim MaxRows As Integer Dim dr As DataRow Dim ds As DataSet Public Sub navigaterecords() txtMed_ID.Text = ListView1.Items(inc).SubItems(0).Text txtMed_name.Text = ListView1.Items(inc).SubItems(1).Text txtfname.Text = ListView1.Items(inc).SubItems(2).Text txtMname.Text = ListView1.Items(inc).SubItems(3).Text … | |
I'm seeking recommendations for a CMS for a new community/ social networking website. The following technical criteria are desirable: [LIST] [*]Open source (for customization and low cost). [*]Linux-Apache-PHP-MySQL based (technologies I already know). [*]Job board module, i.e. employers can advertise jobs and members can manage resumes and apply online. [*]Forums. … | |
[COLOR="Red"][B]The flowchart is on the attachment. Please check it out[/B][/COLOR] [COLOR="Red"][B]I also get this error: error: cannot convert `__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' to `char' in assignment|[/B][/COLOR] [CODE]/*************************************************** The following program will take user's input and check whether it is in the following language: <S> ---> a <B> | … | |
Hi I'm trying to parse a recordID from a table of data in one page and pass data based on the chosen record to another page. The data is taken from a database and I've used recordsets: I have one recordset called rs_search which contains data from 2 tables called … | |
Hmmm... I'm trying to call a class and it doesn't work and i get this error /home/XXXX/Desktop/language/main.cpp|13|error: expected constructor, destructor, or type conversion before ‘.’ token| The syntax is: [CODE] print.base="print"; [/CODE] this simple method call returns an error. Am i really doing something wrong, seeing as i've already looked … | |
Say I have 2 input fields, both containing dates with the format (dd mmm yyyy), for example, 07 Mar 2010 (Yes, there is a space between date, month and year). Well basically I need the second input box to calculate 60 days (not 2 months) after the first text box. … | |
Hi! I'm pretty far from the best coder in the world, but I recently moved to a new host and re-uploaded my files. I was clicking around to check that they still worked and noticed one of the pages wasn't loading properly anymore. When I look at the code, it … | |
Hi. I would like to achieve an effect similar to how strings in between the quotation marks in Visual C# are colored. I would like to italicize the text for anything between two asterisks (Including the asterisks themselves) inside a RichTextBox. For example: This is not counted [I]*This is counted*[/I] … | |
I need to learn ajax can i have some material to learn...plz send me or give me useful link to download some materail | |
Hi all. Can anybody point me in the right direction as to how to implement the editor that opens up when I click Start new thread or post reply? Also when displaying the replies how is the feature with syntax highlighting and indentation for the code snippets implemented ? Thanks. | |
[CODE]#include <iostream> #include <cmath> #include <iomanip> using namespace std; int divides(int,int); int main () { int count = 10; //int prime = divides(count); int p = 0; // number of primes cout.setf(ios::fixed,ios::floatfield); cout << setw(6) << "NUMBER" << "\t" << setw(8) << "DIVISORS" << endl << endl; while (count<=50) { … | |
Hi, I'm just learning to program and I'm stuck on a basic problem, printing today's date in a form typified by (e.g.) 28 February 2011 [CODE]import java.util.*; class Date { int day, month, year; } class PrintToday { static Date thisDay() { Date today = new Date(); GregorianCalendar c = … | |
[url]http://www.boost.org/doc/libs/1_46_0/libs/smart_ptr/shared_ptr.htm#ThreadSafety[/url] This section somewhat confused me, in my code I have a matrix of shared_ptr's pointing to an entirely thread-safe class. But the shared_ptr documentation says it is only as thread-safe as the built-in C++ types. Does this mean that if I read/write to my thread-safe class using shared_ptr's at … | |
I really appreciate all the help i've been getting on my project lately from you guys, and hopefully this will be the last problem. I've written an applet, and it uses ActionListener to detect when the button is pressed. The program is [I]supposed[/I] to go through my methods when the … | |
Hi, is here any other issues then readability between two functions below? [CODE] void getNames(int) { .... } void getnames(int meaningfullName) { static_cast<void>(meaningfullName); ... } [/CODE] | |
I've tried every way I can possibly see to try and convert the value from the numctrl to a decimal but the problem lies with the retrieved value being a float. I cant covert the float to a string first because it looses the trailing 0 in values such as … | |
Good Afternoon, Can someone help me with this program which is an assignment for a class. I'm new to C++ its my fist course in computer science. The assignment details are: 1. The function removeAt of the class arrayListType removes an element from the list by shifting the elements of … | |
Hi Guys, I am trying to make a simple connection from my desktop(local computer) with Oracle 11g which is installed on windows server 2008 R2.Now I have problems with the ConnectionString. could you please let me know how I set a correct connection String while I have parameters like these: … | |
I have a script that I am using to retrieve zip codes within a certain radius using a foreach php statement. However, with these zip codes that I am getting, I want to add a comma between each value (for example: 11111,22222,33333) to use in a SQL query using the … | |
I am trying to create a page where a registered user can go, view the information from their profile, and update that information if necessary. I've started putting something together however it's inefficient in my opinion. Here's what I'm trying to figure out: [LIST=1] [*]Is there a way to check … ![]() | |
I copied this code from some forms that work and changed some information to apply to the new situation but something is wrong. The form "editreg.php" seems to be working fine. It populates the fields correctly. When it gets redirected to "editregsubmit.php" I get the message that the record was … | |
I want to add a series of buttons, but I don't know what it is called, which makes it difficult to look into. In my scenario, I want a list of four buttons. Each button has an on or an off status (pressed or unpressed). The user would be able … | |
I binded data to a combobox using a dataset. [CODE] companycb.DisplayMember = "company"; companycb.ValueMember = "visitorVisitID"; companycb.DataSource = ds.Tables["tblVisitorVisit"];[/CODE] I need to remove the duplicate values from the combobox. Is there any other way instead of doing it using an SQL Distinct query? | |
I have made a small example to illustrate my problem. I have overwritten the createToolTip method for a custom JComponent (eventually it will depend on where abouts the mouse is in the component as to what text to bring up) At first I thought it wasn't being called, but i … | |
Hey guys! I am working on a project using single linked list and currently on the last task which is overloading the += operator. My merge from a+=b is inefficient because I am having a memory link problem and its slow when it used in list size of 100000. Please … | |
will find number which is used frequently(often) in x array [CODE]int i; int x[i],frequency[i]; for(int i=0;i<3;i++) { cin>>x[i]; frequency[i]=0; } frequency[i]=0; for(int i=0;i<3;i++) { frequency[i]++; cout<<x[i]; } frequency[i]++; cout<<x[i]; cout<<frequency[i]; [/CODE] what should I do extra | |
I am in the process of creating a website in PHP/mySQL and the next thing I wanted to tackle was creating an option for users to be able to upload a small avatar (maybe max of 50x50 let’s say). I’m not as familiar with how images are stored/retrieved in a … ![]() | |
Hello, I have to finish my assignment. I have different console exercises. I can solve it. but I have to combine them so that they will execute one after another. I do not know how to do that. in my exercise, I make one program to declare class and other … | |
I'm trying to make a program where it displays the users name based on what they entered. For example if the user enters: John Average User the output would display User, John A. And if the user enters John A. User the program would output User, John A. The problem … | |
Hi Guys, I was wondering how one would write a C program that calculates the value of a cosine function without using any library functions from <math.h> I need the outputs to turn out like this Case 1: cos(-1.000) = 0.540302303792 Case 2: cos(1.000) = 0.540302303792 Case 3: cos(1.500) = … | |
compiler gcc4.5 minGW OS : windows xp sp3 I try something like this [code] template<typename T, typename U> class fastRowSum { public : fastRowSum(); typedef void result_type; //what is this line for? template<typename inputItr, typename outputItr> void operator() (T const VALUE, inputItr ref, outputItr out) { error = VALUE > … |
The End.