43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for reza.adinata

Hi all, I am trying to make a simple application, where when a user press a button, there will be 2 consecutive images shown inside the window with delay. Below is the source code [CODE] private void btnAddMore_Click(object sender, RoutedEventArgs e) { //first show image1 in window FunctImage(); //put a …

Software Development image
Member Avatar for reza.adinata
0
147
Member Avatar for Zinderin

So, a single user application, all data is local, no remote access .... If a go with an Access file (DB), from the user's perspective, they simply install the app and they are good to go. Is it the same if I go with a SQL DB, or do they …

Software Development c# database-design microsoft-access sql
Member Avatar for Zinderin
0
167
Member Avatar for Dan08

Hey everyone, I decided I didn't want to use Tkinter, so now I'm using wxPython, and I'm having some problems, such as getting values from a function to another. I know, it's a bit hard to understand, and I don't even know if this is possible. [CODE=python]import wx class Example(wx.Frame): …

Software Development python tkinter
Member Avatar for Dan08
0
96
Member Avatar for cmsc

I was wondering if it is possible to subtract 30 from 4ah? i thought so i can convert the ascii character 'C' to hexadecimal '43', i will just subtract 30h from 43h, then add 30 so it will become 43 again and i will be able to perfrom arithmetic on …

Software Development assembly
Member Avatar for cmsc
0
192
Member Avatar for TrustyTony

From python.org official website: [URL="http://python.org/download/releases/2.7/"]Python 2.7[/URL] [B][I]Python 2.7 was released on July 3rd, 2010[/I].[/B] Python 2.7 is scheduled to be the last major version in the 2.x series before it moves into an extended maintenance period. This release contains many of the features that were first released in Python 3.1. …

Software Development python tkinter
Member Avatar for TrustyTony
2
442
Member Avatar for siggivara

I'm actually trying to do this in objective c, but I belive the theory probarbly are the same for C++. Heres an example of what I want to do with a simple, working, example using an integer: [CODE=c]void func2(int *i) { *i = 2; } void func1() { int i …

Software Development c++ objective-c
Member Avatar for siggivara
0
190
Member Avatar for turnerca902

Hi everyone, I have a fairly simple problem, but having not used python in awhile, I just can't seem to get things working. Basically, I have a text file with a number of comma separated fields (attached). What I want to do is split the string, and extract the "File" …

Software Development file-system python
Member Avatar for turnerca902
0
455
Member Avatar for bchaney

Is there a problem with my code? i'm trying to refresh a few form checkboxes based on text typed into machinetxt.text with what is currently stored in the database. i put this into the refresh button click event. here is my code: [CODE]Private Sub machinerefreshbutton_click(ByVal sender As System.Object, ByVal e …

Software Development dataset open-source vb.net
Member Avatar for bchaney
0
170
Member Avatar for rapids79

I'm working on a code that enables the user to input a string , compare it to some text in a file then send the approriate data ( from another file) using serial communication or TCP/IP. I ahve implemented the serial communication part but the TCP/IP..I've looked around but have …

Software Development c visual-studio
Member Avatar for technology
0
157
Member Avatar for kiranbvsn

hi there, i've one requirement i am using a button in three different rows [CODE] for example ( <tr id="tr1"> <td/> <tr id ="tr2"> <td/> <tr id="tr3> <td/>) [/CODE] here i am using one button control (instead of 3 buttons) in 3 different rows now in button onclick event, how …

Software Development
Member Avatar for kiranbvsn
0
93
Member Avatar for finito

Sorry I can't think of a better Title, I have an Invoice Table, Where The Structure is: [B]InvoiceID, ProductID, Qty, Sum, Location, etc[/B] Primary Key is InvoiceID + ProductID A single Invoice can have more than one Row so a single invoice will look like this: [CODE=Table]InvoiceID | ProductID | …

Software Development sql
Member Avatar for finito
0
974
Member Avatar for powerbox

Hi guys, I created a Library 3 years ago and it is built around interfaces and generics. Now I needed to extend one of my application to support WCF. On my test scenario I can load it up on my application as part of different application domain. My problem now …

Software Development
Member Avatar for powerbox
0
310
Member Avatar for Sunshineserene

Hi there, I am currently doing a bioinformatics project on dynamic programming. I need to read a text file, and extract the information in it and use the information in it for my dynamic programming java codes(both java codes must be together). May I know how to extract the information? …

Software Development file-system java
Member Avatar for Sunshineserene
0
424
Member Avatar for Krstevski

Hello friends, I never ever use a class destructor, and now I want to try to using destructor, but I have a small problem. My code is: [CODE] using System; using System.Text; namespace ConstTest { class test { public test() { Console.WriteLine("Start..."); } ~test() { Console.WriteLine("End..."); } } class Program …

Software Development
Member Avatar for Krstevski
0
114
Member Avatar for BobbieJean

Hi everyone, I think I nearly have this program running right except for printing the adjacency matrix. Here's the code I have: [CODE]#include <iostream> #include <string> #include <memory.h> using namespace std; class Graph { public: static const int MAX_ROWS = 6; static const int MAX_COLS = 6; Graph(); ~Graph() { …

Software Development c++
Member Avatar for jonsca
0
264
Member Avatar for c++learner

Hello, could someone be so kind as to give me a short tutorial on how to use a function that accepts multiples values and parameters using references. I need to create a function that accepts an int and a double and squares both values by using references. I'm not sure …

Software Development c++
Member Avatar for c++learner
0
154
Member Avatar for mundvawala

hey guys ...i m making a project of "CHESS GAME"..... in which to identify any pieces of chess board ,i had used described mechanism....(see code of array) ... but it actually not working...it takes garbage value...it is working only for the "Rook"... i can't understand this behavior...so plz help me …

Software Development gaming java
Member Avatar for Krefie
0
167
Member Avatar for Skyelher

I kinda use this: [CODE]while 1: [body] [/CODE] a lot... But I've also read that it's not a good idea to be doing so even if you put add some way to break from the loop within the body... Any alternatives, please?

Software Development python
Member Avatar for griswolf
0
150
Member Avatar for TrustyTony

My Python has started to imagine that square root of -1 is 1, so be careful with ** and unary -. [CODE]print (-1**0.5) ## ** binds stronger than unary minus! i=-1 print "Square root of %i is %f" (i,i**0.5) # gives proper error """ Output: -1.0 Traceback (most recent call …

Software Development python
Member Avatar for Skyelher
0
341
Member Avatar for Griff0527

I've searched the C++ forums and cannot find anything that relates to my question. I am writing a program (for class) that opens a txt file and reads doubles from the file, then computes the standard deviation of the numbers in the file. In order to do this, I am …

Software Development c++ file-stream file-system ios
Member Avatar for Griff0527
0
258
Member Avatar for Kingcoder210

I need to make report there in crystal report there in crystal report. Let me make it clear to you. Listen I have a table called result ok? When user creates result for Tom it saves data in the table like that - ID - Name - Subject - Oral …

Software Development vb.net
Member Avatar for finito
0
89
Member Avatar for Rocky111

I am new to C++. I have a problem regarding access specified elements from a text File. I have two File containg the random sorted integert values. and an Array with some size. For exapmle if array contain 10 elements and files will contain random number upto 10 with no …

Software Development c++ file-system
Member Avatar for Rocky111
0
90
Member Avatar for daudiam

Static fields and methods are allocated memory once only, when they are first referenced, irrespective of the no. of objects u later create. But, memory is allocated for its data members each time an object is created. But what about the non-static methods, they don't change for each object. So …

Software Development java
Member Avatar for JamesCherrill
0
138
Member Avatar for annitaz

Write a program in PC assembly language to execute the following code: b := 0; a := 0; read c (c must be between 5 and 9) while ( (a+b) < c ) do begin b := b+a; a := a+1; end;

Software Development assembly
0
77
Member Avatar for annitaz

Write a program in PC assembly language to execute the following code: b := 0; a := 0; read c (c must be between 5 and 9) while ( (a+b) < c ) do begin b := b+a; a := a+1; end; I wrote the followng but something is wrong …

Software Development assembly
0
53
Member Avatar for dxmedia

Hi, As there is almost no documentation for this, I would like to know hot to properly use in VB NET 2008 the keep alive socket option. Tried this: [CODE]myTcpClient.Client.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.KeepAlive, 1)[/CODE] but then the TCP does not connect any more, and how do I know when the connection brakes …

Software Development vb.net
Member Avatar for dxmedia
0
454
Member Avatar for annitaz

1 ; The program must be keyed in exactly as is given here. 2 3 4 org 0x100 5 bits 16 6 00000000 E90900 jmp start ; Start program execution 7 00000003 42524F574E20464F58 char: db 'BROWN FOX' ; Please key in exactly as shown, 8 ; with a space between …

Software Development assembly
Member Avatar for tesuji
0
119
Member Avatar for dghervas

Hello, I am a newbie with vb 2010 but some experience with vb6 My problem is relatively simple but i cant find the answer to it I have a form with a textbox and a button on it when i press the button i have code that starts a sub …

Software Development vb.net
Member Avatar for dghervas
0
1K
Member Avatar for daudiam

Hi, I'm just a little confused as to what to we call a reference. [CODE]A ob=new B();[/CODE] Here B is a subclass of A. Should we say "ob is a reference of A which has been assigned an object of B" or "ob is a variable of A which has …

Software Development java
Member Avatar for JamesCherrill
0
94
Member Avatar for Wakesta

I have started to follow the Beginner tutorial's so the first one is Hello World, so I have followed what was shown and it has failed this was created in Console application template then added the main.cpp file to the source folder. this is the below error message, can someone …

Software Development c++ visual-studio
Member Avatar for Wakesta
0
186
Member Avatar for mnmw

I have been using the code below to edit SQL database fields from the data stored in a dataset. Problem is I have to repeat this long code for each database field to be edited....I find this very tiring...IS THERE A SHORTER WAY OF EDITING SQL Database FIELDS. (Am using …

Software Development dataset sql vb.net
Member Avatar for mnmw
0
191
Member Avatar for dxmedia

Hi, Even though there are many examples of Invoke operations, I can't find something that works for me. (I'm using VS 2008, and working in VB) Here is what i have: A main module with functions (thread 1) that starts a BeginRead for a TCPClient. When the callback function executes …

Software Development vb.net
Member Avatar for Teme64
0
2K
Member Avatar for WildBamaBoy

I cannot get shutil to copy one folder to another. This code results in the error below. What am I doing wrong? [CODE]if os.path.exists(backup + "\\Safety Backup"): pass else: print "Backing up original music. . ." os.mkdir(backup + "\\Safety Backup") for folder in musicFolders: shutil.copy2("C:\ABCD123", backup + "\\Safety Backup") print …

Software Development python
Member Avatar for WildBamaBoy
0
20K
Member Avatar for goodwillwins

Well i have the following program where i need to swap students(dynamically created structure array) . Just cant seem to get the swap right. Main problem's here : [code=c] struct student *stemp; stemp=(struct student *)malloc(sizeof(student)); *stemp.name=s[i].name; s[i].name=s[j].name; s[j].name=stemp->name; [/code] Other info : [code=c] where s[i] belongs to a dynamically created …

Software Development c
Member Avatar for goodwillwins
0
111
Member Avatar for angel_eyez

Hi I'm new to C# and need help. i want my listbox updated when it collect as many logs. The application at the background is still working but the GUI is not as responsive. I tried it with the thread also but got the error "Cross-thread operation not valid: Control …

Software Development gui
Member Avatar for Lusiphur
0
115
Member Avatar for BonaDrag

How do I make a calendar show a date that I fetch from another control? The fetched date is 'date' and will be different every time. To show the current date I do this: [code=c] CalendarMyMeetings.SelectedDate = System.DateTime.Today; [/code] ...so I'm guessing I need to replace 'Today' with 'date', but …

Software Development
Member Avatar for BonaDrag
0
86
Member Avatar for joshalb

A friend and I are working on our first game engine in C++. We're both new to C++, but not to programming in general. Our current method of handling objects (things within the game, such as a player object) works fine, and is pretty fast! But I'm not sure if …

Software Development c++
Member Avatar for joshalb
0
152
Member Avatar for arete

Hey, I'm working through Objects First with Java and using bluej. I've just gotten to where I call other classes and methods, and sometimes I can get it to work. Other times, like the example below, I'm completely suck. I've tried every combination I can think of to get the …

Software Development java
Member Avatar for arete
0
352
Member Avatar for Shikhin

First of all Hello to all of you. I am new to programming(about a week since I started learning it), a little young(12 years old) and totally interedtes in its thrill. Second of all I would like to clear the [I]superstition[/I] that students join this forum as they want you …

Software Development c
Member Avatar for Shikhin
0
178
Member Avatar for csha_cs508

[CODE]/*a program that inputs three integers from the keyboard and prints the sum, average, product, smallest and largest of these numbers*/ #include <iostream> using namespace std; int main() { int firstNum, secondNum, thirdNum, sum, product,average, largest, smallest; cout<<"Enter three integers: "; cin>>firstNum; cin>>secondNum; cin>>thirdNum; sum = firstNum+secondNum+thirdNum; product = firstNum*secondNum*thirdNum; …

Software Development algorithm c++
Member Avatar for csha_cs508
0
187
Member Avatar for zismad

Hi all , i'm having a solution which includes a setup project too. when the user installs my program, it asks him t oinstall wamp server too. I want to have the path in which they installed the wamp server, so that i could run the MySQL files from my …

Software Development
Member Avatar for Oxiegen
0
144
Member Avatar for gee_azizi

Hi, I'm working with the VB6 for my project and it's about membership in a club. Everything is near done but there are something I want to ask Database : D-Club.mdb Field that hold the DOB : member_dob ex: '(dd/MM/yyyy) Field that hold the member value : member_value ex: '(16 …

Software Development flash visual-basic
Member Avatar for asaness
0
108
Member Avatar for Maya Pawar

I have a datagridview which contains 4 records. I want to insert these records into access table.This access table already have records. Datagridview's columns & access table's columns are same (datatype & columnname) How can i insert these 4 records in access table??? Plz anybody help me.............. Thanks in advance...

Software Development vb.net
Member Avatar for Maya Pawar
0
134
Member Avatar for hgbreton

I need to create a SOAP wrapper of the form [CODE=xml] <SOAP-ENV:Envelope xmnls=........><SOAP-ENV:Body></SOAP-ENV:Body></SOAP-ENV:Envelope> [/CODE] My C# code to do this is as follows [CODE=C#] XmlElement soapEnvelope = document.CreateElement("SOAPENV", "Envelope", "http://schemas.xmlsoap.org/soap/envelope"); XmlElement soapBody = document.CreateElement("SOAPENV", "Body", "http://schemas.xmlsoap.org/soap/envelope"); [/CODE] This works fine for the Envelope part but then adds a spurious xmnls …

Software Development api c# xml
Member Avatar for kvprajapati
0
484
Member Avatar for bibiki

hey there, I have the following code: [CODE] String[][] candidates = new String[4][3]; for(int i = 0; i!=4; i++){ for(int j = 0; j!=3; j++){ switch (j){ case 0: {candidates[i][j] = JOptionPane.showInputDialog("Give name of candidate " + i);} case 1: {candidates[i][j] = JOptionPane.showInputDialog("Give address of candidate " + i);} case …

Software Development java
Member Avatar for bibiki
0
102
Member Avatar for Andreas5

Hello again, i ran into some trouble with Visual C++ 2008 when i tried to use a template function. I only get this error when i try to use the function from main(). I used another template function succesfully earlier, but i can not figure out what is wrong with …

Software Development c++
Member Avatar for jonsca
0
183
Member Avatar for rayborn66

Hi, I am having a problem with using file input/output streams in this program. [CODE] #include <fstream> using std::ifstream; using std::ofstream; using std::endl; int main() { ifstream inStream; ofstream outStream; inStream.open("infile.txt"); outStream.open("outfile.txt"); int first, second, third; inStream >> first >> second >> third; outStream << "The sum of the first3\n" …

Software Development c c# c++ file-system
Member Avatar for rayborn66
0
289
Member Avatar for ozone_tom

I have a spreadsheet (roughly 200x200 in size) that is a matrix of 0's and 1's that define rules. These rules cannot be expressed in procedural logic because they need to be easily accessible for change by a user for modification. The first row are header value strings and the …

Software Development dataset microsoft-office
Member Avatar for ozone_tom
0
300
Member Avatar for majesticmanish

Hi all, In one RTOS, i'm debugging one issue which is, program is crashing one point always when it send a 8-bit value (Lets call it 'Int8 rogue_int')to a function (lets call it 'Infected( Int16 )' ) whose definition is taking that variable as 16-bit variable. Before entering to that …

Software Development c++
Member Avatar for majesticmanish
0
143
Member Avatar for gonzigg

Hi, im trying to find a way to repeat this code with out losing the count of 1,2,3 and 4, when the user enters a number different from 1,2,3 or 4. Because in line 26 I call for main() again but when I do that it loses count of everything. …

Software Development python
Member Avatar for faby
0
180

The End.