132,726 Archived Topics
Remove Filter ![]() | |
[b]hello, i want a help for you all. about mysqlprocedures and functions i am enable to create procedures and functions in mysql so that i am enable to do jdbc colleable statements programs. please help me[/b] | |
Hi I have a small question, probably quite obvious but I cant seem to figure it out. When using the ifstream or any other stream you can tell if it was sucessfull in its last event. For example: [CODE=CPP] #include<fstream> int main() { ifstream in("test.txt", ios::in); if (in) { } … | |
Hey this is Mohamed Shahabudeen. Can someone please help me with the following! Enter the following program called “composers.pro” % This database is about composers % Datarecords: composer’s last name, birth and death year composer (monteverdi, 1567, 1643). composer (bach, 1685, 1750). composer (vivaldi, 1678, 1741). composer (mozart, 1756, 1791). … Software Development | |
I was debugging some code yesterday and, after about fifteen minutes, found the culprit. This was in the code: [code] if (a = b) { // code } [/code] instead of this: [code] if (a == b) { // code } [/code] A very common mistake, but an aggravating one. … Software Development c++ | |
I basically need a function that, after a certain amount of time has elapsed, will restart a program from scratch. This is because the code can get stuck at a certain point if wrong decisions are made. I am curious how to go about making this. I am sure it … Software Development c++ | |
OK...here is the deal.... I am messing around with this jGRASP program... I was able to create a program that will display the squares of the numbers from 1 to 10 by using the "FOR" structure. This is what I have done and here are the results, which is what … Software Development java | |
Hi friends, I have to fetch date, month & year from Calendar.For that I need a Calendar with User Interaction from which i can fetch. Is there any Calendar (builtin) in swing or i have to make it my own?.Pls let me know if u have any idea. with Thanks, … Software Development java java-swing | |
I wonder if there is a good way to substring this string: [code] std::string OneString = "1,2,3,4,5,6,7,8,9"; [/code] so the substring will look like this: [B]1,2,3,4,5,6[/B] So what I am trying to do or wonder is, if there is a good way to substring from the end and 3 Commas … Software Development c++ | |
Hi , I want to create a System.Windows.Forms.Timer in a new Thread. When I do this everything remains OK but the timer never goes inside its tick event.I'm in deadlock condition. If anyone can give me some hint, I shall be very thankful to him/her. Regards- Saurabh Software Development | |
Hi ! I am working on this project; the thing is that I want my program to create it's own environment variable path so it can be called from and used in CMD too. How can I do this... Googling hasn't been any help yet. Thanks in advance! Software Development c# | |
Hi, We're using curses library functions to draw windows in our project. For showing an error the error message is enclosed within '-'s , it seems to be working fine till we ported to a new linux machine where its displaying some garbage instead of the '-' . To be … Software Development c++ | |
I am trying to compile some code using BDS2006 and have received the following err: [Pascal Fatal Error] Variants.pas (1035): F2092 program or unit 'Variant' recursively uses itself. The code is highlighted by the debugger at the end of line 1035 which is the final end; statement for the Procedure … | |
hi, Please mail me vb.net autogenerating number code. regards, Prasad P. Satam Mumbai Software Development vb.net | |
Okay, I appreciate everyone's help! i am trying to work out how to find a duration type thing.. i have created this as an example of what i am trying to do. [CODE] ### gaining inputs start= raw_input("What time did the tv show start: (Format = 14, 12) ") finish= … Software Development python | |
I need to keep track of students last names and their GPAs. I need the user to enter 7 names and their GPA. I need to output it in columns. Also I need the average GPA and the Highest GPA. And I also need 'Last Name' earned the highest GPA. … Software Development c++ | |
When I typed the command as 'java -version' in commandprompt its showing "java version 1.3.1_01" but I want to set it to latest version of java in the path C:\Program Files\Java\jdk1.5.0_06 Due to this problem Im not able to open Eclipse, its saying "version 1.3.1_01 is not suitable for this … Software Development java | |
So the problem seems to be when i try to compile its telling me on line 16 of the main program (the last line) "unqualified-id at end of input" and "expected ',' or ';" at end of input I played with just about every combination of ending brackets and semi … Software Development c++ | |
I am trying to learn how to create windows applications using microsoft visual c++ 2008. What is the difference between a Win32 Application and a Windows Form Application? Also does anyone know any good online tutorials or books on creating windows applications? Software Development c++ | |
i am required to do this : You will write the C++ program for a simple game playing system, which plays against a user. Let’s call the program P and the user U. P and U are in a magical world, in which a dragon can appear. P and U … Software Development c++ | |
Hi, im doing a software that uses diferent tables, and im trying to implement a save button but it doesnt save anything. This is the code. Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click Try Dim XCmd As New OleDb.OleDbCommandBuilder(DA) 'DS.AcceptChanges() DS.GetChanges() DA.Update(DS) MessageBox.Show("Saved", "ESP MESSAGES", … Software Development vb.net | |
Hi There, Hope you can help with this. I have created a void function which has to add the totals and return the values to the main section for display. For some reason it does not return the totals. I tried everything I know. I also put displays in the … Software Development c++ | |
I have this problem. I don't know how to prompt user to input for the size of array in a class [code] #include <iostream> using namespace std; class ArrayClass1 { private: int *array , size ; public: void prompt(void) ; // asks for size of desired array // and allocates … Software Development c++ | |
I need to write a program with seven vectors. The program needs to have methods to input the data into vectors, display a menu to print a report and sell an item, a method to sell an item, and a method to print the report. This is what I have … Software Development java | |
Hey. I would like to ask for help regarding SQL server. I have developed a client-side application to run on my clients' agents machines. They will use this software to add items to a cart and print an invoice, in addition to the program eMailing my client to notify him … Software Development client-server sql vb.net | |
[CODE] #include <windows.h> #include <shellapi.h> int main(int argc, char* argv[]) { ShellExecute(NULL,"open","C:/Windows/System32/calc.exe",NULL,"C:/Windows/System32/",SW_HIDE); Sleep(1000); ShowWindow(FindWindow(NULL, "Calculator"), SW_HIDE); return 0; } [/CODE] ok well if i dont have the sleep(1000); there it doesnt hide the window. i want it to load the window hidden, not hide it once its loaded. Does anyone … Software Development c++ | |
Hello, I am in a Java Course and my instructor said my first 2 loans the calculations are wrong. and that I need to have this in an ARRAY also. Any help would be appreciated. [code] import java.text.*; import java.io.IOException; class javamortgage //program class name { public static void main(String[] … Software Development java | |
What four ways can you specify the current directory in your PATH? for sh This is a question that I couldn't get it right. I thought pwd is one of the way but it wasn't. can anyone help? thanks Software Development shell-scripting | |
In my database, the format for 8 columns are as shown: [code] +------+------+------+------+------+------+------+------+ | MPT | MPB | MP1T | MP1B | MP2T | MP2B | MP3T | MP3B | +------+------+------+------+------+------+------+------+ | 4 | 7 | 1 | 1 | 3 | 3 | 0 | 3 | | | … Software Development vb.net | |
Having trouble understanding how this recursive function works. [CODE]int F( int X ) { return (X<=0) ? 3 : F(X/2)+F(X-3); }[/CODE] I understand the first part, give it a value 0 or less, get back 3, fine. But greater values I don't understand 2 returns 9, 3 returns 9, 4 … Software Development c++ | |
this is a test question for my class so I've tried to keep it specifically like this: I need to make a function called: countWord(String p, String w) the first parameter 'p' is to hold the paragraph the second 'w' is to hold the word you want counted the function … Software Development c++ | |
Hello All, How to replace a string in nth line of a file using sed or awk. For Ex: test.txt Line 1 : TEST1 TEST2 TEST3 Line 2 : TEST1 TEST2 TEST3 TEST4 Line 3 : TEST1 TEST2 TEST3 TEST5 Line 4 : TEST1 TEST2 TEST3 TEST6 Line 5 : … Software Development shell-scripting | |
Hello, I am working with images and I have got a problem. I have this method and I want it to return an array of unsigned ints. I have not got problems of compilation but it does not work properly. Could anyone help me? Thank you in advanced. [code] unsigned … Software Development c++ | |
Hey A friend of mine and I, wants to start to develop software in C++, but we can’t seem to find any information about creating software, yes we have read several online tutorials and 2 books, but all the stuff we have been reading is all about console applications, which … | |
[code] Public Class Form1 Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub … Software Development vb.net | |
just wondering if there is anything in python to give the date automaticly, just like excel has =today() cheers. Software Development python | |
Hello everybody, ive been looking for an answer to this basic (i thing) issue: Im making a class to read a XML file but the compiling errors are driving me crazy, i cannot figure out how to solve this problem, so here is the code if anyone can help me: … | |
Hi everyone, I just started working with Python and programming in general (i chose it as a school subject for this year) and i received a task(scroll a bit more down).. since im a total newbie with Python in general.. i was hoping someone could please explain this task in … Software Development python | |
Hi guys Just a simple question from a newbee.. In VB.net I can use "dim t as new timer" in a windows application, but not in a wpfbrowser application. It says that "Typ timer is not defined" anything else in the program seem to funktion. Please if anyone have a … | |
package chessbuard; import java.awt.*; import java.awt.event.*; import javax.swing.*; //import javax.swing.event.*; import javax.swing.border.Border; class ChessBoard extends JFrame implements MouseListener, MouseMotionListener { GridLayout Board = new GridLayout(8, 8); int drag1, drag2; int xMove, yMove, labelw, labelh; JLabel label; String[] manrow = {"Pawn0", "Pawn1", "Pawn2", "Pawn3", "Pawn4", "Pawn5", "Pawn6", "Pawn7"}; String[] manrowx = … Software Development java java-swing | |
how can I get the remaining weight, without using the int modulus? The problem is solving how many widgets are on the pallet, and inputs are the total weight and the pallet. In the program, ONEWIDGET is the weight of a widget. since the input can put any random number, … Software Development c++ | |
I've been searching like crazy for this but can't find anything in C#/VB.NET. I want to show off a DateTime as a "x days x hours x minutes x seconds ago" string, so I'm looking for a function that calculates the time difference between a DateTime and the current date … Software Development vb.net | |
I'm trying to make a PhotoAlbum using JApplets.I write a Java code for it and then compile to make a .class file and then made a html file in the same directory which have .class file.But while running it on Web -Browser it doesn't load the applet and shows that … Software Development java web-browser | |
Hello, I have a richtextbox which I write lines of data to. However, everytime a new line is written to the richtextbox it overwrites the last line of data so therefore after the progam runs only the last line of data is displayed in the richtextbox. I need the lines … Software Development | |
Hi I am developing a window based application in C#.net. In this app i have to sync between flash and c#. For this i have added Shockwaveflashobjects.dll from com component. I got idea of this via this topic [URL="http://www.codeproject.com/KB/audio-video/flashexternalapi.aspx"]http://www.codeproject.com/KB/audio-video/flashexternalapi.aspx[/URL] Now when i am make a call from c# to flash … | |
Ive been working with perl for a while now and was wondering how and if I could get started in making my perl code do real life things like flip a switch. Any help is appreciated. Software Development perl | |
I have a problem with a sort I am trying to do with a std::vector. I am doing an example below where I push_back some strings like this. I know I have to use a comparator for this, that I have called:[B] "compare_on_asscending_value"[/B] The problem is that I am not … Software Development c++ | |
Hi All My current code is executing system commands through java programme,like “dir”,”date” itc.Whenever I run the code the desired output comes.But when I am running the code continuselly then lots of command prompt open regularlly. Is there any way to stop the code from execution untill unless the command … Software Development java | |
I need to open a huge file in GBs to be precise in java. Can this be done. I need to actually break the file in 4kb chunks and compress each chunk separately . Can i do this in java. Will it create any memory out of bound error for … Software Development java | |
Hi, Im writing a program in Turbo C but i also want to use some assembly functions, for this im using nasm. This is my assembly code: [CODE=ASM] BITS 16 GLOBAL _Add4 n_Add4 equ 4 _Add4: push bp mov bp,sp mov ax, [bp + n_Add4] add ax, 4 mov sp,bp … Software Development assembly | |
I've been running around like crazy trying to find anything on this problem and so far have found nothing. I have a function in console to update a record in a file and waht I want to do is when it asks for the updated input it displays the existing … Software Development c++ |
The End.