199,114 Archived Topics
Remove Filter ![]() | |
I am getting the following error when trying to run a index.cfm file. [CODE] Could not find the included template /config/_errorMap.cfm. Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with CFINCLUDE, you must create a mapping for the path using the ColdFusion Administrator. Or, you … | |
If i have process P1 which contain two thread T1 and T2, then is it good to bind whole process to core C1 or To bind thread T1 to core C1 and T2 thread to C2 core. Which will give more performance ? If we assume C1 thread can consume … | |
Hello all. First post from a PHP newbie. I'm trying to teach myself how to retrieve data from my MySQL databse and have so far managed to get the text retrieval to work. What I'd now like to do, is to get my PHP page to retrieve an image, specifically … | |
I need help.... i have using gridview in asp.net, but this gridview is too wide and destroy my pages. can u give me solution? | |
![]() | Hello! I have small problem. I have char array which contains e.g. "10010010100010110" and I want to read/write it from/to file in binary mode. How can I convert my char array to a group of bits and how to write/read it to/from file? I need something like this: 1. I … ![]() |
4215/5431 Lab: Investigating the effect of wireless links on TCP In this assignment we will investigate the effect of wireless losses on TCP. For this purpose we will simulate a very simple network with 3 links. Let the links be AB, CB and DB. Of these DB is a wireless … | |
I'm developing a small web browser but am struggling with dynamically creating an eventhandler for a dropdown item in the main menu. I have a SortedList called items containing two values, items.Key is the site name, like "Google", and items.Value is the URL, "www.google.com". Below is the code I use … | |
Hi guys, i need some help on my java homework. i need a text box which will have a piece of text. then i must show how many times every word has written in the text. in my way of thinking i should add every word to an array and … | |
I am using vs.net 2008 vb and mysql I am using datasets alot in this application, however I am having a few small snags I am running into. I created a login system that works quite well, but I need using the db or settings or a variable keep the … | |
Guys, in this program, we have a file by the name of asharray.txt, which is attached to this post, and we have three functions: 1.to read the file 2.to sort the numbers 3.to write to a separate file by the name of( array result.txt) Sp, here I faced some problems, … | |
i want to write a program for reading mpeg-4 file headers to get info such as filetype ,encoder,bitrate,etc.. is there any library of these functions? i tried searching the forums but could find any desirable results ... i aint asking for the code.. jus a little help on which library … | |
In which path gcc resides in IBM AIX.Due to some change change in my .profile the path variable got changed now i am not able to get the path of gcc. please help me | |
Dear members, I am looking for .NET functions to change power settings of a PC. For example, the hard disk turn off time, screen brightness, monitor turn off time. All these are intended to save energy. After some studies, I found that [B]DeviceIOControl[/B] provides such capabilties. However, I am not … | |
Does anyone know how to create circular linked list whose links are numbered from 1 to n specified by the user? | |
Hi.I am very new to the vb.net programming. Now I am trying to connect the database that is sql server 2005 to the vb.net code so that I can add the data to my database, which is already in the sql server and retrieve the required data from the database. … | |
Hi, I am developing a TM simulation program. But got stuck in execution as it goes wrong. The Code is the follwing. 1. Java Code [CODE]import java.io.IOException; public class TMSimulation{ public static void main(String args[]) throws IOException{ InputReader reader=new InputReader(); reader.tmFileNamereader(); reader.tmFileReader(); //fileReader.display(anArray) } }[/CODE] [CODE]import java.io.*; public class InputReader{ … | |
I am attempting to put integers from a text file to an array. I am new to C. I have already found the number of lines and opened the file. I do not understand why this does not work: [CODE] for(i = 0; i <= numberlines; i++) { fscanf(f, "%d", … | |
I'm trying to clean up my coding a bit for a program I'm working on. Here's an example of my code (not my exact code, but I've adapted it to an example): [CODE]class Example { private: double* group; int number; public: Example() {group=new double[1]; number=0;}; Example(const Example& ex); Example& Example::operator=(const … | |
Hey!!! Anyone have any idea that can we fire button click event if the button is added in[B] tabpane[/B]l not in panel if have any example or any help would appriciated pls give as soon as possible. | |
How can i create a program that can continuously run immidiately when comp is logged in . This program should have to run as a process which can continuously check some conditions. Please kindly reply. [i]email snipped[/i] | |
hi!!!! i have problem with my dynamic control in tab panel below is my code [CODE]protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { tabcontainer1_ActiveTabChanged(tabcontainer1, null); getcontrol(); } } protected override void LoadViewState(object savedState) { base.LoadViewState(savedState); if (ViewState["controsladded"] == null) getcontrol(); } protected void tabcontainer1_ActiveTabChanged(object sender, EventArgs e) { … | |
Hi all, I m new to C++ and very desperately looking for some help in my code.Im trying to write a program that uses bisection method to find the root of a function.Im having problems as my results are not accurate enough and my function (f) does not produce answers … | |
Hello, I am still green to the C programming language. I am writing a multi-dimensional array program to store strings into an array. The program requires error checking to avoid overflow. I am using Visual Studio 2008. I am using a Windows O/S. The program runs fine on the first … | |
How do I write this code without the malloc function? [CODE]// 222.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #define N 6 #define MAX_STRLEN 80 void sort(char **a, int n); char *stringArray[N]; int main(int argc, char *argv[]) { int … | |
[CODE]class BinarySearchTree { public: BinarySearchTree (void); bool addRecursively // calls addRecursive (see private) (BinarySearchTreeNode* newAdd); bool addIteratively (BinarySearchTreeNode* newAdd); void writeRecursively // calls writeRecursive (see private) (ostream& outfile) const; void writeIteratively // if implemented, requires a stack - (ostream& outfile) const; // - see oop06 private: void addRecursively (BinarySearchTreeNode* currentRoot, … | |
Hi, I am trying to convert a char pointer to a normal char(somehow copy the strings from the pointer and pass it to the char) Here is a piece of example on what i want to do [code] #include <iostream> #include <windows.h> using namespace std; int main() { char *namen="Test"; … | |
If I am trying to select an item from listbox1 and an item from listbox2 that need to be converted to integers what do I do? I am having trouble understanding the selectItems.property | |
[CODE]#include <vector> #include <iostream> #include <iomanip> using namespace std; typedef vector<double>row; typedef vector<row>Matrix; Matrix grade; void read_matrix(Matrix&grade,vector<string>&names); void display_matrix(const Matrix&grades,const vector<string>&names); void read_matrix(Matrix&grade,vector<string>&names) { int grades; cout << "Reading data into a Matrix " << endl; cin >>grades; if(grades== 0) { cout << "Making vector empty." << endl; grade.resize(0); } … | |
we are in a section were we are working with classes also with arrays my question is if you have an array of students how can you remove that student for the list by copying the other students for below up a slot. | |
In my program I am creating a class instance then writing it to a binary file. I do this several times so I have several instances of this class in my file. Then I want to access them individually, read them back into an instance in the program, change its … | |
Problem: Course Grade Modification Write a program that uses a structure to store the following information: Name, idNum, tests, avg, and grade I got the most of the program completed so far, however I still need to do the average and grade, if anyone can assist me I would greatly … | |
Hello all, I am trying to create a database using Microsoft Access based on the folowing scenario. However, before doing this, I am trying to figure out the logic and draw an ERD. The scenario is as follows: "The Meantime agency manages properties for rent in South East London. Clients … | |
hey guys i wrote a code for honework problem...the code works fine however everytime user puts more number than the static array it keep those number in the memory and later in the program if i do cout and cin it will ignore that and assign the number to the … | |
[CODE]Private Sub btnBill_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnBill.Click item = txtItem.Text duration = txtduration.Text Dim fmtstr As String = "{0, -15} {1, 17:c2}" '----------------------------------------------------------------------------------------------- lstResult2.Items.Add(" Receipt from Eddie's Equipment Rental") Select Case item.ToUpper & duration.ToUpper Case "1", "h" lstResult2.Items.Add(String.Format(fmtstr, "Rug cleaner", 16)) Case "2", "h" lstResult2.Items.Add(String.Format(fmtstr, … | |
I need to load a single jpg image to a windows form at run time. file name / path is a given. Any insight on how to do this? | |
[CODE] #include<iostream> #include<fstream> #include<string> using namespace std; void main() { //decleration ifstream source; ofstream target; char * box; int width, height, numlevel; string s; int amount= 100; //-------------------- source.open("1.ppm",ios::binary); while(source.fail()) { cout<<"can not open the file"<<endl; // to make sure the file is opened } source>> s; if ( s … | |
It cannot display correct id no of student. Would you mind tell me what wrog of it. Thank you very much! [ICODE] <?php require_once('Connections/connection.php'); ?> <?php $colname_Recordset1 = "-1"; if (isset($_GET['eca_id'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['eca_id'] : addslashes($_GET['eca_id']); } mysql_select_db($database_connection, $connection); $query_Recordset1 = sprintf("SELECT * FROM eca,student_info WHERE eca_id … | |
im new to javascript and im currently designing a survey and i have to modify the survey using javascript, it has to do: the user should not be allowed to select any options from question 2 if they chose the last radio button of question 1. and i don't know … | |
So I have one problem and I put in the code for you to see. This is the code that i am having problems with: [code]int main (void){ FancyDateClass myDateObj(24, 2, 2008); cout << "\n\n"; cout << "The date is "; myDateObj.displayDate(); cout << "\n\n"; cout << "The month for … | |
Hi, I'm trying to make a headless version of my app (one that will start if the user appends arguments). My problem is that even though if I check for args in Main() it seems to open up the form no matter what. I've managed to use two versions of … | |
Hello. This is my first posting so I will try to be as detailed and clear as possible. I am running into a problem with a method returning an incorrect value and I can't quite seem to figure out why. I'm building a Rolodex which is really just an object … | |
I keep getting the following error: [code] Error 1 error C2678: binary '+' : no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion) [/code] and I can't figure out how to fix it...I believe it has something to do with the red … | |
Hello everyone I am trying to learn about the compilation process. I am working on a pretty simple SDL game, but I know that making games isn't very practical, so I am using the project to learn about other programming aspects as well. One of the things I am trying … | |
hello! I have run into a brick wall trying to write a traffic light program. The program must display a traffic light (so far I have tried painting it on a Graphics) and use radio buttons (red, yellow, green) to change the color of the light. So far, I've got … | |
Hi all. Just a quick question for anyone who might know. Is there any way of setting up the entering of a character or number without having to press the return key after? For all options i input into my program when i run it i always have to press … | |
i tried to make a program to compare two string and display which character will come first as you can see below but it gives certain error can any one guide me what changes i have to make [CODE]int Mystrcmp (const char* , const char* ); { cout<<Mystrcmp(v1,v2); } int … | |
I have encountered a problem with the following function when I use it. I do not know what is going on, and would like to ask for advise. The program compiles without any error, but when I execute it, it just freezes and exits. [CODE=c] typedef long long unsigned int … | |
Like there are authorities like sun which maintains java documentations, python.org which maintains python docs and for others where the developer of the language reference also maintains the documentations of the library and language reference documentations. What is the authoritative entity that maintains the complete c/c++ documentations? I was looking … | |
hi , i have a function parameter that i need it to be a char and also a const char* . can anyone help me? [CODE] void write(...) // ??? { } //.............................. if(somethin) { write('c'); } else write("string"); [/CODE] | |
hi please can anyone help me with this code. the prob lies in the add function for some reason it only executes 2 lines of the code and as soon as i enter the data the program finishes [CODE] import java.io.FileNotFoundException; import java.io.IOException; import java.io.RandomAccessFile; import java.io.*; class customers{ private … |
The End.