132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gritty

I have a script that I'm working on to pad files with spaces. The spaces need will vary. This is what I have so far but it isn't working. Any suggestions? #!/bin/bash echo -n "Enter filename " read filename echo -n "Enter start size " read start echo -n "Enter …

Software Development shell-scripting
Member Avatar for gritty
0
1K
Member Avatar for djbsabkcb

Exactly how do you create multi-file project and how do you compile it in C++ using Linux?

Software Development c c# c++
Member Avatar for kc0arf
0
325
Member Avatar for rony

I am using Dev-C++ to create a dll file which will link Java-JNI-C-Fortran The project contains CCode.C and JavaCode.h and when I compile, I find the following error: Linker Error>Undefined referece to 'sumsqauredf' The CCode.C file is [code]// CCode with documentation #include <stdio.h> #include "JavaCode.h" // Required header for JNI …

Software Development c++
Member Avatar for Narue
0
321
Member Avatar for cman

Im trying to compile a program but get this error javac:invalid flag:order.java-xlint and when i compile without -xlint i get the following Note: order.java uses or overided a deprecated API. Note:Recompile with -Xlint:deprecation for details

Software Development api java
Member Avatar for server_crash
0
170
Member Avatar for ifulcrum

Hello, i have problem with Mapi and unicode. I'm workking under win XP, outlook 2000, visual studio c++ 6.0 and extended MAPI. I'm trying get contacts (and information about contacts) from outlook. Everything working when i'm not using Unicode. I get contacts, properties and so on. Problem occurs, when i'm …

Software Development c++ visual-studio
0
181
Member Avatar for abhay_fgr

hi! i want to logoff windows XP Professional when it's not receiving any instructions ( i.e. condition similar to when screen saver pops ) but it should not loggoff if we are Downloading, how can it be done in VB 6.0.

Software Development visual-basic windows-xp
Member Avatar for abhay_fgr
0
123
Member Avatar for dmissai

hey i am try to design webserver by using java /C++ programming or any programming language so if any one interesting to assist me i am attaching source code hear .you can use plugs in to access source code by using any programming language

Software Development java web-server
Member Avatar for jwenting
0
150
Member Avatar for desidude

Hi; i am trying to write complex.cpp and it gives error message can somebody look and write me back what is wrong here is the program[ three parts] and the error message [CODE] #include<iostream> #include<cctype> #include<cstdio> #include"complex.h" using namespace std; void main(void) { CComplex a; CComplex b(5.5,2.2); CComplex c(b); cout<<"a …

Software Development c++
Member Avatar for Rashakil Fol
0
234
Member Avatar for mattd2

Hello, I got my last issue resolved, working great thanks to you guys. I have a wide variety of date formats that I need to parse into this format: MM/DD/YYYY HH:MM:SS (a mysql DATETIME type value).. I have tried: [code]post_date = time.strftime("%Y-%m%d %H:%M:%S", i.issued)[/code] However, this gives me: [code] Traceback …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for winbatch

Hi, I would like to be able to use an api for reading/writing to a file database. Basically, I will have to write programs that have recovery (meaning if it shuts down, etc. it has a file/files to recover from). I could attempt to write something myself but if it …

Software Development api c++ file-system
Member Avatar for winbatch
0
187
Member Avatar for mmiikkee12

Is there any way to write an operating system in Java? I know it's possible to use C, but I prefer Java. It's easier to use.

Software Development java operating-system
Member Avatar for Sauce
0
692
Member Avatar for bandm

Hello All, I am new to programming and have several books on starting out with C++. I was just curious if there was a publication that has a list of codes and there functions and Syntax. Perhaps with examples of how they are used. Kind of like an Encyclopedia? Thanks, …

Software Development c++
Member Avatar for Narue
0
185
Member Avatar for CoolHandLuke

I have a couple problems here that I have answered. I am not 100% sure of my answer(s). Would you be so kind as to check them and provide suggestions if they are not correct. These 2 questions are regarding what methods super/sub class(es) can invoke (question1) and which objects …

Software Development java
Member Avatar for Sauce
0
108
Member Avatar for hike34

Hi all and thanks in advance for any help. I have a basic program that needs to read a number of inputs from a user. To all these inputs I assign a default value before I call for the user to give diffrent input. Here is the thing, the input …

Software Development c++
Member Avatar for Rearden
0
225
Member Avatar for asatrujesus

In the java book im reading (Java: a beginner's guide by Herbert Schildt) it usually displays the main as such: public static void main(String args[]) { but often in this website I see code written as this: public static void main(String[] args) { Is there a functional difference between the …

Software Development java
Member Avatar for freesoft_2000
0
212
Member Avatar for davidianstyle

I have a homework assignment that I have been trying to figure out for over 12 hours now...The program I am trying to write is too complicated to post, so I created a simpler program which lets a user enter two integers and an operation to perform. If someone can …

Software Development c first-post
Member Avatar for indianscorpion2
0
251
Member Avatar for cpp noob

hi, [B]for( turbo c++)[/B] :eek: is there anyway my program can recognize words :idea: :!: . for eg. cin.getline(sentence,10); :rolleyes: "Hello how are you?" then the program recognises the words - hello, how, are , you and prints "im fine". :) and if i cin >> " hello how are …

Software Development c++
Member Avatar for winbatch
0
120
Member Avatar for mattd2

Hello, This is my first python script, so I could use a little bit of help here. :) I'm using the 'Universal Feed Parser' ([url]http://feedparser.org/)[/url], and I have a list of feed URLs in a database which I would like to pull out and go through each of them. I …

Software Development php python
Member Avatar for mattd2
0
312
Member Avatar for mickyboy

hi all attatched program is a bend allowence calculator for sheet metalwork , i have a few programes that do the same thing and are more advanced, i could also do the same thing longhand, but my aim was to see if i could actually figure out how a program …

Software Development visual-basic
Member Avatar for mickyboy
0
133
Member Avatar for cancer10

Does anyone know where can I download free activex components for visual basic 6.0? Thanx in advance :)

Software Development visual-basic
Member Avatar for cancer10
0
175
Member Avatar for bobr_1013

Hi all, I'm new to Java. I'm having a problem with a program which will compile but not run. When I run it, I get the following error: java.lang.NoSuchMethodError: main Exception in thread "main" ----jGRASP wedge2: exit code for process is 1. ----jGRASP: operation complete. The name of the program …

Software Development java
Member Avatar for bobr_1013
0
166
Member Avatar for sifuedition

I am actually having two problems. The first is initializing a char array to a single space for all elements. I have the loop to do this but the assignment to the value: " " is returning a compile error: error: invalid conversion from `const char*' to `char'. Then, when …

Software Development c++
Member Avatar for Narue
0
325
Member Avatar for BenPage

Hi there. I am using Operating System: Windows XP Project: Visual Studio 2003 C++ MFC Dialog Based Application I subclassed an edit box control because I want to capture the WM_KEYDOWN messages when a user enters characters in the edit box. I need this because I want to measure the …

Member Avatar for Alvein
0
266
Member Avatar for matvrix

It there a way to validate a string that >> Does not use characters like #$@ in the password. >> It must contain 1 upper case letter, 1 lower case letter, 1 number & must end in a letter. >> It must be 6-11 characters using Regular Exp ? Any …

Software Development regex shell-scripting
Member Avatar for shanenin
0
294
Member Avatar for Rearden

Can someone explain this to me once and for all? I keep getting different answers everywhere I look. What is the correct way to separate the class declaration from it's member functions? The way I am doing it now is that the declaration and all of the member functions are …

Software Development c
Member Avatar for Narue
0
209
Member Avatar for joshSCH

Ok well i have tried manually creating jars and manifest files, none of which seemed to work. I recently discovered that you can create a jar through JCreater-Tools. I created the jar file and unzipped it to get the META-INF folder containing MANIFEST.MF. I modified the manifest file so that …

Software Development java
Member Avatar for joshSCH
0
164
Member Avatar for gokul

Hai, i am doing project in VoIP in Java... I am using Swing for designing purpose.. so i want to design the screenings by using GUI Builders for swing.. i need ur help that what r the different GUI builders..? which one is best and simple and also where i …

Software Development gui java java-swing
Member Avatar for jwenting
0
213
Member Avatar for server_crash

Take just this simple method from the graphics class: fillOval()....Why is it abstract? Or better yet, where does it become concrete? I know I've never had to create my own implementation of that method.

Software Development java
Member Avatar for jwenting
0
452
Member Avatar for icui

I made a little script that searches and substitutes parameters in a configuration file but I've a problem: Configuration file: conf.tmp [code] parametro1=mario parametro2=ugo parametro3=elena parametro4=sara [/code] Script: [code] #!/bin/bash -x TMP_FILE=./test.tmp CONF_FILE=./conf.tmp TOT_PARAMETERS=$#; scratch="" if test $[TOT_PARAMETERS%2] -ne 0 then echo "Usage: $0 desc" exit 1 fi if test …

Software Development shell-scripting
Member Avatar for icui
0
173
Member Avatar for Mahen

hi there. Am working on a program that finds the binary executable of a particular program when we input its filename. For example: INPUT: cmd.exe OUTPUT: c:\windows\system32\cmd.exe Am using the following API's: FindExecutable() SearchPath() if you got any other API or any other ways to find executable progrmatically, please share …

Software Development api c windows-api
Member Avatar for Alvein
0
224
Member Avatar for bandm

Hello, I am just messin around with this "A Simple Win32 GUI Introduction" snippet I found on this site. I am able to paste it in to a simple project in my Visual C++ application and run it. Basically it is just a blank window. It says you can play …

Software Development c++ gui
Member Avatar for vegaseat
0
287
Member Avatar for lax_irtt

c program to find smallest among three numbers without using comparsion operator C program for the simulation of unix grep command

Software Development c c# c++ unix
Member Avatar for Narue
0
126
Member Avatar for freesoft_2000

Hi everyone, I am trying to add pictures into a html document and so far everthing has been going well but i have a question. Wen i insert the pictures into the html document they show up and i am able to save them to disk in html format. The …

Software Development image java
Member Avatar for Sauce
0
133
Member Avatar for joshSCH

Im pretty new to java and I have created a couple simple programs... and I was just wandering how exactly to use textFields and textAreas. I have created a textfield before, but I need a simple textField that works like the windows prompt. I just want a textField that will …

Software Development java
Member Avatar for server_crash
0
434
Member Avatar for luisator

Hi everybody! I am having a strange problem, Im working with a remote access database, i have one application to introduce info to de database and other for making a query. The firt one works perfect...but in the second one the application jumps to the error code when tries to …

Member Avatar for Comatose
0
174
Member Avatar for user777

Hi, Could anybody help me to register the .OCX controls. I am new to vb and when i am trying to open an sample database i am getting the following error: Crystl32.ocx could not be loaded How this problem can solved? Thanks in advance for any help. User777

Software Development visual-basic
Member Avatar for Comatose
0
182
Member Avatar for mickyboy

hello all i need to get the tangent of a circle command into a programe as follows tan (angle of degree/2) trying just 90degrees /2 =45degrees tan(45) in intermediate window i get 1.619 which is radians , to convert to degrees its 180/pi (3.142) but this gives result of 92.806. …

Software Development visual-basic
Member Avatar for Comatose
0
245
Member Avatar for brycegordon

First of all i hope i am posting this in the right place. Anyway, i have recently purchased a copy of sam's teach yourself c++ in 21 days (fourth edition.) and have realy gotten stuck into it with the dream of being able to create some cool programs. i want …

Software Development c++
Member Avatar for vegaseat
0
387
Member Avatar for ripdeath987

I am making a Java application and I can't make it save multiple text files. The program must save a different file everytime the save button is pressed. Can it be done? I thank you in advance

Software Development java
Member Avatar for freesoft_2000
0
169
Member Avatar for madgokuss4

I have just started getting into python and so far it's all been very interesting and the help good to, but now i have ran into a problem. I'm sure it's very easy to solve but i just can't seem to figure it out or find anything on the web. …

Software Development gui python
Member Avatar for vegaseat
0
145
Member Avatar for alone2005

I define a class which hold some variables first: [code] class Command{ string cHandle; int numPara; vector<int> cPara; public: Command(); Command(string ucData); //...............more functions here }; //end of class definition [/code] Then I declare an object of Command and wanna store it in a vector [code] vector<Command> cv; Command c; …

Software Development c++
Member Avatar for alone2005
0
143
Member Avatar for nwc

Does anybody know of any way to mix something like tail up with something like wc and get a scrolling "new lines per second" number? Or maybe there's a util that specifically does this?

Software Development shell-scripting
Member Avatar for nwc
0
202
Member Avatar for STP72

I am new to bash shell writing and I need some help. I need to ask a user a name to search for. From the value the user has entered the information is pulled from a file called phonebook which displays the users name,address and telephone number. Then I have …

Software Development shell-scripting
Member Avatar for shanenin
0
173
Member Avatar for G-Do

Hi, I'm writing a client program that downloads data from an HTTP server via urllib, like so: [CODE]ufile = urllib.urlopen(urlstring) text = ufile.read() # Do stuff with text[/CODE] Nice and simple. Unfortunately, the server only accepts requests with a session ID embedded inside - and I don't know how to …

Software Development client-server python session
Member Avatar for G-Do
0
250
Member Avatar for Rearden

i.e. . . [code] #include<iostream> void EatFrisky(Cat *Cat); int main() { Cat * Frisky = new Cat; EatFrisky(Frisky); return 0; } void EatFrisky(Cat *Cat) { delete Frisky; std::cout<<"Someone ate Frisky!\n"; } [/code]

Software Development c++
Member Avatar for Drowzee
0
138
Member Avatar for freesoft_2000

Hi everyone, I am currently trying to do an application that does the upload as well the download of files from a http server that needs authentication. The thing is i am not very sure where to begin and i am open to any suggestions. Basically what i am trying …

Software Development java
Member Avatar for Sauce
0
81
Member Avatar for peaceofmind

hi :) I need some help for this script I have -------------------- [CODE]cursor = conn.cursor() cursor.execute("select * from playlist limit 5") result = cursor.fetchall() # iterate through resultset playlist_txt = '' for record in result: mp3id = record[0] mp3_title = record[1] mp3_artist = record[2] playlist_txt += mp3id + mp3_title + …

Software Development python
Member Avatar for peaceofmind
0
210
Member Avatar for Debugthiss

I'm trying to learn Java on my own; however this book(for lack of a better word) sucks. It only has integer examples; therefore, I am unsure of how to script names, I'm trying "cha"; however it doesn't work. I want to write a program that reads: the total number of …

Software Development java
Member Avatar for Debugthiss
0
207
Member Avatar for Mahen

Hi everyone, am currently building a program with VS 6.0 but am having problems with string coruption, especially with strncpy(), [code]#include <stdio.h> #include <string.h> int main() { char prog[200]; int count; int su2; char mir[200]; strcpy(prog, "cmd.exe"); // we add cmd.exe to prog count = strlen(prog); // we measure the …

Software Development c
Member Avatar for winbatch
0
620
Member Avatar for djbsabkcb

I must ask user number of students who took test, then create a dynamic array and then get the scores for each student. Then calculate the sum,average of the scores. My problem is that once it calculates it continues to ask user for student scores. I am confused with this …

Software Development c c# c++
Member Avatar for winbatch
0
211

The End.