199,114 Archived Topics
Remove Filter ![]() | |
Hello, I know this much that I want to include two files in my program. But can I decide which files to include at run time? Is this possible? Thanks in advance, -Jishnu. | |
the code is given as #!/bin/sh i=1; while [ $i -le 5 ] do echo "welcome $i times"; i= 'expr $i + 1 '; done it enters into infinite loop and does not increment the i variable plz suggest something exit 0; | |
i have installed cygwin with vim and vi editor but when i type into those editor nothing gets written and message comes that no string under cursor plz help somebody | |
Hi All, I have a software module(enquiry) developed in ASP using MSSQL as back end. In the index page , i display 4 new enquiries for the logged in user, clicking on which land to the enquiry pages. This has been working fine. But now recently i have come across … | |
Hi,I am new to VB6 and doin a project on it. 1.) I need to create a Listbox in a form1 which wil display data from another table in DB(MS ACCESS).Whenever any changes occur in that table,it should get reflected in the listbox. Ex:We have a table containing country names … | |
I'm trying to make the second parameter a default parameter that is the same as the first, or different if I want it to be different.. Why doesn't this work? And is there a way around it, other than by iterative overloads? void LoadFile (std::string filename, std::string key=filename) { //blah … | |
I have been a C/C++ programmer for 4 years now, and now that I'm actually reading a tut on it, I have to say, I am impressed! The whole concept of the DS really is cool; and it's flexability is the best I have seen. While I was reading one … | |
hey guys, I was wondering if interrupts works with wireless-USB keyboards, I wrote a code thats reads a key and displays it, but its not working, I thought i'd check whether the keyboards is causing the problem or not. [code] mov ah,06H mov dl,0ffh INT 21h mov ah,06h mov DL,AL … | |
I have been reading "Sams Teach Yourself C++ in 24 Hours". This is the code that has confused me: [CODE=c++] #include <iostream> class Cat { public: int GetAge(); void SetAge (int age); void Meow(); private: int itsAge; }; int Cat::GetAge() { return itsAge; } void Cat::SetAge(int age) { itsAge = … | |
Hi, I tried having a go at creating my own boot disk that would write text to the screen. The code is here: [CODE] ;---------------------------------------------------------------------- ; Simple boot program that prints the letter 'H' ; and then hangs ; Joel Gompert 2001 ; ; Disclaimer: I am not responsible for … | |
Hi all, I am hoping that someone will be able to point me in the correct direction. I am trying to print an error log (simple txt file) from a c# console application. I have created the txt file and can access and display the information caontained within it. However … | |
I am getting an error when I do this in C program: execl("/bin/cp","../data/data_.txt","../data/data.txt",0); error is as follows: ../data/data_.txt: missing destination file operand after `../data/data.txt' Try `../data/data_.txt --help' for more information. I tried this too, it didn't help. execl("/bin/cp ../data/data_.txt ../data/data.txt",0); All I am trying to do is this: cp ../data/data_.txt … | |
i can say u r so professional if u finish it just after 1 day it contain many things and it will improve ur programming for sure the programs in Attachment file if anyone just try to start it ,,, let me know 2day plz and connect with me at … | |
Is there any way to detect that I am no longer receiving data on a TCP connection in C#. For example, I have the following program: [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.Sockets; namespace SocketTest { … | |
I copy a form in explorer and even gave it than a slightly different name than an existing form. When I try to add the form to the project, it gives me an error and says a form by that name already exists. How can I get around this? | |
Hi all. Is Visual Basic same as VBA? I need to do my final year project in Excel using VBA. The project is in such a way that i can generate curves using Excel. I have been searching for the samples source code for cosine, sine and FFT source code, … | |
At runtime I want to check if a certain form is open. I know how to check if a form is open. I do it like this(where form1 and form2 contain the names of the form) [CODE]For Each fForm In Forms If fForm.Name = Form1 Or fForm.Name = form2 Then … | |
Please help me in self documenting the program below. All u have to do is, take a quick glance at the following code to see if u can understand wat each part is doing. If u have any difficulty in understanding(at a quick glance that is!), pls tell me so … | |
How to make win32 app with login? Is there some command or i need to make my function by myself? | |
Hi I'm wondering why you would learn C++ for use in finance when you can do so many calculations on an excel spreadsheet and use VBA. I am not an expert on either though could someone tell me why C++ is better and if not why excel and VBA is … | |
i made a program to evaluate an expression, "expeval.cpp" [find attached]. i then tried to go further..... i made the program to read characters from the keyboard and write it into a file["file.cpp",find attached]. if an expression is encountered, it is evaluated and the result is displayed after the line … | |
I want to how to use a character that isn't on the keyboard in the out put of my program. I've gone into eudcedit.exe to create characters that I want to use in my program and saced them under the font that I use for output, but what I want … | |
Is there a way to check Iframe is supported by a browser or not in the JSP using some script. Please let me know! Its urgent | |
Hi all! I've started a little late doing my final year university project, but I know what I want to do so it's probably better than a few of the other students out there! I do enjoy reading and studying about the wide variety of topics that are encompassed by … | |
Hello, I would like to use a simple "if then" test to check if an argument to a command begins with "http://" as follows: if [[ $2 == [url]http://*[/url] ]]; then command fi but the wildcard just seems to be ignored, ie., it will only execute the command if the … | |
int file file = open("./some.txt", O_RDONLY); Above line file=open giving me compile error: 'O_RDONLY' undeclared (first use in this function) What is the problem here? I am running linux and gcc 4.1. | |
i have a question, why can't i do this, there are three errors and i don't know what they mean [code] #include<iostream.h> float celsius_to_fahrenheit(float); int main() { float fahrenheit; float celsius=22.5; fahrenheit=celsius_to_fahrenheit(celsius); cout<<celsius<<"C="<<fahrenheit<<"F\n"; return 0; } celsius_to_fahrenheit(float celsius) { return(celsius*(9.0/5.0)+32.0); } [/code] | |
Hello All, I have a user define class, [code=vb] <Serializable()> Public Class City Public Name As String = "" Public State As String = "" Public URL As String = "" Public Sub New(ByVal state As String, ByVal name As String, ByVal url As String) me.State = state me.Name = … | |
If I call the MessageBox function: [CODE]MessageBox(NULL, "Message", "Message", MB_OK);[/CODE] for example, the box will not appear. It will make the beeping sound, though. | |
I am working on an ASP.net 2.0 application written in C#, pulling data from an Oracle 10g database on a remote server (i.e. the application and database are on different servers). The data is pulled via a SqlDataSource control. When I run small, quick queries, everything works fine, but when … | |
I am working on an ASP.net 2.0 application written in C#, pulling data from an Oracle 10g database on a remote server (i.e. the application and database are on different servers). The data is pulled via a SqlDataSource control. When I run small, quick queries, everything works fine, but when … | |
Hi , [code=C] /* Inputs a list of strings from the keyboard, sorts them */ /* in ascending or descending order, and then displays them */ /* on the screen. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #define MAXLINES 25 int get_lines(char *lines[]); void sort(char *p[], int n, int sort_type); … | |
Hi i always mix up a NULL and '\0' and 0. Can you write me when to use these things? | |
can anyone give me a link to a good turbo vision tutorial. i have been searching for one for months now and would be greatful for any help. | |
hello again i have mac computer and i have xcode on it. i am looking for some use full beginners books or tutorials. Right from start i have no previous knowledge of c++. can any one suggests any book for site for beginners which specially deal with g++ and xcode. … | |
I was trying to delete the currently selected listview item using MFC methods, but obviously they werent compatible How can I accomplish this in VS 2005 (standard .NET windows forms NOT MFC? I have tried [code=C++] void CMyListView::DeleteSelectedRow() { int nIndex = GetListCtrl().GetSelectionMark(); if(nIndex != -1) { GetListCtrl().DeleteItem(nIndex); } } … | |
Ok i'll try to be brief. As part of one of my essays i thought of creating source code for implementation of a binary tree and its basic functions. My code is both from books,lecture notes and googling but for some reason on the printing of the nodes using inOrder … | |
Hi, I 'think' this is a JavaScript problem, but I am not sure. I am trying to make a modified layout using one of Dreamweaver's preformed layouts. The original layout has a navigation bar across the top of the page, that has drop down menu items. In the original form, … | |
Hi, I've now spent hours looking at this and no joy, wondering if any of you guys can help. I am passing an object that uses dynamically allocated memory into a method, but for some reason when it finishes my original object has changed/been destroyed. header file: [CODE=cpp] class Multiset … | |
How would I execute a C/C++ program without using a windows library? (Like ShellExecute) | |
I'm creating a billing program for my college's print shop. I'm doing this with a class called "orders" that signifies each new order that is taken. I'm having trouble figuing out how to create new variables of that class without prompting the user to input anything though... After the previous … | |
Hi, i have been making a program that tests a computer owner's firewall. It gets input from the client i made, and does a system() with it. Is there any way to make the firewall not block the program right when i make a scocket? Oh, im using Dev-C++ 4.9.9.2 … | |
Hello, I'm getting my feet wet using Async Gateways with CF8, and I have created a loop which calls the gateway X amount of times. The gateway request then logs the data, however, it is logging X requests, but only the actual data from the last request in the loop. … | |
in visual c# express edition 2005 is it possible to add your own window border, like in some programs there are custom made min,max and close buttons instead of the xp ones. how can i do it in visual studio??:p | |
Hi, am using C# to program. I declared my property as below public decimal sal(string amount) { get{return sal;}} Now on running I got the error sal is declared as property not method What should I do? | |
i have a project with xml,i must open a xml file in tree view,i've done this,but now i want to add node.i have a existing file witch i've open,and in this xml file i need to insert new node,can someone help me with this. thank you very much | |
When resizing the form, I resize the toolbar on top. When it gets too small for all the buttons on the toolbar to show I want to either Split the buttons into two lines or Add a button at the right hand corner which includes as menubuttons all the buttons … | |
[B][COLOR="Red"]hi all, I am new here,and I wish I could find a solution for this program My program has to check if the number is prime or not?, my program is working properly with numbers greater than 1 (n>1), I want my program to display a friendly message when the … | |
hi all, i am using the below code to open a n application by specifying the file path response.setHeader("Content-Disposition", "attachment; filename="+ java.net.URLEncoder.encode(filePath) +""); but while opening the application the path changed as D%3A%2FPrepress%2F5_Production%2FJournals%2FBalaban%2FPI10000044%2FBban_MWMS_100005%2FData%2Fset+header[3] with special characters because of the filepath changed i cant apple to use the save button. i … | |
[B]Point.h[/B] [code=c++] #prag... #pragma once #include <iostream> using namespace std; class Point { private: int x; int y; public: Point(void); Point( int x, int y ); Point( const Point &xPoint ); ~Point(void); void setX( int x ); int getX() const; void setY( int y ); int getY() const; Point & … |
The End.