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

43,484 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for stockton

I have been asked to add a pause to an existing C++ program. The user does not want to use the Windows builtin scheduler for reasons they won't share with me. Is the correct way of doing this something like:- void Sleep(10000);

Software Development c++
Member Avatar for necrolin
0
127
Member Avatar for sdmahapatra

[quote]Hi all,I have written a program in c++ using visual studio 2008.I've create only one source file and written all the codes including header files within .cpp extension and program is running well.But I want to split this program like [code] .h extension [/code] be present into the header file …

Software Development c++ microsoft:visual-studio
Member Avatar for sdmahapatra
0
150
Member Avatar for babbu

i have 3 columns in a datagridview. i want to add values. everything is working fine but when i add values there is a blank row at the beginning. how can i remove this ? here is my code [code] dataGridView2.Rows.Clear() Dim oledbcom As New OleDb.OleDbCommand oledbcom.CommandText = "Select Code,Weight,Unit …

Software Development .net:vb.net
Member Avatar for kvprajapati
0
172
Member Avatar for iiizuluiii

so its been a verrrry long time since I messed around with vb. I am trying to make a program for my clan and here is a simple question I hope some one can answer. I am trying to make a button activate a radiobutton to checked if you press …

Software Development .net:vb.net visual-basic
Member Avatar for iiizuluiii
0
216
Member Avatar for VernonDozier

I posted a program earlier today in response to another thread and noticed that I had forgotten to clean up/free the memory I used. Here's the program. [code=cplusplus] #include <iostream> using namespace std; int main() { int LIST_SIZE, NUM_CHARS_PER_ELEMENT; cout << "Enter number of elements in list: "; cin >> …

Software Development c++ memory-management
Member Avatar for wildgoose
0
201
Member Avatar for wingers1290

Hi, I am creating a program for my business that allows us to write quotes quickly, I am fairly new to C# and am stuck on a particular matter. i cannot relate to my Dynamically created textbox no matter what i name it, i am using the following code to …

Software Development .net:c#
Member Avatar for Antenka
0
330
Member Avatar for serkan sendur

i have a textbox with tab index set to 0, i want to keep the tab index the same but i dont want it to got focus when the windows form loads. how to do that?

Software Development .net:c# .net:winforms
Member Avatar for serkan sendur
0
124
Member Avatar for abu taher

I made a queiry. but every data show in this queiry double. I mean every data show two time in this queiry. why this problem occured. any body help me please.

Software Development microsoft:access visual-basic
Member Avatar for johnly
0
111
Member Avatar for prashanth s j

Hi all, I need to create thousands of directories in a single parent directory using shell scripting code. One problem would be to generate the unique directory name for each of the 1000 iterations to create a directory every time. ie first time the directory name needs to be subdir1 …

Software Development shell-scripting
Member Avatar for Dream2code
0
211
Member Avatar for serkan sendur

i couldnt find the constructor of the controls like textbox or button neither in the form.cs nor in the form.designer.cs. where are they?

Software Development .net:c#
Member Avatar for serkan sendur
0
90
Member Avatar for Clueless86

I have used python for awhile, and am quite good with it. But last week I added the wxpython..I wanted to actually make a program and not a script. So I can do this in normal python all day long. But wxpython is alot different, so I need help with …

Software Development python:wxpython
Member Avatar for shadwickman
0
389
Member Avatar for dumrat

Hi, Can someone tell me how to suppress all the warnings g++ produces? Not specific warnings : I know how to do that. I want to not see any warnings at all when I build. Thanks.

Software Development c++
Member Avatar for Tom Gunn
0
447
Member Avatar for Rajesh Ranjan

Hi everyone, Can any one tell me about the uses of let and get property in VB and how to use it?

Software Development visual-basic
Member Avatar for Rajesh Ranjan
0
121
Member Avatar for magenta_lover

Hi all, i want to open a file with this code [code] Dim linetext As String Private Sub Command1_Click() CommonDialog1.Filter = "Text Files(*.txt) | *.txt" CommonDialog1.ShowOpen If CommonDialog1.FileName <> "" Then Open CommonDialog1.FileName For Input As #1 Do Input #1, linetext Text1.Text = Text1.Text &linetext Loop Until EOF(1) End If …

Software Development visual-basic
Member Avatar for magenta_lover
0
145
Member Avatar for applefat

I have a collection of objects descended from JComponent that are displayed on an object desended from JPanel. Basically these JComponent-based objects are components that can be added and placed arbitrarily and can be dragged about on the panel. The panel is in charge of repainting all the tools/components that …

Software Development java:swing
Member Avatar for VernonDozier
0
131
Member Avatar for tazboy

Here is what I have: [CODE]} else if ( argc > 1 ){ for ( int arg = 1; arg < argc; ++arg ){ infile.open( argv[arg] ); if ( infile ){ list = read_file( &infile, &lines ); } } } [/CODE] argv[1] = text.txt gets opened, but argv[2] = text2.txt …

Software Development c++ file-system
Member Avatar for tazboy
0
167
Member Avatar for Thireus

Hi guys, I have a simple question, I want to store the output of the following command: [QUOTE]sudo iotop -t 0 -C 3 | grep "load: "[/QUOTE] As you can see it is running all the time, and we get a new line every 3sec. I just want to store …

Software Development shell-scripting
Member Avatar for Thireus
0
204
Member Avatar for Yaserk88

I am reading a file that has a column of words, but each time the column is read, the first letters are the only things that are outputed. Does anyone have any simple solutions to this? I don't want to have each letter be a separate variable. [ICODE]#include <iostream> #include …

Software Development c++
Member Avatar for Yaserk88
0
134
Member Avatar for Robtyketto

Greetings, I'm writing an application for membership maintenance, part of this is to record if a member is [B]deceased[/B]. The data is stored in an [B]access 2007 [/B]database ([B]accdb[/B]), the deceased field being of '[B]Yes/No[/B]' datatype with no default value. In Access I can write SQL to retrieve rows where …

Software Development .net:vb.net crystal-reports
Member Avatar for Robtyketto
0
196
Member Avatar for craigallansmith

Hi Everyone. I am busy building a VB 6 APP that will access a MS Access database. For the sake of this problem I will abreviate the DB. It has two tables. the main table has 6 bound text boxes to a data control. They work fine on there own. …

Software Development .net:vb.net visual-basic
Member Avatar for craigallansmith
0
225
Member Avatar for ITTOBE

I'm trying to write a code that will allow for items to be displayed and when two are selected those two will be displayed in a different list box as a "receipt". If I'm not mistaken the code and everything is correct, but for some reason the items are not …

Software Development visual-basic
Member Avatar for firoz.raj
0
99
Member Avatar for brieghz23

Sir, can you please Give us a VB code for our cmdDelete button? a code that will delete a data from the database (ms access).. our form looks like this >>> [url]http://img229.imageshack.us/img229/7583/image002p.jpg[/url] or [ATTACH]10893[/ATTACH] we used the "listview" for displaying the searched item/s and be deleted... note: search and add …

Software Development database-sql visual-basic
Member Avatar for vb5prgrmr
0
309
Member Avatar for GDICommander

Hello everyone! I'm looking for a class in the Java API that can take the complete structure of a directory in itself and that can be passed on sockets, so it can be used on other machines of a network. Is there someone that can show me an existing class? …

Software Development java socket-programming
Member Avatar for kvprajapati
0
116
Member Avatar for crh0872

Hey guys! I was writing a program that had an infinite loop, [ICODE]while (1)[/ICODE], and within that loop was an if statement checking to see if a certain amount of time had passed. If it did, it would print out something, if it didn't, it would print out a [B]'.'[/B]. …

Software Development c++
Member Avatar for crh0872
0
153
Member Avatar for jportifer

Hi. I'm programming in Borland C++ Builder v. 6.0. I'd like to know where could i get a Directory Dialog component. Thanks in advance.

Software Development c++
Member Avatar for jportifer
0
87
Member Avatar for magenta_lover

Hi all, i'm newbie in vb, and i wanna learn a lot from u guys, i try to run this code, [code] Dim linetext As String Private Sub open_Click() CommonDialog1.Filter = "Text files{*.txt)|*.txt" CommonDialog1.ShowOpen If CommonDialog1.FileName <> "" Then Open CommonDialog1.FileName For Input As #1 Do Input #1, linetext Text1.Text …

Software Development visual-basic
Member Avatar for magenta_lover
0
154
Member Avatar for Zetlin

Hi everyone I have a question but I don't know if it can be done in python. Ok so this is what I want to do: I have two scripts [code=python] string = "hello world" [/code] and [code=python] def output(): print string [/code] Now what I want to do is …

Software Development python
Member Avatar for Zetlin
0
103
Member Avatar for akulkarni

i have to print 1 3 2 4 5 i the input output should be 1 3 2 4 5 4 5 6 9 9 11 15 20 26 i am getting a weird output my code is [code] import java.io.*; class nik1234 { public static void main(String args[])throws IOException …

Software Development java python
Member Avatar for Antenka
0
212
Member Avatar for C++ Obliviator

I'm trying to create a 3D vector with dynamic vectors of char. I mean like this: 3dVect is only [U]one[/U] 3D vector 3dVect[0][0][12] 3dVect[0][1][5] 3dVect[1][0][6] 3dVect[1][1][9] 3dVect[1][2][8] ... this mean: 3dVect[0][][] consists of 2 2D vectors, and the 2D vectors have different sizes. I have read the thred [URL="http://www.daniweb.com/forums/thread136351.html"]http://www.daniweb.com/forums/thread136351.html[/URL] and …

Software Development c++
Member Avatar for C++ Obliviator
0
121
Member Avatar for serkan sendur

guys i need a richtextbox which will show the data from database but when user want to add additional text, it will only allow the user to append text to the end of the last character. have you seen anything like what i say?

Software Development html-css
Member Avatar for serkan sendur
0
318
Member Avatar for SammiSmi

Hi I'm new to C# and ASP.NET. Do you know any advanced website tutorials? or downloadable ones? Thanks (^^,)

Software Development .net:c#
Member Avatar for serkan sendur
0
114
Member Avatar for serkan sendur

i want to play custom sounds when doing MessageBox.Show("something"); how is it possible? thanks.

Software Development .net:c#
Member Avatar for serkan sendur
0
2K
Member Avatar for functionalCode

I have a datagridview that is filled from a database. I filled a datatable and assigned it as the datasource to the datagridview. I want to be able to select a row from the datagridview and hit a delete button and it be deleted from the database. What would be …

Software Development .net:c# database-design database-sql
Member Avatar for functionalCode
0
109
Member Avatar for bubblellicious

Hi there. That's my first thread here. Maybe my english level is not good as yours coz i'm from Spain xD First of all, I have a constant string which has a thousand of chars, with no empty positions, only characters. And I have to find repetitions of 6-letter and …

Software Development c python
Member Avatar for bubblellicious
0
133
Member Avatar for Shaitan00

I am trying to customize my sorting of a LIST using a compare_function, but for some odd reason it keeps giving me the following error: error C2064: term does not evaluate to a function taking 2 arguments Specifically, I have list created within class B which needs to be sorted, …

Software Development c++
Member Avatar for Salem
0
378
Member Avatar for princessotes

Hi, I have written this code to generate the maximun number from a number of coloumns (say 4 coloumns) in a list. The code is not handling negative number well and so keep generating the negaive number to be greater eg -8 > 5 which is wrong. Why is this …

Software Development python
Member Avatar for zachabesh
0
139
Member Avatar for Member #531174

Hey guys, I have some Java code here, which checks whether a word is present in a sentence or not: [CODE]import java.io.*; class search_arrays { static void search()throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter a sentence: "); String s=br.readLine(); s+=" "; String[] x=new String[s.length()]; int a=0,b=0; for(int i=0;i<x.length;i++) { …

Software Development java python
Member Avatar for Member #531174
0
179
Member Avatar for lolwtf

Hi all, I have a program which connects to sql and uses crystal reports. I have many records and crystal reports takes a while to load up. Would multi threading help improve performance? Here is my code: [code]Private Sub EmpLog_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim …

Member Avatar for lolwtf
0
99
Member Avatar for Dream2code

Hi All, My requirement is like this.It a part of a software devlopment team as i am devloping a tool its a part of it. Its bit long but my explanation is clear to get it. 1)we need to read a data file using a description file. Usage: programname <description_file> …

Software Development c data-structure
Member Avatar for Dave Sinkula
0
496
Member Avatar for serkan sendur

Since listview control in .net framework 2.0 does not have a datasource property, it is not bindable to neither datatable nor generic lists. i created a derived custom listview that is bindable to lists of any type. i attach the .zip to this thread. I dedicate this custom windows control …

Software Development .net:c# listview software-architecture
Member Avatar for serkan sendur
2
208
Member Avatar for mrincognito

Hello, Programming/Python newb here looking for some help with arrays. I am trying to write a parsing program that takes a comma delimited csv file, compares entries, and outputs the comparisons in a particular format. The csv file has two columns. Col [0] contains article identifiers, col[1] contains assigned keywords. …

Software Development python
Member Avatar for mrincognito
0
124
Member Avatar for siu17

Hi I need the code in [COLOR="Red"]VB6[/COLOR] to display data from a database in a listbox i tried the following code but its not working Do While Not rec2.EOF List1.ItemData(List6.NewIndex) = rec2.Fields(4) rec2.MoveNext ' i even tried Do While Not rec2.EOF List1.ItemData rec2.Fields(4) rec2.MoveNext

Software Development database-design visual-basic
Member Avatar for jp26198926
0
130
Member Avatar for pepcoder

Step: 1I have a class Mytest [code] class MyTest { public string Name { get; set; } } [/code] Step2: Created a class Demo to use the member variables of the class myTest [code] class Demo { public void GetNames<T>(IList<myTest> info) { foreach (myTest test in info) { Console.WriteLine(test.Name.ToString()); } …

Software Development .net:c#
Member Avatar for sknake
0
152
Member Avatar for compovet

I have a problem with datagridview I have three columns . 2 of them are combobox and the last one is textbox. the seconed combobox is depending on the first the problem is when i'm trying to fill the seconed combobox in the second row the DataSource of the second …

Software Development .net:c# .net:winforms
Member Avatar for Ramy Mahrous
0
111
Member Avatar for colmcy1

Hey all, I am having some trouble trying to open a dialog window. Firstly I am using MFC in MSVC 6. I have a main dialog window and I am trying to open a second dialog window by clicking on a button("second") in the main dialog window. When I am …

Software Development c++
Member Avatar for Member #248612
0
3K
Member Avatar for tugce

Hi, I have a combo box that takes its values from a database. I need to make unique items in the combobox. I could do this in database part, but I need other attributes of values. Let me explain: There is Surgery table in my database with id,name and clinic …

Software Development database-design microsoft:sql-server
Member Avatar for tugce
0
162
Member Avatar for eXsolved

Hey Guys/Girls I'm creating a C++ application. So far I have created 2 projects, under one solution. The first is a native win32 project and the other is a DLL. Now my problem. How do I include this DLL I create, in my win32 application? So far I have tried: …

Software Development c++ microsoft:visual-studio
Member Avatar for Utte
0
184
Member Avatar for shizu

Hi all, I'm using microsoft visual C++ 6.0 with SP4 and SP5.. I had a program which content a CScrollView.. Now I would like to add in a image into CScrollView.. but my image is buffer..not from resource.. I can save my image, bitmap form, into local drive.. but I …

Software Development c c++ visual-basic
Member Avatar for shizu
0
166
Member Avatar for nova2177

wow, haven't been here for sometimes due to the business aspect of my course. would like some help in understanding what is set, get, change and return in c++. have an assignment with topics the class haven't covered as yet, but I'd love to understand it before we reach those …

Software Development c++
Member Avatar for Ancient Dragon
0
170
Member Avatar for denniskhor

My question is :' if my "[2009'07'12 @ 22'49'47] main page.jpg" store in "C:\image folder\", but the timestamp [2009'07'12 @ 22'49'47] will be inconsistent, so i wan use behind "main page.jpg" to find "[2009'07'12 @ 22'49'47] main page.jpg", and print the link like "C:\image folder\[2009'07'12 @ 22'49'47] main page.jpg" as …

Software Development python
Member Avatar for denniskhor
0
249

The End.