199,114 Archived Topics
Remove Filter ![]() | |
Hi, Ive made a little program that calculates the area of a circle by doing Pi * r2, but its not working and I don't know why: [code=cplusplus] #include <iostream> using namespace std; #define PI 3.14159265358979323846 #define NEWLINE '\n' int main () { float Radius = 0; cout << "Radius: … ![]() | |
Hi, Really new to AJAX, attempting to load the first page content into a div on the website loading using an onLoad property to the body tag . This is working in FF but not in IE7. Any help much appreciated! Thanks Gail. ([url]http://www.pure-connections.com[/url]) | |
I have to take a 2d array of [6][8] floats that represent a star map and add the four surrounding numbers to it to measure it's intensity of light. Would something like make sense??? [CODE]for(i=0;i<6;i++) { for(j=0;j<8;j++) { stars[i][j+1] + stars[i+1][j] + stars[i-1][j] + stars[i][j-1];}}[/CODE] instead of writing many lines … | |
I have just installed Delphi 2007 in my Vista (jumping from 6 in wonderful XP). Everything is new and unknown. Help seems impossible to find, and I need to get a DLL showing its object in my Tool Palette so I can compile old programs. Could someone please guide me … | |
![]() | Let's say I have a text file separated by tabs containing stuff like: [code] 1.02 \t hello \t 01/02/2008 [/code] How do I get python to recognise that 1.02 is a number, hello is a string and 01/02/2008 is a date. The file has no pattern, i.e it won't always … |
Hello! I need some help figuring out how to display my array. The program I am working on is one in which the user can enter any given 20 integers and it display them in descending order. I was able to get that part to work but cannot get the … | |
Hey... do anyone knows c++ function for implementation of big numbers...i tried googl it...but, i can't find nothing that solve my problem i need to calculate a^e(mod n) example: 125^107 (mod 187)=5 result of 125^107 is too big for standard notation in c++... can someone please help me! ![]() | |
i am writing a program on 2-D transformation which handles transformations for three objects, namely, point, line and a triangle. i have created a base class Object and derived three classes - Point, Line, Triangle - from it. Here i will discuss just the Object and Point class. The code … | |
I Have To create a ToolBar,I searched on the Internet & I found the Foll. Lins Useful- [url]http://cgeers.wordpress.com/2008/02/16/internet-explorer-toolbar/#bandobjects[/url] [url]http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx[/url] In both the links, ToolBar is Created using BandObjects. I have no idea abt it,Can somebody plz explain me what is BandObjectLib....... | |
I am trying to paint my own form by using the following code: case WM_PAINT: hDC = BeginPaint(hWnd, &ps); hBrush = CreateSolidBrush(RGB(255,0,0)); FillRect(hDC, &ps.rcPaint, hBrush); EndPaint(hWnd, &ps); break; My problem is, that when you resize the form or drag it around, you can still see it flash grey between paints.... … | |
![]() | Alright I am totally new to Visual Basic and might have just shot myself in the foot agreeing to do this class! Our first project is due tomorrow and not only has my book still not arrived but I was violently ill the past few days and missed class! (Senior … |
I want to download MSDN for VB 6.0, From where can I? Regards, Engineer Jokhio Salahuddin Kohistani, Bachelor Of Engineering 2nd Year 4th term Department of Computer Systems & Software Engineering Institute of information & Communication Technologies Mehran University of Engineering & Technology, Jamshoro, Sindh Pakistan. | |
I'm trying to create a function that will delete an already saved file. I was hoping std::remove() would do the trick but I don't know the syntax. Will std::remove() work or should be trying something else... | |
Well, the basic structure is a form which uses multiple classes defined in seperate files. Below is my controller class which is supposed to keep track of which files are opened. It's included in both the form and the [i]Map.cpp[/i] file, which contains all Map function implementations. I'm supposing these … | |
Hi, I am trying to create an application that gets the contents of two folders. It should compare the file names in the two folders and put files with different names into a list (unique). Each file with the same name in both folders should be read and the contents … | |
Hello, i have two questions concerning programming in Java. [U]1st Q:[/U] i have more than frame opened for the same program and when i want to close one of them, all the program closes as well. basically i write this code for closing the frame when clicking on a button: … | |
hello ppl, i have a doubt how do i append [B]MSWord[/B] in my proj. if i have a form on which i make a button now on clicking that button [B]MSWORD[/B] should open. If i use [B]system.diagnostic.process.start() [/B]and the whole path of [B]MSWORD[/B] in the bracket it will work but … | |
Hello, I am working on a script, but I'm really not an expert. Any help will be highly appreciated. Description: I have items - some have option for adding an amount and some not (because they can be only 1). I need when the checkboxes are clicked (choosing an item) … | |
Hi, I managed to get this function in a ajax script working for all browsers except IE! [code]function ShowPrevSlides(selcat,selpic,catno) { objXmlHttp=GetXmlHttpObject(PrevMenuResponse); objXmlHttp.open("GET",url1 + "?id=" + selcat); objXmlHttp.selcat = selcat; objXmlHttp.selpic = selpic; objXmlHttp.catnr = catno; objXmlHttp.send(null); }[/code] The problem is that I need those variables to be send in this … | |
Im not able to run my program witht the following code! [ICODE] Dim rst As ADODB.Recordset Dim sql1 As String sql1 = "insert into Passport_Release VALUES('0259','14/09/2008','returned')" CN.Execute sql1 As Recordset [/ICODE] instead of the last statement i even tried CN.Execute sql1 alone.... but nothing is working... i doubt if error … | |
I need help with my output. I have pretty much everything done. I'm just getting an output like: "The class average is 5.8%" "The class average is 12.4%" "The class average is 13.6%" "The class average is 18.4%" etc. "Highest grade is 58%" "Highest grade is 66%" "Highest grade is … | |
i have made a sstab with three tabs... i want to know that if i hv to assign different funtions like only one tab should be active for one user at a time where as the other should be disabled... please help soon... very urgent | |
Prolog: I have an INPUT tag on the web page I currenty developing. This input field observes 'onkeydown' event and handler for this detects keyCode for ENTER. After that it replaces itself with SPAN tag. Simple and clear. ---- Problem description: But sometimes (not frequently) after pressing ENTER and making … | |
Hello, I am relatively new to Java. I would like to know how to add additional threads to this applet. Particularly adding additional balls that bounce at the same time. I think the problem lies in my mousePressed event. The program will start a new ball, but make the existing … | |
Ok. I'm not experienced at all, and I need to program a set of different math formulas into a code. Here is the first step I'm trying to take. I have an octahedron that has 8 plates. Each plate is composed of 3 vectors. There are 6 vectors in total … | |
****I'm stuck as to what my next step should be?? I also want to know if I'm on the right track. I've tried searching for some type of sample program as I am sure there are plenty, but when I start to write it doesn't seem to make sense. Any … | |
Hi friends, I have problem of selecting recordset between a specified date. I am giving my coding detail below. I took a field in Ms Access table table name-travel fieldname - doj datatyoe - Text and vbcoding dim db as new adodb.connection dim rc as new adodb.recordset db.open"Provider=Microsoft.Jet.OLEDB.4.0; Data Source='d:\tmgmt.mdb'" … | |
i'm pretty new to using python...i'm still in the 1st basics... nyway i've tried to work this up... but it didn't work :s... it shows that there's something wrong with the "def" of the add and sub and div and mul formulas...here is the program... tell me what i did … | |
I have worked on this class all last night and I am having trouble finding the problem. When I compile this file I am recieving errors and I do not understand what is the problem. Here is the program code: [code] public class Employee { private String employeeName; //name of … | |
I'm finally getting my robot's software off the ground!:) (Although I'm giving my "artificial learning" program a rest for later). However, here's something I've been wondering how to do for quite some time now. I'm using the time module to allow my robot to tell me the time upon vocal … | |
I am building a confidentiality form which I would like to submit to a printable page and to two or three email addresses (one being the email address of the person who filled the form out). This means that the language that is above the form needs to be printed … ![]() | |
I am writing a program to handle a DVD collection. There are 2 classes. The first class is a string class that has member functions that handle strings(length, compare, etc.) and store strings(dynamic array). The second class handles the actual DVD's-title, year, actors, and brief description. I'm confused on working … | |
[code="PHP"] <html> <head></head> <body> <?php $hostname="localhost"; $username="jesus_jesus"; $password="jesus"; $dbid="jesus_jesus"; $link=mysql_connect($hostname,$username,$password); mysql_select_db($dbid) or die("unable to connect"); $result=mysql_query("select jid,industrytype from career"); if($result) { echo '<select>'; while($myrow = mysql_fetch_array($result)) { echo '<option value="',$myrow['$industrytype'],'"></option>'; } echo "</select>"; } ?> </body> </html> [/code] in this code i'm getting only the listbox.not to able to retrive … | |
hello dear guider i design a simple application in C++ 6 using mfc. but when i try to test it on other pc it doesn't run i dont know why because am a dummy. an sorry i might have flame dont blame me am just beginner. | |
could someone atleast point me in the right direction? i'm new at this and i've been working on this program and I just hit a brick wall. Its like my brain stopped working or something... :confused: I have to make a "stop watch" program...have a class defined for stop_watch that … | |
Hello. Any way of preventing multiple instances of executables? I'm writing a program that uses a file, it would be quite messy if someone would start another instance of same program. If it depends on OS, I would like to see solutions for windows and unix-type (linux) systems. Thanx | |
I'm using the code [code=VB.NET] Sub PicCanvasMouseDown(sender As Object, e As MouseEventArgs) XPrev = e.X YPrev = e.Y End Sub Sub PicCanvasMouseUp(sender As Object, e As MouseEventArgs) XCur = e.X YCur = e.Y End Sub Sub PicCanvasPaint(sender As Object, e As PaintEventArgs) Dim p As New Pen(Color.Black, 10) Dim g … | |
Hi, My doubt is that..lets say we have an usigned int.If I do a left shift by 32 bits...I'm getting back the original one..shouldnt it be all zeros?? | |
Hi, I'm trying to code Huffman coding.I've formed my huffman tree but dont understand how I'm gonna assign bits to it.How do I do bit operations and how do i maintain bits of length 3,5 etc? Any help appreciated | |
Hello, When I pass variables 'contentA','contentB','contentC', etc... into the tabs() function, it does not work in Internet Explorer. When I pass variables contentA,contentB,contentC, etc... into the tabs() function, it works perfectly in Internet Explorer but not in firefox!!!! This is the last bug that I need to fix in my … | |
[code=c] #include<stdio.h> #include<stdlib.h> main() { char a[32],*a1,b[64],*b1; a1=&a[0]; b1=&b[0]; a1="hellohellohellohellohellohello" ; printf("\n contents of a1: %s\n",a1); int i =0; for(i=0;i<=31;i++) { printf("%c",a[i]); } } [/code] So why does printf ("%s",a1) work correctly while printf("%c",a[i]) display junk ? Since a1 points to a[0], shouldn'it it display the same values ? | |
I wrote this little guy a while ago. I'm brand new to DaniWeb, and happy to be here. This was one of the earlier things I wrote in Python, and therefore one of the earlier things I wrote period. I've since done some much more complicated nonsense, but this one … | |
[code]Hello to all Masters, I have a problime in the database programming. i am using a Access DATABASE file in the VB6.0 Project. in this project i am creating a veriable such as " Dim s as new ABODB.Connection. but when i run the project it create an ERROR at … | |
Hi All, I want to enable/disable users who logged in Domain Name Server (DNS). Through VC++ code. If anyone has idea regarding this please reply me asap. Thanks in advance for u r reply. Regards, Shalin. | |
[CODE]Call CheckLetter(char, letter)[/CODE] What I am trying to do above is send the string char to the procedure CheckLetter, and from CheckLetter I am trying to retrieve letter. How do I do this? All the code from my project. [CODE]Dim Alphabet(0 To 25) As String Dim codeword, wordtoencrypt As String … | |
so I'm writing a program that takes the input from the file, an ISBN number, removes the "-" from it, puts it through a formula (1*first number 2*second number ... 8*eight number) /11 and what ever that equals should be the same as the last number in the ISBN if … | |
hi im new to VB.net can you guys teach me about VB.net? what i need to learn first ? i have knowledge of VB6 , is the code vb.net same as vb6? thx in advance | |
please I want to recover the windows's process with java how can I do thank | |
Good Afternoon All i think its Firday fever, am tired. I think this Happens sometimes. let me get to the Problem. Am doing an OleDb Project I have an Access DB and the table is Users , here are the Field and dataType ID = Autonumber(int) Firstname = TEXT LastName … | |
I have a serious problem which i am not being able to figure. This program finds all the permutations of a given string using recursion. The diagnostic outputs show that the values of the 'choice' and 'final' character arrays is not maintained at a position (I don't know why). Please … |
The End.