132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nerathas

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
Member Avatar for ddanbe
0
172
Member Avatar for fferrandini

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
Member Avatar for Stefano Mtangoo
0
96
Member Avatar for 28daniela28

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
Member Avatar for 28daniela28
0
114
Member Avatar for scias23

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, …

Software Development mssql sql vb.net
Member Avatar for sknake
0
576
Member Avatar for theresonly1ash

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
Member Avatar for sknake
0
117
Member Avatar for Karthika_g

Can anyone help me in deleting a row in a text file.... Thanks.

Software Development
Member Avatar for sknake
0
75
Member Avatar for Mitja Bonca

How to get row and column index when I double click (or some other event) of a cell on a ListView?

Software Development listview
Member Avatar for Mitja Bonca
0
221
Member Avatar for G_Waddell

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 …

Software Development printer vb.net
Member Avatar for G_Waddell
0
2K
Member Avatar for saj_amo

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
Member Avatar for saj_amo
0
1K
Member Avatar for Stefano Mtangoo

Duh! I'm now using Linux from my external HDD again. Please suggest a good IDE for me Thanks

Software Development ide python
Member Avatar for Stefano Mtangoo
0
125
Member Avatar for gzm_e

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=((((

Software Development email python
Member Avatar for Stefano Mtangoo
0
76
Member Avatar for JohnKelly

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
Member Avatar for ghimangi
0
145
Member Avatar for mixelplik

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
Member Avatar for mixelplik
0
291
Member Avatar for sivaprakas

how to scan document using c++ coding help me

Software Development c++
Member Avatar for Rajesh R Subram
0
98
Member Avatar for kevintse

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
Member Avatar for Frederick2
0
232
Member Avatar for raj_raj

[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 …

Member Avatar for roychowdhury
0
205
Member Avatar for oscprofessional

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
Member Avatar for itjayakumar
0
83
Member Avatar for guest7

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++
Member Avatar for Ancient Dragon
0
156
Member Avatar for szkoda

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
Member Avatar for sknake
0
298
Member Avatar for fiska

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
Member Avatar for idrissi
0
113
Member Avatar for Valaraukar

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
Member Avatar for Valaraukar
0
261
Member Avatar for didi00

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
Member Avatar for didi00
0
189
Member Avatar for Ragoune

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
Member Avatar for thecoat
0
761
Member Avatar for fotsung

[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
Member Avatar for Ionelul
0
130
Member Avatar for cdtrd

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
Member Avatar for cdtrd
0
160
Member Avatar for labsnark

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
Member Avatar for jlego
0
108
Member Avatar for Waylon

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++
Member Avatar for Lerner
0
106
Member Avatar for Excizted

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++
Member Avatar for Excizted
0
164
Member Avatar for Dmennite

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
Member Avatar for Dmennite
0
4K
Member Avatar for Pamilerin

Please I have a little problem with my project. It goes "A polynomial of degree n is represented as Pn(x)=A0 + a1x + a2x2 + … + anxn Where a0, a1, a2, a3 , … , an are constant coefficients. Evaluation of suc polynomials may be important if Pn(x) is …

Software Development c
Member Avatar for nezachem
0
100
Member Avatar for mellowmike

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
Member Avatar for mellowmike
0
471
Member Avatar for Alex_

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++
Member Avatar for Narue
0
113
Member Avatar for rajeshwari_ib

Hi all, How to write one file to the end of other file using python.

Software Development python
Member Avatar for eva yang
0
7K
Member Avatar for rafaqat hassan

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++
Member Avatar for Lerner
0
77
Member Avatar for princesssuperst

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
Member Avatar for Dmennite
0
103
Member Avatar for spitfire

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 …

Software Development c c# c++
Member Avatar for wish_C
0
593
Member Avatar for forneamax

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
Member Avatar for forneamax
0
133
Member Avatar for revski

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 …

Software Development delphi pascal
Member Avatar for revski
0
125
Member Avatar for TheManual

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
0
64
Member Avatar for inmar

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++
Member Avatar for donaldw
0
414
Member Avatar for BobFX

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++
Member Avatar for BobFX
0
327
Member Avatar for cthoes

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
Member Avatar for n.s.hemalatha
0
114
Member Avatar for anilopo

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
Member Avatar for anilopo
0
103
Member Avatar for rigidboss

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
Member Avatar for rigidboss
0
145
Member Avatar for yushuan718

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
Member Avatar for yushuan718
0
94
Member Avatar for Argo54325

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 …

Software Development api c++
Member Avatar for marco93
0
153
Member Avatar for omoz4real

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 …

Software Development c c# c++ dataset microsoft microsoft-access
Member Avatar for youtubeline
0
160
Member Avatar for TheMightySpud

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 …

Software Development vb.net xml
Member Avatar for TheMightySpud
0
128
Member Avatar for Round

hi all, i have a problem regarding the pixels. i have a picture box suppose of width 950 now i have to draw more than 1000 pixels in that picture box. one way is t0 use horizental scrollbar. but the problem is tha i dont know to use it. so …

Software Development
Member Avatar for Geekitygeek
0
89
Member Avatar for thewonderdude

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++
Member Avatar for jonsca
0
139

The End.