64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for rubendoliveira

Hi everyone, Don't know for sure if this is the right place to post the question, but it goes: I'm starting a JSP project and I'm having some difficulties with Tomcat/Java configuration. I'm using: - apache-tomcat-6.0.16 - java_ee_sdk-5_05-windows Directory where the code is located: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\lw\ Directory …

Member Avatar for jwenting
0
93
Member Avatar for KJBB

I create an array of 16 text boxes, etc in code. I need to detect which one is clicked. I have created an event handler for each that points to the same handler routine for all 16 for(int box = 0; box < 16; box ++) { txtArray[box].Click += new …

Member Avatar for KJBB
0
293
Member Avatar for Ellisande

Back with another question concerning my RPG. I had the idea to do a multi-dimensional array to represent a map, with each element in the array being it's own square, Depending on where you are, you can move in any of the 4 directions, unless you are on an edge. …

Member Avatar for Ellisande
0
253
Member Avatar for harrence

Hi, my first post. I'm trying to gather attendance records between two dates the user selects. I have two tables 'attendance' and 'artists_details' which I'm hoping I've successfully joined. The field I'm working on is just above the commented one 'ethnicity=maori'. I get no errors, however whatever dates I choose …

Member Avatar for harrence
0
98
Member Avatar for henpecked1

This one actually tells me visual studio has a problem and needs to close this code. I'm sure it's in the insert/write section, but I'm not sure what I did wrong. I'll post the rather simple cpp below it. [code] #include <iostream> using namespace std; template <class T> class list …

Member Avatar for henpecked1
0
135
Member Avatar for tirso

In my forms I have a tab control containing two pages, in tabpage1 (list view) tabpage2 (gridview) and a several buttons. my problem now is how to know that if the user hit a button then locate the active control or tabpage eaither tabpage1 or tabpage2. I intent that the …

Member Avatar for tirso
0
98
Member Avatar for henpecked1

If you grab this code and run it, you'll see what I mean. The second half doesn't run, and when I can get it to run, it's all completely wrong. I'm trying, but I'm tired and just want to get it done...lol. The encrypt and decrypt are a separate cpp …

Member Avatar for henpecked1
0
112
Member Avatar for Dajak

Hi Everybody, Im making a kind of notepad in VB 2008. But the problem is ive maked an Form whith a trackbar and a Buttton, its supposed that the trackbar should be the opacity value. The trackbar is changed to rigth to left, It comes no errors it just wont …

Member Avatar for Jx_Man
0
229
Member Avatar for Kadence

Can getc()/putc()/fgetc()/fputc() be used to read/write chars and floats rather than ints only from binary files? If so, how?

Member Avatar for Kadence
0
230
Member Avatar for Ellisande

I'm having this weird issue with a text based RPG I'm trying to create. I'm fairly new to C++, so I thought having a project that I can work on and expand as I learn more would be a good way to put what I have been reading about into …

Member Avatar for Ellisande
0
127
Member Avatar for SteveDB

Morning all. Hope everyone has great weekend. Once I get done posting this I'll be digging yet another hole for my spinkler system, and hopefully finishing off my drip system for more backyard. Ok.... Onto my issue. After a week of struggle to find out why I kept getting errors, …

Member Avatar for SteveDB
0
833
Member Avatar for henpecked1

If this is the original class: [code] class StorageBin { public: StorageBin(); ~StorageBin(); void PutInBin( int Item, int Location); int ReturnFromBin (int Location); bool FindInBin(int Item); void DisplayBin(); private: int *pBin; int NumberInBin; int BinSize; }; [/code] Would this be the correct conversion to make it a template? [code] Template …

Member Avatar for Alex Edwards
0
241
Member Avatar for mustafaneguib

help please once again... my login page was working just fine when one morning it just stopped to function. now i have tried to fix it, buy changing some of the logic and also recreating the database. now the point i have reached is that when the user enters his …

Member Avatar for nav33n
0
111
Member Avatar for henpecked1

When I'm opening a file, is it the file that is text or binary or is it the stream that can be text or binary? Also, when I close a file is that when the stream object is destroyed?

Member Avatar for Ancient Dragon
0
128
Member Avatar for dlayante

I have this Insert Statement code in C# window application.... String MyString = @"INSERT INTO tblUsers(userID, Name, Position) VALUES('a','b','c')"; how if I would like to give values from a textbox: //Please correct this code because it is not working.... String MyString = @"INSERT INTO tblUsers(userID, Name, Position) VALUES('"txId"','"txtUser"','"txtPosition"')"; I need …

Member Avatar for JerryShaw
0
87
Member Avatar for Alex Edwards

[code=c++] #include <cstdlib> #include <iostream> /** Test Class for learning template-metaprogramming */ using namespace std; template<int N> //General case for a number class ShowValues { public: static inline void show() { cout << "Start: " << N << endl; ShowValues< (N > 1) ? (N - 1): 1>::show(); cout << …

Member Avatar for vijayan121
0
129
Member Avatar for kvdd

Hello all, What I want is to divide a string in timeformat, lets say 27:30. How can I do that? Eventually I can use SQL for it, because the string comes from the database. Thanks before!

Member Avatar for kvdd
0
1K
Member Avatar for rje7

[code] #include<iostream> using namespace std; class welcome{ public: welcome(){ cout<<"Constructor"; } }; int main(){ welcome c; return 0; } [/code] for the above code i get the following errors wen i try to compile using GCC in PCLinux minime version. cannot figure out if there is an error in my …

Member Avatar for rje7
0
122
Member Avatar for javaAddict

Hi All, I am an experienced java programmer for many years. But my problem is that the final assignment that was given to me for my master at the university, has to be written in VB .NET. Do you know any good books for learning VB .NET for someone like …

Member Avatar for jwenting
0
149
Member Avatar for thehype2049

Ok, so im doing an assignment and Here is the question: -------------------------------------------------------------------------------------------------- Using the base class Person which has two member variables called name and birthday [both of type string], derive two separate classes from Person, called Student and Professor. The Student class has a major [string] and a gpa …

Member Avatar for thehype2049
0
90
Member Avatar for ninjaneer

Hello community. I am writing a program that will use multiple threads to run MATLAB functions inside of Cpp by using the MATLAB compiler to create a DLL. I have already written the MATLAB DLL and I have everything linked up just fine, but now I need to split this …

Member Avatar for Ancient Dragon
0
140
Member Avatar for salman213

Hey, here are two codes and with one slight difference they do different things [B]CODE 1[/B] [code] #include<iostream> using namespace std; int main() { char array[2]; int i=0; while (i<2) { cin>>array[i]; i++; } cout<<array[0]<<' '<<array[1]; } [/code] [B]EXAMPLE OUTPUT:[/B] [code] two words t w [/code] [B]CODE 2[/B] [code] #include<iostream> …

Member Avatar for salman213
0
149
Member Avatar for mesamb1

I am trying to write a simple php program that will up load files smaller then 200000000 bytes to my website, but I keep getting an error when I try to run it the initial HTML code is: <html> <body> <form action="upload.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" …

Member Avatar for mesamb1
0
111
Member Avatar for new_2_java

Hi all, I have an object, say its called MySuperType, which has a sub type, say it is called MySubType. MySuperType has the following attributes: int a; int b; int c; MySubType has the following attributes: (besides inhereting a,b and c) int d; int e; I was wondering if I …

Member Avatar for new_2_java
0
144
Member Avatar for salman213

[code] #include <iostream> using namespace std; class CRectangle { int x, y; public: void set_values (int,int); int area () {return (x*y);} }; void CRectangle::set_values (int a, int b) { x = a; y = b; } int main () { CRectangle rect, rectb; rect.set_values (3,4); rectb.set_values (5,6); cout << "rect …

Member Avatar for salman213
0
146
Member Avatar for prasu
Member Avatar for Shaun32887

Hey everyone, I'm a third year engineering student and a new programmer who needs to learn some C++ for a job this summer. My boss advised me to look into utilizing a hash table to get my project done. Hash tables aren't covered in the textbook I have. I've done …

Member Avatar for Shaun32887
0
153
Member Avatar for kutta_vin

Hi friends, I think the MySql is not case sensitive for selecting values. for example I am having a table called dept, Id | Depart 1 | BTECH 11 | it 12 | ibt 2 | BE 21 | cse 22 | ece Now i want to select the capital …

Member Avatar for kutta_vin
0
156
Member Avatar for msantosh18

can any one help me in the following problem i have created a database and its table at runtime(i.e. while running the exe). the problem is that i need to change properties of table such as 'required' and 'allow zero length' of a table. how to change these properties and …

Member Avatar for msantosh18
0
124
Member Avatar for salman213

Hi, I am a beginner in C++, I was just wondering what is it good for. This is probably a dumb question but I was searching on yahoo and google (What is C++ good for), and I did not find any real answers. What do people use it for? Is …

Member Avatar for Narue
0
577
Member Avatar for anifreak

hello, ok i have this simple linked list program, as u can see below i got three functions: one to insert a node in the first of the list, the second to insert a node in the middle and the third to insert a node in the last of the …

Member Avatar for anifreak
0
256
Member Avatar for kux

What i want to do is write some of the rows of a report style CListCtrl with a color and other rows with another color, but if I switch the color with SetTextColor the color of the text in the entire control switches, i want it to switch just for …

Member Avatar for mitrmkar
0
156
Member Avatar for dlayante

I have already connect my SQL database in C# windows application, Now, can somebody please give me sample codes for data manipulation, add/edit/delete of records....THANK you!

Member Avatar for JerryShaw
0
98
Member Avatar for jayybhagat

I have a project to be done that is a web based EMPLOYEE PAYROLL SYSTEM AND TIME TRACKING in ASP .NET with SQL SERVER and im just a beginner wid ASP .NET and have no idea about what to start with , so please please help me !!!

Member Avatar for peter_budo
0
172
Member Avatar for gargg321

Hey Guys, I am new to C programming and I got a task of storing hex dumps in character array and then use them as a string. I use the sprintf function for the job but it is giving me incorrect results. Please help me out. I am writing a …

Member Avatar for gargg321
0
289
Member Avatar for mrboolf

Hi all. I'm trying to write a 8 Queen Problem solving program in C++ as an assignement for an exam. I created a Matrix Board class to represent the chessboard with some functions such as put_Queen or check_Board for invalid positioning. I haven't yet begin to write the solving algorithm, …

Member Avatar for mrboolf
0
209
Member Avatar for plusplus

I'd like to count how many visitors came to my site. Can you give me a quick and easy way to do this?

Member Avatar for bala24
0
96
Member Avatar for dlayante

Please correct me if there's something wrong with my codes...It already have SQL Database connection and I successfully display my record from the database.... Please help me...here's so far I have...I need codes for data manipulation adding/edit/delete records....im using C#Windows Application THANK YOU...you're a big help... using System; using System.Collections.Generic; …

Member Avatar for Ramy Mahrous
0
118
Member Avatar for hacker9801

If you use the new operator on a class, say [code=c++]class dummy { public: string f; }; int main(int argc, char *argv[]) { dummy *p = new dummy; return 0; }[/code] do you have to use the delete operator on [icode]p[/icode]? (since, apparently, it utilizes new.)

Member Avatar for hacker9801
0
92
Member Avatar for zoner7

I've always used the Dev C++ compiler; however, I keep hearing how the software has little support. Additionally, I have heard people praise the debugger of Visual C++. So, end result, I'm deciding to switch from one to the other. My only problem now is that I can't make the …

Member Avatar for zoner7
0
108
Member Avatar for lllllIllIlllI

Hi I have made a program with wxPython and i have this bit of code: [code=python] def getpic(self,event,urlp='http://mirror.bom.gov.au/radar/IDR043.gif?20080427173538'): fc = url.urlretrieve(urlp,filename='Weather.jpg') image_file = 'Weather.jpg' self.bmp = wx.Bitmap(image_file) self.img = wx.StaticBitmap(self.background, wx.ID_ANY, self.bmp, pos = (20, 60)) self.background.SetInitialSize() [/code] This is a bit of my code, not the full thing but …

Member Avatar for lllllIllIlllI
0
570
Member Avatar for raul15791

Hi, I've been given the following task: 1. Read some .h header files from a few different folder in different directories. 2. Extract only the functions in the files and store all of them into a single text file. 3. Repeat the step 1 and 2 again but extract info …

Member Avatar for raul15791
0
606
Member Avatar for newasp.net

I am using a Image Button [code=ASP.NET]<asp:ImageButton ID ="SubmitACH" runat="server" ImageUrl="~/images/buttons/selectACHTransfer.gif" AlternateText="Select ACH Transfer" CssClass="goalCloseButtons" OnClick="SubmitACH_Click" /> on its On click event I'm writing this code protected void SubmitACH_Click(object sender, EventArgs e) { Response.Redirect("abc.aspx"); }[/code] And I am getting an error 'Page.aspx' does not contain a definition for 'SubmitACH_Click' Any …

Member Avatar for newasp.net
0
358
Member Avatar for dreamuser

I get a "Debug Assertion Failed" when I go to run my program. More specifically it says "Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)". I assume this is because I'm using pointers incorrectly. Here is some information about the assignment: [quote]A file contains text representing a prioritized collection of messages. The messages were received one …

0
72
Member Avatar for darklich13

I've got a small little program that I'm trying to write that converts a base10 number to a base2. For some reason my instructor wants us to use stack on this. I've got most of it done but I'm having trouble trying to get the stack converted to an int …

Member Avatar for darklich13
0
132
Member Avatar for neha555

hi, I m new in JSP can any one help me how to start with jsp. i just download the tomcat. how i write my first program and run it Thankx in advance:)

Member Avatar for jwenting
0
94
Member Avatar for Software guy

Hi, i am little confused in usage of strtok() syntax. Basically , i extracted the source code of a webpage using Java and now i have to remove all the extra tags inside the html page so i can have clear text. For example a simple HTML page is like …

Member Avatar for Software guy
0
222
Member Avatar for Nemoticchigga

I have a program with a bunch of threads running. I kill them all at the end of the program. I have stepped through and seen them all abort. Is there a way to see (since I cant when stepping through) which thread it is? I can see the process …

Member Avatar for Alex Edwards
0
85
Member Avatar for Utter_iMADNESS

Hello, I'm trying to make a code that acts as a simple menu for a number of programs. What I was wondering was how do I include the .ccp files and run them in the menu program. Here's what I have so far: [code] #include <stdio.h> #include <stdlib.h> #include "1.cpp" …

Member Avatar for Utter_iMADNESS
0
97
Member Avatar for Thew

Hello, I need help to solve the problem in my app that uses structs. I have for example this struct: [CODE] struct SimpleStruct { SimpleStruct(): hasVars(false){} ~SimpleStruct(); AnotherStruct SimpleVariable; bool hasVars; }; [/CODE] and in the code, initializing this struct goes ok, but when the class, that has this struct …

Member Avatar for Thew
0
149

The End.