132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bbman

Hey, I have the code as follows: [CODE] public Form1() { InitializeComponent(); string[] _args = Environment.GetCommandLineArgs(); if (_args.Contains("options")) { this.Show(); } } [/CODE] This will be a tray app (and close quickly after the work is done), so if I add a notifyicon above the InitializeComponent(), could I move that …

Software Development
Member Avatar for CFusion
0
374
Member Avatar for lstensland

I am new to programming and have been reading a few books on Pyhton but can't seem to grasp what I believe is probably a simple process. I need someone to show me briefly a sample script that would allow me to open a CSV file and edit it line …

Software Development python
Member Avatar for lstensland
0
444
Member Avatar for paddy8788

I just started working on a small tool to search for (heavy) text files using Visual C++ with MFC. Because there are a lot of readings, I'm wondering if ifstream of the standard library is better than CFile of MFC? I don't need portability (the program is for Windows Environment), …

Software Development c++
Member Avatar for paddy8788
0
249
Member Avatar for debuggger

Hey - I've been given a gutted version of Minesweeper, and been asked to reconstruct it. I'm taking it piece by piece, and I've got some parts working. What I'm trying to get now is the 'Zone Clearing'. Just quickly: Zone clearing is when you click a 'blank' square, all …

Software Development vb.net
Member Avatar for adams161
0
168
Member Avatar for kalai_c_k

what is the best design practice for this situation? ----- Create a class or set of classes in C++ to represent the birds Create an instance of each type of bird and add them all into a single vector Have each bird hop and then fly in turn Don't have …

Software Development c++
Member Avatar for mrnutty
0
121
Member Avatar for mitch9654

I am working on some code for getting user input on what songs they want for a dance. Unfortunately, when running the applet with some html, java opens a window saying [CODE]Java has discovered application components that could indicate a security concern[/CODE] three times, and no matter what you click, …

Software Development java
Member Avatar for mitch9654
0
569
Member Avatar for joinerc

Hello all, I started learning C++ a few days ago, using visual C++. I'm learning from an old textbook. I'm having some errors come up due to heap corruption. The author of this book defined a class matrix and vector (I won't repost the whole thing as it's quite long, …

Software Development c++
Member Avatar for NathanOliver
0
383
Member Avatar for Drugarce

Hi, I am new in assembly and i nave some problems. I am working on some project for school i should read text from .txt file. The problem is that i don't now how to get the number of chars contained in .txt file that i need to store in …

Software Development assembly file-system
Member Avatar for NotNull
0
6K
Member Avatar for ivanCeras

got some questions about .com and .exe files Whats the main difference between the two file types? When two files of the same file name one with .com extension.. the other .exe why does windows give higher priority to the .com file? help me figure it out pls ;)

Software Development assembly
Member Avatar for NotNull
0
2K
Member Avatar for IS_student

Good evening; I am having a final exam next week and I'm having an issue with this program. the program should user receive from the user 6 marks for each one of four students and then compute the average and finally show the index of the student who has the …

Software Development c++
Member Avatar for finito
0
109
Member Avatar for kunkunlol

Hi there, I'm new to c++ and im trying to do a project, wich is a letter soup game (its like a word search in a square with loads of other letters). So far now I have a letter (A-Z) randomizer, wich will put them in an array[l][w] (choosen by …

Software Development c++
Member Avatar for ndeniche
0
913
Member Avatar for evanescence

Hi, I'm pretty new to writing stuff in Assembler . Now I'm trying to run some code that puts the odd numbers from an array to a second one, and the even numbers to a third one. I don't really know how to make the transfer. I tried with MOVSB …

Software Development assembly
Member Avatar for NotNull
0
135
Member Avatar for dilansankalpa

i am writing a c# programming to receive data through serial port. Data receiving is going fine. But first to enable data flow i have to type "[B]datafrm f1a4[/B]" and then press "[B]Enter[/B]" key in the hyperterminal. then i have to run the c# program. Can I get this done …

Software Development
Member Avatar for Phil2:3
0
139
Member Avatar for kdmuk10
Member Avatar for kdmuk10
0
122
Member Avatar for hatzi8

Hi, i've have just created my first program in visual c++ 2008 express edition and i'd like to know, if I can create an exe file to make this program run independently from visual studio. thanks

Software Development c++ visual-studio
Member Avatar for VernonDozier
0
85
Member Avatar for bree9482

Hi guys hope ur are all well! I have a program im trying to finish and its not going well. I am quite new to C++ and am not the greatest. I have code that ill post, but the problem is when i run the program with the readfile(); function …

Software Development c++ ios
Member Avatar for VernonDozier
0
151
Member Avatar for Ico.I.Am

Hi,I am new with this forum even if I have been programming in c,c++ for a while. I have never realized any DLL file and I'd like to start now. I think I have basically understood the concepts that stay behind a DLL realization but I still can't make one …

Software Development c++ visual-studio
Member Avatar for vijayan121
0
114
Member Avatar for Ragoune

Hi, I'm trying to make a rather simple Visual Basic app with which I can update some tables within my MySQL databases. I've been following [URL="http://www.vbmysql.com/articles/vbnet-mysql-tutorials/the-vbnet-mysql-tutorial-part-3"]this tutorial[/URL] from page 3 on, as the first 2 pages where on how to initialize a local MySQL database. My MySQL database is on …

Software Development mysql vb.net visual-basic
Member Avatar for Ragoune
0
1K
Member Avatar for j-green.10

In my code i have written: [CODE] std::ifstream stm; stm.str("str100"); double d; stm >> d; [/CODE] and an error comes up saying that: [CODE] 'str' : is not a member of 'std::basic_ifstream<_Elem,_Traits>' with [ _Elem=char, _Traits=std::char_traits<char> ] [/CODE] What should i do?

Software Development c++
Member Avatar for j-green.10
0
73
Member Avatar for sdhawan

Hi Guys , I am trying to load a xml file as follows and i am getting file not found exception even though the file is on the desktop.I have checked the file name and extension they are correct , can anyonehelp please [code] private void button1_Click(object sender, EventArgs e) …

Software Development file-system xml
Member Avatar for CFusion
0
113
Member Avatar for CroBoss

hi all, the following code is for a SLR parser... after compiling i got some strange errors - could someone pls take a look, or try compiling it... tnx alot [CODE]#include<iostream> #include<conio.h> #include<string.h> #include<process.h> #include<stdio.h> char in[30]; char T[]={"i+*()$E"}; char prod[4][5]={"EE+E","EE*E","E(E)","Ei"}; char M[10][8]={"sbbsbbg","bssbbab","sbbsbbg", //matrix to store shift, "brrbrrb","sbbsbbg","sbbsbbg", //reduce,error and …

Software Development c++
Member Avatar for CroBoss
0
231
Member Avatar for az7_neli

Please, help me! I am a student in Technical University in Plovdiv, Bulgaria. I must finish my graduation work very soon. For the purpose I must create trigger(actually a few triggers) at run time. For my graduation work I use Borland C++ Builder 6. I use BDE palette. I try …

Software Development c++ oracle
Member Avatar for az7_neli
0
588
Member Avatar for sdhawan

Hi guys how can I insert multiple xml files in one table. Thanks

Software Development xml
Member Avatar for sdhawan
0
141
Member Avatar for digitalsindhx

I Want To Search Date From .mdb Database file, Table Name is Purchase, and The Field is Purchase Date, its Type is DateTime and Formate is ShortDate in MS Access Database File, I Conceted it to Vb.net Form, and Tryed to Search Date, but it Returns Error. the Code to …

Software Development dataset microsoft-access vb.net
Member Avatar for Netcode
0
279
Member Avatar for erka4444

I've got two member functions: [code=c] //Particle.h class Particle { public: bool isDead()const; static bool isDead(const Particle & par); }; //Particle.cpp bool Particle::isDead()const { return(xPos<=0 || xPos>=SCREEN_WIDTH || yPos<=0 || yPos>=GRASS_HEIGHT); } bool Particle::isDead(const Particle & par) { return(par.xPos<=0 || par.xPos>=SCREEN_WIDTH || par.yPos<=0 || par.yPos>=GRASS_HEIGHT); } [/code] But when a …

Software Development c++ visual-studio
Member Avatar for mrnutty
0
191
Member Avatar for wlalth

[code=cs] foreach (ComboBox a in Form1.ActiveForm.Controls) { MessageBox.Show("hello"); } [/code] Hi, i want to add same items to all ComboBoxes, expect one. The part of my code is here. The problem is foreach loop never fire. I never see the MessageBox which is saying "hello". What is wrong in my …

Software Development
Member Avatar for nick.crane
0
3K
Member Avatar for Sw8Lala

hi every one, I am making KBC game in C++. To store questions and its options in a file, I am unable to write successfully the character string of question in the file due to spaces between question. So,can anyone tell me how to write a character string having spaces …

Software Development c++ file-system
Member Avatar for Sw8Lala
0
171
Member Avatar for komyg

Hi, I am developing a WSDL file for a Web Service and I am having a problem with the XSD schema associated with this WSDL. The Schema is below: [CODE] <wsdl:types> <xsd:schema targetNamespace="SNIPPED"> <!-- Classes de apoio --> <xsd:simpleType name="resultadoOperacao" final="restriction"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="OK"/> <xsd:enumeration value="NOK"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType …

Software Development xml
Member Avatar for komyg
0
285
Member Avatar for SBA-CDeCinko

I have a DetailsView that I use to update some database data. In the footer of the DetailsView is a label I am trying to use as a status message panel. For instance, I display validation errors in this label. After updating a record, which causes a postback, I am …

Software Development
Member Avatar for SBA-CDeCinko
0
160
Member Avatar for prashanth s j

Hi all, the following code prints garbage values. I want to read from an array two bytes and print then as a short int after doing ntohs. What is the bug in the code? Thanks and Regards, Prashanth [code] #include<stdio.h> struct converter { unsigned short int i; }; main() { …

Software Development c
Member Avatar for prashanth s j
0
194
Member Avatar for perryg30313

Hello Forum, I am new to SQL Server and have inherited a database from another developer. I have a Stored Procedure that I'm trying to use in my vb.net program to fill a form with multiple datagrids. The Stored Proc looks like this: set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go …

Software Development dataset vb.net
Member Avatar for perryg30313
0
120
Member Avatar for ndeniche

Hello guys. I'm building an application that connects to a SQL Server 2008 database via connection string. The thing is, since the computer loading the app (or the user, in either case) is outside the Active Directory domain, I can't use Windows Authentication to connect to the DB. But when …

Software Development sql vb.net
Member Avatar for ndeniche
0
844
Member Avatar for tyson.crouch

G'day, I'm just looking to clean up some of my code as i know that at the moment it doesnt follow the best practices. I have the following function which calls my database() class. I know that i need to close my connections and statements im just not too sure …

Software Development java
Member Avatar for Stefano Mtangoo
0
87
Member Avatar for ceyesuma

Hello: I was trying to plan a component to collect data from a user. I have two approaches in mind. I was considering a Jtable with editable cells. Can a table be configured to display vertically? Or, I was going to get meta data from the tables and build a …

Software Development java
0
43
Member Avatar for monmonsnow

hi guys i need help with my project. I am a beginner in Java programming,and recently I came across a project, i am having problem at the start...so i need some guide to tell me how i should do(the steps). My project required us to do a word game that …

Software Development java oop
Member Avatar for NormR1
0
261
Member Avatar for bd338

Hello everyone! I'm trying to make a "map creator" program, which allows you to place 75x75 isometric tiles in a grid. I'm drawing the grid using the overridden "paint(Graphics g)" method, which you'll see in my SSCCE below. But the problem is that I'm not able to place JComponents the …

Software Development algorithm java java-swing
Member Avatar for NormR1
0
202
Member Avatar for vivekdxt2000

Hi everyone!!! I am trying to fetch data from an excel sheet to an other sheet or to ole automation in vb. the main problem is that i have to search data on the basis of two date intervals and nd then copy data from related cells recorded in that …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
85
Member Avatar for SoggyFries

This is my node and driver class. I need to find the smallest value on the left side of the tree. [CODE]import java.util.ArrayList; import java.util.List; public class NTreeNode<T> { public T value; public List<NTreeNode<T>> children; public NTreeNode(T val) { value = val; children = new ArrayList<NTreeNode<T>>(); } public String toString() …

Software Development java
Member Avatar for leiger
0
183
Member Avatar for seharshahab
Member Avatar for Luc001
0
87
Member Avatar for spectre1983

Hi all, I'm a bit of an XPath noob and I'd be much obliged if you'd point me in the right direction here. I want to select the first <product> in the source that has the child node <name> = 'bread' The expression below yields the correct naswer but I'm …

Software Development xml
Member Avatar for iceandrews
0
111
Member Avatar for Pineapplesf

I am having a lot of trouble sorting an array. The array contains 140 inner arrays of 3 points (x y z). I would like to sort all arrays based on lowest x coordinate to the highest. I have googled many methods and none of them have worked so far. …

Software Development python
Member Avatar for vegaseat
0
13K
Member Avatar for spartan118

Having trouble with my massively massive program. It compiles but fails to execute. [QUOTE]The instruction at "0x00471a6a" referenced memory at "0x00000114". The memory could not be "read".[/QUOTE] Here's my program. (IF YOU HAVE ANY SOLUTION FOR THE VARIABLES IT WOULD BE APPRETIATED!!!) the cpp is attached

Software Development c++
Member Avatar for rdrast
0
125
Member Avatar for ajwei810192

Hi, I have an XML file that attaches an xsl stylesheet using version that has sorting function at the beginning of the file. At the same time, eason, I would like to put in some other information in the beginning, such as html headers as well. Here is my code: …

Software Development html-css xml
Member Avatar for ajwei810192
0
187
Member Avatar for LevyDee

I got the whole static binding and dynamic binding on runtime if a function is declared virtual in the base class, but if you do something like this... [code] class base { public: void print() { cout << "base" << endl; } }; class derived : public base { public: …

Software Development c++
Member Avatar for AkashL
0
110
Member Avatar for eso

I'm a complete programming novice, so apologies in advance ;) I'm trying to design a simple app to take user input from a textbox (in this case, Outlook EntryID - a hexadecimal string) and use Redemption.DLL to return a set of MAPI properties from the container. The button and general …

Member Avatar for Ramy Mahrous
0
2K
Member Avatar for tan123

Hi, I have a scenario for which I wanted the best solution in asp.net c#. My web application allows users to retrieve search data from database, this data is the users own temporary list of records which they can search, delete records or select them. All these actions are only …

Software Development asp.net session
Member Avatar for tan123
0
138
Member Avatar for sanagopi

[code] main() { int i=0xff; printf("\n%d",i<<2); } [/code] please tell me how to work out this code... and what will be the output...

Software Development c
Member Avatar for Banfa
0
2K
Member Avatar for SiahCheePing

is there anyway to retrieve and list all the attributes for an active directory user to be used for updating with using the following [CODE] de.properties.contains(propertyName) [/CODE] Just wondering, quite a newbie AD programming, a little guidance thanks

Software Development vb.net
Member Avatar for G_Waddell
0
125
Member Avatar for Ellitivity

Hello I'm building a small program like notepad and wanted to know how to make it save and load a file [CODE] Public Class Form1 Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click txtNotes.Text = "" End Sub Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e …

Software Development vb.net
Member Avatar for G_Waddell
0
145
Member Avatar for Atlantistwo

Hey guys I was wondering if there was a way to have more than one condition in an IF statement. Thanks

Software Development
Member Avatar for kvprajapati
0
164

The End.