199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mill_22

Hi all, The following link [url]http://www.codeproject.com/KB/webforms/disableListItems.aspx[/url] disables items 1 and 2 from the checkboxlist if the user selects checkbox item 3. Can someone PLEASE tell me how i could change the code in this link to work for ListBox. So if I had 5 items in the lisr box (below) …

Member Avatar for Ramesh S
0
880
Member Avatar for PinoyDev

Good day.! This will be my problem regarding on how to update the listview when one of the data in the field in sql server tables has been changed.basically, i have achieved the result by looping on the table continuesly with a timer. But is there any other way to …

Member Avatar for PinoyDev
0
279
Member Avatar for hao001

[CODE]for(int i=5;i>=1;i--) { for(int j=5-i;j>=1;j--) { cout<<" "; } for(int k=1;k<=i;k++) { cout<<"* "; } cout<<endl; }[/CODE] sorry but can someone explain this coding to me? T.T''

Member Avatar for hao001
0
91
Member Avatar for iceman29

Hi , Can we have an sql query to get the max 5 values from a column? Please paste a sample code if its possible. Thanks in advance.

Member Avatar for pulsar8700
0
202
Member Avatar for umairraja52

If i have a website in ASP code and working very well but i want to convert ASP code to ASP.net(C#) then how it is possible to do this, which software can perform easily to do this.

Member Avatar for vuyiswamb
0
183
Member Avatar for shikamaru

Hi all, just started working on .NET...:) I was making a MDI app with vb.NET and SAPI i used System.speech.recognition namespace and SpeechRecognizer element.. working for single doc.. bt when i go for new form with same giving [B]An error occurred creating the form. See Exception.InnerException for details. The error …

Member Avatar for shikamaru
0
245
Member Avatar for Wolf CCMLG

I am desperately need help converting my code into an OOP format. [B][I]Here is my code:[/I][/B] [CODE] #include <iostream> #include <string> #include <cstring> using namespace std; const int strLength = 141; char strArray[strLength]; char answer; bool quit; int charAmount; string line; void vowelCount(string); void consonantCount(string); void consonantCount(string line) { int …

Member Avatar for dkalita
0
188
Member Avatar for KimJack

Hi All, Is it possible to convert an arraylist of chars to an array? For example: ArrayList<Character> array = new ArrayList<Character>(); Can this be converted to an array of chars. I have tried using the toArray method but it is not working. Does anyone have any suggestions? Thanks, Kimjack

Member Avatar for BestJewSinceJC
0
230
Member Avatar for splurchner

This program is (as you can see in the notation) a homework assignment I'm doing for class. I wrote the whole thing, which as far as I can tell right now is logically functional. It takes commands from a user and uses them to denote what happens to a linked …

Member Avatar for splurchner
0
169
Member Avatar for SKANK!!!!!

please help meWarning: mkdir() [function.mkdir]: File exists in..xxxxx/register.php. yeah yeah what is wrong here is my code: btw im at xxxxx/register.php [CODE]$documentroot = $_SERVER['DOCUMENT_ROOT']; if(mkdir($documentroot ."/". $username , 0777)) { $profile = $documentroot ."/". $username ."/index.php" ; $filegettingcopy = $documentroot ."/xxxxx/index.php" ; if (copy($filegettingcopy, $profile)) {echo "<br> You can access …

Member Avatar for SKANK!!!!!
0
3K
Member Avatar for geg13

i would like help with the template i am writing for some reason i can't get it to work. I would appreciate help. [CODE]#include <iostream> using namespace std; #include <iomanip> int() { cout << "This is a template.\n"; system(pause) }[/CODE]

Member Avatar for geg13
0
91
Member Avatar for iThaos

Hello, Is there a way to create functions dynamically in PHP as such: [code=php] <?php $my_arr_conf = array( 'my_var' => 'This is my variable', 'your_var' => 'This is your variable' ); // Some code here where I can create the function // Maybe somehow with create_function(); ? // I was …

Member Avatar for iThaos
0
1K
Member Avatar for Wolf CCMLG

Can someone help me please, I am getting this error: [B]stringdefinition.cpp(7) : error C2448: 'stringClass::wordCount' : function-style initializer appears to be a function definition[/B] When trying to compile this code: [B][U]StringHeader.h[/U][/B] [CODE] #ifndef H_StringHeader #define H_StringHeader #include <iostream> #include <string> #include <cstring> #include <algorithm> using namespace std; const int strLength …

Member Avatar for Wolf CCMLG
0
156
Member Avatar for CFROG

I'm trying to make a list of friends that are NOT in address book. This returns all friends : [code] // Check for friends $frnd="SELECT * FROM friends WHERE my_id='$_SESSION[user_id]'"; $fres = mysql_query($frnd); $fnum = mysql_num_rows($fres); while($fr=mysql_fetch_array($fres)){ $friend = $fr['friend_name']; $friend_id = $fr['friend_id']; } [/code] This returns all friends that …

Member Avatar for CFROG
0
126
Member Avatar for thisisnot232

I wrote this code for a small project, and I am probably declaring a method in a method, because I keep getting "illegal start of an expression." This is happening at line 27, and 43. I am fairly new to java, so please don't be to harsh. I might have …

Member Avatar for VernonDozier
0
100
Member Avatar for unlimited2442

Hi, I'm new here, looking for some assistance... I am starting a new xbox clan, and I'm buillding the website for it. Normally I build my own websites and code them, but I wanted to go a bit more advanced than I usually do, and learn a little bit more. …

Member Avatar for Atli
0
86
Member Avatar for kahaj

I just finished this project, thought I had it done, but on line 1, it's telling me, "incorrect Package". What am I missing here? [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; public class JavaNotepad extends JFrame implements ActionListener, KeyListener { boolean txtChanged = false; String fname = ""; …

Member Avatar for llemes4011
0
204
Member Avatar for Bloubul

Please help me with this assignment as well, because I am receiving a error when Running the application. The error I am receiving is: Exception in thread "main" java.lang.Error: Do not use Stock.setLayout() use Sto ck.getContentPane().setLayout() instead at javax.swing.JFrame.createRootPaneException(JFrame.java:458) at javax.swing.JFrame.setLayout(JFrame.java:524) at Stock.<init>(Stock.java:50) at Stock.main(Stock.java:36) Press any key to continue …

Member Avatar for JamesCherrill
0
186
Member Avatar for KAUL

//This program will calculate the compound interest. import java.io.*; import java.text.*; public class Program08 { public static void main (String args[]) throws java.io.IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); DecimalFormat roundMyDecimal=new DecimalFormat("0.00"); float amount; float principal; float interest; float compounds; float years; System.out.print("Enter the principal: "); // inputs principal. …

Member Avatar for KAUL
0
121
Member Avatar for Peppercat101

Hi, Im new to c++ and Im struggling with something. I have a load of classes that all connect to each other. I globally overloaded the << operator for each class. So in my main I do the following: [CODE] FixedSizeMatrix y(5,5); cout<<y; cout<<y; [/CODE] The first cout works fine …

Member Avatar for mrnutty
0
128
Member Avatar for Samyx

[code]class Complex { double real, img; void setValue(double i, double x){ real=i; img=x; } public double getRealPart(){ double a=real; return a; } public double getImagPart(){ double b=img; return b; } public double getMagnitude(){ double magn=Math.sqrt(real*real+img*img); return magn; } public Complex add(Complex c){ return new Complex(real+c.real, img+c.img); } public Complex multiply(Complex …

Member Avatar for Samyx
0
110
Member Avatar for chrisname

I'm actually writing this code as inline ASM but I feel it is more relevant to ASM than it is to C... Basically all I want to do for now is print the alphabet. However I'm having some trouble getting used to AT&T syntax (I would rather learn it than …

Member Avatar for chrisname
0
197
Member Avatar for Bloubul

I must write a interface to enter course information for transfer students. The created data file should be sequential in nature, with the student's name, his/her ID number, the course number from the previous college, and the accepted course number at the current college. The code I wrote so far …

Member Avatar for javaAddict
0
267
Member Avatar for whiteyoh

Hi all, Im fairly new to java and any assistance would be appreciated. The following should output string values, but if i use text within the creation of the new CD object i get an error, unless i change the content to numbers. I know the driver class is fine, …

Member Avatar for whiteyoh
0
111
Member Avatar for KimJack

Hi, This is a very simple question. Is it possible to print a one dimensional array into the shape of a grid? For example if I have the follow array: chars arrayofChars[] = {'A', 'B', 'C', 'D', 'E'...}; how can it be printed out as A B C D E …

Member Avatar for anupam_smart
0
167
Member Avatar for draxmas

Hello, I'm new in shell scripting and i face some problems. I need your help to calculate a logarithmic expression in shell script for example i have 2 variables x1 x2 $x1=3 $x2=5 $Result=`expr x2 * log2 x1` ???? $echo "Result is $Result I know that this is wrong and …

Member Avatar for sknake
0
202
Member Avatar for mpande

Good Day People I'v just finished my project in VB6.0 and now have to include reports for the program. I would like a button in VB6.0 to direct to a report in crystal report V85. I'm just not sure how the code on the button is supposed to be. Could …

Member Avatar for thappisalim
0
60
Member Avatar for rajeesh_rsn

hai I am a PHP programmer and I likes to study JSP from the base level. Please advice me a right book to start. Thanks in advance Rajeesh

Member Avatar for peter_budo
0
129
Member Avatar for opethcire316

I have a (for me) a big perplexing problem. I am new to Java and am in a introductory class. We were suppose to create/"fix" a method for Formatting ISBN-10's. Our Professor gave us all the code and the classes but we need to implement another "design teams" code for …

Member Avatar for jbennet
0
114
Member Avatar for SKANK!!!!!
Member Avatar for scarypajamas

I've already taken an intro level physics course at my University where we discussed the basics (boolean algebra, logic gates, etc.) But we never covered VHDL. I [I]really[/I] want to learn more about VHDL. I'm not sure were to get started. I tried googling for information however, I'm not sure …

Member Avatar for iamthwee
0
79
Member Avatar for BeyondTheEye

I've created a class, Category. [CODE=cpp]#ifndef CATEGORY_H_INCLUDED #define CATEGORY_H_INCLUDED #include <string> using std::string; enum Type {Integer, Double, Bool, String, Date, Time}; class Category { public: Category() : itsType(String) {} Category(Type type) : itsType(type) {} Category(string name) : itsName(name) {} Category(Type type, string name) : itsName(name), itsType(type) {} ~Category() {} void …

Member Avatar for mrnutty
0
98
Member Avatar for baki100

can someone help me identify the syntax error with this code [code] CREATE TABLE IF NOT EXISTS Persons ( id_number VARCHAR(13) NOT NULL , name VARCHAR(45) NOT NULL , name_2 VARCHAR(45) NULL , name_3 VARCHAR(45) NULL , surname VARCHAR(45) NOT NULL , date_created DATE , date_modified DATE , PRIMARY KEY …

Member Avatar for baki100
0
146
Member Avatar for tomtetlaw

Would this do any damage if I left it running for a while: [code=c++] int main(){ while(1) new char[0]; } [/code]

Member Avatar for VernonDozier
0
146
Member Avatar for suriname0

Hello, I've been working on a fun project of my own. I didn't really start out with a plan in mind, but now it has turned into an attempt to make some Advance Wars type TBS game. The problem I ran into is trying to display the base "terrain" image …

0
144
Member Avatar for jeto
Member Avatar for Vineeth K
0
65
Member Avatar for vytla

hi i am trying to change the color of selected date i used the following code but it is not working [code] <asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="Black" OnDayRender="Calendar1_DayRender" Width="300px" DayNameFormat="Shortest" Font-Names="Times New Roman" Font-Size="10pt" ForeColor="Black" Height="220px" NextPrevFormat="FullMonth" TitleFormat="Month"> <SelectorStyle BackColor="#CCCCCC" Font-Bold="True" Font-Names="Verdana" Font-Size="8pt" ForeColor="#333333" Width="1%" /> <TodayDayStyle BackColor="#CCCC99" /> <OtherMonthDayStyle …

Member Avatar for Ramesh S
0
104
Member Avatar for avirag

Hi i am making a window application in which i want to know that when my application is start, so it should automatically get focus on textBox, how can i do that......... Kindly help me in this...............?

Member Avatar for avirag
0
176
Member Avatar for muthuivs

Hello, Have a Access problem. I have 1 master table with records by Sales Rep ID (80001, 80002, and so on). For each of these ID's, i have multiple lines of records that show their sales (Revenue) by customer like follows: 80001 5,000 IBM 80001 7,000 Staples 80005 6,000 Motorola …

Member Avatar for KumarHarsh
0
158
Member Avatar for twilitegxa

I have the following pages, but on the verify page, it is saying these are not defined: [icode] content = "Name: " + result.FName + "<br>" + "E-mail: " + result.EmailOption + "<br>" + "Gender: " + result.GenderOption [/icode]<br> Here are the pages: addentry.aspx: [code=vb] <%@ Page Language="VB" ClassName="SenderClass" debug="true" …

Member Avatar for Ramesh S
0
269
Member Avatar for dirnthelord

I was trying to implement a queue using linked list and the problem is when i try to call dequeue() method, nothing shows up and no errors too. just NULL values for all nodes. take a look @ this code and tell me if there is anything wrong... ps. Do …

Member Avatar for dirnthelord
0
214
Member Avatar for keicola

I'm trying to read a file which contains: Dante Beatrice 3 5 and put them into an array. Then I will assign the values of each member of the array to static variables. when i run the main class of my project, it throws a NullPointerException starting from the line …

Member Avatar for keicola
0
241
Member Avatar for joannies

can someone help me???? give me coding for display 1 12 123 1234 1,3,5,7...n 123 456 789 help me... and give me coding for while loop generate 0,1,1,2,3,5,8 sent coding to my email [I]<snipped>[/I] thank you..for da help...

Member Avatar for freelancelote
0
149
Member Avatar for digtokiller

Hello im looking for some kinda code, you are paying for something on this page, then when you are done you come to another page. thats not the problem, it come now. this page you come to, it should only be able to open if you come from the paying …

Member Avatar for digtokiller
0
139
Member Avatar for MDanz

how do i do a hyperlink to last page? this is a page url.. e.g. [url]http://www.ufaffd.com/topic.php?id=44?topic=&page=2[/url] how do i do a hyperlink to last page not specific page..

Member Avatar for smvec
0
60
Member Avatar for nated

So im just trying to understand a simple program in C++ but i keep getting an error when trying to compile this code. The error is [Linker error] undefined reference to `Player::getHeight()' . So i have my main code in one file called Main.cpp: [CODE]#include "Player.h" int main() { Player …

Member Avatar for sfuo
0
138
Member Avatar for Ghodmode

Is there a way to act directly on an array value returned from a function without assigning it to another variable first? For example, if I just want the third value in a CSV record, I might like to do it like this: [code]$value = preg_split('/,/', "one,two,three,four")[2];[/code] But that doesn't …

Member Avatar for somedude3488
0
156
Member Avatar for vileoxidation

Hello, and thank you for taking the time to help me out! I am working on my first real C++ program, and have the code almost entirely written. The assignment is to write four files, CPU.h, CPU.cpp, Computer.h, and Computer.cpp, which maintain information about an object (a computer), and then …

Member Avatar for vileoxidation
0
141
Member Avatar for morrgullet

Hello. I need some help with my program wich shoulc calculate letters in a sentence and then print out the longest, shortest, how many words, and what's the avrage value. Thanks for some help. :) [CODE]#include <iostream> #include <string> using namespace std; int main() { int word; int n; string …

Member Avatar for VernonDozier
0
93
Member Avatar for jeezcak3++

It goes "BLEEP" when one of these strings are input. [CODE]int main() { vector<string> words(); words[0] == "roller coasters"; words[1] == "waiting"; words[2] == "people who talk on the phone while driving"; words[3] == "wars"; string temp; while (cin >> temp) words.push_back(temp); for (int i = 0; i < words.size(); …

Member Avatar for jeezcak3++
0
136

The End.