43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for alonewolf23

[CODE]#include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) { char ch, play_or_no_play='y'; while (play_or_no_play == 'y') { cout << "Enter a character: "; cin >> ch; while (ch != 'c') { cout << "Wrong Character, try again: "; cin >> ch; } cout << …

Software Development c++
Member Avatar for alonewolf23
0
152
Member Avatar for BleepyE

Hey, im just wondering if there was any easy were to make sure that an entry havent been used twice in a selection of ComboBoxes. Heres the start for what id have to do if there isnt. [CODE]Private Sub ComboBox9_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox9.SelectedIndexChanged If …

Software Development vb.net
Member Avatar for Fungus1487
0
650
Member Avatar for johnt68

Hello - The code that I have below works .. but I am sure that there must be a more efficient way of looping through to check for a winner. Any advice much appreciated ... thanks:). [CODE]if ((nandcButton[0,0].Text == "0") && (nandcButton[0,1].Text == "0") && (nandcButton[0,2].Text == "0") || (nandcButton[1,0].Text …

Software Development
Member Avatar for Mitja Bonca
0
142
Member Avatar for manish250

hello all i have a string *354*4*string#.what i want is to fetch the string and calculate it's length. plz help

Software Development java
Member Avatar for manish250
0
245
Member Avatar for Mike Askew

As the title suggests, i am trying to pull a bitmap image stored in a table location with an OLEObject type to my picture box on the form. The code i am using is as following: [CODE=VB.NET]img_ProductPicture.Image = DS.Tables("LocationInfo").Rows(0).Item(5)[/CODE] The error i am receiving is an InvalidCastException: Unable to cast …

Software Development image vb.net
Member Avatar for Mike Askew
1
867
Member Avatar for johnt68

Hello - I cannot understand why I cannot get a win message box to show for my naughts and crosses game? I'm puzzled because no errors show - so I am guessing that I need to be making a 'win method' or something similar ???:confused: [CODE]Button[,] nandcButton = new Button[3,3]; …

Software Development
Member Avatar for johnt68
0
109
Member Avatar for novice20

[B]hi all using telnetlib, I am issuing a 'top' command on a remote host. Top seems to continue indefinitely. On a terminal, I can use CTRL+c to suspend the process... What can be passed in telnet.write() equivalently to suspend the process , yet retain the output so far... pls help …

Software Development python session
Member Avatar for novice20
0
767
Member Avatar for gutchi

Hi everyone! Is there a function in Perl which is similar to the following [CODE]getServletContext().getRealPath("/filepathInContext")[/CODE] which is in Java? The getRealPath method returns a String containing the real path for a given virtual path . I can't seem to find one. Any help would be much appreciated. TIA.

Software Development perl
Member Avatar for k_manimuthu
0
226
Member Avatar for rssk

how to store the output of a telnet session on a local machine, so that it can be used further for calculations??

Software Development python session
Member Avatar for rssk
0
1K
Member Avatar for Drakarus

I am making a program that involves adding time. It involves adding a beginning time, duration which would lead to the result of an end time from the sum of beginning time and duration. I will illustrate the problem i am having below: 12:15 start time with a duration of …

Software Development c++
Member Avatar for nathanseye
0
102
Member Avatar for afaque01

Hello! Every 1.. Can Any1 Please tell me How to make A Form in vb.net Transparent without Making Its Contents Transparent..! Actually I mean I make a border less form which i want as Transparent and in that Form i added little animation picture .. and iwant this animation picture …

Software Development vb.net
Member Avatar for afaque01
0
115
Member Avatar for libathos

hi i want to create a program which will be working like a agenta,meaning a user will fill in a form with an action he wants to perform and the time he must do it and my program should pop up a window which will be trigered by his computer's …

Software Development c
Member Avatar for Ancient Dragon
0
291
Member Avatar for ImanOcean

Hi, I have just started C# and I have created a console application that ensures that the option 'Calculate and display (c)' is not executed if the student details and results have not been entered. I am unsure how to validate a non-entry.

Software Development
Member Avatar for ImanOcean
0
101
Member Avatar for tomtetlaw

I'm trying to use a DLL that is generated from one of my projects. When I try to compile I get alot of linker errors from ONE of the files from the DLL project. What I think is the problem is that I should be linking to the .lib file …

Software Development c++
Member Avatar for tomtetlaw
0
172
Member Avatar for MasterGberry

Okay, so I understand this C# program I was given to analyze, and now I am being told that I need to convert the entire program into C++, just my luck. So there are several features that at the moment I do not understand how to convert over. If there …

Software Development c# c++
Member Avatar for MasterGberry
0
258
Member Avatar for NickPatton

#This is a homework assignment# I need to calculate how many seconds old I am in C. I'm thinking that I can take my birthday as user input and convert it to a date with strptime. I then would like to take the present date and put both it and …

Software Development c unix
Member Avatar for NickPatton
0
233
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 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 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 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 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 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 nhes2x

Construct a C program that will accept up to 3 digit integer number and display the hundredth's digit, tenth's digit, and one's digit. Example: Enter integer number (maximum of 3) : 143 Hundredth's place : 1 Tenth's place : 4 One's place : 3

Software Development c
Member Avatar for danholding
-1
156
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 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 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 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 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 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 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 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
Member Avatar for MaddTechwf

I've been scanning all over Google for code or articles explaining this but nothing seems to tell me what I need to know. Most have said to use InPtr = 4 for 32 or 8 for 64. I just need to be able to determine whether the OS the program …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
146
Member Avatar for ak24

Hello... I want to change the TextBox border color if certain event is true. For example, in a GroupBox, there is a TextBox and a Button. If the TextBox is empty, and I click the button, I want the TextBox border color to change to red. If the TextBox is …

Software Development vb.net
Member Avatar for ak24
0
5K
Member Avatar for MasterGberry

I am getting external link errors with the static consts below. Couldn't figure out what to do, would appreciate help :) [CODE]// Declartion of Order class class Order { private: // all of the different combo #s int a, b, c, d; int e, f, g, h; int i, j …

Software Development c++
Member Avatar for MasterGberry
0
142
Member Avatar for Stefano Mtangoo

forgive me buddies if it is childish question, I cannot find good tutorial explaining it. So bear with me. My questions are, how does forward declaration differ from normal include which I'm used to? Also, where do we use it and what are limitation of the two? Lastly is there …

Software Development c++
Member Avatar for Narue
0
107
Member Avatar for deucalion0

Hello guys, I hope you are all well! I am creating a game in Visual Studio using picture box's, but I cannot for the life of me figure out how I can have a nice picture in the background, as when I do put one in there it is constantly …

Software Development visual-studio
Member Avatar for deucalion0
0
1K
Member Avatar for fredfletcher

Hello, I was wondering if anyone could help me with something. I am not a programmer yet I am able to modify scripts to a certain extent. I recently downloaded a script to read an existing CSV file and output via an SSI call. What I would like to do …

Software Development apple perl
Member Avatar for fredfletcher
0
183
Member Avatar for dre-logics

I use visual basic 2008 I use Groupbox1 In the Groupbox1 in have two labels: label1 and label2. I have change the font of[COLOR="Red"] label1 [/COLOR]with properties to size [COLOR="red"]12[/COLOR] No i change the font size of [COLOR="red"]Groupbox1 [/COLOR]with properties to size [COLOR="Green"]8[/COLOR] Only [COLOR="Green"]label2[/COLOR] inherit font ([COLOR="green"]8[/COLOR]) format from …

Software Development vb.net visual-basic
Member Avatar for Unhnd_Exception
0
183
Member Avatar for gunbuster363

I have searched on the internet before, but cannot get a suitable tool. I found tools to profile jdbc performance, gc statistics, but no some obvious tool to measure the time spent in each statement. I would like found which statements are spending the most of the time of my …

Software Development java
Member Avatar for gunbuster363
0
92
Member Avatar for ibdatx

Hi all, I want to transform an xml file to another xml file based on the length of innertext in an element. Here is an example of the file to be transformed: [CODE] <?xml version="1.0" encoding="utf-8"?> <recipe xmnls=""> <recipeList> <recipeType description="Breakfast"> <recipeInfo> <name>Omelet</name> <summary>An English Breakfast</summary> <ingredients>Eggs,Butter</ingredients> <instructions>(1) You will …

Software Development xml
Member Avatar for iceandrews
0
214
Member Avatar for vbx_wx

[code] text = "Some text here 09:00 - Movies 10:00 - Cartoons 11:00 SPorts .... 20:00 - News Another text here" [/code] I am trying to get only the parts with the time in front.Here is my code: [code] match = findall('\d\d:\d\d\s-\s\D+', text) [/code] My problem is that at the …

Software Development python
Member Avatar for TrustyTony
0
87
Member Avatar for novice20

[B]hi, my problem is as such... I am establishing a telnet session to an IP using telnetlib module. I read the free memory on the board using telnet.write("free\n"). after this i call a system command 'snmpwalk' to walk the MIBs of the IP above. I again need to establish the …

Software Development python session
Member Avatar for novice20
0
113
Member Avatar for cs_tx_usa

Hi guys, I can't figure it out where I am doing wrong. I keep getting FileNotFoundException saying that "Could not find file 'C:\delete\band3_tao.img'." but this file was writen to a file in previous step. I have attached the code I have written. I need your help. Thanks. Here is the …

Software Development vb.net
Member Avatar for cs_tx_usa
0
106

The End.