43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for joshl_1995

Hello Daniweb Community, I was wondering if there is a way to replace words from a listbox. So at the moment I've got a listbox with a couple of strings to be replaced in the textbox, however single line listbox items work but when I add a multi-lined item eg. …

Software Development vb.net
Member Avatar for joshl_1995
0
355
Member Avatar for Simon180

Am trying to read a URL address something like http://www.myaddress.com/id=563?name=mark from the Embedded Web Browser then I want to be able to get the url parameters of a link with in my delphi application, so am able to do a messagve box like: ShowMessage(id); // this would show 563 ShowMessage(name); …

Software Development delphi pascal web-browser
Member Avatar for pritaeas
0
255
Member Avatar for hefaz

how to solve constant too large error in TASM?

Software Development assembly
Member Avatar for hefaz
0
5K
Member Avatar for Violet_82

Hi all, I've run into a strange issue. Basically, I created my new application called input-outputTest, created my model class using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace input_outputTest.Models { public class EmployerDetails { private string Name { get; set; } private string Surname{ get; set; } private int …

Software Development
Member Avatar for Violet_82
0
726
Member Avatar for westsiderailway

Hi Everyone. this is the last part of my function Case "December" If cbMonthly.SelectedItem = "December" Then Dim DecStart As String = "-12-01" Dim DecFin As String = "-01-01" M12S = String.Concat(Year, DecStart) M12F = String.Concat(Year, DecFin) End If End Select Dim Places As New List(Of String) Places.Add(M12S) Places.Add(M12F) Return …

Software Development vb.net
Member Avatar for westsiderailway
0
305
Member Avatar for Slavi

Hey guys, I am making a few gui programs and I was wondering on this code .. class PaintChart(wx.Panel): def __init__(self, parent, data): self.data = data.split() wx.Panel.__init__(self, parent) self.SetBackgroundColour('BLACK') self.Bind(wx.EVT_PAINT, self.drawChart) def drawChart(self, e): dc = wx.PaintDC(self) dc.SetDeviceOrigin(30, 240) dc.SetAxisOrientation(True, True) dc.SetPen(wx.Pen('RED')) dc.DrawRectangle(1, 1, 300, 200) Here I set the …

Software Development gui python
Member Avatar for Slavi
0
417
Member Avatar for Clearner123

I found the following logic for binary search from the standard book i feel it fails in some /* binsearch: find x in v[0] <= v[1] <= ... <= v[n-1] */ int binsearch(int x, int v[], int n) { int low, high, mid; low = 0; high = n - …

Software Development c seo
Member Avatar for Clearner123
0
200
Member Avatar for Afghan2

when i click on a menu i should get a report for data but i just see the old report help???

Software Development visual-basic
Member Avatar for Afghan2
1
346
Member Avatar for hefaz

Help me, What is @override in Jave? i can't understand a bit of the code in jave, when i am reading an android game source code. Thanks

Software Development android android-development java
Member Avatar for hefaz
0
132
Member Avatar for PM312

I am trying to update Varbinary(Max) column data with Null value. But unable to do so. Error "**Implicit conversion from data type varchar to varbinary(max) is not allowed. Use the CONVERT function to run this query.**" my code Private Sub ButRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButRemove.Click …

Software Development pdf vb.net
Member Avatar for PM312
0
2K
Member Avatar for liyanaddsce

Hello!!! I am a beginner to C++ and linked list and searching algorithm really made me confused. There are 26 errors (which caused by pointer ofc). Can anyone give me idea how to fix these errors??? #include<string> #include<cstdlib> #include<iostream> #include<malloc.h> #include<fstream> #include<time.h> #include<conio.h> using namespace std; #define SIZE 10 class …

Software Development algorithm c++ linked-list session
Member Avatar for Moschops
0
274
Member Avatar for arup_1

javac Cannot find my Example.java file after saving it in c:\program..\java..\bin\!! i am using win 7 (64 bit). Following points are so confusing.. 1. **Even i cannot** see the file in that directory form window!! 2. If i want to copy it 2nd time, windows ask me to **"overwrit"**. (Means: …

Software Development file-system java
Member Avatar for stultuske
0
252
Member Avatar for Navee30

Hello, I have a GUI with a timer... but when I put too many lines of code inside the timer method, the GUI lags. private void timer_tick(object sender, EventArgs e) { ... } How could I resolve this problem? I know there are 3 types of timer... Do I use …

Software Development gui
Member Avatar for DaveAmour
0
196
Member Avatar for sciwizeh

Hello All, I'm trying to write a simple html editor that will highlight tags, and it does, but if the user types the caret jumps to the very end of the document, how can I stop this from happening? here's my code: [CODE=java] import javax.swing.*; /** * Main frame for …

Software Development java java-swing
Member Avatar for reguieg
0
350
Member Avatar for SpeakerKeyboard

Can anyone give me advice on how to attack this problem? I have files in a directory that are named in a convention dayMonthrandomstuff. I need to sort these files into folders based on month then date. So example, "15e23dr" would go into the "May" folder since "e" is the …

Software Development file-system vb.net
Member Avatar for SpeakerKeyboard
0
978
Member Avatar for intes2010

I am having problems with my program that is unable to fill-up and submit a website form. It only browses the website and stops there. I used Live Http Headers to retrieve the needed data for my program to auto fill-up the website. Here is my code: Dim postData As …

Software Development vb.net
Member Avatar for fabricedev
0
708
Member Avatar for matoo

I am trying to write program in vb6.0, in which i am using ms access database. i want to search in a table called "customer". the Field is called "Name". in the feild i have saved full name e.g Asmat Ullah Khan, Asmat Khan, Asmat Ullah. now what i want …

Software Development listview seo visual-basic
Member Avatar for matoo
1
349
Member Avatar for SCass2010

Hi everyone, I seem to be having a bit of a weird problem with sockaddr / sockaddr_in structs... I want to manually assign the value of an IP address to the sockaddr_in struct, and I've been using memcpy memcpy (&(mIp4sa->sin_addr.s_addr), "127.0.0.1", INET_ADDRSTRLEN); But when I go to print out the …

Software Development c++
Member Avatar for Sameer_4
0
2K
Member Avatar for _::suhanna::_

hi... im working with vb.net can u guys help me... can u guys give me some sample code how to add item and display item using combo box? please help me... thanks...

Software Development vb.net
Member Avatar for pratikb
0
20K
Member Avatar for Baalla

hello my problem this time is i have an multidimensional vector and the example of adj vector is showen in the attached picture and i wanna know the size of each one i mean in i=0 the size is 2 i declare a new vector degree to put in it …

Software Development c++
Member Avatar for Baalla
0
205
Member Avatar for Baalla

i'm having a problem in reading a file i tried my code in code blocks/eclipse c++/netbeans c++ and even visual studio c++ 2010 each time it exits with (-1) while i'm puting the file in the right place for reading i don't know where is the mistake can you please …

Software Development c++ file-system visual-studio
Member Avatar for Baalla
0
259
Member Avatar for venk7

In a python script I gave a call in this way: do.call([cfg.tool_cmd("cuffdiff"), "-p", str(cfg.project["analysis"]["threads"]), "-b", str(cfg.project["genome"]["fasta"]), "-u", cfg.project["experiment"]["merged"], "-L", "%s,%s" % (str(cfg.project["phenotype"][0])[2:8],str(cfg.project["phenotype"][1])[2:7]), "-o", output_folder] + [cfg.project["samples"][0]["files"]["bam"] + ' ' + cfg.project["samples"][1]["files"]["bam"]], cfg.project["analysis"]["log_file"]) This gives the command: Command '['/usr/local/bin/cuffdiff', '-p', '5', '-b', '/scratchsan/venkatesh/TuxedoProject/data/genome/ce10.fa', '-u', 'pipeline/merging/merged.gtf', '-L', 'embryo,larva', '-o', 'pipeline/degenes', 'pipeline/SAMN00990702-1/mappings/accepted_hits.bam pipeline/SAMN00990702-2/mappings/accepted_hits.bam']' …

Software Development python
Member Avatar for venk7
0
311
Member Avatar for Brandon_7

I had a test in AP Computer Science and I got the following question incorrect: Given the following class A public Person class is written, and the class has two private String instance variables to store the person's name: one named firstName and one named lastName. The class has two …

Software Development java
Member Avatar for Markland
0
2K
Member Avatar for Mr.M

Hi Dw I'm having a problem here, I created this project and because of Access denial I was prompted to use the manifest to make my app run accordingly, but changing the manifest value from "asInvoker" to "requireAdministrator" helped solving that problem up to a point where I had to …

Software Development vb.net
Member Avatar for Mr.M
0
328
Member Avatar for wilsonchama

Hi Guys, I have a Microsoft Access database in which my VB.Net 2008 application is posting the data. It is an inventory management application. I have managed to accomplish a lot of things with your help. And Now, I have reached a point where all my ideas have been exhausted, …

Software Development microsoft-access vb.net
Member Avatar for wilsonchama
0
3K
Member Avatar for vegaseat

I am sitting in front of a brandnew 27 inch Apple Macintosh running on OS X Yosemite, trying to compile a timed insertion sort from my Windows days. The Xcode app is a sweatheart, but there are some Windows things in the code that cause a problem. This line ... …

Software Development c microsoft os-x
Member Avatar for vegaseat
0
275
Member Avatar for centenond

So im doing a MMO, wich will have a lot of entities, monsters, players etc .. So i want opinions from you experts, wich a aproch should i go for... create the entity when its near the view port so that the game dnt struggle updating each entity or will …

Software Development java
Member Avatar for centenond
0
148
Member Avatar for weekendrockstar

Hello, I am writing a small 'program' using MS Visual Studio 2013. I would like to read in a few tags from the ID3 headers of media for each file to be written to an XML file. I've used taglib and a few other ID3 libraries but I cannot use …

Software Development vb.net visual-studio
Member Avatar for weekendrockstar
0
501
Member Avatar for Simon180

Am having a awful time trying to get this to work I googled it and even asked few friends about it, but it seams it more difficult than I expected it to be. basicly what am trying to do is capture if or when a user clicks on a button …

Software Development gui html-css pascal
Member Avatar for Simon180
0
2K
Member Avatar for nimz143

Hi I would like to ask. I have one dropdown list control. What are the different between this 3 in dropdown list. 1. Dropdownlist.SelectedValue 2. Dropdownlist.SelectedIndex 3. Dropdownlist.SelectedItem Thank you :)

Software Development html-css vb.net
Member Avatar for nimz143
0
710
Member Avatar for wilsonchama

Hi guys, My application Cannot insert Record into Table more than once. There are 3 textboxes on the form in which the user enters data to be inserted in the table. And a command button holding the code to perform the action. What is happening is, when data is entered …

Software Development open-source vb.net
Member Avatar for wilsonchama
0
191
Member Avatar for lewashby

#!/usr/bin/env python3 tm = open('./timemachine.txt', 'r') Dict = {} for line in tm: line = line.strip() line = line.translate('!"#$%&'()*+-./:;<=>?@[\\]^_`{|}~') line = line.lower() List = line.split(' ') for word in List: if word in Dict: count = Dict[word] count += 1 Dict[word] = count else: Dict[word] = 1 for word, count …

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for Kanoisa

Recently i have come up with the scenario where i need a single class to handle a few different interfaces and i have found a few different approaches to take. I was wondering if anyone has encountered the same situation and can give me any suggestion(s) as to if there …

Software Development c++
Member Avatar for Kanoisa
0
288
Member Avatar for CodeWarrior14

I am writing a program that reads a fiel and displays the contents in hex values. The problem is that there are some very strange characters in my output. Code: #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_BUFFER_LEN 512 typedef enum cbool { ctrue = 1, cfalse = 0 } …

Software Development c
Member Avatar for Dervish1
0
3K
Member Avatar for Curious Gorge

I've essentially copied a small project from another computer to this one. This one is running windows 8.1. What happens when I try to compile even a hello world cpp project I get this error: 'Fatal error: "iostream" No such file or directry' . I know this means the compiler …

Software Development c++
Member Avatar for Curious Gorge
0
264
Member Avatar for Đăng

I tried writing an clock applicantion but it did not work, the number is static, how to make it change. And how to remove minimal, maximal button and icon of windows, for the icon I tried: wcex.hIcon = NULL; wcex.hIconSm = NULL; But it showed a default icon Thanks for …

Software Development c c# c++
0
100
Member Avatar for scomx

i have a tabbed web browser so every time i close a tab the tab is closed but the process is still running for example one of my tabs there is a youtube page opened so if i close that tab the video is still runing you even can hear …

Software Development vb.net video web-browser
Member Avatar for scomx
0
1K
Member Avatar for paul1145

I would like to assign a CTRL Q shortcut to the Quit submenuitem (filesubitem1) but can't find the right syntax. Any assistance will be greatly appreciated. Thank you. If user_wants_file_menu = True Then Dim fileItem As ToolStripMenuItem = New ToolStripMenuItem("File") Dim filesubitem1 As ToolStripMenuItem = New ToolStripMenuItem("Quit") filesubitem1.ShowShortcutKeys = True …

Software Development vb.net visual-basic
Member Avatar for djjeavons
0
550
Member Avatar for Tcll

I'm stuck dealing with strings which is a pain when porting code... I'm doing stuff such as porting this: enum { VAL_NULL = 0, VAL_INT, VAL_FLOAT, VAL_STR, VAL_ANY, VAL_CODE, VAL_MACRO, VAL_IDENT }; to this: for i,v in enumerate([ 'VAL_NULL','VAL_INT','VAL_FLOAT','VAL_STR','VAL_ANY','VAL_CODE','VAL_MACRO','VAL_IDENT' ]): globals()[v]=i anyone know of a method I could use to …

Software Development python
Member Avatar for Tcll
0
269
Member Avatar for Aeonix

When you need to create a login page using PHP and MySQL, the safety of this login page relies on - Your PHP scripting abilities - How well and securely has PHP been programmed in C++. - How well C++ compiler of interpreter of PHP has been programmed. - How …

Member Avatar for ryantroop
1
259
Member Avatar for Aeonix

I tried to build really basic associative array but it turned out I don't have enough knowledge, so I tried something less, and less, and less, because I kept failing at it. Finally I just tried to set variables and print them in the command-line. But I can't even do …

Member Avatar for Aeonix
0
23K
Member Avatar for collin_ola

Hey Guys, I'm pretty new to containers, but need to use them for a project I'm doing. I've figured out that I can use a map iterator to iterate through values stored in the map displaying the key, followed by the second value. In my case, the key is an`int` …

Software Development c++
Member Avatar for collin_ola
0
563
Member Avatar for feyisa
Member Avatar for deceptikon
0
121
Member Avatar for scomx

I have a tabbed web browser its working fine , but i have a little problem and that is if i open a new tab is ok but if i go back to previous tab the urltextbox it have the url in the tab last opened tab. so i am …

Software Development vb.net web-browser
Member Avatar for scomx
0
690
Member Avatar for Amiet_1

I have DatagridView on form. My database has three fields. - userId (bigint) - userName (varchar) - userDob (date) Now, on Form I have comboBox, which lists Months (Jan, Feb, March and so on...). I want my program to work like this. If I select any month on ComboBox, birthdays …

Software Development vb.net
Member Avatar for djjeavons
0
528
Member Avatar for altjen

Im designing a software for fun. but I stuck in somewhere in listboxes. what I'm trying to do is like this: you write something in in textbox1. after press a button it seach if a word like that is on listbox 1. if that is true than it send a …

Software Development vb.net
Member Avatar for Reverend Jim
0
136
Member Avatar for Nathan1

I'm sure there is a really simple solution for this matter, but I have tried all I know without success. I'm trying to modify this working SQL string to yield only the Top 25 results, not all results. "SELECT * FROM" & "data.CSV" & "ORDER BY " & "Elapsed" & …

Software Development sql visual-basic
Member Avatar for Nathan1
0
184
Member Avatar for Levellous

Hellooo, Is there a way to compare a datagram packet's IP address with the host's IP address? Because i have a client/server (client is acting as a client & server) class that uses multisocket to broadcast to every host it'll send the datagram to itself as well, which i don't …

Software Development client-server java
Member Avatar for Levellous
0
259
Member Avatar for Rafiii

Hello everyone, If i need my program to create as much vectors as needed based on the user first input , assuming each vectors will hold an int value like a combinations of numbers, so latter those vectors will be compared for higher value. EX: prompt the user to enter …

Software Development c++
Member Avatar for Rafiii
0
620
Member Avatar for ddanbe

Hi all, Want to write some data from C# to Excel. Code enough I thought, here at DANI's and on the web. So I managed to come up with this : [CODE=csharp]private void DoExcel(string Fname) { Microsoft.Office.Interop.Excel.ApplicationClass excel = null; Microsoft.Office.Interop.Excel.Workbook wb = null; Microsoft.Office.Interop.Excel.Worksheet ws = null; Microsoft.Office.Interop.Excel.Range rng …

Software Development c# microsoft-office
Member Avatar for HaiLuong
0
4K

The End.