43,549 Solved Topics
Remove Filter ![]() | |
I'm looking forward to learn Core Spring and Hibernate. Which books would you recommend and some good online resources (beside their websites)? Software Development java | |
Well, I posted a few problems here on daniweb and thank god that I did so. What I had been using till now was "rusted, naff,useless" code. But after today, I am more accustomed to what the new c++ is. Well, I am 16 years old and am studying in … Software Development c++ | |
if it contains quote it cuts it out, then i am stuck on part when i just enter in a problemset without a quote or single quote. Then it doesn't gather numbers correctly but stores the entire string [code] int main() { cout <<"enter the problemset and number""\n"; //problems represents … Software Development c++ | |
Hi I am new to unix and want to learn shell scripting. Right now I am use cygwin for windows but sooner I will switch to ubantu. So when I wrote my first script (just copied from the book I was reading), I came to know I have to give … Software Development file-system shell-scripting unix | |
[code] #include <iostream> using namespace std; #include "Interface.h" #include <conio.h> int main() { apple t; bool quit = false; while(! quit) { cout<<"the original value at beginning of clock is\n"<<clock()<<"\n"; t.start(); cout<<"hit enter when you want to stop timer\n"; if(cin.get()=='\n') { t.end(); int time =t.elapsed(); cout<<"the time difference is\n"<<time<<"\n"; cout<<"enter … | |
have been, for the past few weeks trying to figure out how I can compare images. From my experience in what I have been working on, I know it is almost impossible to compare two images and get a 100% match but I am not looking for a 100% match … Software Development java | |
Hi everyone. Can anyone please guide me on how can I generate a random number from a group of prset numbers. For example:- There is a group of preset numbers:- 1,5,18,100,127,500,626,929. I want to generate a random number from this group....is there anyway in which we could do this? Software Development c++ | |
Hello. I have come across a null pointer exception in my code. I understand this is got if there is no class/method/variable being referred to but in my case, I have a method in another class that is supposed to be called. However, the exception is thrown at the where … Software Development java | |
i am making a game and i am getting a strange error heres the relevant code [code=python] items = {'sword':['sword', 3, 15], 'axe':['axe', 5, 25], 'bow and arrow':['bow and arrow', 4, 20]} for item in items: print items[item[0]] print '\tprice:' + items[item[1]] print '\tdamage:' + items[item[2]] [/code] Heres my error: … Software Development python | |
Good day! How to copy a file from one location to another.ex c:\ to c:\copied in silent mode.When i load the form it will copy the file automatically. Ex. name.xls - the name of the file to copy. Pls help. Thank you for giving time! Software Development visual-basic | |
Hi there, I'm new to the site and new to learning C++. The program I am writing is for a C++ college class, and I'm just having a little trouble on if I am formatting the if statements I am using correctly. I'll give a breakdown of the assignment. I … Software Development c++ | |
[CODE] Implementation file using namespace std; #include "Interface.h" #include <time.h> void timer::start() { if(! running) { begin=(unsigned int) clock(); running=true; } } void timer::end() { if(running) { finish=(unsigned int) clock(); running=false; } } int timer::elapsed() { if(running) { return((unsigned int) clock()-begin); } else { return finish-begin; } } int timer::output(unsigned … Software Development c++ | |
Here are my 3 files interface file #ifndef INTERFACE_H_INCLUDED #define INTERFACE_H_INCLUDED #include <time.h> class timer { public: void start(); void end(); int elapsed(); int subtract(); int add(); int output(unsigned int seconds); private: bool running; int begin; int finish; }; #endif // INTERFACE_H_INCLUDED implementation file using namespace std; #include "Interface.h" #include … Software Development c++ | |
Hey, Im using readprocessmemory to get information on a game, but for some reason it skips two bytes.. part of my structure is similar to [code=cplusplus] WORD a; DWORD b; DWORD c; DWORD d; [/code] and i read the following memory into it: 00 00 FF FF FF FF 02 … Software Development c++ | |
All, i have a pretty simple task but for some reason i cannot for the life of me figure out how to do it in Python. I have a matrix of numbers, this matrix has a variable number of rows depending on the dataset but always 30 columns. first things … Software Development dataset python visual-basic | |
Hi, I have 15 textboxes that I created. Now, I want to assign a value to each of these texboxes. I want to do somethign like this. [CODE] for(int i = 0; i < 15; i++) { //example: texbox0.Text = 0; (textbox.Name+i.tostring).Text = i.tostring(); } [/CODE] Thank you for your … Software Development | |
I have this code being called by a QMainWindow: [code=c++] centralWidget()->currentWidget()->addSubWindow(new SubWindow()); [/code] the centralWidget is a QTabWidget the currentWidget is a QMdiWindow and I get the error: [icode] error: 'class QWidget' has no member named 'currentWidget' [/icode] please help | |
Hello, I am writing an application which uses the trig functions of the math module in python but for some reason, the float values that some of the calculations return are obviously incorrect. for example [code=python]math.cos(90*math.pi/180)[/code] returns 6.1230317691118863e-17 rather than 0. Does anyone know of a way which I cant … Software Development python | |
Here's the code i'm running. I know it's not the connection because it connects fine, it just doesn't like the transaction. Thank you to any who help. [code=c#] OracleTransaction txn = conn.BeginTransaction(); try { // Set the connection property of the command object OracleCommand cmd = conn.CreateCommand(); cmd.Connection = conn; … Software Development | |
So I have been playing with classes, seeing that they are more efficient than globals, and I wrote this hopefully simple test program to see if I properly reverse engineered tetlaw's simple rpg. For the life of me I cannot figure out what is wrong with it. If an expert … Software Development python | |
Hello! I have program that consists of multiple forms. Each of the forms share a common variable which I stored in the main form. But to access the variable from another form, I have to type something quite long like this: MainForm.CommonVar.Function(arg1, arg2, arg3, arg8) I use this many times … Software Development vb.net | |
I have a problem with syntax in C#. I need to make my own treeview control in which I just need to add one property to nodes. For an example, if I have list of files listed in my tree, I want to keep filesize somewhere that is related to … Software Development | |
My apologies my c++ abilities are poor (self taught) I have a text file that needs editing the first 10 lines of the file needs replacing but the other 1,000,000 + lines don't I need the information in the first 10 lines to know what to edit them to i … Software Development c++ | |
Hello, I was doing a test Win32 Project. I am using the standard rename() function under cstdio. My program was not working. So, while tracing, I got the return value of rename function as [B]-1[/B]. I have not seen anywhere, rename(0 function returning -1. Could anyone tell me what's wrong. … Software Development c++ | |
Let's say a user of my application opens two or more MDIChildFrames. How can I get access to any one of the child frames? If I keep track of the names of the child frames in a list is there a way to use the name to call upon a … Software Development python | |
So, hello, guys. I'm new to this forums and this problem has been bugging me lately. I'm making a Windows Forms app in C#: So I have a form with two buttons, one of them is a "New" button (private void botonNuevo_Click(object sender, EventArgs e)). This new button creates a … Software Development | |
I've been trying to do a really easy game here, the thing is that the when a player reaches 0, it just keep going to -5 and such like. WHat's wrong? [code=c++] #include <iostream> #include <cstdio> #include <cstdlib> using namespace std; int main () { srand(time(0)); int player1 = 100; … Software Development c++ | |
When I run this code: [CODE]sql = "SELECT Name FROM nameDatabase" self.cursor.execute(sql) list=self.cursor.fetchall() print list[/CODE] I get: >>> [(u'Joe',), (u'Katie',), (u'Bob',), (u'Ian',)] However, if I try to make a SingleChoiceDialog with wxpython it does not like that list. Is there any way to get those values in a so it … | |
I got components in layout as I wish to have them. Unfortunately 2nd row doesn't start as expected bellow first one, but directly under it (you can see portion of text draw on panel, should be visible whole). [attach]10549[/attach] I know that [LIST] [*]toolbar should have height of 60 [*]sidebar … Software Development java java-swing | |
hi every one! I have a datagridview which contain 5 column (data source is a table in ms acces). i want to add 3rd and 4th column using loop but there is an error occured "input string was not in correct format" [code=c#]for (int i = 0; i < dataGridView1.Rows.Count … Software Development | |
Hello, I have the Fill, Show, Remove, and Find functions working properly, but I cannot get my WriteToFile function to work. I know that there is a problem involving WriteToFile("Success"); but I don't know how to fix it so that my void WriteToFile function will work. Any help would be … | |
I am using an array 'array_studentDetails'. This array will be used by other functions after it is initialized. Should I make it a global array as I have done in this example OR should i return the array to the calling function and pass it on to the other function … Software Development python | |
These things are getting on my nerves. I am trying to do a test program in Win32 API which has "Browse for folder" and uses some string formatting. But, I am unable to. [B]Please help in this general problem:[/B] If I use strcpy() in Visual Studio 2008 to do some … Software Development api c++ visual-studio | |
Hello, I am very new to Win32 Shell Programming. I am doing a simple project which needs me to select a folder from the hard-drive. The following is small parts of the program: 1 : This is the "Brows For folders" calling part. [CODE=cpp] case IDC_BROWSE: { char buf[MAX_PATH]; BrowseFolders(hDlg, … Software Development c++ hard-drive | |
I have two forms, namely MainDataForm and JobForm. In MainDataForm I have a text box named txtJobID which contains a certain job ID. There I also have a button - btnNewJob, if clicked opens the above said JobForm. Now, on JobForm there is another text box named txtNewJobID and when … Software Development c# | |
I am learning how to make Windows in C++, and I have a problem: [code=c++] #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { MessageBox(NULL, L"Hello World!", L"TEST", MB_ICONEXCLAMATION | MB_OK); return 0; } [/code] I get this error: [icode]Error 1 error C2664: 'MessageBoxA' : cannot … Software Development c++ | |
i got an exercise in which i've to write a code that does: when you enter the day of the month (f.e. 21th) and the day (f.e. Sunday) and the month (f.e. august) will display if in the given month there is a 13th Friday. so i made a prog. … Software Development c | |
When printing output to a terminal in C++, should i use "\n", or "endl"??? Is one lighter, faster, or industry standard? Software Development c++ | |
Question: Prompt user to enter ten two digit number. The program should compute the sum of all positive values and print the sum of values added. Over here what I had done is: Chosen list to store initial all the ten numbers. First I have to initialize the list with … Software Development python | |
Hello All. This is my first post here, and I'm hoping that it's my first of many. I'm just starting out in C#. I did a really small project in VB.NET, but other than that, my experience in any programming language is highly limited. I'm working on a project for … | |
I have tried to delare the List Incr outside the if-statment and then inside the if-statement I declare a new instance of the List but when doing this I get a compilerror that says: [I]left of '.Add' must have class/struct/union[/I] [code] List<int>^ Incr; if( textBox1->Text != "" ) { Incr … Software Development c++ | |
I need help with an isometric tile-building program I'm making. The user has many different tile images to choose from to put on a isometric map (ex. Grass, Dirt, Wall). I wanted an easy way to store all these image so I put them in resx file in a satellite … Software Development assembly | |
I'm quite new too C++ but finally my experience is good enough to actually create something, that's what I thought... So I triedto make this easy Tic Tac Toe Game and I think i got it all right but obviously not cause when I try to choose somewhere to put … Software Development c++ | |
Hello World! i want to write a program that generates 100 random numbers. the program should do the following tasks: ** store these 100 random numbers in a file called totalFile.txt ** read these numbers one by one from totalFile.txt and store the even numbers in a file called evenFile.txt … Software Development c | |
Hello i got trouble to add data i got error saying: OleDbException was unhandled here's the code: [code=vb.net]Private Sub cmdAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAdd.Click Dim com As New OleDbCommand com.Connection = con com.CommandText = "insert into Watches values(" & txtWatchId.Text & ",'" & txtWatchBrand.Text & … Software Development vb.net | |
Hello, I currently have a sample WCF service that has the following classes: [CODE]using System; namespace SampleWCFService { [Serializable] public class BaseClass { public string someText; public BaseClass(string someText) { this.someText = someText; } } } using System; namespace SampleWCFService { [Serializable] public class ExtendedClass : BaseClass { public int … Software Development client-server http-protocol | |
Hello, I am new to the Python language and I am having difficulty with the print statement. For example, when I type print 4, or print "Hello", i get an error. The error message is: [CODE]SyntaxError: invalid syntax (<pyshell#2>, line 1)[/CODE] When I use python on other computers, the print … | |
Hi. I just got started using wxPython and I was wondering how to create a button which transferred the user from one screen to another. To kind of illustrate what I mean, I created two files, 'main.py' and 'newgame.py'. I've made a button called 'New Game' in the main.py file, … Software Development python | |
Write a program to read a list of non-negative integers, and to display the largest integer, the smallest integer, and the average of all the integers. The user indicates the end of the list by entering a negative sentinel value (use -1) that is NOT used in the calculations. The … Software Development python | |
Hi, I have a data object named dataCounter and a MSFlexGrid named gridCounter. I am trying to set the gridCounter.datasource to the dataCounter Dim dbMyDB As Database Dim rsMyRS As Recordset Set dbMyDB = OpenDatabase(App.Path & "\Counter.mdb") Set rsMyRS = dbMyDB.OpenRecordset("CounterTable", dbOpenDynaset) Set gridCounter.DataSource = dataCounter I keep getting a … Software Development visual-basic |
The End.