199,114 Archived Topics
Remove Filter ![]() | |
So I made a program, and have thoroughly tested the bugs out, and now finally figured out how to make a release build for my grandfather to see. So he tries running it and it crashes on the first input. I was told i may need to send him the … | |
hey guys ive made a project in vs2010 that has a hardcoded (int val; val=800000; in main) amount set at start , the amount is 800000 (800k) i gave it an int type , and it works all well but when i try to run it in the anicent turboc … | |
hello guys)) Advice please - how to set the stream encoding? (to read a text file) I use this code - [CODE] StreamReader stream1 = new StreamReader(fs); System.Text.Encoding code = stream1.CurrentEncoding; StreamReader stream2 = new StreamReader(fs,code); while ((i = stream2.ReadLine()) != null) { label1.Text = label1.Text + i; } stream2.Close();[/CODE] … | |
I need to read a file which looks like this: model=binomial steps=1 time horizon=1 S=101 u=1.2 d=0.95 r=0.03 number of instruments in portfolio=2 instrument=option exercise=european position=short type=put strike=98 expiry=1 instrument=option exercise=european position=long type=put strike=10 expiry=1 and i just need to read everything what is on the right site of '=' … | |
I am filling a dataset from a database. When there are no rows to return it still tells me that the count is 1. I can't figure out what is going wrong. if I look at a visual of the dataset, the row is blank, but the count is 1. … | |
[B]hi all.... i m writting a script using telnet session in linux............ first i want to read 1)read free message 2)process memory usage 3)%cpu usage then using snmpwalk i want to repeat 1,2,3 after doing this i want to calculate difference before snmp walk and after snmp walk....... i m … | |
Hello. Can someone tell me why this doesn't work? [CODE] Public Sub LoadFile() Dim file As StreamReader Dim temp As String Try file = New StreamReader("C:\file.txt) temp = file.ReadLine() While Not temp Is Nothing Dim ListaTemp() As String = temp.Split(CChar(",")) ListBindingSource.Add(New Mod(CInt(ListTemp(0)), ListTemp(1), ListTemp(2))) temp = file.ReadLine() End While file.Close() … | |
Hi all, I'm new on this site and was hoping some of you more experienced coders could give me some advice. I'm a long time IT guy, always loved programming but never got too deep into it. I know the basics of programming in .Net and C# but I would … | |
This is going to sound weird but I was wondering if there is a way to show in a list all of the installed Windows Updates. | |
hai friends, How can i comiple and run java program using java code(with out using batch file) plz any one help me in t \his. | |
Hi everybody, I have a specific problem, and cant get over it. For my latest project I need a simple PHP script that display an image according to its ID sent through URL. Here's the code: [CODE]header("Content-type: image/jpeg"); $img = $_GET["img"]; echo file_get_contents("http://www.somesite.com/images/$img");[/CODE] The problem is that the image doesn't … | |
[B]The Idea[/B] The idea is that my PHP page will execute specific SQL statements on a database depending on which form elements are filled in. Instead of having to write continuously lengthy IF statements to determine which statement to use, I would like to have the necessary statement "looked up". … | |
Hello all, I am new to MYSQL programming, although i have been working with MSSQL for a while now. I am using delphi on a project and the query below does not return any results, just cant find what is wrong with it Select Airwaybill, SDate, BLAccount, RCountry, PackageCodeDesc, TotalWeight, … | |
Hi I am a PERL novice. Currently dealing with a problem and wondering whether it can be solved using PERL? I got a folder containing a number of text files. Every time a file is created a timestamp is added at the end followed by an "_". for example "apple_20101210091255.txt". … | |
Hi, I know the problem that I am having is related to the change in PHP5 about strings and arrays, however I do not understand why my script is affected. It seems like I am not trying to add more variables to an array. I do not success in order … | |
Hey Guys :) I want to be able to rewrite my URL's like so: [B]site/profiles/(username)[/B] but this would really only be site/profile.php?username=* I have this so far: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^profiles/$ profile.php </IfModule> How would I do the [B]bold[/B] located above? | |
Is it possible to lock a drive, write something on it and unlock it...? | |
Hi Guys, Im currently working on a school project but im stuck, if worked on this problem for over 4 days now and i cant fix it. Using Direct3D 9, Visual studio 2010, im trying to make create a heightmap. Im using a bmp file. Problem: the heightmap doesn't show … | |
Hi All, Can anybody help me here. The code below is picking up the first pages records but it wont move to the next page. [code] <?php // Connects to your Database include "myFunctions.php"; getConnection(); //This checks to see if there is a page number. If not, it will set … | |
[CODE]<?php $host="xxxxx.xxxxxx.com"; // Host name $username="xxxxxx"; // Mysql username $password="xxxxx"; // Mysql password $db_name="xxxxxxxx"; // Database name $tbl_name="xxxxxx"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id that sent from address bar $id=$_GET['id']; // Retrieve … | |
when i try to compile stuff i get this [code=c++]c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2143: syntax error : missing ';' before '{' c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2871: 'vc_attributes' : a namespace with this name does not exist c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2447: '{' : missing function header (old-style … | |
Hi guys, I would appreciate it if you could give me sample code for linking two forms. I have a program which has 2 forms. I execute form1 first because it reads files and then writes to a file. Then I execute second form (form2) that will read the file … | |
How i use dynamic buttons with static buttons at bottom of screen only in java code without xml file? | |
i dont understand why i have that exceptions. All i try to do is to write a file . Kill an object and load the file :( it says: "Unable to read beyond the end of the stream." [CODE]using System; using System.Collections.Generic; using System.Text; using System.IO; namespace Project1 { class … | |
| |
Hi. I've got a JSlider in my applet which I want to change the position of. [CODE] int initValue = 10; int minimum = 10; int maximum = 20; JSlider slider = new JSlider(JSlider.HORIZONTAL, minimum, maximum, initValue); [/CODE] I've got this in the applets init() method. [CODE]add(slider); //add the slider … | |
Hi, In .NET i used the follwing codings for the Next and Previous buttons for Navigating the records. but it showed error. In NextButton_Click... [dim Rec_count = 0] -> this is globally declared. [dim Row_count as Integer = Data.Tables(0).Rows.Count - 1] [ If Rec_count <> Row_count Then] [ Rec_count = … | |
Hi, I have a form where the users can add "name" and "id" fields by clicking on the "Add" button. The input fields look like this (each pair is a row): [CODE]<input name="name_1" id="name_1" /> <input name="id_1" id="id_1" /> <input name="name_2" id="name_2" /> <input name="id_2" id="id_2" /> ... [/CODE] The … | |
Hi, I have a problem with my code. I am checking for the application instance. When i run application A , application B also must run. Below is my code to check the Application B if it is not running i have to make sure the code below execute it. … | |
Description: ------------ Doing the following SimpleXML text comparison does not give the expected results. Reproduce code: --------------- [CODE] <?php $sxe = simplexml_load_string('<root a="123" />'); echo $sxe['a']."\n"; if ($sxe['a'] == '123') { echo 'They are equal.'."\n"; } else { echo 'They are not equal.'."\n"; } [/CODE] ?> Expected result: ---------------- 123 … | |
Hi, I have a form with gridview data with database data. With query I run INSERT INTO from one table into another, with button. I would like when I run procedure, also reset/update/refresh gridview with new import data??!! For info, I have try with some methods, such as me. gridview.refresh() … | |
Hi! I have created a modal dialog. When I close it the page refreshes automatically but in my scenario the page should not do so. The code I am using is: [CODE]$(document).ready(function () { $("#addaccount").dialog({ height: 'auto', width: 'auto', modal: true, autoOpen: false }); $("#addaccountlink").click(function (e) { $('#addaccount').dialog('open'); });[/CODE] Here … | |
I am retired person who volunteers for several youth organizations. I have no IT training. In my capacity as a volunteer I manage a couple of websites using Front Page. Because of some issues with ASP, I am attempting to migrate some work I completed in Front Page to a … | |
hi, i was just wondering if there is some special technique to understand the code which is not yours.i may sound peculiar so letme make it a bit clear.i hav just recently done some c++ programming and being able to make some programs.not too complex but i can do some … | |
Hi all, the setup is as follows: -One base class -My top layer class that holds: -Four derived classes from said base class(four different types of objects that all derived from my base class) Is it possible to have a function in my top layer class that has one object … | |
[CODE]class x{int a;}; class y:public x{}; main(){y k; k.a=3; } [/CODE] How can I access "k.a"? PS: You can't change or omit any part of the code. a have to be private. Member access specifier have to be public ( class y::public x ). You can add functions to x … ![]() | |
Hello I have this.. I have a Scrip with name [B]MiScript.jsp[/B] and code.... [CODE]<%@ include file="Func.jsp" %> <jsp:include page="Func.jsp"/> <% String Mipath = "C:\\"; String Mifile = "File.Ext"; if(mifuncion(Mipath , Mifile )) { out.println("OK!!!"); } else{ out.println("ERROR!"); } %>[/CODE] And I have the other Script [B]Func.jsp[/B] with a Method.... [CODE]<%@ … | |
i want to add watermark in image.i am using image handler. its not properly working. i want to add watermark at runtime only no need for original image.in my home page i have 25 thumbnail images. when i click any one of the image it goes next page and display … | |
[URL="http://vimeo.com/15374659"]Titanium +Geo[/URL], a new location-based analytics platform for mobile applications, released on September 29, 2010 and developed jointly by Appcelerator® and FortiusOne, allows marketers and retailers to accurately measure the effect of where, when and how their mobile applications are being used by their customers. [ATTACH=right]17421[/ATTACH] This is a data … | |
I have a text file contain a coordinate 100,20 240,100 23,45 I manage to read row and split it into and integer. and get it to point x=100 ,y=20. the problem is in the end i got a null when i print in console show a null like this 100 … | |
i am trying to store the user entered form data (using php )to a .txt file.. and when i am trying to display the .txt file using php .. the contents are displayed along with the delimiter ( ||) ..how do i get rid of the delimiter in the display … | |
I am having the hardest time trying to figure out what I am doing wrong with this section of code. Basically, I am using the GET method to pull a variable from the URL which I then want to search the database for. This "ticket" is unique and I only … | |
Hello, I am looking into testing the performance of different numerical datatypes like double, integer, float, etc and see which one is the fastest. Is there a way to do this in C++. Time the time it takes to do basic arithmetic with numbers. Starting and end a timer within … | |
I take value from textbox as, [CODE] var perOfEasyQues = parseInt(document.getElementById("<%=txb_EasyQuesPerc.ClientID%>").value); [/CODE] but as I put 012 it takes 10. Can anybody suggest solution over it? | |
how can we draw arc using turtle graphics. any guidance would be great regards | |
Hello, I'm trying to skip a line every 'x' queries that gets displayed. I can get the records to show but I can not skip a line every 'x' query shown. I've tried using javascript and php but can not get it to work. Can someone plz help or give … | |
I know there is an easy way to do this in C#, but i was wondering about C++. If I want to have an ifstream object defined that will read the input of a file, but i want it to read backwards. So basically here is the format I have. … | |
I'm trying to write a small app and I want it to show the OS Install key. How can I pull this? I'm using Visual Basic 2008. | |
hey... I've been working on my first GUI for a while now, and I just need some input on it... first off... the image object won't work for tex0-type formatting... so I have to make each pixel from the data provided... I've gotten as far as reading the 32 byte … | |
Hello, Still fairly new to all this. I'm looking for an example on how to let the user select a program name and path, and declare it variable A. There is more to this request, but I'd trying to figure this out on my own and not beg for a … |
The End.