43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mavtcr

Friends please help me... I have Three text boxes 1.Bank 2.Acno 3.Name I am selecting record from database where Bank and Acno are =(txtbank.text and txtacno.text) If any record found, the focus should go to the third textbox-'Name' else message "Record not found" should be displayed.I tried the following code …

Software Development vb.net
Member Avatar for mavtcr
0
461
Member Avatar for kal_crazy

Is it possible to change the value of a const variable? My aim is to change the directory of the Shell. I have set `const char* path = "C:\\"` as current directory. So if the user inputs "gd" then it will ask a directory to be set as the new …

Software Development c++ visual-studio
Member Avatar for mike_2000_17
0
325
Member Avatar for TheFearful

I was given a project to do, but I don't understand this notation and am rather confused, so I don't even know where to get started. I am supposed to be using the clock function to see how long it takes for the code below to finish running. Prefix Averages …

Software Development algorithm c++
Member Avatar for Schol-R-LEA
0
321
Member Avatar for mr.sweetchuck

Hi, I'm trying to use the replace() method to take out all instances of " " , (space) with an underscore, ("_"). I'm doing this because I'm using URLs to connect to a servlet. I keep getting this error: [code] replace(char,char) in java.lang.String cannot be applied to (java.lang.String,java.lang.String) url.replace(" ", …

Software Development java
Member Avatar for stultuske
0
6K
Member Avatar for Labdabeta

Hello, Looking at the standard streams provided by the stl libraries, it seems as though it is impossible to have 1 stream to use for both standard console IO and file/string IO. However, before I give up I would like to ask, is this possible: generic_stream stream; stream=cin; //now I …

Software Development c++ file-stream ios
Member Avatar for Labdabeta
1
575
Member Avatar for butterfingerss

Hello People! I am quite new to Qt (and programming in general). And I am making a program that requires me to encrypt a file and decrypt it after asking for a password through the program. But I have no Idea where to start. What I already have - A …

Software Development c++ encryption qt
Member Avatar for sarahwilliams25
0
1K
Member Avatar for xpzy1912

![97b9ab32445018ea1f489e9dee2120fa](/attachments/large/4/97b9ab32445018ea1f489e9dee2120fa.png "97b9ab32445018ea1f489e9dee2120fa") The combobox should be able to display the distinct value from the access database but is able to show all the record on the listbox. I tried to select distinct value through wizard but it is not working. So i need some help

Software Development vb.net
Member Avatar for xpzy1912
0
204
Member Avatar for trantran

I want to optimize a directory listing input iterator so that the WIN32_FIND_DATA can be written directly to a vector (via emplace) instead of being first written inside the iterator. This is an idea of the code: /* std::vector<WIN32_FIND_DATA> vwfd; struct listing_it:std::iterator<std::input_iterator_tag, WIN32_FIND_DATA>{ HANDLE handle; WIN32_FIND_DATA wfd; auto operator*()->wfd&{return *wfd;} …

Software Development c++
Member Avatar for mike_2000_17
0
180
Member Avatar for Labdabeta

Hello, I have a `HWND` for a window. I have double checked that it is a 100% valid window by using `SetActiveWindow()`, `SetFocus()`, and `SetForegroundWindow()` on it, successfully bringing it to the frontmost window. However whenever I try to use `GetPixel` on it it returns -1 (0xFFFFFFFF). What am I …

Software Development api c++ microsoft windows-api
Member Avatar for BobS0327
0
1K
Member Avatar for mark103

Hi all, I need your help, I have got a problem with my python script. I'm using XBMC media application which they are using python 2.6v which they works the same way as the other version for python. When I'm pressing on the enter button of the keyboard, the code …

Software Development open-source python
Member Avatar for mark103
0
319
Member Avatar for yamini222

Hi, I hope there will be a suitable function or easy way to enable/disable save button until something is really changed in the GUI(frame). My frame consists of several panels, textboxes, Jtable,Jtree e.t.c. How can I design some function until some infomation is manually chnaged by the user to enable …

Software Development gui java
Member Avatar for JamesCherrill
0
1K
Member Avatar for janith.amarawickrama

I created following classes in my program. Way.h class Way { private: std::string id; std::string name; public: Way(); Way(const Way& orig); void SetName(std::string name) { this->name = name; } std::string const & GetName() const { return name; } void SetId(std::string id) { this->id = id; } std::string const & GetId() …

Software Development c++
Member Avatar for rubberman
0
177
Member Avatar for Junz_1

Hi guys, need help here. I would like to check the registry key is exist for this code: Sub main() Dim regKey As Object = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D75F38ED-E49A-48F3-9B72-D4BC5FE73B44}", True) ' Check if it exists If regKey Is Nothing Then MsgBox("Registry key does not exist!") Else MsgBox("Registry key is exists.") End If End …

Software Development microsoft-windows vb.net
Member Avatar for Junz_1
0
1K
Member Avatar for shaneetra.graham

would like some ideas of how to acutally create my own cd function from scratch using C programming.I'm building a shell program in C.

Software Development c
Member Avatar for Ancient Dragon
0
500
Member Avatar for Gen_2

I'm wondering if there's a way to cut the long statement and make it shorter as possible. the case is i have 5 radiobuttons each questions. thanks in advance.. =) If Q1.Visible = True Then If q111.Checked = True Or q112.Checked = True Or q113.Checked = True Or q114.Checked = …

Software Development vb.net
Member Avatar for Reverend Jim
0
176
Member Avatar for Krokcy

Hey! So I am having trouble with this [problem](projecteuler.net/problem=18)! Basically you have to find the path that gives the largest sum down this tree: 75 95 64 17 47 82 18 35 87 10 20 04 82 47 65 19 01 23 75 03 34 88 02 77 73 07 …

Software Development data-structure programming-construct
Member Avatar for Krokcy
1
300
Member Avatar for Lius

Hello guys, I have a project to save an image from canvas to file. I have tried googling for 3 days and nothing works. Can anybody show me how to do it. I have search from this forum and this is what i get. http://www.daniweb.com/software-development/java/threads/436548/saving-canvas-as-image " Create a new buffered …

Software Development html-css image java
Member Avatar for Lius
0
2K
Member Avatar for Sevyt

I have a WPF app which saves a few textboxes in a XML file. But for some reason sometimes it saves ok and the other time it does not. And the problem always is how it closes the XML file. For example, closing the XML file shoudl end with </Data> …

Software Development file-system xml
Member Avatar for Mike Askew
0
2K
Member Avatar for kangarooblood

Hi there, I'm a real newbie to python so sorry if this is a stupid question or if I don't fully get your answer, no hate please! I'm trying to write a small program to use when calculating differential equations bu using Euler's step method, don't worry if you don't …

Software Development mathematics python
Member Avatar for rrashkin
0
367
Member Avatar for Opsive

Hello, I am writing a little script that needs to get the timezone from an rss feed, and I am using [URL="http://www.feedparser.org/"]Feed Parser[/URL] to parse the rss feeds. The way that I am converting the date into Unix Epoch time is: [CODE] feedDate = feed['feed'].get('updated_parsed') or feed.entries[0].get('updated_parsed') feedDate = mktime(datetime(*feedDate[0:6]).timetuple())[/CODE] …

Software Development python unix
Member Avatar for Gribouillis
0
913
Member Avatar for foshan

Hi all, I am new to programming, and i'm working from a booik which has set me a challenge with a random jumble word program to pair the jumble word with a hint. I have been going round in circles trying to work it out, please help point me in …

Software Development python
Member Avatar for foshan
0
217
Member Avatar for fliponymous

hello everyone i have wrote a code but i have problem compiling it ( making it run ) it's running but there are no any text's that i'm typing in Writeline here's the code! using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication5 { class Program { …

Software Development
Member Avatar for castajiz_2
1
138
Member Avatar for uonsin

Hi everyone and thanks in advance for the help. I have the following class that throws an error on compiling where i declase a vector of pointers I have an Engine class that I want to host multiple scenes objects stored in the vector sceneList and then pass which ever …

Software Development c++
Member Avatar for uonsin
0
346
Member Avatar for pwolf

recently started learning java, going through the official tutorial and would like to check that the below code is a valid and correct solution to the following exercise ( [exercise 1](http://docs.oracle.com/javase/tutorial/java/javaOO/QandE/creating-questions.html) class Card{ // fields ------------------------------------------------------------------------------------------------------------- private static final String[] SUITS = {"Hearts", "Diamonds", "Spades", "Clubs"}; private static final String[] …

Software Development java oracle
Member Avatar for pwolf
0
347
Member Avatar for Alex_20

Any good places to start learning Python? Websites/books/Youtube tutorials? Also any good editors, too?

Software Development python
Member Avatar for Alex_20
0
129
Member Avatar for 9tontruck

Hi, I have quite complicated XML strings coming from somewhere else and I need to parse it in C#. Because of the complexity of XML, I decided to use XmlSerializer after getting an xsd file. But my xml code never seem to work.. here is my myxml.xml: <?xml version="1.0" encoding="iso-8859-1"?> …

Software Development file-stream xml
Member Avatar for 9tontruck
0
421
Member Avatar for pekemp23

We just need the save button to save to a sql database. This is done other than that. it is saying, "Error: No suitable driver found for jdbc:derby:charityDB;create=true" import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; // Event listener import java.text.NumberFormat; import javax.swing.*; // GUI building import java.io.*; import java.sql.*; // JDSB …

Software Development gui java java-swing sql window-manager
Member Avatar for jwenting
0
456
Member Avatar for syasya

Question :create a n application containing an array that stores 20 proces such as RM2.34, RM7.89 and so on. The application should display the sum of all the prices , display all values less than 5.00 , calculate average price and display all values higher than calculated average. Requirement : …

Software Development java
Member Avatar for Alberto Bucur
-1
155
Member Avatar for mavtcr

Friends, In VB.net Form properties, There are Maximize Box and Minimize Box.If we make them false, those prperties will be disabled.Likewise there is a Close Box at the right top corner of the form.How can we disable this? Is there any way at design time to disable this? If not,Can …

Software Development gui vb.net
Member Avatar for mavtcr
0
2K
Member Avatar for syasya

Hi , I am totally new to Java . I need someone to provide this question with code answer so that I can learn from your code . Thank you. Question 1 : Store 20 integer employee ID numbers in an integer array and 20 corresponding employee last names in …

Software Development java
Member Avatar for rubberman
-2
235
Member Avatar for (Z!Z!)

I have to take two arrays, put them in a function, and then put them into a file. I have no problem actually making the arrays, but I am not quite sure how to go about defining the function for both arrays. I appreciate any help! #include "stdafx.h" #include<iostream> #include<fstream> …

Software Development c++
Member Avatar for (Z!Z!)
0
203
Member Avatar for Sevyt

Is there any way to detect a keypress when your window is not active? I got a transparant window which is always visible ontop of other applications. Though the idea is to start timers when the assigned key is pressed. The problem i got is when the window is on …

Software Development
Member Avatar for Sevyt
0
202
Member Avatar for IconKana

Hello fellow earthlings. Using VB6, I want to write a MENU program that executes exe files, or executes dll files. The MENU file should have a function that sends a parameter to A.exe, or B.dll as an example. If A.exe or B.dll received the parameter from the MENU, then they …

Software Development visual-basic
0
156
Member Avatar for mikyle

hey , what are the steps to create a class diagram using Visual Studio 2013 , with my classes already generated ?

Software Development visual-studio
Member Avatar for mikyle
0
109
Member Avatar for mikyle

what other web design software is available othe than visual studios 2013 ?

Software Development web-design
Member Avatar for mikyle
0
188
Member Avatar for firepower

please someone tell me how to change the size of the button.the code: JButton button1 = new JButton(); JButton button1 = new JButton(); public Mainmenu() { setLayout(new FlowLayout(100,278,158)); Icon button2= new ImageIcon(getClass().getResource("button1.jpg")); button2=new JButton(button2); add(button); Icon button2= new ImageIcon(getClass().getResource("button2.jpg")); button2=new JButton(button2); add(button2); HandlerC hand = new HandlerC(); button1.addActionListener(hand); button2.addActionListener(hand); } …

Software Development gui ide java
Member Avatar for JamesCherrill
0
275
Member Avatar for LG69

In the derived class when calling up a variable that was initialised in the base class, is there a need to say base.(variableName) or can it simply be left out

Software Development
Member Avatar for pritaeas
0
74
Member Avatar for Hazuan Nazri

Hello, can somenone help me solve this problem? i try this code to insert my data into microssoft access 2013 database but when i insert, a new row is created with no data, someone can help me? this is my code for my save button, only date can insert. acsconn.Open() …

Software Development vb.net visual-basic
Member Avatar for Hazuan Nazri
0
269
Member Avatar for sciprog22

Hello, I have two programs: a) Server.java : Using a JFileChooser, selects a file and then sends it to Client. b) Client. java: Displays the file. My problem: I am able to send a file from server to client only once. The ObjectOutputStream.writeObject() does not work after that. I later …

Software Development java java-swing
Member Avatar for sciprog22
0
439
Member Avatar for Dang_1

I just have installed VS Ultimate 2013. When I compiled a simple code, it had an error LNK1104: cannot open file 'kernel32.lib' I tried to follow instructions on internet but it didn't work. My code #include <iostream> using namespace std; void main() { int x; cin>>x; cout<<x; }

Software Development c++
Member Avatar for Ancient Dragon
0
103
Member Avatar for adam.wolnikowski.9

This code is for a button that removes a column of panels from a program that includes rows and columns of panels, each with a textbox and label inside them.The two buttons and definitions panel "pnlDefintions" adjust the way specified after the For loop, and the program does run through …

Software Development vb.net
Member Avatar for adam.wolnikowski.9
0
142
Member Avatar for ManPui

\cs2370week8\cs2370week8Assign\cardDeck.o" c:/program files/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to `WinMain@16' collect2.exe: error: ld returned 1 exit status Process terminated with status 1 (0 minutes, 7 seconds) 1 errors, 0 warnings (0 minutes, 7 seconds)

Software Development c++
Member Avatar for mike_2000_17
0
1K
Member Avatar for YA RAMSAMKER

will i be able to populate a picture in a label ?

Software Development
Member Avatar for JorgeM
0
93
Member Avatar for brett.warren.1612

Hey, I tryed the first problem of the Euler project, but for some reason the code bellow is not give me the correct answer: def multiple_sum(multiple=3): x = 0 for n in range(0, 1000): if not (n % multiple): x += n return x print multiple_sum(5) + multiple_sum(3) It is …

Software Development python
Member Avatar for brett.warren.1612
0
120
Member Avatar for nakul_pancholi

Dear all, I am learning C language. I got the following problem while running the problem. Program: [CODE]#include <stdio.h> #include <math.h> #include <stdlib.h> main() { int x; for (x = 1; x <= 250; x ++) printf("x = %d\n", x); }[/CODE] OUTOUT should be: x = 1 x = 2 …

Software Development c c# c++
Member Avatar for arulgee6
0
1K
Member Avatar for jared.geli

Hi guys. I need help in updating Excel files through Datagrid. I can update it through a fixed update sql statement(Update table_name Set field1=value1, field2=value2 Where ID=unique_no) but I encountered a situation where a spreadsheet can have 3 columns, sometimes 5 and so on. My point is can I update …

Software Development vb.net
Member Avatar for jared.geli
0
442
Member Avatar for mrendi

hello all, i have a problem to save data that get checkbox is true. so How to save data/row to datatable and bind it again to Datagrid? thanks regard

Software Development
Member Avatar for mrendi
0
77
Member Avatar for YA RAMSAMKER

i need some easy techniques on how to work with source code expecially when you use it to create the gui . . .

Software Development gui
Member Avatar for YA RAMSAMKER
0
94
Member Avatar for Rashmi_1

Hi, I need some help with sorting my string comparison. Bascially what I have to do is this: To have numbers sorted properly even when they aren't justified with leading 0's: 1 2 ... 9 10 Instead of: 1 10 2 ... 9 Also to have numbers sorted properly even …

Software Development c++
Member Avatar for Rashmi_1
0
907
Member Avatar for ReneeJA

Write a program that accepts the name and ID number of 5 students and stores them in an array. After all the students have been entered, the application should display the title “Student Roster” and then list the names in the array. 2D Array. #include <cstdlib> #include <iostream> #include <string> …

Software Development c++
Member Avatar for ReneeJA
0
240

The End.