132,729 Archived Topics
Remove Filter ![]() | |
There follows a fragment of a program in Borland C++: void __fastcall TForm1::FormCreate(TObject *Sender) { Memo1->Clear(); ListBox1->Clear(); Memo1->Lines->LoadFromFile("c:\\blitz\\history.txt"); a=Memo1->Lines->Count; x=0; while (x<a) { str1=Memo1->Lines->Strings[x]; if (str1 != "") { DATA MANIPULATION HERE, THEN if (ListBox1->Items->Count==0) ListBox1->Items->Strings[0]=str3; else ListBox1->Items->Add(str3); } } ListBox1->Items->SaveToFile("C:\\blitz\\history.txt"); Close(); } The form does not close, but "history.txt" … Software Development c++ | |
Hi I am trying to compile a program from a tutorial I am doing. The program is titled myprogram.java and is located in the c:\src> directory. When I use the command c:\src>javac myprogram.java I get the following errors. myprogram.java:1: <identifier> expected class ^ myprogram.java:8: '>' expected ^ 2 errors and … Software Development java | |
Please I need help on how to insert elements into a sorted linked list.I actually have a list that contains names and scores for students and I want the elements to be inserted into the right postion such that the names of individual students are arranged alphabetically. This is my … Software Development c++ linked-list | |
Hi , I need some help write program to send data between two computer with modem. please , thank you .. nawal Software Development java | |
Hello, I've been set to complete this project within a week and a half, and have had quite a few problems attempting to implement it. I have problems with the recursive part of it, which really, is the whole project. Any help would be ENORMOUSLY appreciated, and i would like … Software Development algorithm first-post java ![]() | |
The following program Assignment#2 was assigned to us a few weeks ago. I understood that assignment. Our professor told us soon we would be editting it to run more efficient. We have now been introduced to struct nodes. Needless to say, I am very confused. Our new assignment is due … Software Development c++ ![]() | |
I'm a relative new comer to development and need some assistance in writing a function. Here are the requirements: Return the 5th element from the end in a singly linked list of integers, in one pass, and then provide a set of test cases against that function. Any ideas? Thanks … Software Development linked-list visual-basic | |
Hello, I have attached a database which will be in use for the question i am about to ask. The question is ... Write queries to retrieve the following sets of information. a) An annual report showing the number of orders and the value of the orders placed by each … Software Development email visual-basic | |
i want to collect data and show in OLE or Excel for every 1 minute. and every data i collect i wan save in a folder. every time i wan update the data. how i should write my program.. Thx for helping me...... Software Development visual-basic | |
Hello im pretty new to proggramming. Im making a console program. I want to be able to play a sound when it opens. I have no clue on how to do this. :o Is it possible running a sound in a console program? Plz reply and thxXx for the help! Software Development c++ | |
I have been assigned to complete 45 questions using any Java source avaialble. I have found all except 16 of them in my Java book. This source was mentioned by the instructor as available. Could you please spend a minute to T or F them? 1. T or F. Static … Software Development java | |
I need a short script written for me. Is this an appropriate forum to ask for this kind of help? If so, I'll post specs. Software Development first-post perl | |
I have the following code, for example: [CODE]price = 50.00 tax = price * 0.08 print "Tax = $",tax # Tax = $ 4.0[/CODE] As you can see there is a space between $ and 4.0. Is there a way to avoid this? I haven't done much Python coding. Software Development python | |
Hey can any body help in this matter: interface with in interface : ex: interface ee { interface rr{ void ere(); } } how to implement the ere method : please sugesst me Regards Saranga Software Development java | |
hi, i am very new in python. can anyone tell me that how to create dynamic dropdown box in python scripting.(triple dropdown box) Software Development python | |
Hi! I'm new in C++, but perhaps this is a general problem, not C++ exclusive. This is printed in my console, "-1.#IND", when using a printf, when this occurs? thanks | |
Hello ladies and gents, I wanted to ask if any of you could help me out here, Ive got this program: [code] //Test programma voor Accelerated C++. #include <fstream> #include <iostream> #include <string> int main(int argc, char** argv) { int fail_count = 0; //for each file in the input list … | |
Im finding trouble writing a script that runs from account A, switches user to B (on same server), performs a few jobs at B, and switches back to A. I want the password for B hardcoded in the script so that it doesnt prompt for one. Someone please help. Software Development shell-scripting | |
Need help on this simple script... I am scratching my head... when I do echo $myhost it returns db3 However, when running the script, the first IF condition is always true... what went wrong? Thanks! Here is the script: myhost=`hostname -s` if [ $myhost='db1' ]; then echo "###############################################" echo "### … Software Development shell-scripting | |
in VB.net, How can I use timer as a public and use this timer contral in the multiple form. I have to do the trivia questions which user either select their answer to go to the next form or time up to the next form. I got the first part, … Software Development vb.net | |
I need help please to write this program. Numerologists claim to be able to determine a person's character traits based on the "numeric value" of a name. The value of a name is determined by summing up the vaules of the letters of the name where 'a' is 1, 'b' … Software Development python | |
hi everyone. i am an amateur programmer in java. can anyone please tell me how do i go about connecting my java application to oracle 9i database? please be specific about what is the URL that i should use and how should i install the oracle JDBC driver.where should i … | |
SUMMARY --------- I need the detailed steps of building a DLL project from .LIB & .H files using VC++ 6.0 DETAILES --------- I have Windows XP SP2 and I have installed Platform SDK in order to get the ibrary files to use in my Bluetooth application that will be developed … Software Development asp c++ microsoft microsoft-windows windows-xp | |
For the Tkinter Text widget, is there a way to assign the selected text to a new tag?(other than 'sel',which changes) | |
Hello, I am having a lot of difficulty with this program. I have to find the data types of strings that have been inputted by users into the command line. I have used StringTokenizer to break data into strings but I am not sure where to go from there. How … Software Development java | |
hello every one, I am allocating memory using malloc library function, In oredr to deallocate memory we have to use free or realloc library functions.But I want to deallocate memory with out using free and realloc library functions, any body has the logic for that code please help me, it … Software Development c | |
hi all, this is my 1st message. i am a beginner in C. can anyone help me out with the following Turbo C problem. i am unable to complile my programs. i.e. instead of compiling my program the s/w compliles something else (tc\inclde\iostream....something of this sort of a file pops … Software Development c++ | |
i wondered if anyone could help me with this. i have a button on a form (frmUpdateProduct). this button opens up another form (frmSelectSupplier). i have a listbox which gets all the supplier names from the access database, and assigns then with the Supplier ID (also from the database). here … Software Development visual-basic | |
This has to be a simple question to answer. And I know how to do this in C++ but I don't know how it is done in Visual Basic. So I am not completely lost. It is just that Visual Basic is pretty new to me. I have written some … Software Development visual-basic | |
Hi, Im trying to create a button that will perform different functions depending on what part of the button you click. The button will be a diamond shape with six different regions on it that will perform different actions (play, pause, volume up/down etc). Does anyone know any good sites … Software Development | |
Can someone give me an example on how to listen on multiple ports with Winsock? I have been trying for hours with no luck.. Software Development c | |
i am totally stumped on what to do here. basically whats goin on is i have a 3D dynamic array and i need to have a cursor inside of it and move around on the inside. i do i go about doing that? like i said im completely stumped. here … Software Development c++ ![]() | |
Hi all, I'm having a prob with loading a file into an array. I'm fine with opening the file but when it come to the fread command i seem to be failing as the document size will be variable, so how can i state a file size as "num_of_elements". if … Software Development c file-system | |
Dear Colleague: How can I use "begin transaction", "commit transaction", "rollback transaction" and the like in the visual basic 6. Is it possible to populate a combobox in VB form with the data that is retrieved from SQL server database table? How the code looks like? regards, benyam Software Development sql visual-basic | |
Ok, here's my code: [code] string connect; cout<<"enter node, then linked nodes"; cin>>node; while(node != 0) { cin.get( connect ); adjList.insert(make_pair(node,connect)); cin>>node; } [/code] The problem at hand is that the compiler (Dev C++) keeps telling me : 21 no matching function for call to `std::basic_istream<char, std::char_traits<char> >::get(std::string&, char)' referring … Software Development c++ | |
I've finally gotten this thing to open information and place it into a text file. My next question is, how do I get this part to work? I've bolded the registry key that I'm trying to put into the notepad file, but this one just will not work. What am … Software Development | |
I am trying to write a large file, but it always stops writing when it hits 2GB. (2147483647 bytes to be exact). I know it's not an O/S or disk issue (I'm on solaris) as I'm able to use the mkfile command to create a 3GB file. I'm using the … Software Development c | |
Hi all, I am a beginner at this so sorry for my ignorance. I'm trying to make a macro that searches an Excel Spread sheet. I plan on using Data validation in cell A1 that the user selects the value they want to see, then I want them to be … Software Development google visual-basic | |
This is my first attempt ever at a program in C#. Here's what I have so far: [code]using System; using Microsoft.Win32; class reg { static void Main() { RegistryKey hklm =Registry.LocalMachine; hklm=hklm.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0"); Object obp=hklm.GetValue("Identifier"); Console.WriteLine("Processor Identifier:{0}",obp); RegistryKey hklp =Registry.LocalMachine; hklp=hklp.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0"); Object obc=hklp.GetValue("VendorIdentifier"); Console.WriteLine("Vendor Identifier:{0}",obc); RegistryKey biosv =Registry.LocalMachine; biosv=biosv.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\MultiFunctionAdapter\\4"); Object obv=biosv.GetValue("Identifier"); … Software Development | |
I had been studying OpenGL in DevCPP all the time. Using DevCPP you link OpenGL library files libopengl32.a and libglu32.a adjusting project options. But I dont know how to do this in VC++. Can you help me what files to link and how to link in Visual Studio 2005 for … Software Development c++ opengl visual-studio | |
I'm doing this in visual C#.net.I'm a nwebie so bare with me. I'm creating a class I need to declare three fields: name,phone number, and birthday (month,day, and year). I'm not sure how to declare them. Is this correct :?: private string name private string phone number private int birthday | |
Hi everyone, I am currently facing a problem with a program that I am writing. It is a computer simulation of the card game War. I am receiving this error [CODE]main.cpp:22: invalid conversion from `Card*' to `int' main.cpp:22: initializing argument 1 of `Card::Card(int)'[/CODE] Card is the name of one of … | |
In CApplView I create a Login Form. [code] void CApplView::Login_Entry(CDC *pDC) { .. if (pUserid == NULL) { pUserid = new CEdit; pUserid->Create(WS_CHILD|WS_VISIBLE|WS_BORDER, CRect(x,y1,w,h), this, IDC_USER); pPasswd = new CEdit; pPasswd->Create(WS_CHILD|WS_VISIBLE|WS_BORDER, CRect(x,y2,w,h), this, IDC_PASS); pbLogin = new CButton(); pbLogin->Create("Login",WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON, CRect(x,y3,w,h), this, IDB_LOGIN); } } [/code] How do I add code … Software Development c++ | |
I doing assignment about file processing. It quite hard. 1.Sometimes can open the file sometimes cannot 2.How to overwrite y content in the file? 3. How to add Data into the file? Brief: You know I create the file then when I close the program. After that open again. It … Software Development c++ display file-system ios | |
I want to check to see if a binary tree is perfect. this means that the height of the left and right subtrees of the root are equal and the left and right subtrees of the root are perfectly balanced binary trees. I have written the function but am not … | |
my program prompt an integer input but if the user type in a character the program crash! is there any solution to the problem MANY THANX Software Development c++ | |
Hello ladies and gents, I just wanted to see what this small programs does so I tried it in Dev-C++ and in VC++ 2005, thing was, it worked in Dev-C++ but not in VC++ 2005 in which I got an error stating the following: [QUOTE]error C2664: 'MessageBoxW' : cannot convert … Software Development c++ | |
Here's what I want to be able to do: I have a table that's storing, say a list of speeches, with several fields holding data for records. Within each record, I want to make a list of several sources from which information is drawn for a particular speech. So, field … Software Development |
The End.