199,114 Archived Topics
Remove Filter ![]() | |
I am trying to improve a program I have, but there is one thing I cannot figure out to do... so, trying to make this short, this is what I'd like to accomplish: Is there a way for C to count how many variables are equal to a particular value? … | |
Hi everyone I have a menu that I'm creating dynamically with links that have query strings on the end of them. Basically I want the menu item, that's related to the page the user is on, to be in a different colour to the rest of the menu items. An … | |
Hi, I have implemented my first C++ class as following thanks to the generous help of Ancient Dragon: [CODE] typedef unsigned long ULONG; class CMatrix { public: CMatrix(const CMatrix& m); CMatrix(size_t row, size_t col); ULONG sum(); size_t s_row(); size_t s_col(); CMatrix& operator *= (const CMatrix& m); private: size_t _s_row; size_t … | |
Hello, Programming/Python newb here looking for some help with arrays. I am trying to write a parsing program that takes a comma delimited csv file, compares entries, and outputs the comparisons in a particular format. The csv file has two columns. Col [0] contains article identifiers, col[1] contains assigned keywords. … | |
hello i have some data which i read in and wish to carry out some functions with it and format it into a new output file. however on my input data i need to do different things dependind were my data is for example def some_function(list): does something does something … | |
Now i have an array, P[8]={0,1,1,2,0,3,1,0} And i want to add 4 separate values to each element in the array,so if i was to lookup P[2] i can access its 4 values. I tried doing it by giving those standard values an array of itself and making each value get … | |
Hi guys, I was trying to implement a friends script but I encountered this error Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'by) VALUES ('Toxikr3' , 'moderator')' at line 1 I … | |
Hi, I am trying to do url rewriting on linux server through .htaccess file in my root directory. the content of my .htaccess are [code]RewriteEngine on RewriteRule ^test.cleanurl(\/.*)*$ /test.cleanurl.php RewriteRule ^news(\/.*)*$ /news.php[/code] this is the news.php file [code=php]<?php require("class.cleanurl.php"); $clean = new CleanURL; $clean->parseURL(); $clean->setRelative('relativeslash'); //relativeslash is variable name $clean->setParts('id','page'); … | |
Hi I need the code in [COLOR="Red"]VB6[/COLOR] to display data from a database in a listbox i tried the following code but its not working Do While Not rec2.EOF List1.ItemData(List6.NewIndex) = rec2.Fields(4) rec2.MoveNext ' i even tried Do While Not rec2.EOF List1.ItemData rec2.Fields(4) rec2.MoveNext | |
Hi guys I m trying my hand on some program::where there is a function like this::[CODE] void IVR_AL_GET_VM_RETRIEVAL_PROFILE_REQ(ds *pline, char xmlToken[e_LASTCOUNT][5000]) { strcpy(xmlToken[e_MESSAGETYPE],"GET_VM_RETRIEVAL_PROFILE_REQ"); strcpy(xmlToken[e_MSISDN],pline->user_info.msisdn); strcpy(xmlToken[e_TRANSACTION_ID],pline->transactionId); return; } [/CODE] where ds and user_info are structures:: [CODE] struct user_info { int msisdn; char redirReason[17]; //Used in GET_VM_DEPOSIT_PROFILE_REQ char *caller_no; //To be used … | |
Hi All, How to add a [b]candidate key[/b] in a table in SQl?? Please Help. Thanks. | |
Hey, I really need you guys help as I had been searching info on displaying blob images from database for weeks:( I tried to add in the code that i think would display however it only display the path instead if the image. [CODE]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ … | |
Hi, In vb.net2008 if we want to disable/enable the groupbox as per condition.Then how its possible when we used save button.how its insert into database.following is the code: Imports System.Data.OleDb Public Class addcust Dim da As OleDbDataAdapter Dim ds As DataSet Dim cmd As OleDbCommand Dim cmd1 As OleDbCommand Dim … | |
Step: 1I have a class Mytest [code] class MyTest { public string Name { get; set; } } [/code] Step2: Created a class Demo to use the member variables of the class myTest [code] class Demo { public void GetNames<T>(IList<myTest> info) { foreach (myTest test in info) { Console.WriteLine(test.Name.ToString()); } … | |
Hi, i completed my coding which was related to searching files with .cap extension and then making out folders with a number contained in the file and then putting the files in their respective folders. now when i checked it ,it worked fine and created folders and sorted about 1.5GB … | |
I am getting some strange behavior with a PHP page I am coding: I have some code that displays a MENU (with the letters of the alphabet): [CODE] <FORM NAME="getletter" ACTION="Service_Dates_detail.php?id_Event=<?php echo $id_Event; ?>" METHOD="POST"> <table width="389" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="49" class="style14">Filter:</td> <td width="315"><span class="style14">Select Song</span> <input type="hidden" … | |
can anyone help me create a typing game of falling letters(randomly), and as the player presses the key of the falling letter, the letter pressed will vanish and the player will gain points...thanks...help me,please... | |
Hey guys, I have two fields in a table namely Start_date and End_date. Now, a user is expected to select a start date and end date on a web page. These dates should be compared with the dates in the database in such a way that the dates entered by … | |
i am checking the checkbox is checked r not by using following code.... if the condition is true i have to checked another box in runtime using docuemnt.form... or document.getElementById like...document.form.chkbox2=checked like that... [CODE]if(document.form.chkbox1.checked){ // }[/CODE] | |
Hey guys, I'm really puzzled about this error: [quote] Error 1 Feature 'generics' cannot be used because it is not part of the standardized ISO C# language specification C:\Documents and Settings\John Rudd\Desktop\dissertation\custom_plugin\myProtocolPlugin\myProtocolPlugin\Commands.cs 9 54 myProtocolPlugin [/quote] Generics IS supported, I've done it on more than one occasion in the same … | |
I have a problem with datagridview I have three columns . 2 of them are combobox and the last one is textbox. the seconed combobox is depending on the first the problem is when i'm trying to fill the seconed combobox in the second row the DataSource of the second … | |
Hi, When I am using one session all right. But now I have 4 sessions and if they click the Log Out error is thrown: Warning: session_destroy() [function.session-destroy]: Session object destruction failed in D:\wamp\www\index2.php on line 25 25 line is: session_destroy(); My code: [code] if(isset($_GET['Logout'])) { $query = 'UPDATE user … | |
Hey all, I am having some trouble trying to open a dialog window. Firstly I am using MFC in MSVC 6. I have a main dialog window and I am trying to open a second dialog window by clicking on a button("second") in the main dialog window. When I am … ![]() | |
Hi everyone, The goal is to be able to extract a specific element (and all children of it) from a XML string and then to echo this to the page inside a hidden form element so that it can be posted to another page. I have tried to get the … | |
Hello all, im writing an ASP.NET application and i wonder if is there a way that can i obtain the ASP.NET markup code(e.g. <asp:button etc etc) of a control that it is created 'on the fly'. Please answer me as soon as possible, :) Alex | |
I am using gcc on Suse Linux Enterprise Server 10 to compile my C++ source files. The problem I have is that when I invoke the command [INDENT][B]g++ source_file.cpp[/B][/INDENT] the file source_file.cpp is compiled as a C source file. I realized the problem when I was trying to set up … | |
i need open source for dropdownlist for country,state and city as same as in below link [url]http://www.genuinematrimony.com/register.php[/url] | |
Hi need help to solve refresh problem I have a main webpage with a button. Once the button is clicked, a popup dialog (web form) is prompted. Once user click 'OK' in this dailog, data saving is performed and I need to close and refresh the main webpage. How do … | |
Hi all I'm am using Netbeans 6.5 on ubuntu for programming PHP. When I create an instance of a class and type "->" after the variables name, I don't get to see any methods. Even when I press CTRL-Space, it only says "No suggestions"... Code templates do work (like typing … | |
Hi guys, I have a code that sends sms through clickatell gateway, but now I am getting the NotSupportedException with the message "this stream does not support seek operations". Anyone who has used clickatell gateway for sms successfully please help me. Please help me eliminate this exception and get my … | |
My application in C + + uses winsock2.h It use the send method to send the frames to the server developend on java. My application send a string so: #define MAXLONGITUD 10000 char bufEnviados[MAXLONGITUD + 1]; bufEnviados[0] = (0xff & (longitud >> 8)); bufEnviados[1] = (0xff & longitud); send(sock, bufEnviados,strlen(bufEnviados), … | |
Hi all C++ expert, I'm new in this field. I've written a program but I need to write it using class. I'm not able to understand where I'll define [quote]a = new double[numElement];[/quote] etc.... and [quote]delete [] a;[/quote] etc... I'm confused where and why I'll define 'new' & 'delete' using … | |
Hi, please check the following code; [CODE=html] <? session_start(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Admin Panel</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="<?=$_SERVER['DOCUMENT_ROOT']?>/admin/stylesheet/adminstyle.css" type="text/css" rel="stylesheet"> <? echo $_SERVER['DOCUMENT_ROOT']."/admin/stylesheet/adminstyle.css"; ?> <script> function chk(name) { if(name == 'pro') { document.getElementById("content").src = "view_provinces.php"; } if(name == 'loc') { document.getElementById("content").src … | |
Please help me in setting apache-tomcat-6.0.20 on linux. When I use the code [QUOTE]sh startup.sh[/QUOTE] I see this. [QUOTE] Using CATALINA_BASE: /home/apinder/apache-tomcat-6.0.20-src Using CATALINA_HOME: /home/apinder/apache-tomcat-6.0.20-src Using CATALINA_TMPDIR: /home/apinder/apache-tomcat-6.0.20-src/temp Using JRE_HOME: /usr/java/jdk1.6.0_14/[/QUOTE] No error message is shown here, but if I open [url]http://localhost:8080/[/url] tomcat default page doesn't open. I haven't changed … | |
Hi, im doing a website with master page, i hide and show some images every now and then on the master page, when i hide and show without redirecting to another page it doesnt give me any problems, but when i navigate to another page i lose the hide and … | |
Hi, I am now working with MFC and I have a main window, but I want to create a button, and when clicked, a new window to apppear, and also I want to draw in the new window. I created the button, and when cilcked is drawing a rectangle..it was … ![]() | |
Hi, I have a combo box that takes its values from a database. I need to make unique items in the combobox. I could do this in database part, but I need other attributes of values. Let me explain: There is Surgery table in my database with id,name and clinic … | |
hi, I am creating code for registration form with description field and then i am trying to display all vales using table fields i gave td width as 50 wen i am displaying description if its having huge content its not taking limit its gets expanded but i want like … | |
i want to create a moving graph whose y value progresses with the slider value.i am confused whether to implement it using JFreechart.Is there a simpler method? How should i go about doing this? | |
Hi, I need to try AJAX in my future Applications. Can anyone here help me with use of ajax, advantages, need of ajax. and it would be very appreciable if anyone can help with simple example of ajax using asp.net 2.0 (vb) and sql server 2k. thanks, Nitsy... | |
Hi, Please see below code which I need to understand. I tried to find information on the php site and the manual and the php book I have but could not find it. Wht does this mean " => " [code=php] function emailusers_menu() { $item('admin/emailusers/compose/%')= array( 'title' => 'Compose a … | |
Hi there, Im working on an application that allows me have sales leads inserted directly into a sql table which can then be easily managed with a datagrid master/details model. This can be viewed at [url]www.rickpace79.com/scum2.aspx[/url] My next step is to add a droplist containing the e-mail values of our … | |
Hi All, i want send sms to any mobile in india through my application.i tried using webservice in weservicex.net(not sure?) .bt it's not working.i dont want pay money as this is is very small project.so can any one plz help hw to send sms.any free gateway providers. thanks in advance. … | |
Hey Guys/Girls I'm creating a C++ application. So far I have created 2 projects, under one solution. The first is a native win32 project and the other is a DLL. Now my problem. How do I include this DLL I create, in my win32 application? So far I have tried: … | |
Hi, in MS SQL we have [B]TOP [I]some_value[/I][/B] clause which means that only some first records are selected. For example: [I]select top 10 products from table_products[/I] How can I select rows for example from 4th to 15th? | |
hi.. this is my new program .. i want a fix or constant answer like, when the answer in: Student Name: Monica Clare then it proceed to another question.. but when.. Student Name: blah blah then. it shown error_message that it is invalid answer,, .. please help me debugging this … | |
hi Is there any way of making the input to a inputbox show as astrix? Im entring a password and dont want it to be shown on the screen. Any suggestions would be great. Thankyou! | |
Hi, I upgraded Perl 5.8 in Unix to Perl 5.10.0 I am using WWW::Mechanize package in my scripting. But I am not able to locate WWW::Mechanize in Perl. Can any help me ??? | |
Was recently asked to convert some code, but I have a minimalistic ammount of knowledge of delphi and I wasn't able to convert this code. If you could help me out it would be great. [code=c++] void TypeStr(char *lpszString) { char cChar; while((cChar=*lpszString++)) // loops through chars { short vk=VkKeyScan(cChar); … | |
when i press cancel button.it still prints.Kindly let me know .any help would be Highly appreciated.here is the following code what i have written. [code=vb] Private Sub btPrint_Click() Dim frm As IspecialForm Set frm = Me.ActiveForm frm.GetTextBoxInvisible frm.Refresh 'CommonDialog1.Flags = cdlPDReturnDC + cdlPDNoPageNums CommonDialog1.Action = 5 CommonDialog1.PrinterDefault = True CommonDialog1.CancelError … |
The End.