132,726 Archived Topics
Remove Filter ![]() | |
Hello, I have this program that simplifies a fraction by calculating the greatest common divisor. So the fraction 8/4 (largest common divisor = 4) 8/4 4/4 => result would be 2/1 (fraction simplified) My problem is my method calculated this greatest common divisor. But now that value has to be … Software Development mathematics | |
Hi, I wonder how to use wx.FileDialog with turbogears . I have this turbogears project, and i have a form which add new employees, and for each employee i need to let the person who is adding them to pick a photo from his filesystem. And all wxPython guides already … Software Development python | |
Hi, I want to read/write data from a file and I don't know how (I'm using Visual studio c++). More exactly, if I have the following code: [CODE]#include<iostream> #include<fstream> using namespace std; int main() { ofstream newfile; newfile.open("exemplu.txt"); myfile<<"I want to write this in a file\n"; newfile.close(); return 0; }[/CODE] … Software Development c++ visual-studio | |
i'm a beginner in vb.net i just want to know if it is possible to store the formatting of a text to ms sql so that the next time i retrieve a record that i've already formatted, it will display the format that i did for that record. if possible, … | |
I have six textboxes, and upon button press it randomly generates six numbers, one in eact text box e.g. [43] [85] [93] [1] [0] [17] Question: i create another six textboxes and at the same time allocate these numbers in ascending/descending numbers. [B]I am not looking for any codes whatsoever[/B], … Software Development vb.net | |
Can anyone help me in deleting a row in a text file.... Thanks. Software Development | |
How to get row and column index when I double click (or some other event) of a cell on a ListView? Software Development listview | |
Hi All, In my VB.Net app, I want to read in a load of addresses from a database and then use word to create address labels on an Avery template L7163 which is then printed to the printer. However, I have two issues: 1. Before word prints, I'm asked to … | |
Hi, i am facing a problem in c#.net i have a user data form where i have used picture box and opendailogbox when i am selecting a picture it is showing in picturebox now what i want is that i have a button on the form when i click on … Software Development image | |
Duh! I'm now using Linux from my external HDD again. Please suggest a good IDE for me Thanks | |
I really need help because of my senior project. I don't know the Python syntax and how I write. So please help me...! I have a prototype presentation on monday and I have to show login, logout and sending a mail code parts... Can you help meee???? pleaseeeee=(((( | |
I use the SHBrowseForFolder to select a Folder to store files. It all works fine however the window that is loaded with the directory tree is very narrow and difficult to easily navigate to the appropriate folder. Is it possible to allow the user to increase the size of this … Software Development visual-basic | |
I'm at the beginning of my journey to get a computer science degree and I'm taking an intro to programming course taught in C# (I'll also be using it next semester for my data structures and algorithms class). I took a visual basic class last semester that required visual studio … Software Development c# data-science visual-basic visual-studio | |
I am building applications targeting Windows Mobile, I need to read and write files. I am not sure whether to use the C++ standard library (iostreams) or the Windows API (ReadFile(), WriteFile()...). I think the Windows API is faster than the C++ standard library, but they are not object oriented, … Software Development api c++ windows-api | |
[CODE]Private sub button1_click( ) Data Set Dim ds as new dataset Ds = new dataset(“student”) Connectionstring Dim connectionstring as string = “provider =Microsoft.jet.oledb.4.0;data source = student”; Dim connection1 as oledb.oledbconnection = new oledb.oledbconnection(connectionstring) Command object Dim command1 as oledb.oledbcommand = new oledb.oledbcommand(“select * from student”) Command1.commandtype = command.text Connection1.open() Comand1.connection … Software Development dataset microsoft-access open-source vb.net | |
hi, friends i want to make an c# application in which the child form must reside in parent (container) form i want to [B]display the child form[/B] in [B]panel2[/B] container of [B]parent form[/B] on simplemenu click of catalog plz help me, and refer the attachements Software Development display | |
Hi, I am using the following code to convert character array in file to integer. However, the problem is that there is only one place in the file where it does not convert the character array to integer correctly. Since my code is big, i am pasting the most relevant … Software Development c++ | |
I have a database that I'm trying to inset data into called dogs.mdb. For some reason the code below doesn't seem to insert a new record into the database...please help! [code] namespace dogs { public partial class Form1 : Form { public Form1() { string connection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=L:\\Billy Uni\\Application … Software Development open-source | |
HI folks, pardon my ingorance, but is there a possible way to connect to ms sql express directly to the server or you have to copy the .mdf file to your project and then connect to? another question how do you connect to the ms sql express? (I come from … Software Development sql | |
Hi, I'm writing a program in C++/OpenGL as part of a university assignment but I am having difficulty using the function glBindTexture to bind my loaded textures onto the models that I load in and render. I can actually wrap the texture around my 3D model no problem but I … Software Development c++ file-stream opengl | |
Hi everyone. So I get the code going now the question is: How to make a menu in Java code? For example: 1.create table 2.insert into table 3.select fro table 4.delete table... Which will you choose: ex.1 and creates table I mean like switch case in C++ [code] import java.sql.*; … Software Development java | |
Hi, You probably got annoyed when you read the title, it must have been asked a million times. But unfortunatly I cant get it working for myself. Ive been using this code to highlight the word "var": [CODE]Dim search As String = "var" Dim index As Integer = RichTextBox1.Text.IndexOf(search) If … Software Development vb.net | |
[CODE]procedure TForm3.Button3Click(Sender: TObject); var i,j:integer; var str1,str2,str3:string; begin with adoquery1 do begin close; sql.Clear; if combobox5.Text='' then str1:='' else str1:=' and new_blade_type='''+combobox5.Text+''''; if combobox7.Text='' then str2:='' else str2:=' and team='''+combobox7.Text+''''; if Edit9.Text='' then str3:='' else str3:=' and operator='''+Edit9.Text+''''; Sql.Text:='select * from blade where 1=1'+str1+str2+str3; open; First; stringgrid1.RowCount:=RecordCount; stringgrid1.ColCount:=Fields.Count; for i:=1 … Software Development pascal | |
I was wondering how such interface designs can be achieved? [url]http://img130.imageshack.us/img130/1286/49282415.jpg[/url] [url]http://img697.imageshack.us/img697/5835/11728532.jpg[/url] First image has the stylish tab control design and border. Second has a "dropdown" on each tab button. Software Development vb.net | |
Hi all, I'm pretty new to VB.net, having only recently migrated from VB5(!). I'd appreciate any help at all with the following problem that I have on a project; I'm reading data in from a comma-separated text file and storing the data in an array for later use. Some of … Software Development vb.net | |
Hello! I'm working on this roguelike and I'm trying to make it so that the different "maps" can be loaded from text files. It was going pretty good until I tried to get it to return the filled array. Take a look: [CODE]void getMap(string str[10][10]){ ifstream myfile("world1.txt"); int a = … Software Development c++ | |
Hi. I have a little question, that which answer may mean death to my class plans. I have a superclass (or parent class if you will) that I have to delete when I'm done with it, but does that affect the subclass (or child class if you will)? Simple question, … Software Development c++ | |
I have form1(frmGate) and form2 (frmEdit) form1 minimizes when form2 is open and restores when form2 is closed however I use this to open form2 [CODE]private void btnEdit_Click(object sender, EventArgs e) { //checks to see if the form is open if (editor == null || editor.IsDisposed == true) { editor … Software Development perl | |
So I have a client/server application and I'm trying to send an ArrayList of objects to the server. I kept getting errors sending the ArrayList of objects, so I just decided to send an empty ArrayList to see if anything was wrong, and it turns out, that the server can't … Software Development client-server java | |
hello, i'm trying desperately to recover my c++ knowledge. I haven't done c++ for a year and now i'm facing some problems. Please help. I. How to type cast this: [code=c++] class A { virtual c Read(); } class B: public A { public c Read(){ D d ; return … Software Development c++ | |
Hi all, How to write one file to the end of other file using python. Software Development python | |
hi my problem is that whan i want to add 2+3 i enter it in postfix 23+ it give me 5 which is correct but whan i want to add 20+30 i enter 2030+ it add me 3&0 because i use char so, this progm is limited to 1 digit.so … Software Development c++ | |
Hello, Im looking to split eac row of my CSV file into an array, by separating it out by the commas, but taking care not to include the commas inside of quotations; " asd , dfg ". How would i go about this? Thanks for any help! PS Software Development | |
I am getting errors when trying to compile my program, can anyone help? Errors are error C2143: syntax error : missing ')' before 'constant' error C2143: syntax error : missing ';' before 'constant' fatal error C1004: unexpected end of file found Here is my code: [code] // declaration of a … | |
Hi. I would like the program to take the character/symbol/number right away after they had been pressed to avoid string being entered. [CODE] static void Main(string[] args) { char E; string response; do { Console.WriteLine("Please select your products :"); Console.WriteLine("Oranges - press O"); Console.WriteLine("Apples - press A"); Console.WriteLine("Potatoes - press … Software Development apple | |
hi currently i have a few memo lines on a form with a large memo for viewing all the lines together which are saved to a text document when savedialog is executed. when i add the load function i wish for the text to return to each of the seperate … | |
I have managed to change an input String expression with parentheses to a postfix expression. I want to print to print the values in the stack but can't work it out. Can anyone tell me how I do this? [code] class Converter{ private Stack converterStack; private String input; private String … Software Development java | |
Hi, I'm trying to use the system() command to invoke "eseutil.exe" and store the output in a text file using VC++. The way i used this command is mentioned below. code snippet: ========= [CODE]string command= "\"C:\\Program Files\\Microsoft\\Exchange Server\\Bin\\eseutil.exe\" /mh \"F:\\fsg\\edb\\mailbox database.edb\" | find \"Log Required\" >output.txt"; system(command.c_str());[/CODE] Compilation is success. … Software Development c++ | |
Hi, I need to convert a BSTR buffer (that contains wchar data) to a straight char*. How can I do that? I only found that info so far: [url]http://msdn.microsoft.com/en-us/library/ms235631(VS.80).aspx[/url] but it covers only CComBSTR types. I'm not sure how CComBSTR and BSTR relate. Thanks. Software Development c++ | |
i tried to pass one number by one within given range from for loop to while loop to check for armstrong. but the value passed from for loop into while loop is not accepting. so any suggestion [CODE] /*program to find armstrong within a given range */ #include<stdio.h> #include<math.h> int … Software Development c | |
I want to pass all the values from a HashMap to ArrayList (that a demand of my exercise..) and to use for it an iterator (to the HashMap). How do I get the first key to the HashMap? (if I have the first I'll continue in a loop untill there … Software Development java | |
Hi, I wanna generate a software, which should read a C file and check for some rules. I mean, some lines will be syntactically correct according to C compiler. But logically sm lines will be wrong. I wanna detect such lines using this software. Please help me how to start … Software Development c | |
Hello, This is my first post here. I had learned c/c++ for about half a year, and hope now to move into win32 non-console programming. I use VC 6.0 as my IDE and had successfully created a simple "Hello World" project (built by VC 6.0) However, I do not know … Software Development c ide windows-api | |
Hello, could someone please tell me how to add buttons, list boxes, tabs, etc. to the main window that shows up with the menu when you first create a win32 windows application? I've been searching for this on Google for about two weeks now and keep coming up dry, any … | |
Hi everyone, please i created a[COLOR=#000000] C# windows application to implement a form with a ListBox, a TextBox, an Edit button, an Insert button, a Delete button, a Update button and an Exit button in the form. I want my C# program to be able to copy the columns of … | |
Hi all, I hope someone can help me with this because it's driving me insane. I've spent almost two solid days trying to figure this out without much success. What I need to do is load in an XML file (which I have working fine) but then I need to … | |
Hello, I have to read from a .txt file which has info as such, 10:5:23 2:343:54 1:4:7 and so on. 3 Columns, lots of rows. How can i read each column for example 10 to x, 5 to y, 23 to z. Software Development c++ |
The End.