132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ussra2

I have searched these forums and have seen multiple threads on the Weather Structure C++ program. I don't believe they have been resolved. I am tasked with the following: Write a program that uses a structure to store the following weather data for a particular month: Total Rainfall High Temperature …

Software Development c++ data-structure
Member Avatar for jwenting
0
9K
Member Avatar for soujanya.bhat.184

Hi Guys, I was trying to write a code to send AT command to a GSM modem. But i am facing problem while sending the AT command from UI. Below is the code: SEND.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { Thread runThread = new Thread(new Runnable() { @Override …

Software Development java
Member Avatar for mKorbel
0
138
Member Avatar for iConqueror

As a beginner at programming, I have been programming with OO languages for 3 years and I can not really imaging programming in a non OO environment so I have a few questions: 1. Is there any advantage using procedural than oo? 2. What kind of programmes do you write …

Software Development
Member Avatar for Hiroshe
0
305
Member Avatar for king.umair523

I am confused about pointer , it takes value of a vairable or only takes adress of vairable ??

Software Development c
Member Avatar for tenzinlol
0
143
Member Avatar for Martin_3

So, I am having an application which is intended to operate with another application autonomously. Example: 1.Open application A, which start application B 2.Click on a button 1 and click on the input text The problem is that Application B is not mine and I want to automate a button …

Software Development
Member Avatar for Hiroshe
0
365
Member Avatar for Erllarhrie

IAm Creating a pRoject that uses visualbasic and m having difficulty storing data into the database m I created ......thqnks

Software Development visual-basic
Member Avatar for Reverend Jim
0
707
Member Avatar for Praveen_10

using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace book { public partial class login : Form { SqlConnection conn; SqlCommand cmd; SqlDataReader reader; public login() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e)//MY login button { string constr = @"Data Source=PRAVEEN\SQLEXPRESS;Initial Catalog=travelbooking;Integrated Security=True"; conn = new SqlConnection(constr); conn.Open(); cmd = …

Software Development open-source
Member Avatar for castajiz_2
0
299
Member Avatar for damn_1

I have this xml <?xml version="1.0" encoding="ISO-8859-1"?> <output> <orders> <order> <id>1</id> <number>10002</number> <type>Loading</type> <date>2013-01-01T02:30:00</date> </order> <order> <id>2</id> <number>10003</number> <type>Loading</type> <date>2013-01-01T010:30:00</date> </order> <order> <id>3</id> <number>10004</number> <type>Loaded</type> <date>2013-01-01T12:30:00</date> </order> </orders> <quantities> <quantity> <id_order>1</id_order> <unit>KG</unit> <value>1000</value> </quantity> <quantity> <id_order>1</id_order> <unit>PAL</unit> <value>3</value> </quantity> <quantity> <id_order>1</id_order> <unit>M3</unit> <value>1.5</value> </quantity> <quantity> <id_order>2</id_order> <unit>KG</unit> <value>2000</value> </quantity> <quantity> …

Software Development xml
Member Avatar for xml_looser
0
153
Member Avatar for kshahnazari

this might be a simple question so accept my appolegises , I am creating a 2 dimetional pointers to int and I want to release the memory at the end but I think I'm doing It all wrong and all of the memory isn't being relaesed. int **a; a = …

Software Development c++
Member Avatar for rubberman
0
170
Member Avatar for Stefan_2

I've just finished my programming course in college and I need some projects or ideas for 'practicing' and making sure I don't forget some part of C programming. I would love for you to either give me some ideas or point me to sites with mini project from easy to …

Software Development c
Member Avatar for rubberman
0
157
Member Avatar for kxjakkk

I need to make an object called Accounts that can be used as a banking system. It requires 3 inputs, first name, last name, and initial deposit and 4 member functions: withdraw, deposit, fee and interest. The fee is $20 a month if the amount in the account is less …

Software Development python
Member Avatar for Hiroshe
0
616
Member Avatar for lewashby

I know that all you really need to execute a python program is the python interpriter, what what if your program uses config files that might be in /etc, ~/.program, or C:\users\Name\Appdata ? How would you go about creating an installer for you python program and all of it's files …

Software Development python
Member Avatar for snippsat
0
438
Member Avatar for DeanMSands3

I'm trying to remember the name of a site - *pretty sure it was a wiki* - where you post different ways of writing the same program in different languages. I. E. writing "Hello World" or heap sorts in C, C++, Java, Haskell, etc. My google-fu is failing me, so …

Software Development
Member Avatar for Hiroshe
0
273
Member Avatar for iConqueror

I have been doing some exercises out of the Head First C# book and have just done this exercise where you write a complete sentence using a while loop. The book dosent explain how the while loop puts together the string. I am looking if someone could please explain the …

Software Development
Member Avatar for iConqueror
0
293
Member Avatar for Rabastan

I need my program To detect the resolution of multiple monitors on a system. I have figured out to get the resolution of one monitor. Public Function ScreenResolution() As String Dim resX As Integer = Screen.PrimaryScreen.Bounds.Width Dim rexY As Integer = Screen.PrimaryScreen.Bounds.Height Return resX & " X " & resY …

Software Development vb.net
Member Avatar for Rabastan
0
153
Member Avatar for asaidi

Hi i m new in java trying to do a small form for creating rows.. i have a next button to scroll all my database everytimes i run it i have the first record then it says null please find my code for this issue private void AfficherStagiaire(){ try { …

Software Development java
Member Avatar for JamesCherrill
0
140
Member Avatar for shinoske

you can compile java codes in dos environment right? is it possible that errors in the codes found by the compiler be forwarded in a .txt fie?

Software Development java
Member Avatar for Swap_1
0
138
Member Avatar for Auroch

Hello everybody. I'm trying to write program with vectors and iterators. Coordinates X and Y are entered from keyboard (as structure) and placed in vector of points. It's necessary to display coordinates with maximal X and Y. This code was compiled but not display maximal X. What should I change? …

Software Development c++ programming-construct
Member Avatar for Lucaci Andrew
0
278
Member Avatar for EarhawkPH

I've been dealing with this problem for about 2 days now. Write a program that accepts the price of an item and displays the discounted price. Accept also the amount given by the customer (assume the amount is greater than or equal to the discounted price) and display the change. …

Software Development c++
Member Avatar for Lucaci Andrew
0
166
Member Avatar for yaldoo

Okay guys, I am having a problem with this code. I really need help with this one because I am stuck. The problem with this question is that the name, ss, id, and pass have to be ONE STRING. It's stupid because I wish I could make the strings split …

Software Development c++
Member Avatar for NathanOliver
0
4K
Member Avatar for Ealiom

Hi to all, Im going through JDBC currently, I got struck with Java.lang.ArrayIndexOutofBounds Exception:0. I'm not getting the solution to this exception. Please help me to solve this exception, thanks in advance. import java.sql.*; class Select { public static void main(String args[]) { try { Class.forName("jdbc.oracle.driver.OracleDriver"); Connection con = DriverManager.getConnection …

Software Development java oracle
Member Avatar for JamesCherrill
0
635
Member Avatar for Violet_82

HI guys, I wonder if you can help me understanding this please. Take the following code: // Fig. 14.23: ListFrame.java // JList that displays a list of colors. import java.awt.FlowLayout; import java.awt.Color; import javax.swing.JFrame; import javax.swing.JList; import javax.swing.JScrollPane; import javax.swing.event.ListSelectionListener; import javax.swing.event.ListSelectionEvent; import javax.swing.ListSelectionModel; public class ListFrame extends JFrame { …

Software Development java java-swing
Member Avatar for Violet_82
0
198
Member Avatar for JiThU89

Currently i'm doing a project in C# where i've to support multiple languages. What i decided to do is this: Create language xml files and put them in a folder ("langs"). Language file structure: [CODE] <Lang name="en" /> <!-- All forms --> <form id="mainform"> <item id="mnuFile" text="File" /> <item id="mnuFileNew" …

Software Development xml
Member Avatar for doxa.paradoxa
0
569
Member Avatar for behemothdave

My assignment is as follows: Create a higher/lower guessing game using a graphical user interface. allow users to keep guessing until they guess the number. Choose two colors for the game: one should be used to indicate that the value the users guessed is higher than the target; the other …

Software Development assembly user-interface
Member Avatar for TalhaMoazSarwar
0
2K
Member Avatar for krnaveen14

I've been trying to compare a string which is stored in two diffrent variables(but the content is same). I get the two same inputs from user.. package switchcasepgm; import java.util.Scanner; public class stringcomp { public static void main(String[] args) { Scanner getinp=new Scanner(System.in); System.out.println(); String sdr = getinp.nextLine(); System.out.println(); String …

Software Development java
Member Avatar for krnaveen14
0
149
Member Avatar for hanvyj

I need to bind a property to a ToolStripMenuItem. I've searched around and found it imposible, the best workaround seems to be creating a BindableToolStripMenuItem class and implement it yourself. So I've taken some reasonabyl well established code from the internet: public partial class BindableToolStripMenuItem : ToolStripMenuItem,IBindableComponent { private BindingContext …

Software Development
Member Avatar for hanvyj
0
393
Member Avatar for Ado0NiS

i am making a software through visual studio in c# and i am facing a problem that when i enter wrong password according to my code it shows a message box of invalid password or username but after this it opens the next form .....plz give me help

Software Development visual-studio
Member Avatar for ChrisHunter
0
87
Member Avatar for yaldoo

Okay, I have another problem. It has nothing to do with the file I/O streams. But I want to make modifications with this code. It works but I would like to make changes though. PLEASE NOTHING TOO FANCY, I'm still a beginner. Thank you for the help! Write a function, …

Software Development c++
Member Avatar for tinstaafl
0
1K
Member Avatar for kamilacbe

Hi, this might be kidish to people over here , am trying to migrate code from c++ to C# where am new to CPP , so guys please help me out what this below code exactly mean . int myFunc (int a, int b)=0; Thanks for your time .

Software Development c++
Member Avatar for sepp2k
0
132
Member Avatar for kiail

I have an aspx page that I'm trying to make an httprequest and then setup a TCP socket(I think this is what I'm doing lol)... I'm needing to send a byte array through this. I have this code so far, any advice/tips? Huge errors you see? I removed some items …

Software Development
Member Avatar for kiail
0
306
Member Avatar for xuexue

Hi! I already established an iDB2Connection, now what I want to know, is how could I execute SQL Queries for INSERT, DELETE and UPDATE. I had tested the code already and it works. The code for count works; I get the total number of records. My question is that for …

Software Development sql vb.net
Member Avatar for xuexue
0
943
Member Avatar for xuexue

Hi! My database is in AS/400 DB2 hence, I am using SQL. Here's my line of code for opening a connection. Dim str As String = "User ID=EDITH;Password=EDITH;Data Source=10.0.1.11;Initial Catalog=ictms;Integrated Security=True" Dim conn As SqlConnection = New SqlConnection(str) conn.Open() Now, I wanted to execute a delete query, however, I already …

Software Development open-source vb.net
Member Avatar for xuexue
0
2K
Member Avatar for eos.paks

Good Day, I would like to ask, i have already finished my project on VB.net and im now planning to deploy to. How can i deploy this with .exe and DLL files only? Your help is much appreciated. Thank you, EOS

Software Development vb.net
Member Avatar for deceptikon
0
150
Member Avatar for nathan.pavlovsky

Hello programmers! I am having a function that has the user enter a name for an object, check if its valid, and return it if it is. I am getting the input via getline, but it seems that you have to press enter twice to make the input work. Here's …

Software Development c++
Member Avatar for nathan.pavlovsky
0
2K
Member Avatar for kiail

Hello, currently I am trying to send a byte array to a wireless device I have setup on my network. I'm having issues however and it's not working properly. I can send data to it while I have it interfaced usb, but over the network has been unsuccesful. This is …

Software Development
Member Avatar for kiail
0
327
Member Avatar for jlieu.ww

Design a C++ program by considering the following conditions; 1. User must keyed-in “start” to start the program and “stop” to end the program. . 2. If the user keyed-in “choice1”, print out PATTERN A. 3. If the user keyed-in “choice2”, print out PATTERN B. Use if else statement, while …

Software Development c c# c++
Member Avatar for NathanOliver
0
220
Member Avatar for Tensigh

Hello, The code below works almost perfectly except for two flaws: 1. It provides the full name of the file (workbook.xls) instead of just "workbook" 2. If there is more than 1 worksheet then the loop appends the previous worksheet to the filename. For example, Workbook1 has 1 worksheet Workbook2 …

Software Development microsoft-office visual-basic
Member Avatar for Tensigh
0
398
Member Avatar for TonSingle

**hi guy recently i created one AbstracttableModel and one class named Veiculo, and i created a vector to hold Veiculo's data, i copied veiculo's data to text file named "UniVeiculo.txt", now i want read and show some data from UniVeiculo.txt to AbstractTableModel. i tryed use this code: String cod="",mark="",year="",color="",model="",plate="",owner="", List<Veiculo> …

Software Development java
Member Avatar for mKorbel
0
109
Member Avatar for Netherblood

So I've been working on this project of mine and I want to refactor it. What I have is a couple of cases that change my JButttons' icons. These cases are in a method that is in my public GUI class that extends JFrame. What I want to do is …

Software Development gui java
Member Avatar for mKorbel
0
312
Member Avatar for sandhya1202

[QUOTE]I would like to search for more than one word in a text file and if the word found i would like to save it to a group in which i have files belonging to English,Entertainment etc.The thing is Im unable to search for more than one string in a …

Software Development file-system python seo
Member Avatar for Vikram Kolla
0
343
Member Avatar for Rake$h

Hello Friend's, step 1: I trying textbox data 1st insert in grid. it's clear but step 2 : Grid data not insert in data base. it's code here protected void btnsavedata_Click(object sender, EventArgs e) { foreach (GridViewRow g1 in gvloan.Rows) { SqlConnection con = new SqlConnection(conString); SqlCommand com = new …

Software Development
Member Avatar for Rake$h
0
134
Member Avatar for Rake$h

hi friend here soved code for textbox data display in Gridview <form id="form1" runat="server"> <asp:TextBox ID="txtAdd1" runat="server"></asp:TextBox> <asp:TextBox ID="txtAdd2" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="show in gridview" onclick="Button1_Click" /><br /> <asp:GridView ID="GridView1" runat="server"> <Columns> <asp:TemplateField HeaderText="Select"> <ItemTemplate> <asp:CheckBox ID="chkbox" runat="server"></asp:CheckBox> <br /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Remark"> <ItemTemplate> <asp:Label ID="lblremark" runat="server"></asp:Label> </ItemTemplate> …

Software Development session
0
115
Member Avatar for makan007

I want count the elements in a srand generated array. The array is char array. Can anyone advise me on my void countElements (char* a, int size) function as it don't work? TIA. [CODE] #include <iostream> #include <ctime> #include <cstring> #include <cstdlib> using namespace std; const int MAX = 10; …

Software Development c++
Member Avatar for TalhaMoazSarwar
0
888
Member Avatar for pizzaaaa

I can't go back to a submenu. Using continue or break will make me go back to the main menu. Can you get what I'm saying? New to Python. Thanks!

Software Development python
Member Avatar for rubberman
0
151
Member Avatar for Suresh_6

Hi i'm new to python, i want to generate results by comparing two files(txt/xls)line by line as Pass or Fail. i was able to achieve this using difflib and htmldiff(). comparison works fine but not able to add third column as results which should return pass/fail for corresponding line. can …

Software Development python
Member Avatar for Suresh_6
0
168
Member Avatar for Shakeylfc

Hi, Basically im looking to create a basic C# compiler or parser if you like that will allow users to create simple programs that can declare variables, assign variable values etc. Ive began with the main functionality within the application, this being the parser which shall pass in user code …

Software Development c c# c++ user-interface
Member Avatar for arronlee
0
318
Member Avatar for suman_4

I was learning about the static class and static method.Then i came across the following line: Only one copy of static member exists regardless of any no of instance of a class. what does it actually mean? It is in the msdn document http://msdn.microsoft.com/en-us/library/79b3xss3.aspx achfcssswwws follows: A non-static class can …

Software Development microsoft-access
Member Avatar for hericles
0
154
Member Avatar for PM312

There is no **"Microsoft Outlook 14.0 Object Library"** in my **visual studio 2008 reference COM** List how can i update it. Thanks

Software Development microsoft vb.net visual-studio
Member Avatar for PM312
0
1K
Member Avatar for mbowenitj

Hi guys, I've created a login form which works fine, i need assistance in comparing uppercase and lowercase input from a login form. Whenever the password is entered, the system has to compare uppercase and lowercase characters stored in the data..following is my code: 'Logic for login... Dim conn As …

Software Development open-source vb.net video
Member Avatar for mbowenitj
0
2K
Member Avatar for 24minutes

Greeting, I'm working on a VB.NET program. Currently I'm facing difficulty of filtering data of the parent and the child. I use GridControl from DevExpress through :)/> This is the code of how I populate my TreeView : Public Sub fillTreeView(ByVal Key As String, ByVal Txt As String, ByVal N …

Software Development vb.net
0
113

The End.