132,730 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for idontknow19

[B]Im stuck on how to display 5 integers in ascending order.i only have the idea to input 3 integers.what is my lacking to my code.Can you figure it out.thank you so much.hope you gonna help me[/B][code]import java.util.*; public class ascendingorder { static Scanner console = new Scanner(System.in); public static void …

Software Development java
Member Avatar for javaAddict
0
1K
Member Avatar for muthukumarangms

Hi, I am trying to run a installer file that is compiled in python 2.5 on fedora 10 to the new upgraded python 2.6 on fedora 13 while trying to run the installer file this error occurs RuntimeError: Bad magic number in .pyc file The pyc files are compiled in …

Software Development python
Member Avatar for muthukumarangms
0
3K
Member Avatar for adobe71

How to find the difference between system time and user input time in the format [hh:mm] in millisecond.

Software Development
Member Avatar for arqtan
0
117
Member Avatar for rayda

hi there. i m trying to write codes for new user to fill in the form, then the new data will into my database,however, my codes doesnt work, i cant figure out what's wrong with my codes. below are my codes: [CODE]Imports System.Data.OleDb Public Class NewUser Inherits System.Web.UI.Page Protected Sub …

Software Development open-source vb.net
Member Avatar for rayda
0
144
Member Avatar for cbtetech

Hello and thanks for any assistance, I wrote this basic script to batch make test forms for a side project. In its current state it works fine and I can pass file names to it no problem. It will take the form embeded in the code and create 10 additional …

Software Development os-x python queue
Member Avatar for TrustyTony
0
328
Member Avatar for yossi321

Hi How can I protect/lock a drive from deleting files and format it ? Is there a way to hook a drive?

Software Development pascal
Member Avatar for yossi321
0
75
Member Avatar for insanely_sane

Ok so I dont think I have installed ANY compiler for C++ on my Windows Vista system. So I would need info about that as well. Anyhow. Just like java can be run using javac and then java w/e w/e... how do I run my .cpp notepad files via the …

Software Development c++ ide windows-vista
Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for sohaibroomi

Hi, I'm trying to take a print on a Continuous Paper through a Thermal Printer ZP 2844 using Crystal Reports 2008 along with Visual Basic .NET 2008. I've set the page size to 3.00 inches as width & 3.00 inches as height. It prints well when the contents are a …

Software Development printer vb.net visual-basic
Member Avatar for Oxiegen
0
833
Member Avatar for Smalls

k, what i'm trying to do is create a windows service to run in the background to monitor [URL="http://www.vmware.com/products/player/"]vmplayer.exe[/URL] to see if it is running or not. then if it is running, then turn on the various hardware, software, and services it needs/uses to run, and if it is not …

Software Development microsoft vb.net
0
213
Member Avatar for Denxerator

Dim FILE_NAME As String = "C:\test.txt" How could I make the C:\test.txt's "test" become the text in textbox1's text? E.g. textbox1's text = "kenneth" then the C:\test.txt becomes C:\kenneth.txt

Software Development visual-basic
Member Avatar for AndreRet
0
231
Member Avatar for shena

Hi all, How to create refresh Button in the form? I have combo box with the data linked to Access database. I create another form for data input for those that appear on the combo box. When I close the input form, I realise that the data is not yet …

Software Development visual-basic
Member Avatar for AndreRet
0
278
Member Avatar for Totte94l

Hello! I would appreciate if someone could convert this code from VB6 to VB.net. [CODE]Option Explicit Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hWnd As Long, lpdwProcessId As Long) As Long Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As …

Software Development vb.net visual-basic
Member Avatar for GeekByChoiCe
0
576
Member Avatar for darelet

Guys, Why do we have these unresolved externals? This is the second time I am meeting them, and I'm sure it is a common problem. I've defined all the constructors including a void constructor just for the sake of (I don't actually need it). Pray tell where the error is: …

Software Development c++ data-structure
Member Avatar for darelet
0
165
Member Avatar for vivek01anand

#define prn(a) printf("%d",a) #define print(a,b,c) prn(a), prn(b), prn(c) #define max(a,b) (a<b)? b:a main() { int x=1, y=2; print(max(x++,y),x,y); print(max(x++,y),x,y); } output:222342 pls explain how we get output 342 at end

Software Development c first-post
Member Avatar for lionaneesh
0
131
Member Avatar for Merlin33069

Ive looked through google and a few other places, searching for how to calculate the pixels you would need to fill in a 3d space to draw a line, circle , sphere or anything really. Ive always been good with learning math, i just need somewhere to learn it from …

Software Development algorithm c# client-server
Member Avatar for adams161
0
267
Member Avatar for fussballer

Hi, I am working on a small program (in Windows) to control the Speed of a CD Drive. So far I have used some of the IOCTL_CDROM_... and IOCTL_STORAGE... Control codes to control the drive by opening/closing it etc. I have now developed a small piece to also control the …

Software Development c
Member Avatar for wisaacs
0
521
Member Avatar for comsci2

can anyone help me about this error. "Invalid attempt to call metadata when reader is closed". Thnx in advance. [CODE] Public Sub DisplayCust(ByVal lv As ListView) If cnSQL.State = ConnectionState.Open Then cnSQL.Close() cnSQL.Open() cmd = cnSQL.CreateCommand cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = "sp_DisplayCust" Dim param = New SqlClient.SqlParameter param.ParameterName = "@cust_no" …

Software Development display listview vb.net
Member Avatar for hirenpatel53
0
126
Member Avatar for abu taher

I made a querie with 2 table. both of 2 table have date fields. the querie also have this both of date fields with other fields. so all data show in a each line. like name | address | date this 3 fields in table1 Roll | Class | date …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
376
Member Avatar for MrBlack

i have created two winforms ,first from take a value and pass it into the second form and display on a label, but when i run the programme it throws exception form 1 [CODE] private void button1_Click(object sender, EventArgs e) { Form2 fm2 = new Form2(this.txtName.Text); fm2.Show(); } [/CODE] form …

Software Development
Member Avatar for MrBlack
0
90
Member Avatar for sadhawan

Hi Guys, I want to store the values of regex.match in an array but i am getting error. my code is as follows [code] string[] subj = null; for (int f = 1; f <= dir.Length; f++) { Match o = Regex.Match(txt1, "section_title='(?<TITLE>.*)'"); subj[f] = o.Groups[1].Value; } } } [/code] …

Software Development regex
Member Avatar for kvprajapati
0
695
Member Avatar for bgreer5050

How do I add a capital 'N' to the end of my loop so if the user clicks N or n then we will not continue?: [CODE] do{ }while (con!='n'); [/CODE]

Software Development c++
Member Avatar for mrnutty
0
37
Member Avatar for jzlonely

I am very new to vb 2008 and have create a simple window forms application which link to microsoft access 2007 database. I build the application exe file already. The exe file is run well on my computer, but when i transfer it by copy and paste the whole folder …

Member Avatar for jzlonely
0
4K
Member Avatar for mohamedhassan

hi.. i'm trying to load a file with .pgm extension on picture box ... i really need help .. so .. any help here??!! :(

Software Development c++
Member Avatar for jonsca
0
532
Member Avatar for Andreas5

Hello, i have a question to the people who already have read chapter 7-4 in this book. This example is driving me crazy! :x [CODE]typedef vector<string> Rule; typedef vector<Rule> Rule_collection; typedef map<string, Rule_collection> Grammar;[/CODE] So, this would without typedef be like this: [CODE]map<string, vector< <vector<string> > > >;[/CODE] But, why …

Software Development c++
Member Avatar for Ancient Dragon
0
143
Member Avatar for UtaChan

I got a question that most likely will appear in tomorrow's test Well the problem is I have a physical adress of 12345h and I need to get something from there into some variant at the size of 1 byte, not that it matters...the thing is I dunno what to …

Software Development assembly
Member Avatar for tesuji
0
163
Member Avatar for SnakeJam

I am trying to make a program that lets the user create objects of a class UNIT which are then stored in a list. I was able to get that to work, but now I want the user to be able to find a specific UNIT in the list by …

Software Development c++
Member Avatar for SnakeJam
0
122
Member Avatar for whiteyoh

Hi all, Im fairly new to java. Im wanting to connect to mysql but the following is thrown Exception: com.mysql.jdbc.Driver have i missed something? here is the code [code] import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class MySql { public static void main(String args[]) throws Exception { Connection con = …

Software Development java mysql
Member Avatar for javaProgrammar
0
7K
Member Avatar for tundra010

Hello everyone! I wrote a basic c++ program using classes and pointers. Although it compiles without any errors, it will not run, saying "This program has stopped working". I am assuming that this issue may have been created by a memory leak, but I made sure to delete all dynamically …

Software Development c c# c++
Member Avatar for thelamb
0
114
Member Avatar for SacredFootball

Hey All. I'm trying to figure out how to search for a string within my file and if the string exists, I want to get whatever follows it. Here's an example: HighScores.txt ---------------------------- Devin: 202 Corey: 185 Nick: 315 Patrick: 112 ---------------------------- If my program opens the file, I'd like …

Software Development c++
Member Avatar for SacredFootball
0
128
Member Avatar for cableguy31

I'm writing a script that will search file names looking from certain file extensions. The thing is, is that I am looking for multiple extensions, and the list may change. I could write an if statement using "and", but the line just gets a bit long and can become difficult …

Software Development python regex
Member Avatar for TrustyTony
0
151
Member Avatar for findlay

Hi all, I am trying to link to an external library (the boost regex library) under gcc. I am ashamed to admit that what I know about linking external libraries comes soley from modified snipets from online forums. My problem is as follows; I use to keep all my source …

Software Development c++ regex
Member Avatar for findlay
0
761
Member Avatar for deiago

Hello Java friends I'm trying to make a program, using NetBeans, to allow users to scan (using a external scanner) ISBN numbers on books and using this ISBN number to link up to a website to retrieve the information regarding the book(i.e Title, Author, etc). I have not tried using …

Software Development java java-netbeans
Member Avatar for Stefano Mtangoo
0
124
Member Avatar for venkat arun

Hello, I am trying to calculate the value of pi (just for fun, I know it's already done for millions of decimal places), the program I made works fine, but the problem is that, it is constrained by the accuracy of [I]double[/I] values. Is there anyway to create 'extendable' floating …

Software Development c++
Member Avatar for venkat arun
0
154
Member Avatar for bbman

Hey, I have the following codes: [CODE] // In Form1.h protected: ItemGroup^ History; ItemGroup^ Favourites; [/CODE] [CODE] // In Form1(void) History = (gcnew ItemGroup()); Favourites = (gcnew ItemGroup()); [/CODE] [CODE] // ItemGroup public: ItemGroup(void); int Length() { return _length; } Item^ Items(int _index) { return _items[_index]; }; void Add(String^ _text) …

Software Development c++
Member Avatar for jonsca
0
100
Member Avatar for cadtel

Hi all, this is my first post. A couple days ago, in preparation for a math final, I attempted to code a program which would allow me to solve triangles (law of cosines, sines, etc.). Now that the test is over, I am now interested in getting it working. [CODE]#This …

Software Development mathematics python
Member Avatar for TrustyTony
0
194
Member Avatar for Metalteeth9

Hey guys and girls, I am extremely new to coding, and I would appreciate some help. I am trying to write a code in which someone inputs a number, which is part of a file name, then I do stuff with the filename. Here is the part that I am …

Software Development c++ data-science
Member Avatar for jonsca
0
163
Member Avatar for shazzy99

I've been trying to use substring to get the last three digits as part of the extension but wasn't successful. Can anyone tell me how I can extract the extension from the file name? Rgs

Software Development
Member Avatar for kia_mls
0
204
Member Avatar for Stefano Mtangoo

I know it sounds stupid but I want to try this with the kind of for (not the norma for i=0 i<9; i++) but the other one with arraylist. is this possible? If yes please help me match data types Thanks [CODE=JAVA] import java.util.ArrayList; import java.util.List; /** * Created by …

Software Development java
Member Avatar for Stefano Mtangoo
0
129
Member Avatar for tariq182

hi guys I want Genral information about Front end_ VB.net?

Software Development vb.net
Member Avatar for Oxiegen
0
85
Member Avatar for ppotter3

Hello! My name is Page, and I am learning how to code in Java. I am working on a program, and it was homework at one time, but the assignment due date is passed. I would just like to get it going so I can learn from my mistakes, and …

Software Development gui java mathematics
Member Avatar for NormR1
0
727
Member Avatar for Merovingian

I'm trying to add this XML element: [CODE]<cp:prop name="given_name" value="UK" />[/CODE] It has to be formatted exactly as above. I've tried this but it formats differently: [CODE]Dim cp = XNamespace.Get("cp") Dim newElement As New XElement(cp + "prop", New XAttribute("name", "given_name"), New XAttribute("value", givenName)))[/CODE] It formats like this: [CODE]<prop name="given_name" value="UK" …

Software Development vb.net xml
Member Avatar for Oxiegen
0
103
Member Avatar for Pykoda

Hello everybody ! wow my first time on danyweb ! ;p Well, here the deal. Im doing a script that basically copy and past into the local drive a specified directory with all this files. Im doing the copy with a copytree which is working well. But, (and I know …

Software Development python
Member Avatar for TrustyTony
0
125
Member Avatar for newbie_coder

I have a project where I'm recursing into drives specified by the user and am getting rid of any "invalid" characters defined in a RegEx pattern. I'm very new to this and C#, so any help would be appreciated! If the file contains ANY of these characters: | # { …

Software Development regex
Member Avatar for newbie_coder
0
166
Member Avatar for virusisfound

Hello Freinds,:) I want to make client server coding with C# windows Application with LAN If i saved data on client system it also save in server System.:$ for that i dont have any knowage about client server system & also i dont have any coding for that Please help …

Software Development client-server
Member Avatar for finito
0
113
Member Avatar for 12"tool

Hi guys When I ask VB to display a date obtained from a field in Access I get a date that displays the day ok, the year okay but it displays the month as 00. In other words 20100029. Now, I have to evaluate the date difference between todays' date …

Software Development visual-basic
Member Avatar for AndreRet
0
90
Member Avatar for 2bit

Hey guys i seem to be having an issue with the following code: [CODE]// show solution to variable scope problem using "the heap" // a block of memory controlled by the programmer #include<iostream> using namespace std; double* Function() { double* dLocalVar = new double; return dLocalVar; // give address of …

Software Development c++
Member Avatar for 2bit
0
108
Member Avatar for sidind123

I want to save image from Picture box to SQL Server DB. I am trying to do this using the following code but cannot able to do so. Please help. My Code Snippets are as following: Dim fs As FileStream = Nothing fs = New FileStream(picPhoto.ImageLocation, FileMode.Open) Dim fi As …

Software Development sql vb.net
Member Avatar for Oxiegen
0
195
Member Avatar for nsutton

I followed a tutuorial to send gmails through a C# app. Im making a console app and this code fails I have no idea whats wrong... [CODE]class MainClass { public static void Main (string[] args) { sendMail mailSend = new sendMail(); mailSend.mail("stmp.gmail.com",465,"sendersemail@gmail.com","senders password","fromadress@gmail.com","toadress@gmail.com","Subject","Body",true); } }[/CODE] [CODE] public class sendMail { …

Software Development email
Member Avatar for nsutton
0
166
Member Avatar for literal

I'm still interested if someone read this book since it's based upon standard C++?! Can one learn C++ over Visual... I mean what's difference anyway, except M$ is involved in Visual ?!

Software Development c++
Member Avatar for alaukik
0
264
Member Avatar for zebra59

I have this problem that I can't figure out, I can't figure out the line statement that needs to go in. Here's the problem [code=c] struct NodeType { int data; NodeType* p; }; NodeType* p; NodeType* q; p = new NodeType; p->data = 18; q = new NodeType; q->data = …

Software Development c++ linked-list
Member Avatar for dohpaz42
0
111

The End.