132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Romil797

Exactly that. Using NAudio or DirectX, can someone show me how to convert a wav file to mp3. Mp3 to wav seems trivial, but unfortunately i need wav to mp3. Thank you for your help

Software Development asp.net
Member Avatar for CsharpChico
0
385
Member Avatar for FriXionX

So, I joined DaniWeb in february, and posted a problem regarding this code. I then quit learning for a while, and started again a week ago or so, continuing this. I've made it better, and its almost working, except for the If statement doesnt work. It asks you what you …

Software Development c++
Member Avatar for FriXionX
0
118
Member Avatar for localp

I am new to C, hope someone could help me here. I need to implement a keystroke, for example, i need to programatically implement the 'return key'. As in if someone is pressing the 'return key' from the keyboard. but here, the user will not even touch the keyboard. the …

Software Development c
Member Avatar for localp
0
164
Member Avatar for jeffande1966

I am new to Python and encountered an issue while trying to write a script. I am receiving a list index out of range error while trying to read the criminal activity layer file. Any help would be appreciated. Jeff [CODE]import arcpy # Data Layers in Secondary Map Document mxd2 …

Software Development pdf python
Member Avatar for TrustyTony
0
422
Member Avatar for de Source

Hi, i have a form in which i have different labels and picture boxes is there any way i can get the print of it by pressing print button on d same page but ofcourse that button shouldn't b d part of that print thnks

Software Development
Member Avatar for vishalrane
0
122
Member Avatar for ranj_s20

I exported a crystal report to PDF.It's working normally in all browsers except Google chrome.Can anyone suggests any code to make it compatible with all browsers?The code i used to export is shown below [CODE] System.IO.FileStream fs = null; long FileSize = 0; DiskFileDestinationOptions oDest = new DiskFileDestinationOptions(); string ExportFileName …

Software Development google pdf
Member Avatar for vishalrane
0
182
Member Avatar for sandeepparekh9

Listing All The Installed Softwares In Computer Using .Net Don't Forget To add [B]using Microsoft.Win32 [/B] For Complete thread with screen shots see here:[snipped]

Software Development asp.net
Member Avatar for vishalrane
0
184
Member Avatar for nibalan

I am writing a script in perl for my project. I have given a snippet of the files below start.pl contains: system("/ws/nibalan/submain.pl"); submain.pl contains: system("/ws/nibalan/submanual.pl") open(INPUT, ">/users/$login/input"); - - some writing into input file submanual.pl contains: open(INPUT, "/users/$login/input"); open(MANUALANS, ">/users/$login/manualans.pl"); - - some writing into manualans.pl file While trying to …

Software Development file-system perl
Member Avatar for roswell1329
0
210
Member Avatar for zachattack05

Is it bad practice to create relationships between tables where the PK is an identity AKA auto incremented? The reason why I ask is, while identity keys won't repeat, they are set based on the order that someone enters data, so the first entry is 1, second is 2 etc... …

Software Development sql
Member Avatar for zachattack05
0
137
Member Avatar for geekme

While debugging my code in vS2010 i get the buid error: " Visual Studio cannot start the debugging because the debug target 'D:\Users\Mike\AppData\Local\Temporary Projects\beginner\bin\Debug\beginner.exe' is missing.Please build the project and retry again." What should I do? Regards

Software Development visual-studio
Member Avatar for geekme
0
82
Member Avatar for Mike Bishop

I am doing some calculations and the outcome of those sums are like 0.743449889958 the sum is calulated like so textbox.Text = (textbox1 * _Units) / _priceincur how would i format the string so that it only shows 0.7434 (rounded)

Software Development vb.net
Member Avatar for Luc001
0
123
Member Avatar for Huakalero

Hi, I am using beautiful soup to get data from a webpage. With help I was able to get a list of cities with correct accents. Now am trying to get a list of movie theaters in a selected city but these come with no accents, but with weird characters. …

Software Development python
Member Avatar for Huakalero
0
882
Member Avatar for UltimateKnight

I am using Microsoft Visual C++ Express 2008 edition and notice some code is not working in here. There are different functions and some headers are not recognized while in other are. So is the compiler not good? I've heard about Dev C++ and Turbo C++ but haven't tried them. …

Software Development c++
Member Avatar for UltimateKnight
0
102
Member Avatar for Mykal73

I have an application which updates some files overnight from an oracle server. the application runs fine until at the very end when it closes. Then I get the message "Application has encountered a problem and needs to close. We are sorry for the inconvenience." when I click on the …

Software Development oracle vb.net
Member Avatar for Mykal73
0
118
Member Avatar for simpsonzia

Hi, guys! I started to learn assembly just a few months ago. Last time I wrote a small program to compute the CPU frequency, and it worked out. Two weeks later, however, when I recompiled the program, I couldn't get the correct result. It's about 4-5 times less than the …

Software Development assembly
Member Avatar for coffeeuncle
0
246
Member Avatar for krazykat1010

program I feed in interactively as below [url]http://pastebin.com/qGHMiHjp[/url] child.before contains the expected data (output of expect command) I run the code as python progname.py: (code shown below example run on pastebin) [url]http://pastebin.com/AWY0vM88[/url] import pexpect import sys child = pexpect.spawn('gdb',logfile=sys.stdout) try: child.expect(pexpect.EOF,timeout=0) except Exception, e: print child.before import code;code.interact(local=locals()) and child.before …

Software Development python
Member Avatar for krazykat1010
0
252
Member Avatar for apanimesh061

[CODE] [I]Server.aspx[/I] <%@ Page Language="C#" CodeBehind="Server.aspx.cs" AutoEventWireup="false" Inherits="AMChat.Server" %> <p> &nbsp;</p> [/CODE] [CODE] [I]Server.aspx.cs(excerpt)[/I] namespace AMChat { /// <summary> /// Summary description for Server. /// </summary> public class Server : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { . . . [/CODE] When I build this application, I get …

Software Development
Member Avatar for apanimesh061
0
116
Member Avatar for nocloud

I have a number of functions I would like to reuse in multiple pieces of code. I have put these into a single header file that looks something like the following: [CODE] #ifndef FUNCTIONS_H #define FUNCTIONS_H //function prototypes extern float sum(vector<float> &v); //calculate sum of a vector float sum(vector<float> &v) …

Software Development c++
Member Avatar for Schol-R-LEA
0
419
Member Avatar for SakuraPink

Hi all, I am working on a data file that looks like the following: [CODE]value1: 0.7586 +/- 0.00473 value2: 0.664901 +/- 0.0357 value3: 0.662784 +/- 0.00447 ------------------------------------------------------------------------------------------------------------------------- value1: 0.765217 +/- 0.00425 value2: 0.694663 +/- 0.0277 value3: 0.66438 +/- 0.00393 ------------------------------------------------------------------------------------------------------------------------- value1: 0.758317 +/- 0.00332 value2: 0.648057 +/- 0.0201 value3: 0.660746 …

Software Development c++
Member Avatar for SakuraPink
0
160
Member Avatar for Bob Jacobs

I wish to call a form with the form name contained in a variable using a declaration such as [CODE]public myform as form[/CODE] will work if the formname is used. but myform will not accept a variable containing the form name

Software Development visual-basic
Member Avatar for Bob Jacobs
0
97
Member Avatar for lynnajoe

Hi, I need a method that takes an array of Printer type and returns this array sorted by product name. What I have sorts the string names but the thing is it outputs only one product canon. I have been looking at the tutorials and have done much research but …

Software Development java printer
Member Avatar for stultuske
0
153
Member Avatar for chris007

hello guys. i got a method that someone showed here BUT it doesnt work 100%... i mean..i put this folder C:\Users\chris\Documents .. if i search for *.docx, it finds only the docx files that are in SUBFOLDERS inside the Documents.. it does NOT find docx files that are in C:\Users\chris\Documents …

Software Development vb.net
Member Avatar for chris007
0
1K
Member Avatar for larrymtl

Hello, somehow my program passes directly to else statement after [QUOTE]System.out.println("Would you like to draw another triangle? (Yes/No): ");[/QUOTE] something is wrong with if statement at the end...please help [CODE] import java.util.*; public class Triangle { public static void main (String [] args) { System.out.println("Welcome to the Triangle Program"); int …

Software Development java
Member Avatar for larrymtl
0
213
Member Avatar for henrimontreal

Hi guys, Actually I have a problem to use two classes at the same time. For example when I increment the number of winnings at the function of the 2nd class and want to show the result at one of the functions at the first class. the variable I used …

Software Development c++
Member Avatar for VernonDozier
0
832
Member Avatar for anjoz

how do you compare comandline arguments in bash example i have 5 or more arguments and 2 of the arguments are the same how can do it any suggestions? my problem is that i need to compare 2 or more arguments if any of the arguments are the same sleep …

Software Development shell-scripting
Member Avatar for thekashyap
0
137
Member Avatar for moone009

I'm working on an app to parse Excel files. I need to remove invalid characters in column 2 and then in column 3 I need to trim and upper that column. Any ideas? [CODE]Dim sql As String Dim xlApp As Excel.Application Dim xlWorkBook As Excel.Workbook Dim xlWorkSheet As Excel.Worksheet ' …

Software Development vb.net
Member Avatar for sandeepparekh9
0
388
Member Avatar for klikeras

Hello, I need help with an assignment, been trying to figure it out for couple of hours with no luck, hope someone here can help me, i would be extremely grateful. I need to create a 2D array 5x4, each row represent a student and each column respresents a subject. …

Software Development c++
Member Avatar for prvnkmr194
0
149
Member Avatar for winecoding

For the following segment of java code, the method of “run” occurs four times. I am quite confusing about the relationships of these four occurrences of “run”. Can you explain this to me? The original code is pretty long, I just keep the part that is related to my question. …

Software Development java
Member Avatar for NormR1
0
193
Member Avatar for paperstars

Hi, I'm new to C++, I'm trying to write a program to compute the sine series for taylor expansion. I've written two codes, but both do not work after a certain point. (The sine series is: sin x = x - (x^3/3!) + (x^5/5)...etc.) With the code below, when x=1.5, …

Software Development c++
Member Avatar for paperstars
0
2K
Member Avatar for billgateswannab

being new to assembly... My head is really spinning trying to understand all the concepts. It is quit different from the php i've been programming the last 8 years. So here is my question...could someone please help me to understand the purpose and uses of a STACK. I know it …

Software Development assembly
Member Avatar for moegi
0
113
Member Avatar for Tyster

Hello Everyone, I have what I hope will be a simple VB question: I am building an app with multiple forms. It has a MainForm, which is the main interface, and several sub-forms that are started using buttons on the MainForm. The MainForm Load method has some code that runs …

Software Development vb.net
Member Avatar for Tyster
0
728
Member Avatar for kristo5747

After running the command [CODE] find . -name "R*VER" -mtime +1 -exec sh -c 'grep -H ^err "{}" || echo "{}:No error"' \;[/CODE] my files look like this [CODE] RRR1~COS~COSMETICS~40048~jgmdtv113~1~P~R22-200~029053662549~20110607~102151.VER No error RRR1~COS~COSMETICS~ETT03~jgm14652.~3~F~R16-500~000907009757~20110607~085109.VER err 3922 [/CODE] Using the tilde (~) symbol as delimiter in the file name, can I extract …

Software Development shell-scripting
Member Avatar for kristo5747
0
222
Member Avatar for goody11

Hello, I'm trying to write a vector that has a list of installed program names to a text file. When I go to do this, the program shows the names of the installed applications, but in the text file it just repeats the number 52428. Any ideas? Here's the code: …

Member Avatar for goody11
0
282
Member Avatar for UltimateKnight

Hey all. When you have the whole program running, and is executed it's running at the black console window. How are the programs made so that they run with GUI interface and stuff like that? Are they exported differently and where are the images and things put together ? Thanks.

Software Development c++ gui user-interface
Member Avatar for ichigo_cool
0
326
Member Avatar for PeteA

I'm trying to find out the best methods for Deserializing XML. The main problem I've come across is if I have the following example. [CODE] DateTime _SomeTime; [XmlElement("some-time")] public DateTime CancelledAt { get { return _SomeTime; } set { _SomeTime = value; } }[/CODE] Usually this is fine and serializes …

Software Development xml
Member Avatar for zachattack05
0
312
Member Avatar for horserider

[code] ListBox2.Items.Clear() Dim myCoolFolder As String = "F:\" Try For Each myCoolFile As String In My.Computer.FileSystem.GetDirectories _ (myCoolFolder, FileIO.SearchOption.SearchAllSubDirectories, "*.*") ListBox2.Items.Add(myCoolFile) Next Catch ex As UnauthorizedAccessException MsgBox(ex.Message) End Try MsgBox("Total Files: " & CInt(ListBox2.Items.Count).ToString("#,###,###")) [/code] This code is for listing all folders including subfolders. but when i run this code …

Software Development vb.net
Member Avatar for chris007
0
1K
Member Avatar for Buffalo101

Hi, What's the best way of integrating a Paypal button in a WinForms application? I can make a tiny WebBrowser and render the form html in it, but when clicking it, processing should be done by the default browser, not the WebBrowser in my application. LEdit: Or I could just …

Software Development c c# c++
Member Avatar for Buffalo101
0
228
Member Avatar for akhal

Hi I am working on fast fourier transform where I have to use std::complex<> template class types. I have a situation where I want to calculate nth roots of unity as follows w = pow(e, 2*pi*j/n) Where e is eulers constant, and j=sqrt(-1.0); But this doesnt work for me as …

Software Development c++
Member Avatar for akhal
0
325
Member Avatar for Nicco

Hi there, I'm working on a map for a class assignment and running into trouble. I've tried looking around the web but couldn't find anything that helped. I know how insertion works on a basic level when returning a node pointer but think i'm missing some key ideas when using …

Software Development c data-structure
Member Avatar for Nicco
0
2K
Member Avatar for Huakalero

Hi, I'm working on a unofficial app to get the movie listings from a webpage [url]http://cinepolis.com.mx[/url]. In order to get the correct movie listings, the user must select his city. Now, using HTMLParser I was able to get the list of cities, but because some of these have non english …

Software Development html-css python
Member Avatar for Huakalero
0
351
Member Avatar for metal_man

Hi to all. It's my first post here. I want to ask about 2D Gabor filter implementation. I have some code but it is not working. So let me present my work first: [code=c]signed int sumX, sumY; long int SUM = 0; int I = 0, J = 0; double …

Software Development algorithm c
Member Avatar for TrustyTony
0
491
Member Avatar for de Source

hay guys... i m new here and having problem in finding a row through a combobox i did that with a simple text box it is working fine here is the coding [CODE] private void btnFind_Click(object sender, EventArgs e) { string searchFor = textBox4.Text; int results = 0; DataRow[] returnedRows; …

Software Development sql
Member Avatar for Mitja Bonca
0
176
Member Avatar for BilalAKhan

Hi, I have a done the following steps which can help you understanding my problem: 1. I took a decimal point number, suppose 192.123456 2. Then removed the decimal point 3. Concatenated the L.H.S and R.H.S and stored it in a string 4. The string that I got was 192132456 …

Software Development vb.net
Member Avatar for dxider
0
173
Member Avatar for TheVendor

Hello, We are trying to develop a chat client program in a computer science class, but we are running into this error [QUOTE]Invalid reference in inner class to a non-final local variable [/QUOTE]. The chat client will send the users' text to a text file and then read depending on …

Software Development gui java java-swing session
Member Avatar for JamesCherrill
0
221
Member Avatar for n3red

Hello, First of all let me say i have very little idea about shell scripting and linux ( ubuntu ). I am trying to write a script where i would give it two arguments two dates in a 29/5 30/5 whitin the console and it would return a list or …

Software Development shell-scripting ubuntu
Member Avatar for andrewll2
0
88
Member Avatar for king03

Hi there guys I need some help I am creating an inventory with loads of exception handlers, I got a problem with isalpha and isdigit because supposedly it will detect whether an input is a char or a digit... Ok I tested a simple program to show my problem. I …

Software Development c++
Member Avatar for MareoRaft
0
600
Member Avatar for dotancohen

How could I register a function to receive an event when the user presses the space bar in a text field? Better yet, where in the fine manual should I be reading about how to do this? I'm not finding much by googling, and I think that I should be …

Software Development
Member Avatar for Mitja Bonca
0
145
Member Avatar for Feriscool

What I need is to have the same GUI stay, but when the person goes to the menu and selects Editors > NPCSpawner, I need it to change from the default interface that's there (NPCSpawner interface) to the Other GUI (yes, it's called "Other"): [CODE]import org.rsbot.script.*; import org.rsbot.script.wrappers.*; import java.awt.*; …

Software Development gui java java-swing
Member Avatar for Feriscool
0
193
Member Avatar for hirenpatel53

Hi all i have text box which contain HTML page code i want to display it according to Html tags in Page Please help ASAP

Software Development html-css
Member Avatar for hirenpatel53
0
100
Member Avatar for michele_muc

Hey guys, I have a problem extracting some data out of this XML file: [CODE]<?xml version="1.0" encoding="UTF-8"?> <ph:Graphs xmlns:ph="http://www.merge.something.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ph:Graph name="mass_spring_mo"> <ph:Element id="0" type="Fixed"> <ph:Port id="1" type="port"> <ph:Attribute> <ph:AttributeField name="type" value="string"/> <ph:AttributeField name="name" value="type"/> <ph:AttributeField name="value" value="flange"/> </ph:Attribute> </ph:Port> </ph:Element> <ph:Element id="2" type="Spring"> <ph:Attribute> <ph:AttributeField name="type" value="int"/> <ph:AttributeField name="name" …

Software Development xml
Member Avatar for michele_muc
0
235

The End.