199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jishnu

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.

Member Avatar for Jishnu
0
356
Member Avatar for mrityunjay22

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;

Member Avatar for eggi
0
97
Member Avatar for mrityunjay22

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

Member Avatar for eggi
0
12K
Member Avatar for nikie_2007

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 …

Member Avatar for nikie_2007
0
241
Member Avatar for kartik07

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 …

Member Avatar for venkatramasamy
0
140
Member Avatar for phalaris_trip

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 …

Member Avatar for phalaris_trip
0
117
Member Avatar for Queatrix

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 …

Member Avatar for Duoas
0
86
Member Avatar for AqAbAwE

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 …

Member Avatar for Ryu
0
89
Member Avatar for toko

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 = …

Member Avatar for Max_Payne
0
105
Member Avatar for MattVonFat

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 …

Member Avatar for Ryu
0
611
Member Avatar for FallenPaladin

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 …

Member Avatar for Jugortha
0
1K
Member Avatar for jobs

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 …

Member Avatar for kv79
0
668
Member Avatar for Omar Allam

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 …

Member Avatar for Omar Allam
0
125
Member Avatar for atrusmre

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 { …

Member Avatar for Jugortha
0
104
Member Avatar for jonrmoore

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?

Member Avatar for hkdani
0
90
Member Avatar for sulphox

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, …

Member Avatar for hkdani
0
237
Member Avatar for plusplus

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 …

Member Avatar for hkdani
0
139
Member Avatar for Karkaroff

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 …

Member Avatar for n.aggel
0
302
Member Avatar for kv79

How to make win32 app with login? Is there some command or i need to make my function by myself?

Member Avatar for dubeyprateek
0
91
Member Avatar for daino

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 …

Member Avatar for dubeyprateek
0
234
Member Avatar for Karkaroff

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 …

Member Avatar for Karkaroff
0
115
Member Avatar for #include<DAN.h>

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 …

Member Avatar for Salem
0
125
Member Avatar for kaushik259106

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

Member Avatar for kaushik259106
0
444
Member Avatar for naveed.pasha

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 …

Member Avatar for Salem
0
586
Member Avatar for Allasso

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 …

Member Avatar for eggi
0
107
Member Avatar for jobs

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.

Member Avatar for jobs
0
3K
Member Avatar for mr.cool

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]

Member Avatar for Narue
0
97
Member Avatar for AaronASterling

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 = …

0
103
Member Avatar for death_oclock

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.

Member Avatar for death_oclock
0
104
Member Avatar for rregalad

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 …

Member Avatar for rregalad
0
158
Member Avatar for rregalad

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 …

Member Avatar for rregalad
0
122
Member Avatar for kv79

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); …

Member Avatar for kv79
0
76
Member Avatar for kv79

Hi i always mix up a NULL and '\0' and 0. Can you write me when to use these things?

Member Avatar for kv79
0
185
Member Avatar for spacecookie

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.

Member Avatar for Logomachist
0
119
Member Avatar for peeta

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. …

Member Avatar for peeta
0
120
Member Avatar for That Asian Guy

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); } } …

Member Avatar for That Asian Guy
0
102
Member Avatar for Blondeamon

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 …

Member Avatar for Blondeamon
0
98
Member Avatar for jay64

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, …

Member Avatar for jay64
0
135
Member Avatar for djJonno

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 …

Member Avatar for djJonno
0
383
Member Avatar for Queatrix

How would I execute a C/C++ program without using a windows library? (Like ShellExecute)

Member Avatar for Queatrix
0
152
Member Avatar for TimeIsCyclical

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 …

Member Avatar for Bench
0
99
Member Avatar for TheBeast32

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 …

Member Avatar for WolfPack
0
352
Member Avatar for drumsticks

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. …

Member Avatar for drumsticks
0
103
Member Avatar for josh06

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

Member Avatar for Jugortha
0
96
Member Avatar for Mukoyonzo

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?

Member Avatar for Jugortha
0
74
Member Avatar for ceoba2

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

Member Avatar for Jugortha
0
110
Member Avatar for plusplus

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 …

Member Avatar for plusplus
0
85
Member Avatar for Tiger909

[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 …

Member Avatar for invisal
0
169
Member Avatar for hidash_in

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 …

Member Avatar for hidash_in
0
107
Member Avatar for Max_Payne

[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 & …

Member Avatar for Max_Payne
0
588

The End.