132,726 Archived Topics
Remove Filter ![]() | |
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 | |
Exactly how do you create multi-file project and how do you compile it in C++ using Linux? | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
Does anyone know where can I download free activex components for visual basic 6.0? Thanx in advance :) Software Development visual-basic | |
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 | |
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++ | |
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 … Software Development c++ operating-system visual-studio windows-xp | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 … Software Development microsoft microsoft-access open-source sql visual-basic | |
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 | |
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 | |
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++ | |
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 | |
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. … | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 … |
The End.