Our Software Development forum encompasses topics related to native application programming design and development.

133,593 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Krstevski

Hello friends, I have a small problem, I need to check if the database connection is still open. Here is my code... [CODE=csharp] try { // new connection // connection open // other code // close the connection } catch (Exception ex) { // handling exception } finally { // …

Software Development .net:c# database-design
Member Avatar for Krstevski
0
6K
Member Avatar for PixelExchange

Does anyone know how one would go about creating a "custom" file type? (Such as Macromedia Flash's .swf.. or quicktime's .mov) Also.. once I have created a custom file type... how would I make sure that my file is always associated with a given icon (that I will create).. and …

Software Development c++ file-system
Member Avatar for PixelExchange
0
203
Member Avatar for macrogeek

Im a beginner level programmer in C and want to know how can I use malloc or calloc functions for dynamic memory allocation without typecasting...?

Software Development c
Member Avatar for manojwali
0
239
Member Avatar for medopunsher

Hello Everyone , I'am new to OOP and QT and i'm trying to write a simple chat program (client , server) with winsockets. I Have an error which i don't seem to understand : this is my code so far : [CODE] #include "pmessenger.h" #include "ui_pmessenger.h" #include <QMessageBox> #include <winsock2.h> …

Software Development c++ object-oriented-programming qt
Member Avatar for Stefano Mtangoo
0
138
Member Avatar for s0ur

HI All, My name is s0ur and I am not a programmer. Isn't that the first step to recovery? I am hoping that the experts can help a noob. I am trying to write a python script that will run on windows login. it should do the following: 1) ping …

Software Development microsoft:windows python
Member Avatar for Beat_Slayer
0
321
Member Avatar for judithSampathwa

hey i have a datagridview and i am validating 3 columns, the user has to enter data in to those 3 columns, [CODE] else if ((!string.IsNullOrEmpty(dgvActions.Rows[dgvAAddR - 1].Cells[0].Value.ToString())) && (!string.IsNullOrEmpty(dgvActions.Rows[dgvAAddR - 1].Cells[1].Value.ToString())) && (!string.IsNullOrEmpty(dgvActions.Rows[dgvAAddR - 1].Cells[2].Value.ToString()))) [/CODE] when the user hasn't entered any value in one of this cells there …

Software Development .net:vb.net
Member Avatar for Nyight
0
235
Member Avatar for SuzyDavis

Hi there, I am a Microsoft Word developer and I sell Microsoft Office solutions, to companies. I am beginning to be concerned that my solutions are being copied - which is fairly easy. I am hoping someone can give me some advice about the best way to do this. I …

Software Development .net:vb.net office-suite visual-basic
Member Avatar for the_carpenter
0
183
Member Avatar for Member #678044

I have two classes and one of them is inherited from the other class. Class Person - used to store first name and last name of a person. The data members are protected. Class Candidate - used to store votes of an election, and this is inherited from Person class …

Software Development c++
Member Avatar for arkoenig
0
190
Member Avatar for shinypenguin

I'm using Visual Basic Express 2008 to create an interface with a order database in MS Access 2007 (.accdb file). Everything is fully functional except updating the "Inventory" table is very slow. Updating around 2200 items takes almost 2 minutes and the window will appear as "not responding" for the …

Member Avatar for lolafuertes
0
148
Member Avatar for serkansendur

I wanted to share my little xml transformer tool that gets xml and xsl input visually and outputs the transformation in a third textbox again visually. i will attach the project so anyone can use it on the fly. i kind of combined the two code snippets from the following …

Software Development .net:c# xml
Member Avatar for ronaldeddy
0
288
Member Avatar for Member #678044

Take a look at this program. [CODE] #include <iostream> using namespace std; struct Node { int data; Node* link; Node() { data = 0; link = NULL; } }; void destroy(Node* &p) { Node* pre; while(p !=NULL) { pre = p; p = p->link; delete pre; // When running for …

Software Development c++ ide linux:ubuntu
Member Avatar for manojwali
0
609
Member Avatar for sinfultom

Hi there, I'm new to the forum so please be kind :) I've created a class called node that has a standard constructor and an overload that uses an int as an argument. [code=c]class node { public: node(void); node(int inputs); ... };[/code] I can create an dynamic array of nodes …

Software Development c++
Member Avatar for Duki
0
210
Member Avatar for DaveTran

Here's a simple integer array. [CODE] int[] intArray = new int[5]; [/CODE] Now I make the first element equal to a variable. [CODE] a = 10; intArray[0] = a; [/CODE] How can I change the variable so the array automatically updates without using referring to the array? E.g. [CODE] a …

Software Development .net:c#
Member Avatar for Momerath
0
185
Member Avatar for leverin4

Is it possible to check which version of Excel a user's computer will open while in a VB6 application? Some users will be using Excel 2003 and some will be using Excel 2007 and, in theory, a single command button will open one of two excel sheets based on which …

Software Development office-suite visual-basic
Member Avatar for AndreRet
0
563
Member Avatar for prathoven

I have a problem with understanding a deserialization code....Can anyone help with this one: public clsSerial DeserializeFriend() //[U][B]why clsSerial is done here ??[/B][/U] { clsSerial temp = new clsSerial(); try { BinaryFormatter format = new BinaryFormatter(); FileStream myStream = new FileStream(“Test.bin”, FileMode.Open); temp = (clsSerial)format.Deserialize(myStream);// [B][U]and why (clsSerial)is added here[/U][/B] …

Software Development .net:c#
Member Avatar for prathoven
0
113
Member Avatar for Deeplop

Hi all.... How can I create .exe format in python??????? I mean how to change .py to .exe ???? please reply as fast as possible

Software Development python
Member Avatar for snippsat
0
215
Member Avatar for krille_x

Hi Im rather new to this but I want to ask how to re-define the array argv[] after the program main(int argc, char *argv[]) have been called? example main(int argc, char *argv[]) //assume the program is called by: program //this would give argc=1 and argv[0]= program //but know I want …

Software Development c
Member Avatar for Narue
0
179
Member Avatar for illuminatus89

Through my knowledge, I know that by declaring a variable as 'const', its stored in read only memory and at the same time I found that a const variable's value can be changed using pointers. How is it possible?

Software Development c
Member Avatar for manojwali
0
126
Member Avatar for Jamesbch

Hello everyone, I've found out that the [I]friend[/I] keyword can be used with a class or a function/method but I'm wondering if it's possible to do something like this : [CODE=C++]class A; class B; class A { private: friend class B void AddEl(void *el); friend class B void RemEl(void *el); …

Software Development c++ object-oriented-programming
Member Avatar for Fbody
0
140
Member Avatar for PixelExchange

I realize that there are plenty of tutorials on how to create a "Custom Win32 Title Bar." The problem is.. none of the tutorials I have found so far.. discusses how a person would be able to "drag" the replaced title bar.. as one would drag the "normal" title bar. …

Software Development c++ microsoft:windows-api-win32
Member Avatar for PixelExchange
0
2K
Member Avatar for kevcpu

I am currently reading data from a webpage form, using the data to generate xml, using xslt to translate the data into an html format and emailing the html. Is there a way to transform the data into a pdf format and send this as a file instead? I have …

Software Development pdf xml:xsl
Member Avatar for iceandrews
0
180
Member Avatar for Lord_Migit

hey folks, i have a problem which seems to be reasonably simple but i havnt managed to figure it out yet. Iv read alot of the other threads on this but i still havnt found one that iv both understood and solved my problem. So here goes... Its concerning returning …

Software Development c++
Member Avatar for Lord_Migit
0
143
Member Avatar for lytnus

I have a design question which I have not been able to find a satisfactory answer for by searching. Essentially, I have a class - Base - that contains a vector of pointers to another class - Node. However, I would like to be able extend both the Base and …

Software Development c++ object-oriented-programming
Member Avatar for lytnus
0
330
Member Avatar for TheComputerGuy

The code will work if compiled in terminal. It does not work if I use Eclipse, it simply gives me an Array Out of bounds. It mentions the ARGS[0] as the out of bounds part. Any suggestions? [CODE]/* * * Test Case 1: 1. James 2. David 3. Melanie 4. …

Software Development java
Member Avatar for NormR1
0
120
Member Avatar for udtohan_noriel

Guys, could someone help me to make a program that will display this not using if-else statement. I want to learn how to make it using for loop statement and any statement that will make this program short. I need 1 Program using for loop and another program but not …

Software Development c++
Member Avatar for Duki
0
350
Member Avatar for yamini222

Hi all, I need some help here, The data in textbox looks like this: [CODE] M/z= 151.874862, P= 32.624691%, Rel. Int.= 78.220479% M/z= 152.878217, P= 0.352860%, Rel. Int.= 0.846011% M/z= 153.871912, P= 41.708632%, Rel. Int.= 100.000000% M/z= 154.875267, P= 0.451109%, Rel. Int.= 1.081573% M/z= 155.868962, P= 19.995706%, Rel. Int.= 47.941409% …

Software Development .net:c#
Member Avatar for yamini222
0
150
Member Avatar for kvij

Hi Experts, I am unable to login into oc4j after giving the correct username and password. i am able to get the oc4j enterprise manager and able to enter the username and password. but when i click submit button, it is not allowed me to proceed. Pls give me the …

Software Development java
Member Avatar for peter_budo
0
276
Member Avatar for satish2

hi everyone I want to develop a web browser.....can anyone suggest me how to develop it in java ...

Software Development java web-browser
Member Avatar for daudiam
0
90
Member Avatar for daudiam

I was reading an SCJP book by Khalid Mughal and I came across a statement [QUOTE]Enum constants are static members[/QUOTE] and another [QUOTE]Enum constant is an instance of its enum type[/QUOTE]. I am unable to reconcile the 2 statements. Are the constants static members or are they instances ? (Instances …

Software Development java
Member Avatar for daudiam
0
382
Member Avatar for king chandel

hi all,I want to learn assembly language.I know nothing about it.can anyone suggest me any book for begginers? thanx a lot

Software Development assembly
Member Avatar for Auraomega
0
101
Member Avatar for brown23

Hey Guys! I'm really wanting to start learning a beneficial, but fairly easy-to-use programming language. I've tried to discuss this at other online communities and have also asked this question at a few seminar's I've been to recently. My objective is to create more advanced software that interacts with the …

Member Avatar for vegaseat
0
1K
Member Avatar for daudiam

Its said that enums can be nested as top-level type declaration. Does it mean that it can be declared as a data member of a class, but it cannot be declared as a data member of a nested class as the nested class id not top-level ?

Software Development java
Member Avatar for daudiam
0
95
Member Avatar for scholar

Hello friends, I have a dynamic programming problem and would like to discuss it here.The problem goes as Given an integer array A[0....i] convert it to an array of strictly increasing numbers. The operations allowed are 1)Decrease an element by amount x: cost of operation=x 2)Delete an element k: cost …

Software Development c
Member Avatar for Adak
0
177
Member Avatar for mrrko

Hi everyone. Im from Puerto Rico, and Im studying Computing Science. Im actually taking my first course of programming, and it is called "Introduction to computer programming", and we are programming with C++. At this point almost everything has been theory, but now we are starting with practice, and I …

Software Development algorithm-pseudocode c++
Member Avatar for Fbody
0
771
Member Avatar for gunjannigam

I am writing some data to a file using FileWriter and BufferedWriter. I want that while writing in the file if somebody else wants to open the file in MS Excel, it should open only in read only mode Here is a snippet of my FileWriter and BufferedWriter [CODE] while(true) …

Software Development file-system java
Member Avatar for masijade
0
173
Member Avatar for miraj0072004

hello friends, I have s small problem, say if I declare a variable as String name="miraj"; now i want to use the value of the variable name, that is "miraj" and create a file using that name, which means something like miraj.txt ... how do I do it? The part …

Software Development java
Member Avatar for miraj0072004
0
105
Member Avatar for michael.ngobeni

I have a string "Hello World" I want to change the color of [COLOR="red"]Hello[/COLOR] to red using the [B]setCMYKColorFillF[/B] function. I'm writing the string to a PDF file I know I'll use to write to the pdf: private PdfContentByte WriteTxt = null; WriteTxt.setCMYKColorFillF(float Cyan, float Magenta, float Yellow, float Black); …

Software Development java pdf
Member Avatar for masijade
0
312
Member Avatar for myk45

Hello. Well, unlike C, C++ provides a concept of headers(not header files) and that these headers are something like a collection of names, which may mapped as header files by the compiler. Can anyone please correct me if im wrong in my above understanding. Also please state the main difference …

Software Development c++
Member Avatar for Fbody
0
192
Member Avatar for shadwickman

I'm not sure if this is the best place to post this, but I've noticed a large request for pyHook for Python 2.6. I had a solution to this in a recent thread [URL="http://www.daniweb.com/forums/thread203368.html"]here[/URL], but people are most likely going to miss that. I built pyHook's source for use with …

Software Development python
Member Avatar for bujisky
0
643
Member Avatar for Krs13

Hi, In vb i use Data Form Wizard and connect access database and create a form which automatically creates update,add,delete,etc buttons. Now what i need is when i open the form and enter (say some student id)in a field then the next field is the student name which should be …

Software Development visual-basic
Member Avatar for AndreRet
0
183
Member Avatar for jemz

hello can you help me please i have exe file and it runs okay in my computer...but when i transfer it from another computer my exe file will get run time. here is the message.. Run Time error '339' Component 'msflxgrd.ocx' or one of its dependencies not correctly registered: a …

Software Development visual-basic
Member Avatar for kinwang2009
0
190
Member Avatar for challarao

Hi! I have seen a function to do "atoi for converting a string to its numeric equivalent. It copes with optional leading white space and an optional + or - sign. " The structure of the program reflects the form of the input: skip white space, if any get sign, …

Software Development c
Member Avatar for Adak
0
139
Member Avatar for myk45

Hello. i needed a variable size bit string. And since bitset provides several operations, i wanted to use it. But is it possible to make it a variable size one? [CODE]class TryBits { private: string s; bitset<n> b; //now i need n = s.size(). };[/CODE] How can i achieve this? …

Software Development c++
Member Avatar for myk45
0
3K
Member Avatar for arctushar

Hi I m from bangladesh. I want to develop a software for bangla language. I mean for bangla typing. similar to google indic bangla. But little different and offline use. I mean system keyboard software. But Not Microsoft keyboard creator. I want to make it by vb.net. So plz give …

Software Development .net:vb.net
Member Avatar for ÜnLoCo
0
154
Member Avatar for gunbuster363

just as the topic, my boss told me that I should be writing some java api and need me to prepare for it because I've never write it. So, what exactly is "writing java api"? it's the api already been there? I think it is relate to websphere something... I …

Software Development api java
Member Avatar for Member #814414
0
166
Member Avatar for palavi

Hi All, I m trying to send a simple mail... but not able to send because of this exception [CODE]thread "main" javax.mail.AuthenticationFailedException:[/CODE] and the problem is in this line here is the simple java class for sending mail [CODE]public class SendMailUsingAuthentication { private static final String SMTP_HOST_NAME = "tx.technoinfo.in"; private …

Software Development java session
0
121
Member Avatar for TheSecOrg

How can I put graphics into my C++ console app?

Software Development c++
Member Avatar for PixelExchange
0
141
Member Avatar for muzikhera

Can someone help me how to insert date in database? I try it already but it gives me error cannot convert to string! Any help is appreciated. Thank you in advance!

Software Development .net:c# database-sql
Member Avatar for rohand
0
158
Member Avatar for medopunsher

Hey everybody , I'am writing a very simple chat program (Client & Server) in C++ & QTNetwork libary. I Have a static cast problem that i don't understand , here is my code : PS.Lines with errors are commented : [CODE]#include "server.h" #include "ui_server.h" #include <QtNetwork/QTcpSocket> Server::Server(QWidget *parent) : QWidget(parent), …

Software Development c++ client-server
Member Avatar for medopunsher
0
279
Member Avatar for hazeeel

hi all!! I need some help here. It's the Translation matrix. I can't seem to get the output. I wonder if my conditions are right cause I've been changing them. Please do take a look from line 125 onwards. Thanks much! [CODE]import java.io.*; import java.util.*; import java.text.*; public class KateAug24{ …

Software Development java
Member Avatar for hazeeel
0
294

The End.