199,114 Archived Topics
Remove Filter ![]() | |
I am trying to make a simple calculator for my code and I wanted to know, how can I have the user input a number like c++ cin >> number; and then just have my math functions do the rest. I have this so far... [CODE] public static void Main() … | |
Hello frnds I need sm help for installing JAI on my computer! the file im getting from sun's site is a corrupt file! Pls Help Me! | |
Hi, below is my code, but when i send the message thru client socket i receive [COLOR="Red"]Specified argument was out of the range of valid values. Parameter name: size[/COLOR] Can anyone help me ! [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim serverStream As … | |
Why does this return None? [CODE]list1 = ['Herring','used','to','be','abundant','in','the','AtlAntic','Ocean','then','herring','got','overfished'] print list1.sort(key=lambda s : s.count('a'))[/CODE] | |
everytime i click to open one it says it cannot open the file and when i search for a program online to open it none come up wat do i need to open it thanks all for your help | |
Hi I'm facing a problem. I want to join two table which are in the following format. Table 1 id - - name 1 - - xx 2 - - yy 3 - - zxz Table 2 id -- xx -- yy 1 -- 1 -- 1 2 -- 2 … | |
hi.. i used this code to display a clock. [CODE]<script type="text/javascript"> var int=self.setInterval("clock()",1000); function clock() { var d=new Date(); var t=d.toLocaleTimeString(); document.getElementById("apDiv1").innerHTML=t; } </script>[/CODE] in firefox it displays like this 7:25:00 PM and in Chrome 19:25:39 i want to show a similar clock as in firefox in Chrome. How can … | |
Hello! I have a piece of code here that I just can't get to work. I get segmentation fault and now I'm trying to apply a ddd tool to understand the problem. I haven't used ddd before but there seem to be some kind of a problem around the subroutines … | |
Good Evening! We recently had a project about java, and i chose to make a program that measures time. What i want is like a server in computer shops, but i dont know how to make a timer, displayed while running.. i guess it must have a loop to increment, … | |
Hello everybody, Let me explain my problem. I have one datatable with all my data and the above function to calculate the eclidian distance. My function returns a DataColumn so I can add this column later to another datatable. The problem is that I´m not being able to populate the … | |
I m facing weird problem while running regression tests on my WPF Application. I m getting AccessViolationException with different stacktraces each time. First : Message :Attempted to read or write protected memory. This is often an indication that other memory is corrupt. StackTrace : at MS.Win32.PresentationCore.UnsafeNativeMethods.MILUnknown.Release(IntPtr pIUnkown) at MS.Win32.PresentationCore.UnsafeNativeMethods.MILUnknown.ReleaseInterface(IntPtr& ptr) … | |
hi i am trying to make a CAD program that read a text file which contain a vertecises and number of triangles, which look something like this"the file" : 8 -2.0 -1.5 -0.5 2.0 -1.5 -0.5 -2.0 1.5 -0.5 2.0 1.5 -0.5 -2.0 -1.5 0.5 2.0 -1.5 0.5 -2.0 1.5 … | |
Hi all, In a program I've been working on I would like to start a process and save it in a variable of type Process. This is so I can kill it later, if needed, and change the window type. The process is an Excel document. Here is some relevant … | |
So I was looking at this problem , and in monodevelop (and Visual Studio). But for somereason I keep getting unreachable code or error in Visual Studio, I retyped and relooked over my code but I cant seem to find what the mistake is that I can run my code. … | |
I am trying to use the fileinput.input() module to read in the lines from a bunch of files in a directory and occasionally receive an IOerror exception. What is the best way to handle this exception so that if 1 of the items in the list i'm feeding fileinput,input() generates … | |
Friends, I would like to reformat a file ( fort.80) to fort.90! For that I used type constructs for reading the input ( fort.80) as well as writing it to output ( fort.90). I can successfully do copying all but one case (dihedral), where the output file looks blank ( … | |
i hav car racing program in c++ and i wish to convert this program in c what i do? prigram is this...... [CODE] #include <iostream.h> #include <dos.h> #include <graphics.h> #include <conio.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <ctype.h> class car { private: int x1,y1,x2,y2,col,col2,col3; public: car():x1(200),y1(300),x2(270),y2(200),col(4) {} car(int a,int … | |
how to creat layout for my sample website | |
Hello there, Is there anyway i can open a ppt in web browser or may i can do things like slideshare does to view documents like ( ppt, doc ...etc ) any logic will help ! | |
Hello. I am trying to validate a customer number using isdigit. If the user accidently enters a character other than an integer, I want it to allow the user to try again. The problem is it only will check the first number and if that is a digit it it … | |
hi everyone i want to pass values from webpage which is in asp.net to window form application .like i have button on asp.net whenevr i click on that button on the window form application its written button1 is pressed. how to code this program ? please help me ... | |
Hello! I'm trying out an idea I had which requires me to capture the contents of a java window/Frame, much like a screenshot but without the window and menubar, just the contents rendered in java, i.e. an exact image of what is visible in the java application at the moment. … | |
hello there, i'm having a bit of trouble about this. im making a regiter page for our project and im using PHP, and im having a little problem, it says that: Could not execute the insert query.. but i got all my fields right?.. [ICODE]<?php include("config.php"); if(isset($_POST['submit'])) { $fname = … ![]() | |
How to change the entry point of gcc compiler ? I mean the code will look like the bellow one. [CODE] #include<stdio.h> int entry() //this is the new entry point instead of main. { return 0; }[/CODE] thank you very much.. | |
Hi all, I've been working on a piece of software for a few weeks now and I've got to the point where I'm publishing it and testing it on other computers, namely my colleague's. We're both working on the same network and have similar permissions for our accounts, but for … | |
I am starting a new project and the certain requirements will be: JSF, JPA, JMS, WebServices Rest and EJB3.1. There will be at least 4 servers. Probably this will be the division: first server for backing beans and JSF. Other two servers for EJB cluster and the last server for … | |
Hi, I am using eclipse: 3.4.1 and tomcat 5.5.25. I run the application on tomcat server created inside eclipse. Until 3 days back I could sunccessfully use tomcat server inside eclipse but now I get following message 'Starting Tomcat v5.5 server at localhost' has encountered a problem Server Tomcat v5.5 … | |
Downloaded autocomplete plugin. its not bring out results am using an access db. When I type in text it does the search but with no proposed results display in the drop down. Is there something missing? [CODE] <cfsetting enablecfoutputonly="true"> <cfparam name="q" default="" /> <cfquery name="qryGetCountry" datasource="dbtest"> SELECT DISTINCT Cities.RegionCity FROM … | |
I like to be able to modify the content of "pBuf" without modifying the content of the file. what would be the options, if that would be possible at all?. pBuf = (LPTSTR) MapViewOfFile(hMapFile, // handle to map object FILE_MAP_ALL_ACCESS, // read/write permission highDWordVal, lowDWordVal, BUF_SIZE1); //BUF_SIZE); | |
I've been working on this code for the past couple of days, and probably just need a fresh pair of eyes to look at my code. I almost have the triangle with spaces solved, but it looks like this: -----* -----** -----*** -----**** -----***** instead of what i want it … | |
friends i am learning visual c++ 6.0.i need to know how to connect the database(oracle).can you tell me how to do??.give me some example.... mfc application connect to oracle database,any example ??? thanking you | |
How to get video frame width and frame height? I need it for .avi, .mov, .mp4, .wmv. I've tried some links using JockerSoft.Media.dll, and Shell32.dll, but the first one isn't good for .mov and .mp4, and the second one is only for Windows, and I need it for Windows and … | |
Greetings, I'm a python newbie struggling with the obvious. I have a txt file with fixed width whitespace between the elements. Excel can't import directly because the size of the whitespace varies between columns. I have stripped the header out leaving only data. This is the code I've tried to … | |
[code] try { OleDbCommand cmd = new OleDbCommand(String.Concat("UPDATE EMPLOYEE SET", " Emp_Name='", rec.txtEmpName, "',E_Position='", rec.txtPosition, "', Department='", rec.txtDepartment, "',Date_Hired='", rec.txtHired, "', Address_City='",rec.txtAdC, "',Address_Province='", rec.txtAdP, "', Civil_Status='", rec.txtCivil, "',Maiden_Name='", rec.txtMaiden, "', Spouse_Name='", rec.txtSpouse, "',Citizenship='",rec.txtCitizen, "', Telephone='", rec.txtPhone, "',Mobile_Phone='", rec.txtMobile, "', Emergency='", rec.txtEmergency, "',Birthdate='", rec.txtDOB, "', Birth_Place='",rec.txtBirthPlace, "',Height='", rec.txtHeight, "', Weight='", rec.txtWeight, … | |
Hi there, I'm making a simple C++ calculator. I want it to work something like this sample run: Begin Calculations 10 S // Set Accumulator to 10 = 10.000000 // Contents of Accumulator 2 / // Divide by 2 = 5.000000 // Contents of Accumulator 55 - // Subtract 55 … | |
So i'm creating a form, on the form is a panel (panel1) which holds all data, pictures etc... This is then to be made into a bmp for professional printing (ie 300dpi). A4 @ 300dpi = 2480 x 3508; i am able to create the image at the panel's height … | |
Hi, I have a table QuestionAsked which contains a column DateofAsking. Now what i need is to extract each date value and check whether the difference between that day and the current day is 14 or not. If yes than i have to update a particular column in that table.I … | |
Hello, I am beginner Java programmer and I would greatly appreciate help. The sections with which I need help are pointed out by comment lines. I am having a lot of difficulty with methods and I do get the basic function of them but I don't know how to implement … | |
Hello, I am trying to redirect “http” to “https”. I successfully followed the steps to create SSL Certificate as per this website: [url]http://robsnotebook.com/xampp-ssl-encrypt-passwords[/url] However, it seems that it didn’t work. I am still getting the following error messages: For IE browser: There is a problem with this website's security certificate. … | |
I am new to programming, so please accept my apologies if this question is simple. I have a class (say called Student). I want to store the name of the student (name) and the course (course) I have declared some variables in my Student class: [code] private String name = … | |
hello I have to read Connection String that we usually defined in web config n reading through Configuration manager but I have to access that connection string in class library which I defined in separate project as making my project with 3 tier architecture but ConfigrationManager is not recognized in … | |
I'm having some trouble with this section of code: [CODE] for(int i = 0; i < MAX_NUM ;i++) { subList[i].readIn(); System.out.println("\nDo you want to enter another subscriber? " + "(Y/N): "); anyMoreSub = keyboard.nextLine().toUpperCase(); if (anyMoreSub.equals("N")) { break; } } while(!isDone) { menuChoice = JOptionPane.showInputDialog("Please enter the letter for " … | |
Here's the problem: Write a program that produces a bar chart show the population growth of Prairieville, a small town in the Midwest, at 20-year intervals during the past 100 years. the program should read in the population figures (rounded to the nearest 1000 people) for 1900, 1920, 1940, 1960, … | |
[CODE] session_start(); // undefined index: login if (!isset($_SESSION['login'])){ echo "Anda tidak berhak mengakses halaman ini."; exit(); } //Fungsi baca data dari database [/CODE] Hi, Whenever I press eventmanager, the following error appears: "Anda tidak berhak mengakses halaman ini." What codes should I write so that I could pass the echo? … | |
[code] <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#btnclick").click(function(){ $("#para").hide("slow"); $("#btnclick").click(function(){ $("#para").show("slow"); }); }); }); </script> <body> <form id="form1" runat="server"> <div id="para"> <p>The form contains a button to place the final order. In this example, pressing the button returns a simple JavaScript alert(), depending on the contents of the order. In … | |
Hi, I am required to convert an Array Type DOUBLE to INT, for ease of plotting a graph. Fairly new to programming and unsure how to go about this. Any ideas appreciated | |
I've made a simple function that takes a vector as an argument. If the vector is empty, it throws a domain_error (I've included stdexcept). I'm feeding it an empty vector from the main loop just to learn try...catch statements and when it catches the error, it's supposed to print something … | |
Hii friends Well I want to check if an exe file is corrupt without double clicking it....there mist be some way to do this.. can I write a code in vb ..?? | |
hi guys i am doing an applet that reads information from a website, stores it and uses it to graph the data and displays it in a very friendly way. it works perfectly fine in the viewer when i run it in eclipse but as soon as i try to … | |
Hi, Am trying to use pointers on structures in c#. A separate class file. (the class file contains only strucutres, and the class has been removed. [code] [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct strEmployee : INotifyPropertyChanged { [MarshalAs(UnmanagedType.Struct)] int _EmpNo; public int EmpNo { get { return _EmpNo; } set … |
The End.