43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for powerdink

Hello, Please help. Below is my assignment and the code I've got so far. I'm still getting errors on overloading the member function on the printDay and prevDay. Design and implement a class dayType that implements the day of the week in a program. The class dayType should store the …

Software Development c++
Member Avatar for Brandon5122
0
6K
Member Avatar for piero.costa

Hi guys, I'm learning C and I still don't have some concepts very clear in my mind. I have to create a program that get the values from ARGV[] and puts into a vector: the program would work like that: ./program file1 file2 file3 My idea was to do something …

Software Development c
Member Avatar for Ancient Dragon
0
4K
Member Avatar for dirkleonschut

Hello People. I would like to ask you're assistance with a little problem I am having. When I execute this code: string sql2 = "INSERT INTO worlds (worlds_ID,worlds_active,worlds_name,worlds_x,worlds_y) VALUES ('', '1', 'Test', '250', '250');"; MySqlCommand cmd = new MySqlCommand(sql2, OpenCon()); addtolog("server", "World Created"); it does not make the new row …

Software Development mysql
Member Avatar for dirkleonschut
0
195
Member Avatar for tensity

Hello, I am trying to read text from a simple text file. The text file contains a list of emails and zipcodes, formated as follows: email@site.com;zipcode where zipcode is 5 integers. I am having an issue with the getline function, my error is "no instance of overloaded function". Could someone …

Software Development c++
Member Avatar for tensity
0
217
Member Avatar for satnav_8

I'm trying to write a script that will search a page for mp3 files, and download the first one. All is fine, but when I'm finding the links the first two are not mp3 files. At the moment I'm doing: for link in page.findAll('a')[:3]: f.write(link.get('href')) This finds the first 3 …

Software Development python
Member Avatar for satnav_8
0
136
Member Avatar for Twist43

Hi I have always been a windows user but a few months ago switch to Ubuntu Linux. I have started learning Python and want to find out from experienced developers what the best way is to setup a development environment on a Ubuntu machine. I am running Ubuntu 12.04 which …

Software Development machine-learning python ubuntu
Member Avatar for Twist43
0
186
Member Avatar for Alochai

IDC_FUNCTIONALITY MENU BEGIN POPUP "&File" BEGIN MENUITEM "E&xit", IDM_EXIT END POPUP "&Help" BEGIN MENUITEM "&About ...", IDM_ABOUT END END This is an example of a part of the default Foo.rc file distributed with VisualC++ 2010(Express), this is how this section of code was shipped. I'm interested in knowing why Exit …

Software Development api c++
Member Avatar for Alochai
0
138
Member Avatar for shanki himanshu

struct node { int info; node *left,*right; }; int main() { struct node *root; root = (struct node*)malloc(sizeof(struct node)); root->info=NULL; root->left=NULL; root->right=NULL; if(root==NULL) printf("%d",root->info); return 0; } why it doesnt print root->info?

Software Development c
Member Avatar for I_m_rude
-1
158
Member Avatar for triumphost

Hey guys, I have two structs and I have two functions in two DLL's. DLL-A is attached to a process and collects data. When the data is requested by DLLB which is attached to a second process, DLLA maps the data for B to read. The problem is, I cannot …

Software Development c++
Member Avatar for triumphost
0
957
Member Avatar for Mike Askew

I am currently running a live 'in-memory' XSLT transformation using the following code XmlDocument XmlDoc = new XmlDocument(); XmlDoc.LoadXml(DS.GetXml()); XslCompiledTransform XsltTranformation = new XslCompiledTransform(); XsltTranformation.Load(@"C:\Users\maskew\Desktop\XSLTMapping.xsl"); Stream XmlStream = new MemoryStream(); XmlDoc.Save(XmlStream); //Stream is still blank after this line XmlReader XmlRdr = XmlReader.Create(XmlStream); MemoryStream stm = new MemoryStream(); XsltTranformation.Transform(XmlRdr, null, stm); …

Software Development file-stream
Member Avatar for Mike Askew
0
585
Member Avatar for coroll

Hi, I want to get the object of the currently open JFrame? I found this Frame[] frames = Frame.getFrames(); Does this provide the open frames? If so how to get the frame that i need. Plz Help..

Software Development java
Member Avatar for stultuske
0
121
Member Avatar for M.Waqas Aslam

hello ! i want to disable my usb port using c# or vb.net ,is it possible to do so using .net ? if yes then any idea how i can do this ? Regards

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
96
Member Avatar for titusnainggolan

I have the code below #include <stdio.h> int main(){ float n; scanf("%f",&n); printf("%f",n); return 0; } Then, I run the code input: 45321.56 is not same with output:45321.558594 I want to get output which same as the input. How to solve this problem? Thank you

Software Development c
Member Avatar for WaltP
0
376
Member Avatar for Vish0203

How can i give an icon to the exe file produced after executing my code?? is it possible??

Software Development c
Member Avatar for Vish0203
0
113
Member Avatar for Sneaky Pete

Hello, I've got a question about some mathematics in VB.net. I really hope someone can help me out! On a form i've got two textboxes. Users can give input (numbers) and the numbers are like this: 0.000 or 250.000 or 36547.256, etc. The numbers are converted to a string for …

Software Development mathematics vb.net
Member Avatar for Sneaky Pete
0
238
Member Avatar for K.os

Hello! first of all i'm a **newbie **and don't know much about visual basics. I'm using **Visual Basics 2008** and i'm having a problem. It is that i don't know how to generate a search through my 'cmdsearch' i browse on internet but got nothing that approach to my expectations. …

Software Development vb.net
Member Avatar for jemz
0
111
Member Avatar for glao

Hello , i am trying to understand how periodic boundary condition works.Of course, i understand what it is and how it works,just i am trying to implement it in c++ and i have some problems.( for now i want to make it work in 1d but i want it for …

Software Development c++
Member Avatar for glao
0
3K
Member Avatar for sandorlev

Hey guys! I've started writing a 2d platformer game some days ago, and I'm really enthusiastic about it, but I already failed to live up to my own expectations: I just cannot possibly think of a way I could make my character jump. I used the MVC desing is why, …

Software Development gaming python
Member Avatar for 3e0jUn
1
342
Member Avatar for triumphost

Hey all. I'm having a problem with a DLL being loaded. In codeblocks, if I don't export Main + ALL the functions in my DLL, they cannot be used by an external program! Yet in visual studio, I exported nothing and external programs are able to load the DLL. Example: …

Software Development c++ visual-studio
Member Avatar for triumphost
0
527
Member Avatar for deepthought

Hi Guys, I have managed to connect to a laser sensor and get data back from the unit into python however i think i need to decode this data. Below is what i have sent and get back. Console Result:- UDP target IP: 192.168.60.3 UDP target port: 9008 message: FF …

Software Development python
Member Avatar for deepthought
0
134
Member Avatar for aabbccbryanmark

print "enter a number: "; $in = <>; chomp $in; print &prime($in); print "\n"; sub prime{ for($i=2;$i<($_[0]/2+1);$i++){ if($_[0]%$i ==0){return "not prime\n"} } return "prime\n"; } is this code for c++ language?..

Software Development c++
Member Avatar for WaltP
0
301
Member Avatar for danielgr

I'm trying to figure out how to use a class. I have created a class: Public Class bicluster Public Property Vec As String Public Property left As String Public Property right As String Public Property distance As Double Public Property id As String Public Sub New(ByVal Vec As String, Optional …

Software Development vb.net
Member Avatar for danielgr
0
133
Member Avatar for brad.ward.33

In this assignment, I am having to insert user information to tables that we have created and I am having this error that keeps on telling me " Code No: 80040e14 Code Message: IDispatch error #3092 Error Source: Microsoft OLE DB Provider for SQL Server Error Description: The name 'Br' …

Software Development c++ open-source sql
Member Avatar for brad.ward.33
0
374
Member Avatar for zeroflee09

## Sub-Heading Here ## > im working with time in and time out app which compute all of the hours that you've been working. > and i got this error.! i dont know how to fix these. plss help me im a beginner. > > error: variable th1 might not …

Software Development java
Member Avatar for zeroflee09
0
307
Member Avatar for Zeref

Hi guys. I'm trying to access some User interface files (.glade) which are in a subdirectory. from gi.repository import Gtk import os path=os.getcwd+'/ui/main.glade' def hurr(): builder=Gtk.Builder() builder.add_from_file(path) # get UI file window=builder.get_object('winlet') window.show() hurr() Gtk.main() This works if i use only 1 glade file, but i have multiple .glade files …

Software Development python user-interface
Member Avatar for solivier
0
159
Member Avatar for triumphost

How can I iterate a buffer with a stride? For example, I saved the pointer to a vertex buffer for later use. I've got the stride, the pointer, and triangle count for vertices. I want to iterate my pointer using this info to get the vertices. I'm doing it wrong …

Software Development c++ opengl
Member Avatar for triumphost
0
312
Member Avatar for Pyler

#include <iostream> #include <string> using namespace std; double distance(double x[],double y[]){ return sqrt((y[0]-x[0])*(y[0]-x[0])+(y[1]-x[1])*(y[1]-x[1])); } int main(){ double d; double x[]={1,2}; double y[]={4,3}; cout<<distance(x[2],y[2])<<endl; //cout<<d<<endl; cin.get(); return 0;} why wont it work I also tried d=distance(x[],y[]); cout<<d<<endl; but it wont work either

Software Development c++
Member Avatar for NathanOliver
0
84
Member Avatar for Vish0203

Is there any way to create an installer using C programming..? I want embed all the files of a software created by me in an exe file, which will extract all the things to a desired folder or drive. I heard that we can make batch file(package).. but how to …

Software Development c
Member Avatar for Vish0203
0
253
Member Avatar for AquaNut

Hi All, Wondering if anyone can point me in the right direction.. I have looked at various snippets but nothing seems to be what I need. I have a tab delimited text file in the form of: Title: Ms Forename: Fred Middle Name Initials: Surname: Bloggs Employment Type: Permanent Employee …

Software Development vb.net vbscript
Member Avatar for razree
0
2K
Member Avatar for Mobyguy77

Hello! Being my first post on Daniweb 'n' all, I'd like to apologies if this is in the incorrect section. This isn't why I'm here, though. I am a moderator on a fairly huge forum and thus we get roughly over 1500 reports for rule-breaking posts per day across all …

Software Development gui vb.net
Member Avatar for G_Waddell
0
123
Member Avatar for Formby

I've had this problem many, many times. And it's always turned out to be a small typo or "" around an integer, but I just cannot find what's wrong with my SQL Statement this time! [CODE]SELECT Card_ID FROM Payment WHERE Customer_ID = 12 AND Card_Number = 1231231231231231[/CODE] The table and …

Software Development sql vb.net
Member Avatar for kvprajapati
0
1K
Member Avatar for HibaPro

Private Sub CalculateDeductionPer() Dim FixSumPer As Double Dim i As Integer If DataGridView1.Rows(i).Cells(9).Value Is Nothing = True Then For i = 0 To Me.DataGridView1.RowCount - 1 FixSumPer += DataGridView1.Rows(i).Cells(9).Value Next i = i + 1 End If Deduction.Text = FixSumPer End Sub this is my code to sum some cols …

Software Development vb.net
Member Avatar for Gé48
0
66
Member Avatar for jumboora

Hi, I want to copy all the video files from one directory (source folder) to another directory (destination folder) which i have already done. Code is given below. Now i want to put some condition. For Example, I want to read first the text file (videoID.txt)in which all the video …

Software Development video
Member Avatar for Mike Askew
0
190
Member Avatar for notconfirmed

Hello, I have a problem to this html code.I want to get only the data inside the href,but the data is dynamic. <a title="Click here to see docket information" href="/ccm/do/docket?county=65&amp;data=eedd78d10fd9da341e05b25b48b62013">652012CC000006CCXXXX</a> I am not really familiar in regex.I am using this code to extract the html inside the href. MatchCollection m1 …

Software Development c# html-amp regex
Member Avatar for Mike Askew
0
1K
Member Avatar for newbie26

hi.how can i filter dates from the database in crystal report syntax? i tried {tblname.datetimefield} >= format(text1,"yyyy-mm-dd") and (tblname.datetimefield} <= format(text2,"yyyy-mm-dd"). but this gives me error, "a date is required here". my database field is in datetime data type.with format 0000-00-00 i also tried Date({tblname.datetimefield} )>= format(text1,"yyyy-mm-dd") and Date({tblname.datetimefield} <= …

Software Development visual-basic
Member Avatar for newbie26
0
167
Member Avatar for Oneryavuz

i need to filter my table between 2 dates but it makes wrong filtering really i dont understand why. but it might be my wrong codes here is my codes... what should i do? Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim da As New …

Software Development sql vb.net
Member Avatar for Oneryavuz
0
162
Member Avatar for coolikedat99

I was trying to create a program that would require the correct password to be put in in order for it to display something. I was able to make a program that would require the right password to display a certain thing. But the problem is that it can only …

Software Development c++
Member Avatar for coolikedat99
0
166
Member Avatar for pato

Hey, I'm new to Python, as well as this message board, and I was wondering what some of the most useful and frequently-used commands are. I've so far only learned while, if, print, input # and words, and can make some basic programs only. I've previously had experience in TI83 …

Software Development python
Member Avatar for PythonHelper
0
1K
Member Avatar for hmagnum

while (HullShipA > 0 && HullShipB > 0 && HullShipC > 0) { // do whatever i wanna do } Console.Writeline("End Game"); So i'm kinda new to c# but here is the deal: In this simulation, ships attack eachother for damage and the way it is, as soon as 1 …

Software Development c c# c++
Member Avatar for hmagnum
0
116
Member Avatar for triumphost

What are the last 4 values for? (m[0], m[4], m[8], m[12]) (m[1], m[5], m[9], m[13]) (m[2], m[6], m[10], m[14]) (m[3], m[7], m[11], m[15]) I've looked everywhere and cannot figure out what m[3], m[7], m[11], m[16] are for (ModelView Matrix).. It says to ignore them but I can't just ignore them …

Software Development c++ opengl
Member Avatar for mike_2000_17
0
161
Member Avatar for Johns3

So I have successfully implemented a search feature into my tiny program but when I click the button to sort, it works fine but the images don't display. In the columns called "A" and "B", images are supposed to show up but they don't. http://i46.tinypic.com/2mx3og8.jpg . import java.awt.Color; import java.awt.Component; …

Software Development apple java java-swing
Member Avatar for Johns3
0
239
Member Avatar for opman234

Please I need help, I am currently working with vb.net and access database. But now I want to use mysql, because I want the database to be online, so that a remote user can still connect to the company software using internet since the user has the software on his …

Software Development vb.net
Member Avatar for G_Waddell
0
167
Member Avatar for george8

Hi everyone .... I have problem with printing the invoice as follows and I hope you can help .... I have a table selling wholesale (material constant), such as ::: PC - Laptops - Router .... Etc. When the arrival of a customer the invoice will be as : **Laptop …

Software Development vb.net
Member Avatar for george8
0
128
Member Avatar for sachintha81

In my C++ Win32 program I want to set the current Display Settings to "Extend" mode. I Googled and found out that SetDisplayConfig() is the way to go forward in Windows 7 (I'm on Windows 7) but now I am kind of stuck how to proceed as the MSDN explanation …

Software Development c++ display windows-vista-7-8
Member Avatar for sriv
0
2K
Member Avatar for Marcusflint

Hello, I just cant figure out why i get this output. When i run this program, i get the output as 11 11 11, how ? shouldn't it be 11 10 10 ?? Please explain... #include<stdio.h> #define MAX(x,y) (x)>(y)?(x):(y) int main() { int i=10,j=9,k=0; k=MAX(i++,++j); printf("%d %d %d",i,j,k); } Thanks!! …

Software Development c
Member Avatar for rithish
0
173
Member Avatar for RonKevin

okay so im kind of confused now. . . . . i didn't even have a code to show you cause I know its wrong..I've been absent 2 days on my Programming so its really hard to cope up...i tried researching for ifstream.h and ofstream.h....and so far ifstream.h is for …

Software Development c++
Member Avatar for RonKevin
0
570
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> struct student { char name[15]; long int regno; struct employee { char name1; int rollno; struct student s1 }s1; }s2; void main() { struct student s1={"rohinn",2345} prntf("%s",s2.s1.name); } error at line 12

Software Development c
Member Avatar for rithish
-1
162
Member Avatar for akkbkht

Hello everyone. I would like to know that I wan to make a destop application. I would like that when program executes, the output screen (form1) should cover all the screen, means its a full screen application. It should cover the start menu behind it. and also that should be …

Software Development display
Member Avatar for akkbkht
0
491
Member Avatar for nickslick

![Hi Daniweb forum, I've come across a problem in my panel_mousedown event. Now I initially have 3 pictureboxes Painted on panel1, and each picturebox Control is set to Visible = false; and only become visible again when using this code: private void panel1_MouseDown(object sender, MouseEventArgs e) { if (picturebox1.Bounds.Contains(e.Location) && …

Software Development
0
136
Member Avatar for cisumma

I am in the process of learning how I could use a JListDataListener to change JList elements at runtime: I am goggling this right now to collect examples: I would like to see some code on the subject if anyone has some examples -thanks Here is some code to create …

Software Development java java-swing
Member Avatar for NormR1
0
217

The End.