132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for drogers76

I am using streamreader to read and streamwriter to write, i have put the lines into an array [text file contents] ********** Remove [ ] ***************** blah blah blah ;this is blah blah blah ;this is another blah [end of example file] i want to remove the lines that start …

Software Development vb.net visual-basic
Member Avatar for codeorder
0
324
Member Avatar for jitender939

plz help me on this question..... 1 2 3 4 5 6 7 8 9 how i can swap this like this 3 2 1 6 5 4 9 8 7 plz soon.......

Software Development c++
Member Avatar for Red Goose
0
122
Member Avatar for by_stander

Help.... I have 3 vectors I want to store in 1 array, but I can't figure out what I'm doing wrong [CODE] vector<double> range, az, el; double RAzEl[1000][3] = {}; for ( unsigned int j = range; j <= (num); j = j + ncols ) { range.push_back(row_d[j]); } for …

Software Development c++
Member Avatar for by_stander
0
2K
Member Avatar for romes87

Hi I am trying to do a simple thing but I am stuck :(. Basically, I have 4 texts. I want to compare text 2 with text 1 and text 4 with text 3, then save these differences into two different texts so that these differences can then be compared. …

Software Development python
Member Avatar for richieking
0
912
Member Avatar for linux

[B]Ah! Never mind! I forgot you could embed classes such as:[/B] [code]class Heroes(): class Lords(): class Phill(): hp = 25 >>> Heroes.Lords.Phill.hp 25[/code] ------------------------------------------------------ I am attempting to write an RPG in Python. I am not worrying about the battle system or mapping quite yet, and am more focused on …

Software Development oop python
Member Avatar for richieking
0
5K
Member Avatar for sciprog1

Hello, I have a 800 x 800 board where I post several pictures by using the Image class and the drawImage() method. Each image is 100 x 100 in size. If I click at any location of this board, I can easily identify the top left coordinates(x,y) and the length …

Software Development java
Member Avatar for sciprog1
0
94
Member Avatar for jugosoft

I'm creating some barcode generator, and I want to save generated barcode to database, but I have a problem when I want to get bytes from PictureBox Image. It says that Image property is null. That's hapening because barcode is drawn on the PictureBox(not in Image property). I think that …

Software Development image
Member Avatar for jugosoft
0
197
Member Avatar for scrivomcdivo

Hi folks. I'm currently looking at developing a client app in Python. I have a server app developed in C++ that captures wifi data and then my app connects to the server and grabs the data relating to the wifi access points and then inserts this into a MySQL DB. …

Software Development client-server mysql python
Member Avatar for nezachem
0
113
Member Avatar for Blackberryy

Hi guys I am looking to create the following as shown below. Anybody able to give me a hand as im really struggling to make the rectangles different lengths.

Software Development python
Member Avatar for richieking
0
2K
Member Avatar for Nassarofficial

Hello, I am working on a project, and I cant seem to get around a part of it, which is really crucial to the program.. I am using WX btw for GUI, but unfortunately, I want when a button clicked, to open a new Miniframe and take the values and …

Software Development gui python
Member Avatar for Nassarofficial
0
119
Member Avatar for vbx_wx

[code] 09:00 Johnny Bravo 10:25 Dexter laboratory 11:55 Cow & Chicken ..................... 18:10 I am weasel .................. [/code] Anyone knows a method to implement if i enter 10:30 to print whats on at that hour? (Cow & CHicken in my case) Thanks.

Software Development python
Member Avatar for richieking
0
85
Member Avatar for linova

Hi.. Could anyone help me to find out why this program cannot count the frequency of each alphabet? There is a output for calculating the total lines and length but not the frequency.Appreciate any help. Thanks! [CODE] int main() { const int MAXLENGTH=10; const int MAXCHARS=10000; static double i[26]; char …

Software Development c++ ios
Member Avatar for WaltP
0
159
Member Avatar for macaela

Hi, I am quite new to C# and programming in general. I am working on an exercise which asked me to write a program that reverses a string. I could not solve this so I looked at the answer which is shown below: [code] static void Main(string[] args) { Console.WriteLine("Enter …

Software Development
Member Avatar for ddanbe
0
171
Member Avatar for sam1

hi, I am creating a form on runtime using the following code. how would i be able to change the icon to something in resources as i dont have access to it. [CODE] Window mainForm = new Window { Height = 340, Width = 315, }; [/CODE] thanks

Software Development
Member Avatar for sam1
0
83
Member Avatar for ddanbe

Hi you all, I have the following code to put a CSV file into a DataTable. [CODE=C#]// read CSV file private DataTable BuildDataTable(string fileFullPath, char seperator) { const int EOF = -1; DataTable myTable = new DataTable("MyTable"); DataRow myRow; try { StreamReader myReader = new StreamReader(fileFullPath); } catch (Exception ex) …

Software Development file-system
Member Avatar for Mitja Bonca
0
572
Member Avatar for cute cat

[COLOR="Red"]can [/COLOR]you help me!! I have assignment that told me to write a function 'CheckSmaller' that takes two linked list as input arguments. These linked list contain numbers like this: num1->3->5->2->NULL (assuming that num1 is pointing to number 352) num2->4->3->9->1->NULL (assuming that num2 is pointing to number 4391) The function …

Software Development c++ linked-list
Member Avatar for Red Goose
0
202
Member Avatar for swathys

Hi, I would like to set my application to show [COLOR="Green"]system under maintenance[/COLOR] if it hit the [COLOR="Red"]start time[/COLOR] until the [COLOR="Red"]end time[/COLOR] which i set in the xml (24 hrs). How do i code it. Please anyone can guide me.Thank You! [B]XML[/B] [CODE] <Value Name="StartTime">22.45</Value> <Value Name="EndTime">00.00</Value>[/CODE]

Software Development vb.net xml
Member Avatar for Unhnd_Exception
0
258
Member Avatar for sumeetdesaeee

Hello Friends... I have one urgent query... Please help me solving it. I am trying to use PreparedStatementCreator interface. By making an anonymous inner class,i have implemented it's createPreparedStatement(Connection) method. When this method is implemented, it will automatically called every time. But, I want to know which is that connection …

Software Development java
Member Avatar for sumeetdesaeee
0
610
Member Avatar for andyhunter

the code does not validate spaces and results into moving onto the next line of code to which it should keep in a continious loop until valid data is entered. I have a problem with matching for whitespaces using \s as it doesnt work. many thanks do{ /*if salesPersonName is …

Software Development java
Member Avatar for hanvyj
0
107
Member Avatar for vbx_wx

Hello ,I want to find between what numbers of a list exist a specific number: For example if i enter 15,i should be between 13 and 21. [code] list = [1,5,9,11,13,21,27,29,32] for index in range(len(list)): if num > list[index] and num < list[index + 1]: ............................................... [/code] But with this …

Software Development python
Member Avatar for -ordi-
0
117
Member Avatar for thelostboy

Hi all This is for anyone that saw my other post I am developing a reservation system for a restraunt as a means of gaining experience and improving my programming. What I was windering I was hoping to implement a process where one restraunt could take the reservation for any …

Software Development c++
Member Avatar for Narue
0
118
Member Avatar for codeorder

[B]In this case, Form1 is the Main Form.[/B] Pre-requisites: [B]2 Forms (Form1 and Form2), 1 Button (on Form1)[/B]. [CODE]Public Class Form1 Function centerForm(ByVal Form_to_Center As Form, ByVal Form_Location As Point) As Point Dim pLocation As New Point pLocation.X = (Me.Left + (Me.Width - Form_to_Center.Width) / 2) '// set the X …

Software Development vb.net
Member Avatar for codeorder
0
821
Member Avatar for wrathmakin

Hey guys, I'm new to these forums and new to C++ in general. I have been looking around the forums and I have found threads with similar issues to mine but unfortunately they don't cover my exact issue. Essentially I want to make a histogram in C++ that takes a …

Software Development c++
Member Avatar for wrathmakin
0
4K
Member Avatar for MasterGberry

So I made a program, and have thoroughly tested the bugs out, and now finally figured out how to make a release build for my grandfather to see. So he tries running it and it crashes on the first input. I was told i may need to send him the …

Software Development c++
Member Avatar for MasterGberry
0
77
Member Avatar for TomaCukor

hey guys ive made a project in vs2010 that has a hardcoded (int val; val=800000; in main) amount set at start , the amount is 800000 (800k) i gave it an int type , and it works all well but when i try to run it in the anicent turboc …

Software Development c
Member Avatar for Narue
0
137
Member Avatar for vedro-compota

hello guys)) Advice please - how to set the stream encoding? (to read a text file) I use this code - [CODE] StreamReader stream1 = new StreamReader(fs); System.Text.Encoding code = stream1.CurrentEncoding; StreamReader stream2 = new StreamReader(fs,code); while ((i = stream2.ReadLine()) != null) { label1.Text = label1.Text + i; } stream2.Close();[/CODE] …

Software Development file-stream
Member Avatar for vedro-compota
0
154
Member Avatar for jaglever

I need to read a file which looks like this: model=binomial steps=1 time horizon=1 S=101 u=1.2 d=0.95 r=0.03 number of instruments in portfolio=2 instrument=option exercise=european position=short type=put strike=98 expiry=1 instrument=option exercise=european position=long type=put strike=10 expiry=1 and i just need to read everything what is on the right site of '=' …

Software Development c++
Member Avatar for VernonDozier
0
223
Member Avatar for rssk

[B]hi all.... i m writting a script using telnet session in linux............ first i want to read 1)read free message 2)process memory usage 3)%cpu usage then using snmpwalk i want to repeat 1,2,3 after doing this i want to calculate difference before snmp walk and after snmp walk....... i m …

Software Development python session
0
63
Member Avatar for Viperino

Hello. Can someone tell me why this doesn't work? [CODE] Public Sub LoadFile() Dim file As StreamReader Dim temp As String Try file = New StreamReader("C:\file.txt) temp = file.ReadLine() While Not temp Is Nothing Dim ListaTemp() As String = temp.Split(CChar(",")) ListBindingSource.Add(New Mod(CInt(ListTemp(0)), ListTemp(1), ListTemp(2))) temp = file.ReadLine() End While file.Close() …

Software Development file-system vb.net
Member Avatar for kvprajapati
0
126
Member Avatar for noamo48

Hi all, I'm new on this site and was hoping some of you more experienced coders could give me some advice. I'm a long time IT guy, always loved programming but never got too deep into it. I know the basics of programming in .Net and C# but I would …

Software Development c# engineering
Member Avatar for kvprajapati
0
160
Member Avatar for MaddTechwf

This is going to sound weird but I was wondering if there is a way to show in a list all of the installed Windows Updates.

Software Development vb.net
Member Avatar for jlego
0
605
Member Avatar for softswing

hai friends, How can i comiple and run java program using java code(with out using batch file) plz any one help me in t \his.

Software Development java
Member Avatar for ankit.jivrani
0
108
Member Avatar for boshu

Hi I am a PERL novice. Currently dealing with a problem and wondering whether it can be solved using PERL? I got a folder containing a number of text files. Every time a file is created a timestamp is added at the end followed by an "_". for example "apple_20101210091255.txt". …

Software Development apple perl
Member Avatar for k_manimuthu
0
205
Member Avatar for Petrica7

Is it possible to lock a drive, write something on it and unlock it...?

Software Development pascal
Member Avatar for Petrica7
0
209
Member Avatar for nickoooname

Hi Guys, Im currently working on a school project but im stuck, if worked on this problem for over 4 days now and i cant fix it. Using Direct3D 9, Visual studio 2010, im trying to make create a heightmap. Im using a bmp file. Problem: the heightmap doesn't show …

Software Development c++ visual-studio
0
132
Member Avatar for alex-VX

when i try to compile stuff i get this [code=c++]c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2143: syntax error : missing ';' before '{' c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2871: 'vc_attributes' : a namespace with this name does not exist c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2447: '{' : missing function header (old-style …

Software Development c++ visual-studio
Member Avatar for jonsca
0
479
Member Avatar for cs_tx_usa

Hi guys, I would appreciate it if you could give me sample code for linking two forms. I have a program which has 2 forms. I execute form1 first because it reads files and then writes to a file. Then I execute second form (form2) that will read the file …

Software Development file-system vb.net
Member Avatar for Mike Askew
0
257
Member Avatar for NewOrder

i dont understand why i have that exceptions. All i try to do is to write a file . Kill an object and load the file :( it says: "Unable to read beyond the end of the stream." [CODE]using System; using System.Collections.Generic; using System.Text; using System.IO; namespace Project1 { class …

Software Development file-stream
Member Avatar for NewOrder
0
950
Member Avatar for shakssage

Hi. I've got a JSlider in my applet which I want to change the position of. [CODE] int initValue = 10; int minimum = 10; int maximum = 20; JSlider slider = new JSlider(JSlider.HORIZONTAL, minimum, maximum, initValue); [/CODE] I've got this in the applets init() method. [CODE]add(slider); //add the slider …

Software Development java
Member Avatar for shakssage
0
845
Member Avatar for preethi_ga

Hi, In .NET i used the follwing codings for the Next and Previous buttons for Navigating the records. but it showed error. In NextButton_Click... [dim Rec_count = 0] -> this is globally declared. [dim Row_count as Integer = Data.Tables(0).Rows.Count - 1] [ If Rec_count <> Row_count Then] [ Rec_count = …

Software Development vb.net
Member Avatar for 123dev
0
2K
Member Avatar for swathys

Hi, I have a problem with my code. I am checking for the application instance. When i run application A , application B also must run. Below is my code to check the Application B if it is not running i have to make sure the code below execute it. …

Software Development vb.net
Member Avatar for swathys
0
135
Member Avatar for dejanc

Hi, I have a form with gridview data with database data. With query I run INSERT INTO from one table into another, with button. I would like when I run procedure, also reset/update/refresh gridview with new import data??!! For info, I have try with some methods, such as me. gridview.refresh() …

Software Development vb.net visual-studio
Member Avatar for dejanc
0
416
Member Avatar for sahil1991

hi, i was just wondering if there is some special technique to understand the code which is not yours.i may sound peculiar so letme make it a bit clear.i hav just recently done some c++ programming and being able to make some programs.not too complex but i can do some …

Software Development c++
Member Avatar for sahil1991
0
216
Member Avatar for LevyDee

Hi all, the setup is as follows: -One base class -My top layer class that holds: -Four derived classes from said base class(four different types of objects that all derived from my base class) Is it possible to have a function in my top layer class that has one object …

Software Development c++
Member Avatar for LevyDee
0
95
Member Avatar for freakyboard

[CODE]class x{int a;}; class y:public x{}; main(){y k; k.a=3; } [/CODE] How can I access "k.a"? PS: You can't change or omit any part of the code. a have to be private. Member access specifier have to be public ( class y::public x ). You can add functions to x …

Software Development c++
Member Avatar for embooglement
0
122
Member Avatar for pigmario

I have a text file contain a coordinate 100,20 240,100 23,45 I manage to read row and split it into and integer. and get it to point x=100 ,y=20. the problem is in the end i got a null when i print in console show a null like this 100 …

Software Development java
Member Avatar for JKP()
0
100
Member Avatar for matthewkeating

Hello, I am looking into testing the performance of different numerical datatypes like double, integer, float, etc and see which one is the fastest. Is there a way to do this in C++. Time the time it takes to do basic arithmetic with numbers. Starting and end a timer within …

Software Development c++
Member Avatar for mrnutty
0
128
Member Avatar for Harris00

how can we draw arc using turtle graphics. any guidance would be great regards

Software Development python
Member Avatar for loveerl
0
728
Member Avatar for MasterGberry

I know there is an easy way to do this in C#, but i was wondering about C++. If I want to have an ifstream object defined that will read the input of a file, but i want it to read backwards. So basically here is the format I have. …

Software Development c++
Member Avatar for MasterGberry
0
106
Member Avatar for MaddTechwf

I'm trying to write a small app and I want it to show the OS Install key. How can I pull this? I'm using Visual Basic 2008.

Software Development vb.net visual-basic
Member Avatar for MaddTechwf
0
217

The End.