132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ronmark.madrona

hi to all, i am new in vb6 and im trying to make a project. Can you help me guyz, i want to populate the textbox in datagrid. im don't have the idea on how to do it. this is what i want to try , when i am inputing …

Software Development visual-basic
Member Avatar for ronmark.madrona_1
0
318
Member Avatar for glao

Hello , I can't figure how to properly measure time execution when I have 2 loops and I want to measure the time for the innermost loop: for (int i = 1; i <= N; i++) { ..... clock_t begin = clock(); for (int j =1; j<= M; j++){ //want …

Software Development c++
Member Avatar for Suzie999
0
456
Member Avatar for cambalinho

by the book, i read that with WM_SIZE message i can get the client size instead use the GetClientRect() function: case WM_SIZE: GetClientRect (hwnd, &rect) ; VerticalScrollSize=rect.bottom; si.cbSize = sizeof(si); si.fMask = SIF_ALL; GetScrollInfo (hwnd, SB_VERT, &si); si.nMin = 0; si.nPos = VerticalScroll; si.nMax = VerticalScrollSize-2; si.nPage=2; SetScrollInfo (hwnd, SB_VERT, …

Software Development c++
Member Avatar for cambalinho
0
241
Member Avatar for masonketcham

I have an assignment that is due tonight and I ran into a few errors. The first two parts compiled successfully just the third one ran into errors. I don't know what went wrong. The errors I am getting are C:\Users\Owner\Desktop\Inventory Part 3\inventoryTest.java:51: error: cannot find symbol NumberFormat nfc = …

Software Development java
Member Avatar for masonketcham
0
268
Member Avatar for revertedlogic

For my Java homework I had to make a program that simulates 100,000 people going 25 times around a monopoly board and finding the percentage times a space is landing on. I get this error when I run it. Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 39 at Monopoly.analyze(Monopoly.java:86) at TestMonopoly.main(TestMonopoly.java:6) Here …

Software Development java
Member Avatar for JamesCherrill
0
339
Member Avatar for Charles_8

Having a hell using XPATH to parse out the values from the XML below. Wondering if anyone can tell me what I'm doing wrong. <?xml version="1.0" encoding="UTF-8"?> <XML> <VARIABLES> <var name="LoginUUID" value="F85373F9-00C4-7982-E043-AB7412ACA458"/> <var name="FExists" value="0"/> <var name="NumFTokens" value="0"/> <var name="NumPTokens" value="9"/> <var name="purchaseOptions_Poductname1" value="500 MB"/> <var name="purchaseOptions_Poductvalue1" value="7"/> <var name="purchaseOptions_Poductpricevalue1" …

Software Development xml
Member Avatar for Charles_8
0
142
Member Avatar for airhalynn101

I want to check if txtCRCNum1 is empty or not. If it is empty, then some values from frmComm will get displayed on frmcrc (which I call the default values). If not empty, then it will execute an SQL query which will select data from the value of txtCRCNum1 and …

Software Development display sql vb.net
Member Avatar for Oxiegen
0
952
Member Avatar for sumitshah4u

Hi, I have the below datatable created through my C# code: Stock TotalPrice Qty TransactionType XYZ 400 10 BUY ABC 800 20 BUY XYZ 800 20 SELL ABC 400 10 SELL I want this datatable to be processed by LINQ / LAMBDA expressions in such a way that will give …

Software Development sql
Member Avatar for Rehan_4
0
210
Member Avatar for suneye

hello, I am trying to record video by aviwriter class in aforge but the resulting avi file is either 0Kb or the whole video is viewing only one picture using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using AForge.Video; using AForge.Video.DirectShow; using …

Software Development video
Member Avatar for fabiodbmacedo
0
1K
Member Avatar for Milton Neal

I'm working on a bit vector class that I'm using in a current project. Basicly BitVector is a container class for storing and manipulating data a bit level. I have two member fuctions for "setting" and "getting" bits at a given index. // Returns the bit at the specified index. …

Software Development c++
Member Avatar for Milton Neal
0
321
Member Avatar for Patrick_6

Hi everyone, I wanted to write C++ a program that's going to logon to my twitter and alert me if I have any new messages or tweets. I found an article that explains how to log on to a website with libcurl, https://www.hackthissite.org/articles/read/1078. Using that article I've written a simple …

Software Development c++ ios iphone os-x session
Member Avatar for Patrick_6
0
793
Member Avatar for adampday

Hello, I was wondering how to pass an array to a class constructor. When I run my program, I get the same gross pay for every different employee even if I enter in a different number of hours for each one. That might be where I have a problem. Any …

Software Development c++
Member Avatar for wrathness
0
106
Member Avatar for Centorpe

I have a form which contains a datagridview and 2 textboxes. I have managed to populate the 2 textboxes as required by click of relevant row in datagridview. With the same click I also open another form which also contains 2 textboxes of the same name and these require the …

Software Development vb.net
Member Avatar for Centorpe
0
202
Member Avatar for asifalizaman

i need someone to assist me in writting lamda expression. THE CODE IS ABOUT 15 LINES use this code snipt List<fruit> fruits = createFruitArrayList () ; Frit LargeApple = null; for (Fruit fruit:fruits) { if (fruit.getType() == null largeApple = fruit; } } } just rewrite plz

Software Development java
Member Avatar for jwenting
0
177
Member Avatar for Sinan_2

I am new to Qt and I'm trying to connect a remote database. QSqlDatabase db = QSqlDatabase::addDatabase( "QMYSQL" ); db.setHostName("IP ADRESS"); // local or IP db.setPort(3306); // Default port is 3306 db.setUserName("DB USER"); // example root db.setPassword("PASSWORD"); db.setDatabaseName("DB NAME"); if( !db.open() ) { qDebug() << db.lastError(); qFatal( "Failed to connect." …

Software Development c++ mysql qt sql sqlite
Member Avatar for BobS0327
0
2K
Member Avatar for custurd122000

I'm trying to read a text file of a graph and print information about the graph including the order and size of the graph, rather it is a directed or undirected graph, if it is directed the in and out degree, and the and a list of all vertices for …

Software Development file-system java linked-list
0
141
Member Avatar for tgreer

I'm revisiting a topic previously discussed in this thread: [url="http://www.daniweb.com/techtalkforums/thread23030.html"]http://www.daniweb.com/techtalkforums/thread23030.html[/url] The basic issue is this: when using a [b]StreamReader[/b], and [b]ReadLine[/b], to process a text file, you cannot determine where you are "at" within a file. This is because [b]StreamReader[/b] doesn't actually read from a FILE, it reads from a …

Software Development file-stream
Member Avatar for Cesc_1
0
9K
Member Avatar for alyons

Do anyone know how to set a gif image as the background to my coding below? I just want it for my first window and not Demo1? The gif image is nameed "python_wallpaper.gif". from tkinter import * import threading from graphics import * class Intro(): def __init__(self,master): self.master = master …

Software Development html-css image python
Member Avatar for ZZucker
0
9K
Member Avatar for cassie_sanford

I have to write a program that must compute and display the charges for a patients hospital stay. first the program should ask if the patient was admitted as an in patient or an out patient. If the patient was as an in-patient the following data should be entered: the …

Software Development c++
Member Avatar for rafiq_1
0
830
Member Avatar for PerplexedB

Until now I've been replacing Enter key behaviour in controls (in base classes) with Tab key behaviour with the following code in the keypress event handler : If e.KeyChar = Chr(13) Then SendKeys.Send(vbTab) e.Handled = True End If Although it's worked for me until now, I have serious doubts about …

Software Development vb.net
Member Avatar for Reverend Jim
0
1K
Member Avatar for uday.raj.73345

what is micro in c programming.

Software Development c
Member Avatar for Schol-R-LEA
0
99
Member Avatar for cambalinho

i'm testing the win32 scrollbars, but i'm with 1 problem: when i use the SB_THUMBPOSITION message, why the window isn't repainted( the WM_PAINT message isn't used)? case WM_VSCROLL: switch (LOWORD (wParam)) { case SB_LINEUP: VerticalScroll-=1; break; case SB_LINEDOWN: VerticalScroll+=1; break; case SB_THUMBPOSITION: VerticalScroll=HIWORD (wParam); break; case SB_PAGEDOWN: VerticalScroll+=10; break; case …

Software Development c++
Member Avatar for cambalinho
0
977
Member Avatar for TheFearful

I am confused on how to implement this. I was thinking a loop, but the loop I was doing would only fill the array and make the stack full. Any tips/suggestions I can use to help me get through this mental block? I put the code for all three of …

Software Development c++
Member Avatar for TheFearful
0
217
Member Avatar for george08.08

I am trying to get my head around the functions etc in xslt with xml. I have made a dummy xml file <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="books.xslt"?> <books> <book> <title>Hello Dolly</title> <author>John Thumb</author> <readers> <young_readers>17</young_readers> <older_readers>23</older_readers> <total_readers>40</total_readers> </readers> </book> <book> <title>Goodbye John Thumb</title> <author>Dolly Smith</author> <readers> <young_readers>12</young_readers> <older_readers>3</older_readers> <total_readers>15</total_readers> …

Software Development xml
Member Avatar for george08.08
0
280
Member Avatar for Andriy_1

Hello. can You help me with my program. I have to enter two lines from the keyboard, and in the third line program must write the same words from the first two lines. I also can use standart Pascal functions. But in this code I use my own function and …

Software Development pascal
Member Avatar for SalmiSoft
0
240
Member Avatar for lavanya uppala

Hi sir this is lavanya. I am begginer in vb.net. I have a problem in deleting the first two words in a string. I am not using the loops.

Software Development vb.net
Member Avatar for PerplexedB
0
1K
Member Avatar for Mike Bishop

I have a datagridview with 10 rows I can select mutiple rows by using Ctrl & Mouse click but what I would like to do is use a button to select the row. I.E the user could select row one, click the button and row one would be selected then …

Software Development sql vb.net
Member Avatar for Mike Bishop
0
4K
Member Avatar for lena1990

hi all i have ekiga open source code that i want to modify but when i open the downloaded code in the text editior all i get is rubish i download the source from this website [Click Here](http://ekiga.org/download-ekiga-binaries-or-source-code) thanks in advance

Software Development c++ open-source
Member Avatar for lena1990
0
315
Member Avatar for anku83

package pkgnew.approach; import java.io.*; import java.io.IOException; import java.util.*; import java.io.BufferedReader; import java.util.ArrayList; import pkgnew.approach.NewClass1; public class NewApproach { public static void main(String[] args) { NewClass1 no=new NewClass1(); BufferedReader br = null; Date d1; int n, c, d,k, swap,i=0,j=0,no_of_selected_item=0,newsupport=0,multiply=1,support=0,t=0; int numItems,numTransactions; double minSup; long diff; String configFile = "F:\\DP1\\DPmodification\\Config.Datasetsmall.txt"; try{ FileInputStream …

Software Development java
Member Avatar for anku83
0
215
Member Avatar for Michele T Roo

<Simple copy of teacher's homwork specification deleted by Forum Moderator>

Software Development java
Member Avatar for stultuske
0
177
Member Avatar for Rubinder singh

I used to have turbo c++ but it is outdated now, so the only problem i am having with that is that there was a great help documentation in turbo c++ for the language and i could just browse to any function of c++ and get its details. After turbo …

Software Development c++ ide
Member Avatar for vmanes
0
3K
Member Avatar for Rahul47

Well, this morning I tried to write a program to update environment variable's list. And I got stuck at a very crucial point. I think am making some silly mistake. A second opinion will be helpful. Algorithm: 1) Take complete path of environment variable into a string variable 'env'. 2) …

Software Development algorithm c
Member Avatar for N1GHTS
0
222
Member Avatar for Alxprog

In my book a new tabpage is created programmatically this way: auto tabPage3 = gcnew System::Windows::Forms::TabPage(); but I want to do it without "auto" word because that's a new 2010 feature and I use VS2008. The MSDN solution didn't help. I hope it'll take just a little tweast to solve …

Software Development c++
Member Avatar for Alxprog
0
234
Member Avatar for smitsky

If I prompt the user for n number of printers, is there a way of creating n number of vectors on the fly as opposed to creating vectors and putting them in your class structure at the start? I have to create as many printer queues as a user specifys. …

Software Development c++ printer web-design
Member Avatar for smitsky
0
209
Member Avatar for Alxprog

There are tips on how to install Boost with Visual Studio, there are tips on how to install Boost with Qt , so my questions is : is it possible to install and later work with Boost with the two IDE's mentioned above ( I have them both on my …

Software Development c++ ide qt visual-studio
Member Avatar for Alxprog
0
127
Member Avatar for James_30

What is a goodway to code a btn ation. To inialize adeaktop app from another desktop app. More over,run thejar use a eclipes build.xml . I built both apps in netbeans environment .

Software Development java
Member Avatar for James_30
0
166
Member Avatar for huzeifa

YO gUYS Please help me how to open a webpage in C++

Software Development c++
Member Avatar for Ancient Dragon
0
4K
Member Avatar for javed.iqbal.3979

Hi coders,,, I have to find mean,mode and median of a 2-D array : 2 5 2 5 9 5 8 3 6 10 8 1 10 10 7 1 4 4 3 8 4 3 1 2 4 10 3 9 8 5 6 10 8 3 6 10 …

Software Development c++
Member Avatar for Ancient Dragon
0
520
Member Avatar for Q8iEnG

Hi guys.. I'm still going through C++, learning new stuffs. It is true that I have finished my C++ course two years ago. But, you all know C++ have too much things to learn! Anyway, I need help guys "kindly" how can I open a program/or any file using C++? …

Software Development c++ file-stream
Member Avatar for shayan_doust
0
741
Member Avatar for theashman88

I'm having an error when I run this code any ideas? When I run it and enter the code it works if I enter the same numbers I had entered before his turn, but if i enter different numbers I get Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of …

Software Development programming-construct
Member Avatar for Momerath
0
193
Member Avatar for kothaisaravan

Hi, I have a requirement where I need to generate the combinations of string based on some rules. For Eg: I have a string like: [x | y] z [A] Possible combinations are, z,ZA,xz,xyz,xzA,yzA The rules are, 1.[],| are symbols. 2.Any text inside [] is optional eg: [x] 3.| means …

Software Development c#
Member Avatar for ddanbe
0
425
Member Avatar for annain

hi, I need a help.how can i SEARCH a record in a database using listbox and display the results?? For an example: if i select a destination on the listbox and it will look for the records on database and display it. im using ms access and adodb connection.Below is …

Software Development microsoft-access seo visual-basic
Member Avatar for annain
0
547
Member Avatar for annain

Hi, i would like to know how to retrieve an image in an access database to vb6. Thanks in advance.

Software Development image microsoft-access visual-basic
Member Avatar for annain
0
174
Member Avatar for N1GHTS

Say I have code like this... typedef struct { unsigned A:1; unsigned B:1; } FlagStruct; extern FlagStruct *Flags; Imagine that the Flags instance is a shared resource in a multi-threaded application. Say thread #1 decides to read the value of Flags->A but thread #2 decides to set or clear Flag->B …

Software Development c
Member Avatar for N1GHTS
0
244
Member Avatar for 111100/11000

//**numHits and numHalfHits give incorrect values.I don't know why** #include "Mastermind-game.hpp" using namespace std; int main() { bool choice = false; cout << "This is a game of MASTERMIND v.0.1" << endl; while(1) { cout << "Enter 1 if you want to solve game for your self" << endl; cout …

Software Development c++ gaming
Member Avatar for nullptr
0
539
Member Avatar for mahabelg

i'm trying to enter a string phrase and store its last word in an Array, if the word is palindrom then a message will showit

Software Development c++
Member Avatar for iamthwee
0
426
Member Avatar for Nnadozie

Hello somebody should please help me with codes to run this assignment below: It should have a button that when clicked causes your code to simulate rolling a dice 100 times. Your program needs an array that will count the number of times that each of the six possible numbers …

Software Development java
Member Avatar for iamthwee
0
150
Member Avatar for prashant9928

Hi there, I am working on a project and want to resolve invalid form submition. i want to create a regular expression which can check each form value that must not have any string like as: '"abc.Xyz What exactly the regular expression should be?, for more information please feel free …

Software Development asp.net regex vb.net visual-basic
Member Avatar for Reverend Jim
0
395
Member Avatar for tjames95

I am new to Python and I am trying to import pygame. I am using Python 3.1 and I installed pygame 1.9.1 for python 3.1. When I try to import the module I get the following message: [icode]Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import pygame …

Software Development python
Member Avatar for Schol-R-LEA
0
2K
Member Avatar for mavtcr

Friends , Is there any way for data alignment in the list box. My code is given below Private Sub TxtFdt_KeyPress(KeyAscii As Integer) Dim L, L1, L2, L3, L4, L5 As Integer Select Case KeyAscii Case vbKeyReturn If TRS.State = adStateOpen Then TRS.Close TRS.Open "SELECT * FROM Tran WHERE Ac …

Software Development visual-basic
Member Avatar for Aslam Mansoor
0
1K

The End.