199,113 Archived Topics
Remove Filter ![]() | |
![]() | You can use the following class to align text such as paragraphs to be centered, right, or left on a console. Also it supports some more methods. I have written this so it will be helpful for some and also for me. I'm not that pro so have wasted a … ![]() |
Hello, I am pretty new to C# (but I have used java) I want to use my c# class in a c++ project, this means I will need to make a COM object, It seems reasonably easy [URL="http://msdn.microsoft.com/en-us/library/aa645738%28v=VS.71%29.aspx"]I have been using this[/URL] mainly as a template. My program was a … | |
Hi, I was recently asked this question in an interview and I was wondering if any of you could help me find a better solution to this problem. The question goes like this: There is a function foo which takes two arguments: an array "a" of type int and another … | |
Quick query here guys - I have a program that reads from a file and counts the number of lines in the code. This works fine but when I go to print the contents of the file to the screen or to a Dialog box the number of lines that … | |
hi, i get this error on one of my pages, however if i move the session start code to check if user is logged in down a few lines below some query code for searching the site it works fine. why would moving the session start down a bit on … | |
Hi, i'm new about PHP, and i try to insert the PHP Upload script in the php mail, but somehow i don't get it to work! :) [B]this actually goes to header:[/B] [CODE]<?php if(isset($_POST['submit'])) { $errors = array(); $allowed_filetypes = array('.pdf','.zip','.rar'); $max_filesize = 52428800; $upload_path = './uploads_SS/'; $filename = $_FILES['userfile']['name']; … | |
I have 3 methods [CODE] MethodA() MethodB() MethodC() [/CODE] All 3 methods [U]must[/U] be run at least once per frame/update. MethodA generates a integer count, let's call it 'intCount'. If the count is 0 then MethodB and MethodC don't need to be called. All 3 methods will continue to be … | |
Please i need help what is the missing Code here... THis is like a Simple POS [B]this is the CODE:[/B] Dim total As Double Dim item_price As Double Private Sub cboFruits_Click() Me.txtQuantity.SetFocus End Sub Private Sub cboFruits_DropDown() Me.cmdAdd.Default = True End Sub Private Sub cmdAdd_Click() item_price = 0 With Me.cboFruits … | |
I want to know about the tool strip Control. Can i Use Tool strip button in all the Win form. Like, I put the delete button in all the window form, but I want to put only one button in the tool strip and remove buttons in all the window … | |
Hello everybody, I worked long hours this evening trying to unthread the whole thing and still not working... I don't know why. The page display the results using normal code in JSP (no jstl tags). When using jstl tags the page results in blank screen, no posts. Here is the … | |
i have a simple system,when i logout the system logout but the problem is, when i click back, it turn to main page. please guys help | |
Hi, guys. badly need your help. still a newbie in programming. seems like i cannot display some data on the browser from the database. i was able to create a login page. but when i tried adding another servlet and tried calling its jsp, error message appears: HTTP STATUS 500 … | |
Hi Everyone!:) Searched net up'n down and also related threads but can't figure this one. I have this: RewriteRule ^(\w+)$ index.php?pageid=$1[icode] for the purpose of pretty urls. Now, as long as pageid is a single word, everything's nice, but if there are dashes (kinda-like-this) it simply doesn't work, that is, … | |
I am trying to make a COM object so I can use my C# object in a C++ project. I have been following [URL="http://msdn.microsoft.com/en-us/library/aa645738%28v=VS.71%29.aspx"]this example[/URL], to the point where everything is almost identical, but however much I try I can't get it to work. Here is my C# program: [CODE]// … | |
I have been working on a program that starts with the user entering an id (as in account id) and then a main menu pops up where they can choose between balance check, withdraw, deposit, and exit. The program is never supposed to end. It is supposed to keep looping … | |
i have 5 dropdown list and i want the gridview to get refined with each selection.this is what i used but its not working: a button click event that that gets a dataview to filter records then bind these records to the gridview.this routine then checks each dropdown list to … | |
I am writing a GUI in GKTMM for my own learning experience and to use on a personal project I have at home. The data will be stored in a MySQL database on a server I already have running in my home and which I use for some PHP/JavaScript code … | |
I wrote a little test program to try to figure out some problems I am having in another program I'm working on. Code: [CODE]# include <iostream> # include <string> using namespace std; void ahoy(string nameEntered) { cout << "Ahoy, " << nameEntered << "!" << endl; } int main() { … | |
I am learning to write C++ code to access data in a MySQL database. My goal is to use a separate class to control the database access so I can use this class elsewhere. To facilitate my learning, I'm working on simple code to connect to a database (success!) and … | |
Hi all, I have a table curs_period where inserting some data to send them via email, this table contains data for 1st email [CODE] Id = Auto increment Name = Madrid Period = 01/11 to 01/12 [/CODE] Then I have another data for 2nd email [CODE] Id = Auto increment … | |
Hi all! Please give c code which finds the included header files of another c file | |
Hi there guys, I got this assignment where I need to set a session attribute. Although I'm having problems since I cant set attribute that is of type double? I got these hints but since I've worked with doubleValue() or downcasting, the hints didn't help me much.. Hints: -Recall that … | |
hi, this is my hash function, could anyone explain to me why the lines in red are experiencing an "int cannot be deferenced"? Thank you. [CODE]public static int hashFunc3(int key) { int hashVal = 0; [COLOR="Red"]for (int j=0; j<key.length(); j++)[/COLOR] //left to right { [COLOR="Red"]int letter = key.charAt(j) - 96;[/COLOR] … | |
hello friends, how do I simulate an "enter" key press in java? this is to avoid the continuous key pressing during runtime whereas there are so many popups which require an "enter" key press to continue execution | |
Hi everyone, I am trying to populate a gridview. this is my table structure: Modules - M_ID, M_title (this is where the module info is stored) Module_course_link - MC_ID, M_ID, C_ID (this table links the Modules and Courses table) Courses - C_ID, C_title (this is where the course info is … | |
Hi, I am a almost thirtysomething, going back to school at night while working full time. I decided that it was time to get an education to enable me to break out of the Cable industry and into the programming scene. I am interested in Computer Science and web programming(maybe). … | |
i have made a program for work which is a logging tool which is just filled with text boxes and combo boxes I am tryin to link to a access table so the info I put in the logging tool goes straight into the access table even if the table … | |
Hi, I'd like to ask for a little help. I have this program that handles basic voting,but it should be done client-server,i.e. the server offers questions and multiple clients connect to vote,the server stores the answers etc... I haven't even come to that point of storing etc.,cause I'm stuck here … | |
Which is the smarter way to do things.. Should I create a thumbnail script that resizes and crops the images so they are uniform when I create and upload a gallery? Or Should I run a script when the page loads that resizes and crops the images so they are … | |
[B][COLOR="Green"]How to convert a three dimensional string array into integer?[/COLOR][/B] | |
Hi In vb i get error 3015 where it says idx(field name) isn't an index in this table. Look in the Indexes Collection of the Tabledef object to determine the valid index names. I have Access97 database and checked that the field i mentioned is indexed(Autonumber). I get error on … | |
Hi, I am a beginner in linux . i am using matchbox virtual keyboard for an application now i want to change the layout to another langauge . How to do it? Is there any way to change the layout from terminal . Kindly advice me suggestions. Any help appreciated … | |
Hi guys, im new, just joined. i have a serious problem with Java3D... I have just recently completed a large project i have been working on for a long time, a NVE. The problem i am having is when i run in through NetBeans 6.8 i have no issues, but … | |
Hi how can i get lis of phone JSR support on application ? is it possible ? for example it`s support JSR-82 or not ? thanks | |
Hi everyone! I'm a newbie here. I have a problem: I need to create the address book in python that include name, phone number, email, address, etc...The information in the address book can able to delete or change. I will give more information later! Can you help me? I need … | |
hi, i am a teacher. i have a list of students in my MySQL table. How to retrieve their names one by one, and while doing that there will be a text box to put their marks in. | |
Hey all I have a mdb file. I need to use this file as a datasource to display in the gridview. Can anyone suggest me how to use a LINQ to add to that gridview. here the purpose of gridview is simply to display some rows....... Regards, Prasanth. | |
Hi All, I have specific requirement in web development. I am Programmer Analyst in .Net, would like to know the difference between Firefox and IE6.0. Some of the Javascript will not execute in Firefox !! Does any one have better idea about this !!. Thanks and with regards, Madhusudhan.H.K. | |
I have a table with content fetched from a html table. I have a modify and delete column. In the modify column I have submit forms which send as hidden input the id of the column. In the delete column I want to have checkboxes that will be linked to … | |
Ok I have a linked list which have to read from binary file and to write in binary files. This is the function about the reading from keyboard: [CODE]short readElement( Node * newE) { int b,e,m; if ( newE == NULL ) return 1; do { printf("\n Registration number:"); scanf("%s", … | |
I have found the following code and wish to have it do a POST instead of the GET can someone tell me what needs changing so this does a POST ajax.php [code] <?php if (is_numeric($_GET['client_id'])) { include("database.php"); $query="SELECT * FROM `client_addresses` WHERE `client_id` = '". db_input($_GET['client_id']) ."'"; $result=mysql_query($query); ?><select name="client_address"> … | |
Hi all, I want to know how to give an .exe file for my java prg. pla help me. | |
I'm getting a BSBA Computer Information Systems. Does anyone here have that degree? What type of job do you have or have had. Is this degree pointless compared to a CS degree? | |
Hello Daniweb, I have a program due this evening and am ready to give up. I can't figure out my compile problems: C:\Users\Chris\Desktop\My Java Programs\Chris_Y_Week_5_IA.java:85: call to super must be first statement in constructor super("mortgagecalcsr7"); ^ C:\Users\Chris\Desktop\My Java Programs\Chris_Y_Week_5_IA.java:573: inner classes cannot have static declarations public static void main(String[] args) … | |
Write a C program to find all real roots of a polynomial equation of degree n using Bisection method. Note that you can’t define the function as macro or C-function inside your program file. You have to take the polynomial function and degree from user. Also you can’t define the … | |
please help me to do with my system. i want my TextEmpID.Text is auto generated evrytime i will add another employee name. Field = "EmployeeID" i'm using ms access as ADODB thanks in advance | |
How do I calculate my RMSD(root mean square deviation) score for my PDB protein structures, atom by atom. I wish to calculate it line by line. But I do not know how to go about it? I was thinking of using a for loop but as you can see, I've … | |
i want to implement this feature : if i have a following sentence : {my name is james vick and iam a {member|user|visitor} on this {forum|website|site} and iam loving it | iam admin and iam a {supervisor|admin|moderator} on this {forum|website|site} and iam loving it} on a click of button i … | |
If I would have a simple function like this: [CODE]jQuery.fn.example = function(){ this.remove(); }[/CODE] and call it with an empty selector: [CODE]$().example();[/CODE] What element would then [B]this[/B] be pointing to? Or is there a way to make a function able to be executed through both [B]$.example()[/B], without a selector, and … | |
I'm taking a graphics class, and we have just started using OpenGL. My professor gave us a simple program that draws a purple line, that we were supposed to compile. I took it home and tried to compile it, and i got a lot of undefined symbol errors. Any help … |
The End.