199,114 Archived Topics
Remove Filter ![]() | |
Hello all, I keep getting a segmentation fault when I run this compiled program. [CODE] #include <string.h> #include <stdio.h> #include <stdlib.h> #include "person.h" /* write a struct to the file */ void WritePersonFixedLength(struct person * input, FILE * target) { //use fprintf to write input->firstname '%-20s' fprintf(target, "%-20s", input->firstname); //use … | |
Dear all I came across the following very simple code for dragging a square around using javascript. It is drawn on the html5 canvas. Despite being very simple it has certainly exposed some gaps in my pretty flakey javascript knowledge. I am generally ok with the idea of drag and … | |
Can anyone tell me if it is possible to set a value in an array to infinity and if so how to go about it? Thanks. | |
i just learned how to get input from keyboard...' [CODE] import java.io.*; class Fish{ public static void main(String[] args) { BufferedReader Keey = new BufferedReader(new InputStreamReader(System.in)); System.out.println(Keey.readLine()); } } [/CODE] But whenver i compile it..its shows me the follwing exception.. C:\Program Files\Java\jdk1.6.0_22\bin>javac Fish.java Fish.java:7: unreported exception java.io.IOException; must be caught … | |
Hello All, Newbie C/C++ programmer (veteran VB) here with a problem I cannot get past: I am attempting to run/modify code created in Borland C++ v.6. When I try to run the code in the IDE I consistently get an EAccessViolaton with the line of code in the title highlighted. … | |
Hi All, I am getting the following error below when running my CGI script. I have went through the code but can't seem to sift where exactly it is saying on each of the respective lines. For the error on line 65 is it because I have a localized variable … | |
Hello! I've written a class called Date: [CODE] class Date { private: int day, month, year; public: Date(); Date(const char *d); //other methods... }; [/CODE] I want to write a constructor that'll take as a parameter (as you can see) a c-string. That string will look like: "12022010". The first … | |
Hello I have a datagridview, and I would like to run some queries (fill queries). when I run a fill query, my dataggridview show only one row, depending on the query parameter. How can I run a query multiple times, without removing the previous rows? I am using the: [CODE] … | |
for (int i = 0; i < 3; i++) for (int j = 0; j < 3; j++) if (j = i) table [i] [j] = 1; else table [i] [j] = 0; | |
I am getting user input by get method [CODE] out.print("<FORM METH0D=GET action =\"index.jsp\">"); out.print("<INPUT TYPE=TEXT NAME=searchTerm><BR><BR>"); [/CODE] and using request.getParameter() for getting value. [CODE] request.getParameter("searchTerm"); [/CODE] so, if request.getParameter() is null i hide some code of my page as you'll see . But although user not search any item and … | |
Hi, I want to create a project in vc++ which is having an explorer by which I can explorer the entire file system. I am using visual c++ 6.0. Anyone can help me? | |
| |
So I received awesome help from here before but forgot to ask at the time about one small thing. He taught me how to exclude my "ID" field displaying and about the implode function in PHP but if I display my data using it is there a way to make … | |
Hello, In s project I'm about to start I'm going to need the ability to search for files, so I figured I would use the _findfirst() function. I've used it in previous projects with no problems, but when I tested the function like so: [CODE] _finddata_t information; long reference = … | |
[B][COLOR="Red"]IS ANYONE INTERESTED IN THIS APP???[/COLOR][/B] I am looking for guys 1 or 2 to write some open source application in python. We will decide what app. we want to write. 1.App in GUI (wx) 2.The app will have its dedicated website. 3. The app in multi platform And other … | |
I have a listview that is filled with an sql query from temp Sql DB that is created from a program that run from textbox inputs, which writes this db. When the select button is pushed it query loads the listview. Sometimes their may be "0" or null values in … | |
hey guy,i'm a newbie in php and need some help from you guy in this preg_match_all function. i would like to grab the multiple share data in this webpage for change,last trade,volume,trade time,open and so on. this code only able to grab a single line of data, but not multiple … | |
Evening I am writing a small program to present a UI that when selecting 1 item from a drop down list then gives the user a selection of data relating to their selection. For instance if Ford cortina was selected from a list of Ford cars on screen in the … | |
I am working with jsp web project now.... In that If some user login with their own login id and password, it shoule be redirected to their own home pages... i have already done this.. but if some time their own home page is idle, it should be displayed as … | |
Here is the code I have. [CODE]<?php include("db.php"); if (isset($_POST['username']) && isset($_POST['passwords']) && isset($_POST['email'])) { $username = mysql_real_escape_string($_POST['username']); $email = mysql_real_escape_string($_POST['email']); $password = md5($_POST['passwords']); $ip = $_SERVER['REMOTE_ADDR']; $sql3 = mysql_query("SELECT username FROM usersystem WHERE username = '$username'"); If (mysql_num_rows($sql3) >0) { echo( "&serverResponse=Select a different user name. This one is … | |
**I make servlet and in servlet we make dropdown menu for display names against id but when we run the servlet drop down menu created but no values displayed form database in dropdown menu so pls help me. sorry for bad english** import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.PreparedStatement; … | |
[CODE]$wordpress_user_db_query = mysql_query("INSERT INTO cedsite_wrdp1.wp_users (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('".$username."', '".md5($pass)."', '".$username."', '".$email."', '', '".$date."', '', 0, '".$username."');");[/CODE] Using PHP I am trying to do that, but it isn't working. Can someone help? | |
i want to create a menu. if i press the menuitem,then a certain action will occure.. and so on... give the details please... | |
Hi, For some reason I can't make fopen work. It worked fine on my server, however upon putting the script on my clients server it started giving this error: [CODE]Warning: fopen(test.jpg) [function.fopen]: failed to open stream: Permission denied in <long path> on line 5[/CODE] From this call: [CODE]$File = "test.jpg"; … | |
I am trying to send mail using php. But it shows error as failed to connect with mailserver 'localhost'. Then i use [B]smtp.bizmail.yahoo.com[/B], then it shows SMTP error 530, Authentication required.. I don't know how to pass smtp username and password through php.ini file.. If anybody have better ideas, please … | |
Hi folks....I have two separate copies of this program to show how my thought process worked in initial creation and how it has changed since I was helped by you folks in my airline reservation program. It does not work but I DID try to apply what I have learned … | |
hi im sorry if this isnt in the right forum but i cant seem to find any threads in this. i cant seem to create a datetime object in vb.net with datetime string that's in this format "hh:mm:ss tt MM/dd/yy". The error im getting says its not a recognisable string … | |
I have a project where I need to add binary numbers using C language. I don't know where to start. Help? | |
Ok guys so i have a project to do for my c++ class and its supposed to be about two ships (one the player, the other one the computer) and they are on a 10x10 plane created by an array. I did the plane, now how do i get the … | |
I am not able to get GDB to start in -tui mode. My OS is Win XP, here is what i do START->RUN->cmd([B]gdb -tui[/B]) gdb:TUI mode is not supported [B]gdb[/B] GNU gdb [U]6.8[/U] .... .... ....... This GDB was configured as "i686-pc-mingw32." I know that GDB supports tui mode from … | |
Event in application log suggest to use sxstrace.exe utility to diagnosis, result of sxstrace.exe is: -------------------------------------------------- ================= 开始生成激活上下文。 输入参数: Flags = 0 ProcessorArchitecture = x86 CultureFallBacks = zh-CN;zh-Hans;zh;en-US;en ManifestPath = E:\3D-TEST\program\1.0.0edition.exe AssemblyDirectory = E:\3D-TEST\program\ Application Config File = ----------------- 信息: 正在解析清单文件 E:\3D-TEST\program\1.0.0edition.exe。 信息: 指令清单定义标识是 (null)。 信息: 参考: Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0" 信息: 参考: … | |
hi How can we highlite(selecting) a search key. suppose i want to search php from database.so i am displaying a paragraph from the database.I want php to be highlited.How can i do this please help me Thanks | |
Hi there, I'm getting an error saying: non-static variable MainList cannot be referenced from a static context. My snippet of code where the error is occuring: [CODE] //this method is in a class called ViewContact public void printInfo(){ int index = MainScreen.MainList.getSelectedIndex(); } [/CODE] Now the List "MainList" is in … | |
hello everyone. I'm doing a php script that will read and write to my database and as you all know inputted data with apostrophe's gives an error whenever queried i was thinking on a way on how to filter the strings so that it would be able to accept apostrophe's.Anyone … ![]() | |
Been asked to write a program using Cream library. We have to used Constraints, but i have no idea what they are Could someone give an explanation of one and possibly some examples? | |
I have an email blast script as below. The mail_body is taken from a variable which the users sumbits their HTML for the message to be sent, it's send through with lots of \\\ in their for some reason? [B]The Blast Script[/B] [CODE]<?php $prodid='Kriss'; $htmlContent=$_POST['htmlContent']; include_once "connection.php"; $sql = mysql_query("SELECT … | |
Hi there, I have a field which the user fills in the previous page to this script, I want the HTML they enter into that to show in the message. I've used a variable to do this. I've mailed the message out (only me on the DB), I get it … | |
[CODE]std::wstring isAdmin() { SID_IDENTIFIER_AUTHORITY pIdentStruct = SECURITY_NT_AUTHORITY; PSID ptrSidStruct; BOOL isMember = false; if (!AllocateAndInitializeSid(&pIdentStruct, 2,SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS, 0, 0, 0, 0, 0, 0, &ptrSidStruct)) { return L"Unable to allocate & initialize SID struct"; } if (!CheckTokenMembership( 0, ptrSidStruct, &isMember)) { FreeSid(ptrSidStruct); return L"You do not have administrator priveledges."; } else … | |
Hi guys, I have my code and it works of filtering data by Month and year.But it seems i got a problem when using accordion. i am kinda stack of it. Can anyone please help me out? This is my codes. What i want to happen is like this. [B][URL="http://getpinoy.com/news_archive.?id=1&cat=local&m=11"]getpinoy[/URL][/B] … | |
hi,.,.. i knwo its sound too fasicinating (about title)... and u might b thinking i would be a some kind of rocket programmer or hve gr8 skill over various programming languages ,,.... :icon_question: but unfortunately i dont fall in any these category ,.. actually i'm a student of computer science … | |
[CODE]do { ++temp_week; system("cls"); printf("\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\t\t *** ***\n"); printf("\t\t *** WELCOME TO ***\n"); printf("\t\t *** CLASS ATTENDANCE SYSTEM ***\n"); printf("\t\t *** ***\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\n\n"); printf("\t\t ******** MARKING OF ATTENDANCE ********\n"); printf("\t\t PRESENT = 1 ABSENT = 0\n\n"); for(i=0; fscanf(ReadFile,"%d|", &Student[i].studNo) != EOF; i++) … | |
i have bit tricky kind or problem. i need to get values of each textbox in loop with different names,i have three row (name,telephone,email)and off course three textbox ,can any one help how to get in loop ,i need to insert them in database [CODE] Dim arr() As String Dim … | |
Hello people, I decided to make a family tree as a graduation project, I've thought about multiple ways to make it, but I like some fresh ideas, in case i forgot some things. I'm trying to keep the project as easy as possible, because in the end I will need … | |
I'm working on a project and I have to extract each word of a line that the operator just entered in the program. I'm not sure how to do that. Any help with be super appreciated. Here is my code... [code] #include<iostream> #include<string> using namespace std;!! class StringModify! {! public:! … | |
My assignment is to write a C# program that computes weekly pay for an employee. Input the number of hours worked. The employee receives 7.50 per hour for the first 40 hours worked and 11.25 per hour for each additional hour. Create Test data before coding and running the program. … | |
[icode]18830042010000000000010000010.00 300420101004301512210344 881114065677 john smith 0000010.00 18801062010000000000010000435.20 010620101006011143170683 841208925437 luna barbara 0000435.20 18830062010000000000010001881.00 300620101006302037530018 872420036243 micheal jordan 0001881.00 [/icode] [COLOR="Green"]I have a text file contains information shown above. I would like to produce a php code where it can read the text file and then insert the extracted data into … | |
i write following statment in my code [CODE]Response.Write(arr(0).ToString(), arr(1).ToString(), arr(2).ToString())[/CODE] but it gives me an error [COLOR="Red"]Conversion from string "xxx" to type 'Integer' is not valid.[/COLOR] althought array has values like this arr(0)='erum' arr(1)='dsds' arr(2)='sdsd' arr(3)='Nothing' [CODE] Dim arr(3) As String Dim record As Int32 record = 0 [/CODE] i … | |
i wrote a program that calculates how many coins that a vending machine splits out and such, and it does work but i can't figure how it works. at the time, i was sure of the logic, but now i can't understand how this is possible. [CODE] change = (amountPaid … | |
Hey guys! Im looking for a class or code in VB.NET that can convert a black and white image in JPEG format to a grayscale TIFF format. Any1 with some idea or source i can get? | |
Hi Please help with the following. This is my code: [CODE]<%@ Page Language="C#" Debug="true" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Configuration" %> <%@ Import Namespace="System.Xml.Linq" %> <%@ Import Namespace="System.Data.SqlClient"%> <%@ Import Namespace="System.Data.OleDb"%> <html> <head> <title>Session Page 2</title> </head> <body><p>ASP.NET C# session page 2</p> <p>first name: … |
The End.