132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for StefanTUE

Hey all, I just started programming C++, (only formiliar with matlab/mathematica for image processing) . I like to find the min of my grayscale image. My image is a part of frame token from a webcam. But I don't even know what type of object my image is. Is it …

Software Development c++ image webcam
Member Avatar for StefanTUE
1
220
Member Avatar for bleedi

Hi, I'm studying C++ at the university and came across a problem in my exercises. Basically I'm trying to retrieve an integer from an object via its getter method. The object is stored in a vector. Here's the main.cpp part: [CODE] vector<Client> vektori; ... vektori.push_back(Client(account, firstName, lastName, balance)); ... vector<Client>::const_iterator …

Software Development c++
Member Avatar for bleedi
1
184
Member Avatar for crapgarden

[COLOR="Red"]4.6 - Insert() vector argument specs. Iter or not?[/COLOR] This allows me to refer to the second spot in a vector named 'inventory': A) [CODE] vector<string>::iterator myIterator; cout << "\nYou found a compass"; inventory.insert((inventory.begin() + 1), "compass"); cout << "\nYour items:\n"; for(iter = inventory.begin(); iter != inventory.end(); ++iter) cout << …

Software Development c++ programming-construct
Member Avatar for mike_2000_17
1
147
Member Avatar for vkuruvi
Member Avatar for ~s.o.s~
1
202
Member Avatar for Thisbetom

Hello!, I'd like to start out with a big THANK YOU!!! I started a new job at a small market and am developing some software for their POS. I have been stuck in the Google loop researching workarounds many atime and this site has always come through in the clutch …

Member Avatar for vineet4008
1
154
Member Avatar for Zinderin

I'm learning C# on my own (I know C, Pascal, and about 8 proprietary languages) ... I'm stuck with VS2005 Pro (no budget) so I can't upgrade and I can't use Linq. I'm using Access just for simplicity at this point. What I'm trying to do, is what I've done …

Member Avatar for nick.crane
1
97
Member Avatar for scott_6169

I am trying to get something to print to my screen aftre i type in the source code. Eveytime i compile and run it it just flashes a dos screen real fast and goes away. How can I see what it is printing to the screen. If anyone can help …

Software Development c++
Member Avatar for Ghazanfar Ali
1
205
Member Avatar for toomuchtodo

Hello all. I am very new to VB.Net and am currently learning the basics and mechanics of how the software functions, my past was mainly with Matlab, so naming variables and such is quite different to me now. My question is this: How can I read data from a .csv …

Software Development vb.net
Member Avatar for G_Waddell
1
373
Member Avatar for emclondon

Hello guys, im stuck working on a simulation program. I am working on a program which mimics a door's security key panel. In case if you have been wondering what a door's security key panel is.. its a keypad on the door which unlocks the door upon entering a proper …

Software Development
Member Avatar for nick.crane
1
168
Member Avatar for hassan_wah

We are converting a Visual Basic 6.0 application to vb.net 2008 and are having an issue, while executing the code under “form activated event”. There is a difference in behavior between form.activate in Visual Basic 6.0 and form.activated in vb.net. In Visual Basic 6.0, the Activate event was raised only …

Software Development vb.net visual-basic
Member Avatar for hassan_wah
1
437
Member Avatar for khan17

hello all, pls be patience to read this, pls im doing a project in c#. to automate the downloading process.. my task is 1.Login to the website 2.Click the button on the next page(2nd page) 3.Click link and then a button on the next page(3rd page) 4.then the File download …

Software Development web-browser web-server
Member Avatar for Julodnik
1
144
Member Avatar for Codname47

[CODE] myLinkedList ( ) { //TESTED head = NULL; last = NULL; cout<<"Linked List is created with default constructor\n"; } myLinkedList ( myLinkedList &arr) { //TESTED if (arr.head == NULL){head=NULL; last=NULL;} else{ head = NULL; last = NULL; temp2 = new node; temp2 = arr.head; while(temp2!=NULL){ insertLast(temp2->item); temp2 = temp2->next; …

Software Development c++ linked-list
Member Avatar for dusktreader
1
107
Member Avatar for onlinessp

i am not able to write anti virus as filter driver can any one help me to write it in c#.

Software Development c#
Member Avatar for onlinessp
1
93
Member Avatar for Prashant20

Hi..!! i have created a Customer Details form in C# asking detail about customer...One of its field asks for customer email.. Please tell me how to validate a email id..Thnx..!!

Software Development c# email
Member Avatar for Abhijeet Thorat
1
1K
Member Avatar for onlinessp

hi, i am using cacls command to grant full permission to the user.But it's not working i am posting here source code please help me to identify the error.I also try this code by using Administrator account but it's not changing the file permission. code is [CODE] ProcessStartInfo psiOpt = …

Software Development
Member Avatar for onlinessp
1
548
Member Avatar for ChaseRLewis

[CODE]#include <iostream> using namespace std; class Player {protected: int health; int mana; public: Player :: Player() { health = 0; mana = 0; } Player :: Player(int Health, int Mana) { health = Health; mana = Mana; } int GetHealth() { return health; } int GetMana() { return mana; } …

Software Development c++
Member Avatar for dusktreader
1
163
Member Avatar for Member 785485

I'm using dev-c++ 4.9.9.2 version and allegro 4.4.0.1 version. I created a console project and done what DTV said in [url]http://www.daniweb.com/forums/thread248782.html[/url]. But i cant found liballeg.a so i add liballeg.dll.a. Then i try some example from [url]http://www.gillius.org/allegtut/index.htm[/url] but there is problem of alleg_init undeclared error raised. I had try other …

Software Development c++
Member Avatar for Excizted
1
145
Member Avatar for Ketsuekiame

EDIT: Deleted the original question. After reading, I realised that I would have to paste so much additional code that it would take someone a couple of days just to understand what was happening in my own code that it may detract from the issue at hand. Problem: When I …

Software Development
Member Avatar for Ketsuekiame
1
180
Member Avatar for Tech B

I am trying to access some functions with in a dll I downloaded. I know I need to use ctypes, but all the examples and tutorials use windll.kernel or windll.user32 respectively. How would I go about calling a function with in xyz.dll? EDIT: Never mind, with a bit more digging …

Software Development python
Member Avatar for Member 785599
1
197
Member Avatar for Member 784183

Hi all, I am trying to match an image of size 64 X 64 inside a 512 X 512 image. I have successfully coded the spatial normalized cross correlation (NCC) but it is taking too much time (8 sec.) I want to perform the NCC in frequency domain. I know …

Software Development c++
Member Avatar for Member 784183
1
227
Member Avatar for FlamingClaw

The arguments are passed by value and by reference

Software Development pascal
Member Avatar for mahmoud85
1
198
Member Avatar for newstar_water

Hello, I need to know how the get the integer value of a byte and vice versa. I want to get the integer value from a byte read from a binary file. I also want to convert the integer value back into a byte value for write. Below I have …

Software Development c++ ios
Member Avatar for dusktreader
1
4K
Member Avatar for kshw

Hi, I'm trying to remove non-stop words from a text file using regular expresions but it is not working. I used something like ('^[a-z]?or') in order to avoid removing (or) from the mibble of words e.g. morning. [code] Temp = [] Original_File = open('out.txt', 'r') Original_File_Content = Original_File.read() Original_File.close() Temp.append("".join(Original_File_Content)) …

Software Development python
Member Avatar for woooee
1
211
Member Avatar for cableguy31

I'm writing a script that will search files that contain certain keywords, and then output the line to a text file. The problem I'm having is that the script is opening every type of file, including executables. The script seems to work fine, as in it doesn't crash when it …

Software Development python
Member Avatar for cableguy31
1
747
Member Avatar for TrustyTony

This is must read if you learned Java before Python: Python Is Not Java: [url]http://dirtsimple.org/2004/12/python-is-not-java.html[/url]

Software Development java python
Member Avatar for snippsat
1
654
Member Avatar for vegaseat

The wxPython GUI toolkit makes a very nice plotting component/widget available. You can select line or marker plotting, or a combination of both. All you have to supply is a list of x,y point tuples. Other features include zooming and printing.

Software Development gui python
Member Avatar for aernie
1
2K
Member Avatar for nbaztec

Due to various posts asking for syntax highlighting, I decided to give it a shot & come up with a Syntax Highlighter for multiple languages. Also as many posters want to Copy it to Word, I added a functionality to directly export the highlighted code to MS-Word. Both the highlighting …

Software Development c++
Member Avatar for nbaztec
1
144
Member Avatar for grii_19

write a general purpose function to convert any given year into its roman equivalent . the following table shows the roman equivalent of decimals number decimal roman 1 i 5 v 10 x 50 l 100 c 500 d 1000 m eg:- roman equivalen of 1988 = mdcccclxxxviii ---||-- ----||----- …

Software Development c
Member Avatar for leeyaviswanath
1
1K
Member Avatar for Tom Gunn

The forum is buzzing with questions about tokenizing a C++ string. This is a short function that does it and returns a vector of the tokens. As an option, the delimiter string can represent either a multichar delimiter or a collection of single char delimiters: [code] // multichar delimiter == …

Software Development c c# c++
Member Avatar for daviddoria
1
734
Member Avatar for chris evans

Hi, im working with the Java Regex class and so im parsing some text. each piece of text is in a separate line. here's a sample of the text: this is textHello world buzzinga! Makmende says hi Makmende has poked u. dnt try poking him back! young, forever young another …

Software Development java regex
Member Avatar for leverin4
1
145
Member Avatar for DaveTran

If two classes (Bar1 and Bar2) inherit from the same base class (Foo) [CODE] public abstract class Foo { public abstract void Spawn(Settings settings); } public class Bar1 : Foo { float a; int b; public override void Spawn(Bar1Settings settings) { if (settings == null) { settings = new Bar1Settings(); …

Software Development
Member Avatar for nick.crane
1
202
Member Avatar for greeran

hi i am having a problem integrating Lua into C++. I found a discussion about it here but it didn't help me. i have installed lua and i can see it in /usr/include and /usr/lib and /usr/bin i created the same code as the previous descussion [CODE] #include <lua.h> #include …

Software Development c++
Member Avatar for StuXYZ
1
1K
Member Avatar for Tahir007

Hi, I develop dynamic in-line assembler for python. Its very easy to use it from python and know you can optimize some routine in assembly language and use it directly from python. Its support both windows and Linux. If you are interest you can take look on web-page, [url]http://www.tahir007.com[/url] If …

Software Development assembly python
Member Avatar for Beat_Slayer
1
140
Member Avatar for stonerain

I am trying to use the CalcOpticalFlowBM function but I don't understand hot it works. I want to find a motion vector for every blocks but I don't understand that the CalcOpticalFlowBM yields velX and velY. I wrote below code . [CODE]/* Create an object that decodes the input video …

Software Development c++ open-source video
Member Avatar for bart.scotty
1
703
Member Avatar for blah32

I am calling: c = Counter() ...exactly as in the collections example code here: [url]http://docs.python.org/py3k/library/collections.html?highlight=collections#collections.Counter[/url] but it gives me this error: NameError: name 'Counter' is not defined Anyone know why? Note that I have 3.1.2 and yes I include "import collections". Thanks

Software Development python
Member Avatar for vegaseat
1
128
Member Avatar for hust921

Hallo everyone at DaniWeb :) A made a mail script, that i need to somehow break, to close the connection to the gmail server securely. Can someone give me a hint, what to do for that. [CODE] import smtplib import urllib2 import time def sendIP(): # fetch pub ip pub_ip …

Software Development python
Member Avatar for hust921
1
99
Member Avatar for Fasola

First how do you use Dynamic and Static Memory Allocation? and why is supposed to be so popular in use?

Software Development c
Member Avatar for umair100
1
143
Member Avatar for TrustyTony

I used this pattern few times to answer a thread and thought to post it as snippet.

Software Development hard-drive python
Member Avatar for TrustyTony
1
2K
Member Avatar for lewashby

[CODE]def find_details(id2find): surfers_f = open("surfing_data.csv") for eash_line in surfers_f: s = {} (s["id"], s["country"], s["average"], s["board"], s["age"]) = eash_line.split(";") if id2find == int(s["id"]): surfers_f.close() return(s) return({}) lookup_id = int(input("Enter the id of the surfer: ")) surfer = find_details(lookup_id) if surfer: print("ID: " + surfer["id"]) print("Name: " + surfer["name"]) print("Country: " …

Software Development python
Member Avatar for TrustyTony
1
250
Member Avatar for onlinessp

Hi, i want to make a key-maker and i am not know how to make it can u help me to write it . OR by giving some source code hint..... Thanks on your kind deed

Software Development
Member Avatar for onlinessp
1
303
Member Avatar for onlinessp

i am developing an application but i am unable to change the text of label quickly i am using following code [CODE]for(int i=0;i<199;i++) label1.text=Convert.ToString(i); [/CODE]

Software Development
Member Avatar for pabloh007
1
220
Member Avatar for onlinessp

Hi, i am writing a program to show all files in a drive including directories but i am unable to correctly implement it.can u tell me about the source code using GUI thanks in advance.

Software Development gui
Member Avatar for tanor
1
111
Member Avatar for onlinessp

i am currently writing file name showing program i unable to understand that why it's not completely giving me the name of files in a drive exception occurs at the line no 64.if i comment the line no 64.then it will start looping between two or three files show the …

Software Development
Member Avatar for nick.crane
1
385
Member Avatar for Andreas5

Hello this is my first post here, i made this search function and i would like some feedback and or tips. (: [CODE] // Implement your own [search]strstr[/search] function. (Intermediate) #include "stdafx.h" #include <iostream> #include <string> using namespace std; class Search { private: int m_nTextL; int m_nSearchL; int m_nResult; bool …

Software Development c++ seo
Member Avatar for Andreas5
1
161
Member Avatar for nccsbim071

Hi, I have used an open source code from codeproject to read email from incoming mail server(POP Server). The code can be found at following location: [url]http://www.codeproject.com/KB/IP/Pop3MimeClient.aspx[/url] So far it works fine i can read emails. My objective of using this code was to retrieve emails from POP server and …

Software Development client-server email open-source
Member Avatar for kvprajapati
1
323
Member Avatar for kibr987

Hi, I am a c# learner and I have got a problem - I have not much clue, please help. I have a windows form with two text boxes and a button called 'save'. If I click the save button - It should connect to the sql server express then …

Software Development dataset open-source
Member Avatar for finito
1
79
Member Avatar for sravan953

Hey All, I have 'Py-mailer' here.... here's how it is so far: [code='python'] import smtplib import wx window=wx.App() class pymailer(wx.Frame): def __init__(self): wx.Frame.__init__(self,None,-1,"Py-mailer",size=(900,700)) self.panel=wx.Panel(self,-1) menubar=wx.MenuBar() filem=wx.Menu() filem.Append(201,"Quit") self.Bind(wx.EVT_MENU,self.Quit,id=201) viewm=wx.Menu() viewm.Append(202,"About") self.Bind(wx.EVT_MENU,self.About,id=202) menubar.Append(filem,"File") menubar.Append(viewm,"Help") self.SetMenuBar(menubar) wx.StaticText(self.panel, -1, "Login ID:", pos=(10,10)) wx.StaticText(self.panel, -1, "Password:", pos=(10,40)) self.username=wx.TextCtrl(self.panel,101,"Login ID",pos=(100,10)) self.password=wx.TextCtrl(self.panel,102,"Password",style=(wx.TE_PASSWORD),pos=(100,40)) wx.StaticText(self.panel, -1, "@gmail.com", pos=(220,10)) …

Software Development python
Member Avatar for baki100
1
1K
Member Avatar for Kingcoder210

I need to know how can I use app path? I have a added Shockwave Flash Object control there in my program. However I have added AxShockwaveFlash1(swfla1) there in my form. I have written code there in Form_Load event so that swfla1 will get flash file(.swf) to play. Form_Load event …

Software Development file-system flash vb.net
Member Avatar for meffe
1
263
Member Avatar for bebe11bebe

this is my code - i have three classes and i will post all since i have no idea what i'm doing apparently [CODE]public class OneTwoTest { public static void main(String[] args) { System.out.println("Welcome to One-Two Match!"); Game g = new Game(); g.play(); System.out.println("Thank you for playing."); } // end …

Software Development java
Member Avatar for haseena04
1
3K
Member Avatar for vegaseat

Starting with version 2.6 Python has introduced a new container called the named tuple. You can use it similar to a class based record structure, but it has the memory efficiency of a tuple.

Software Development python
1
2K

The End.