- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- PC Specs
- i7 930 2.8 Quad Core6GB DDR3WD 640GB & 320GBATI HD 5700Sound Blaster X-Fi
35 Posted Topics
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 … | |
Hi all, Wondering if anyone could help - I have a project I'm working on - part of it involves loading a list of resource files at runtime. I can hardcode each file and use the ClassLoader.getResource("....") to get each file, but I was wondering is there a way to … | |
Hi all, Bit of a strange question but here goes... In my App.Config, I have a few parameters set, like connection strings, that locate and use a database stored in the user's my documents folder - <connectionStrings> <add name="DatabaseConnectionString" connectionString="Data Source=D\:My Stuff\Documents\My App\MyAppDatabase.sdf" /> </connectionStrings> I was wondering, rather than … | |
Hi everyone, Currently for a university project I am building a server that can send notifications to a mobile device. Part of the project involves building a front end where I can configure everything for the server - updates to send, rules and so on. On the front end I … | |
Hi all, I was looking to make an android app that gets data from a C# wcf server - at the minute I can pull some basic data and they are communicating - however what is the best way to create an app like this? I know that networking operations … | |
Hi everyone, Just wondering if anyone could give me a bit of advice... For a project at university I'm going to try and create a sort of stock market advisor. Basically it will take data say from Yahoo, parse it, and based on certain rules provided by a user it … | |
Hi everyone, I was wondering if anyone could help - I'm trying to split up a char* that contains a string, something like "*Stephen*10:11:00*02/07/2012*Hi there" I'm trying to split it up so it gets the position of the first * then the second, and stores whats between them in name … | |
Hi everyone, Not really a problem as such but jsut wondering if anyone could explain this - when I build a product, the binary executable is roughly 50mb when done. When I tar it up and gzip it (tar -cvf *name* *file*; gzip -9 *file*) and unzip it the bianry … | |
Hi everyone, At the moment I'm trying to create a class that contains a DOMNode* pointer, something like this class MyDOMNode { public: MyDOMNode (DOMNode* node) : mDomNode (node) { } bool operator== (const MyDOMNode& rhs) { if (mDomNode == rhs.mDomNode) return true; return false; } bool operator!= (const MyDOMNode& … | |
Hi everyone, I'm currently trying to do a bit of java programming after not looking near it for almost a year. Most of what I've been doing has been C/C++, and I was just wondering - in C++ you could have a header file with functions only in it, say … | |
Hi everyone, Wondering if anyone could help with a minor problem... I have a class that contains a std::map that stores pointers to various objects as a void pointer and a name for the object, so within the class I have a template function where the object type is passed, … | |
Hi everyone, Was wondering if anyone could help... I know the std::map automatically sorts it values - I have a map a Date object pointer, and a bool for whether it is to be used or not. But I need the dates to be in order from earliest to latest … | |
Hi everyone, Again, I'm just trying stuff out to try and learn a bit more but here goes... I created a small Logger util - I included the pthread library and added a mutex lock in each of the "write*" functions, tested it by running a few instances of a … | |
Hi everyone, Just wondering if anyone could help. At the minute I need to check a command line for the parameter "--date=something", I've been using the re module with python like this cmd = "python myapp.py --name=stephen --date=20120323 --test=testthis" found = re.split (r"--date.*", cmd) print found but this prints the … | |
Hi everyone :) At the minute I'm working on some stuff learning c++ and was wondering if ayone could offer some advice... Say I have a pile of objects that need to be created (for example say, a Log object, XML parsers object, and a command line parser object). In … | |
Hi everyone, I'm not even sure if this is possible, but I seem to be struggling at the minute with it so here goes... I have a main.cpp where severeal different objects of different classes are created, such as say Log, ConfigManager, XMLReader and so on - what I'm trying … | |
Hi everyone, I'm currently on a placement and doing some other work on the side and I was hoping someone can help me... I've started playing around with xerces-c in work on redhat to read in small xml config files - I also have some applications I was working on … | |
Hi everyone, At the minute I'm trying to learn XML and reading/parsing xml files with c++ but I seem to be a bit stuck :( I've an xml file [CODE] <?xml version="1.0" encoding="UTF-8" standalone="no"?> <NormalisedFileCheck> <ExpectedFiles> <File>File_Num_1</File> <File>File_Num_2</File> <File>File_Num_3</File> <File>File_Num_4</File> <File>File_Num_5</File> </ExpectedFiles> <ValidProducts> <Product> <Family>Windows</Family> <Name>Windows 7</Name> </Product> <Product> <Family>Linux</Family> … | |
Hi all, Was wondering if anyone has had a similar problem.. at the minute I have a few Western Digital 1tb drives, that I have connected to a server running red hat 5 (RHEL 5), but for some reason they aren't showing up at all, even when I try df … | |
Hi, I current I have a vector <void*> that I need to populate with values, stored as char*. Is there a way to convert to void*, then back to char* whenever needed? I have tried casting and using static/reinterpret_cast but when I try to output (converting from void* back to … | |
Hi everyone, I'm trying to write a script that will list all files and their details within a directory - so for example, if I have the structure /home/ /home/folder1/ /home/folder2/ /home/folder3/ It will print something like +---------------------------- | /home/folder1/ +---------------------------- | *files here* | *size* +---------------------------- | /home/folder2 +---------------------------- … | |
Hi everyone again :) Bit of a weird problem, but is there any way of counting how many keys are stored within a multimap? Say for example I have the keys A, B, C and D. Each of these keys have say 100 values for each, so there should be … | |
Hi everyone, I was wondering if anyone could help - at the minute I have a program that records how many bytes are received over a set interval (for example, 500 milliseconds). How would you calculate how many megabits have been received per second if the sampling interval will always … | |
Hi everyone, I was wondering if anyone could help me - at the minute I have a c++ program that renames a file and then attempts to move it too a new folder using linux commands and passing them to the 'system()' function. It renames the files no problem - … | |
Hi everyone (again!!) Sorry for all the questions, but I was wondering if anyone could help me a bit.... I jknow a bit about passing command line parameters when running a C++ app on Ubuntu through the terminal. At the minute I have the app either running with no command … | |
Hi everyone, I was wondering if anyone could provide a bit of help, I need to store an integer value that is 20 bytes in length - I know theres an int32_t and int16_t, but I can't seem to get an integer stored that is only 20 bytes!! I've also … | |
Hi everyone, I'm trying to learn C++ and about pointers and whatnot and seem to be a bit stuck... one of the exercises we were given involves passing an object (a Driver object) by reference to another object (a Manufacturer), which stores it. The Manufacturer object can then "employ" and … | |
Hi everyone, Not sure if this is the right place to post this so sorry in advance if I'm lost!! I have recently secured a placement / intern at a IT company as part of my university course. I also have a profile on LinkedIn, and I've noticed since I … | |
Hi everyone, I've recently started learning C++ and was wondering does anyone know any good networking tutorials for C++? I've tried searching but alot of them seem to be a bit over-complex - I've done network programming with Java in uni and a good bit of C++, but was hoping … ![]() | |
Hi everyone, As part of an assignment we have to develop a recursive backtracking solution in java to a sort of knapsack problem - you have a 150mm bar, a set of orders you have to cut and you need to come up with the best solution that gets the … | |
Hi everyone, I have an ArrayList containing 40 or so JPanels for a board game developed in Netbeans with java - is it possible to have an event listener or something similar that will "monitor" the ArrayList for any of the JPanels being clicked, rather than having to create an … | |
Hi everyone, For a group assignment we have to develop a property trading game similar to monopoly. At the moment we have the GUI developed as well as a basic idea of how to go about doing it but was wondering if anyone could help a bit!:S Is it possible … | |
hi, I was wondering if anyone could point me in the right direction here!! I have a program that reads in lottery results from the past 6 months (from the national lottery site) from a text file 31-Mar-2010,29,18,38,44,14,43,13,3,GUINEVERE 27-Mar-2010,32,38,11,15,42,6,24,2,GUINEVERE 24-Mar-2010,3,49,28,5,23,42,41,4,GUINEVERE and stores it in an array (n-1,6) where n is … | |
Hi again, This is a problem I've been struggling with for a while... I have an access 2007 Database where I store several different "Jobs" such as repair job, data recovery job etc. At the min I have a form where the user can view a customer's related jobs either … | |
Hi, I'm current working on a project that allows the user to store customer and job details. At the min, I have a form to view and add customer records, but also edit/delete etc. customer records. I also have a form to add a particular job type. I'm working on … |
The End.