132,726 Archived Topics
Remove Filter ![]() | |
Hi, First of all... Yeah, I know that there WAS and still IS a lot of discussions and arguing about this particular topic (actually the main reason why I opened a new "Global Hook vb.net" topic is because I couldn't find any answers to my questions as a lot of … Software Development vb.net | |
I wrote a command pattern to my class Administrator, HR and Staff. Each of it has several MF but command only operate on single MF. Therefore, i got this design. I got the solution like this. CommandList composes Vector of command. [CODE] class GenericCommander; class ComamndList : public GenericCommander {}; … Software Development c++ | |
Okay. I'm in need of desperate help and really hope someone can help me type out the entire code for a simple basic java project. 1)adherence to java naming conventions 2)At least one static method other than main 3)providing int, double and string inputs 4)proper selection construct (switch-case or if-else) … Software Development java | |
![]() | Hey guys, I have already worked on a program which uses threads, but today I just wanted to work on threading, and only threading: [code=python] import threading class first_time(threading.Thread): def print_first_time(self): print("What is your name?") for x in range(1000): first_time().start() [/code] But, the problem is, nothing happens! Why is it … Software Development python |
Hi, I am having a web application, which can be accessed by different users based on their userid's and passwords. Now I want to prevent users from accessing the application from more than one system. In order to prevent this I have created a[B] table with three columns [/B]as : … Software Development asp.net session web-server | |
Hi, I'll try and explain my problem as simple as possible. I have written a module to perform a generalised operation (as shown below). [code] from math import sqrt from math import pow from math import log10 from Numeric import * import numpy as np def Entropy(parameters, temperature): t=float(temperature/1000.0) return … Software Development python | |
m facing problem while running...computer graphic program on turbo c++ its giving me errors like "ntvdm has perfomed an illegal operation" or "16 bit ms dos subsystem error" Software Development c++ | |
Hi, I am trying to wrap a simple C++ class called math and export it to VB.NET using a DLL made in VC++ 2008. The implementation for the wrapper functions is as follows: [code=CPP] void * _stdcall CreateMath() { return new math; } void _stdcall DestroyMath( void *Math ) { … | |
Well basicly the problem is that i have to call the function push while the char that is asked for is not '0' then i have to send the modified "*top" and "*temp" into the function POP so that i can show the values and do the deleting of the … Software Development c++ | |
Hi, everybody. I've been studying C# (using Visual C# 2008 Express) for several months and I think I've got the basics down pretty well at this point, so now I want to create a moderately ambitious application to consolidate and grow my skills. Any suggestions for what kind of app … Software Development | |
Hello to everybody, My application has some problem yesterday but I solved them but today, again it has same problem. [code=c#] Excel.Worksheet sheet = (Excel.Worksheet)excelWorkbook.Worksheets.get_Item(bolge); Excel.Range ran = (Excel.Range)sheet.Rows[satir, Type.Missing]; ran.Select(); ran.Delete(Excel.XlDirection.xlUp); [/code] It gives an error message : Select method of range class failed. I did not solve this … Software Development | |
Hi, Need help to write the below mentioned program. Create an employee struct with following fields EMP_NAME EMP_ID DOJ (Date of joining) Read in the values from a file and store them in the above structure. Print the employee details if an EMP_ID is given. Regards, Shaju Software Development c | |
Hi, Could anyone explain to me why this works: [code = c++] #include "stdafx.h" #include <iostream> using namespace std; class A { public: A() { a = 0; } int a; }; void change(A* source, A* destination) { destination = source; } int _tmain(int argc, _TCHAR* argv[]) { A* ob1 … Software Development c++ | |
Hi All, I have created a class [B]person[/B] and derived [B]patient[/B] and [B]doctor[/B] classes from [B]person[/B]. Also I derived [B]student_patient[/B] and [B]emp_patient[/B] classes from [B]patient [/B]class. I want to make a small calculation at [B]patient[/B], [B]student_patient[/B] and [B]emp_patient[/B] classes by using a function from [B]doctor [/B]class wihch is [B]get_fee_of_doc[/B]. I … Software Development c++ | |
Hi Guys I am new at this, and I despeartely require some help. I basically need to write a program to read a text file, alter a single value and write it to a new file. I have done some stuff so far which seems to be correct, however, nothing … Software Development c++ file-system ios | |
Hello, i am currently developing a new OpenSource project. I will release it to the public this week. :-) [B]Let's get to my question(s) then[/B]: [LIST] [*]I have a Rich Text Box, and i want to save that text into a default extension. [*]I want the default name to be … Software Development vb.net | |
Hi, I am new in Daniweb. I am trying to do a simple task in Python but cannot figure out how it works. Keeps getting it wrong. Basically, I have a main GUI class App which has 2 entry boxes where you fill two numbers, a listbox where the results … | |
[CODE] def find_and_sep(inputstr, thing_to_find): #thing to find is a string that is a regular expression #finds thing_to_find and returns tuple of the rest (before, thing, after) inputstr.strip() #match it m=re.match(thing_to_find, inputstr) #match first instance if(m==None): return "" start = inputstr[:m.start()] mid = inputstr[m.start():m.end()] end = inputstr[m.end():] tuple_x = start,mid,end return … Software Development python ![]() | |
Hey, guys. I was assigned to a project in my company. It's an application for another company, it was almost completely done, I was just making a few requested changes. When you run the app, it opens a form. After you identify yourself, another form open up (the first one … Software Development visual-studio | |
hi everybody, I am blocked on a strange error. I need to use md5sum library. Visual c++ can read md5sum.h but it throws some errors when tries to compile it, it seems that visual c doesn't identify md5sum.cpp where constructors and functions are declared. I have already changed include library … Software Development c++ | |
Hey guys, I need some help with Python (obviously). I need python to insert a space. I have: [CODE]name = raw_input('Enter your name? ') # prompt and read user's name [/CODE] and that works, and it asks me for a name, and insert it, then i got: [CODE]print 'Hello ' … Software Development python | |
Ok, I really hated to resort to threading, but it seems like I have no other choice. I am writing a client script for the "instant message" server I just finished writing. Sadly, I am having a slight problem with threading. What I would like to do is have two … Software Development client-server gui python tkinter | |
Hi - I have a problem where I have a list of strings, and i need to split up the components of each string in the list and create a new array with the reordered data in the right format. For example: I have (line 1) PDIA20031.MV PDIA45141.MV TIA20102.MV TICA20033.MV … Software Development | |
Hi All: I am using windows 2000 server with Eclipse. In the dost prompt, I ran the file run_sqlldrTest2.cmd and it loaded record into the Oracle database. I tried to do the same thing in java calling the run_sqlldrTest2.cmd. In java it states the "The command line job - -executed … Software Development java oracle windows-server | |
hello, i am trying to store some values in an array dynamically. doing this as i dont want to over allocate memory to my array. so the code goes as follows:: [code] #include<stdio.h> #include<stdlib.h> int *p; main() { int i; for(i=1;i<6;i++) { p= (int *)malloc(sizeof(int)); *p++ = i*i; } printf("\n … Software Development c | |
Greetings, I'm a newbie and cannot fathom the deployment process. I noticed WITHOUT a Setup project/Setup wizard project in my solution (desktop application) when publishing creates a setup.exe which runs an installer of a kind. Not a typical windows installer with welcome, installation folder screens etc.., I added a setup … Software Development publishing vb.net window-manager | |
Hi all, I am getting exceptions while downloading Excel template. i think the problem is in one sheet if i remove that sheet i am able to download with some vb error messages like cannot read file etc., As per my knowledge in vb code for downloading i have changed … Software Development apache visual-basic | |
I am doing a program to print out the shortest path between locations. I implemented it using a 2D array for the adjacency matrix. However, when I run it and input the start and end locations, nothing else happens. [CODE]#include <iostream> #include <limits.h> #include <assert.h> #include <cstdlib> using namespace std; … Software Development c++ | |
Hi All, If i protect a sheet then I am getting this runtime error stating Run time error '1004' Application-defined or object-defined error Its not highlighting where is the error .. can anybody help me please i have deadline by today evening.. thanks Software Development visual-basic | |
Can anybody recommend good online courses for SQL and/or data controls? (I guess I should master the regular data controls before going on to Silverlight, right?) Software Development sql | |
in my database I enter three item in 'Item' field. paper, pen, pencil. in my vb project i have three text box. here I want these three item show in this three text box. how it possible. Software Development visual-basic | |
Hi, I want to create a typewrite/typing java app. I want to change the color of a text to be different, whenever the user types the wrong character in a JTextArea. For example, if the user was supposed to type "My Book" and s/he types "My Bok", I want the … Software Development java | |
I have a question we are suppose to input a seed value for a randon number generator, but I am having issues with using the srand(seed), but the problem is I am getting the same output every time for the random numbers how can I do it with the user … Software Development c++ | |
Hi, I want to Load .dll library on my program. I was using LoadLibrary and GetProcAddress which is tedious work. I saw somewhere Idea of using .lib files but have no clue. I have used google but I got lost. Please help me :( Codeblocks 8.02 MINGW 3.4.5 Windows Vista Software Development c++ windows-vista | |
Hello all, I have a [B]base class[/B] which is called [B]person[/B]. I derived a class from[B] person[/B] which is called [B]patient[/B]. My question is can I derive two more classes ([B]patient_student and patient employee[/B]) from [B]derived class patient[/B] or should I derive them from [B]person[/B]? If I can derive classes … Software Development c++ | |
Hi Professionals, I am currently working on a mass emailing system. I am using Microsoft Visual Studio 2005. With windows IIS in Windows XP SP3. My program can send mass emails using System.Net.Mail namespace found in .NET 2.0 but i have no idea on how to implement the receiving emails … Software Development email vb.net visual-studio | |
Hi all, I'm trying to mimic an html form that calls a script on the web. When I put the form together on a page, it works, and I was wondering if there was a way I could "scrape" this post request and see what I'm missing when I try … | |
hi all how can i draw rectangle for each graphic. on the picture, each rectangle is create as graphic. pls help. Software Development java | |
Hello, I'm working on a new little project that moniters a configuration file. Everything seems to work great except for when I attempt to do some error handling. The configuration file simply looks like this. # third sets the lights # 0 = off, 1 = on, 3 = lights … Software Development python | |
Hello everyone, I am dealing with this problem that I receive a buffer from a client, and when I try to output what the client sends to my program, it only shows everything till the first zero character. [code=C++] #include <cstdio> #include <winsock2.h> #include <iostream> #include <string> using namespace std; … Software Development c++ | |
So I want to make a program that allows me to press a key (for example a). So when I press a, I want it to type(right term?) a predefined string (abcdefghijklmnopqrstuvwxyz for example). Like once the program is complete, I could go into notepad and press a and it … Software Development python | |
So I have a JComboBox, which contains recipe names. I want, when the recipe name is changed, for the label that is an icon of the rating (1 to 5) stars, based on my recipe object, to change as well. My code seems like it should work perfect but it … Software Development gui image java java-swing | |
Hi all I'm literally begging for help here. I have a program that as part of other things, executes a batch file. In visual studio 2008,it works fine either either as debug or release. If I execute it fro the debug/release directories it works fine. if I copy the debug/release … Software Development visual-studio | |
Hi All, I know c# has limitations on assigning null values to datetime and integer value types. But is there any trick I can utilize. I'm converting my appl. from another dec. tool wher I have no null issue, to c#. What I want to do is ; I populate … Software Development | |
Hello! I have a little problem. I have to print a table (four columns from an Excel file) in a text box. I took a string and I kept appending all the cells from the file that interested me and I used the textbox provided by easygui. [CODE]textbox(msg='', title=' ', … | |
Hi, I want to upload a file recursively using curl command, the file is in the directory where i am running the script here is the details 1) The file rss.txt is in this directory [ashok@qa-adm-001 rss]$ pwd /home/ashok/rss 2) If i run POST request as a command, the file … Software Development first-post shell-scripting | |
Well, I'm doing pretty good with my WebChat application, but I was thinking to add some smileys! At first, I would like the app to auto detect the smileys in standard form from a given string and place the image in its place, but I came across the problem: how … Software Development java | |
i have this code ... [CODE] namespace ConsoleApplication1 { class watchmove { private static string myString = string.Empty; static void Main(string[] args) { myString = System.Configuration.ConfigurationSettings.AppSettings["DestDir"]; Run(); } [PermissionSet(SecurityAction.Demand, Name = "FullTrust")] public static void Run() { string[] args = System.Environment.GetCommandLineArgs(); // Create a new FileSystemWatcher and set its properties. … Software Development | |
Can someone please conver the following code into a sequence diagram for me? the 4 instances and classes with the life lines are: `theUI:UserInterface`, `theCashPoint:CashPoint`, `theActiveAccount:BankAccount` and `transactions:TransactionList` void CashPoint::m4_produceStatementForBankAccount() const { string statement( p_theActiveAccount_->prepareFormattedStatement()); theUI_.showStatementOnScreen( statement); } string BankAccount::prepareFormattedStatement() const { ostringstream os; //account details os << prepareFormattedAccountDetails(); //list … Software Development c++ | |
Please can you help me with the following question? An iterative version of the C++ function TransactionList::getTransactionsForDate is given below. It can be applied to any list of transactions and returns the list of all the transactions for the given date. It only works when the date given is valid. … Software Development c++ |
The End.