199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for VasquezPL

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 …

Member Avatar for jonsca
0
284
Member Avatar for epicrevolt

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 …

Member Avatar for epicrevolt
0
145
Member Avatar for m1m2m3m4m5

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, …

Member Avatar for debasisdas
0
322
Member Avatar for get2tk

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

Member Avatar for debasisdas
0
99
Member Avatar for AngelicOne

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), …

Member Avatar for AngelicOne
0
1K
Member Avatar for VanHackman

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, …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for shinbojack

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 …

Member Avatar for shinbojack
0
158
Member Avatar for Sheena26

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 …

Member Avatar for Sheena26
0
497
Member Avatar for divyakrishnan

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

Member Avatar for Momerath
0
113
Member Avatar for Slyvr

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 …

Member Avatar for Slyvr
0
3K
Member Avatar for deolalkar_pooja

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 …

Member Avatar for Momerath
0
82
Member Avatar for EricIskhakov

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 : …

Member Avatar for EricIskhakov
0
248
Member Avatar for Kath_Fish

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(); …

Member Avatar for Kath_Fish
0
327
Member Avatar for mmmathur

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">&lt;</xsl:text><xsl:value-of select="."><xsl:text disable-output-escaping="yes">&gt;</xsl:text> </xsl:template> …

Member Avatar for mmmathur
0
635
Member Avatar for gavGaz

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 …

Member Avatar for jonsca
0
79
Member Avatar for arezz09

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...

Member Avatar for cyberdaemon
0
69
Member Avatar for cutedipti

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 …

Member Avatar for gerard4143
0
275
Member Avatar for rajeesh_rsn

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. …

Member Avatar for Airshow
0
114
Member Avatar for vbx_wx

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.

Member Avatar for dexblack
0
140
Member Avatar for bettybarnes

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 …

Member Avatar for bettybarnes
0
159
Member Avatar for sendres

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. …

Member Avatar for Mustafa Muhie
0
222
Member Avatar for Transcendent

[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> | …

Member Avatar for mike_2000_17
0
328
Member Avatar for ebanbury

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 …

Member Avatar for ebanbury
0
201
Member Avatar for jackmaverick1

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 …

Member Avatar for jackmaverick1
0
121
Member Avatar for f_atencia

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. …

Member Avatar for Taywin
0
78
Member Avatar for Emeryl

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 …

Member Avatar for Emeryl
0
100
Member Avatar for jackabascal

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] …

Member Avatar for Momerath
0
158
Member Avatar for coervivekmca

I need to learn ajax can i have some material to learn...plz send me or give me useful link to download some materail

Member Avatar for Fortinbra
0
90
Member Avatar for armageddon11

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.

Member Avatar for Taywin
0
252
Member Avatar for caltech

[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) { …

Member Avatar for caltech
0
126
Member Avatar for smithy_2009

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 = …

Member Avatar for mKorbel
0
120
Member Avatar for pseudorandom21

[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 …

Member Avatar for mike_2000_17
0
185
Member Avatar for MFal

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 …

Member Avatar for Ezzaral
0
3K
Member Avatar for cppgangster

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]

Member Avatar for cppgangster
0
112
Member Avatar for Archenemie

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 …

Member Avatar for zentraders
0
295
Member Avatar for poloblue

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 …

Member Avatar for poloblue
0
2K
Member Avatar for Behseini

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: …

Member Avatar for Behseini
0
159
Member Avatar for adamworld

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 …

Member Avatar for qazplm114477
0
3K
Member Avatar for jrotunda85

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 …

Member Avatar for diafol
0
176
Member Avatar for rkayd

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 …

Member Avatar for qazplm114477
0
168
Member Avatar for hmnetonline

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 …

Member Avatar for Mitja Bonca
0
136
Member Avatar for AngelicOne

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?

Member Avatar for Mitja Bonca
0
102
Member Avatar for hanvyj

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 …

Member Avatar for mKorbel
0
1K
Member Avatar for i_luv_c++

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 …

Member Avatar for WolfPack
0
621
Member Avatar for lashatt2

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

Member Avatar for VernonDozier
0
118
Member Avatar for jrotunda85

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 …

Member Avatar for diafol
0
291
Member Avatar for newack

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 …

Member Avatar for mcriscolo
0
135
Member Avatar for SolidSora

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 …

Member Avatar for atticusr5
0
110
Member Avatar for derek123

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) = …

Member Avatar for Ezzaral
0
149
Member Avatar for stereomatching

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 > …

Member Avatar for mike_2000_17
0
228

The End.