- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 81
- Posts with Upvotes
- 72
- Upvoting Members
- 42
- Downvotes Received
- 59
- Posts with Downvotes
- 40
- Downvoting Members
- 27
C
C++
C++/CLI
C#
and a little bit o' Java & F#.
- Interests
- I loves me some motorcycles, and women.
- PC Specs
- Windows 7 AMD Athlon 64 x2 5600+ AMD HD6670 4 GB DDR2
560 Posted Topics
Re: It's probably 10x easier in C# but it can be done. | |
Re: Heh heh heh, I bet you kids never had an 8MB graphics card named "Rage". <shudder> the ATI Rage IIC | |
Anyone know of a way to obtain an MD5 checksum of a file (through HTTP) before downloading it through HTTP? | |
Re: Well... Being overly generous to the pyschopath side, I got a 5. I do know a friend who would probably get like a 20-30 at least, however. | |
Re: One algorithm candidate is: input = [icode][h][e][l][l][o][ ][w][o][r][l][d][/icode] for each char c in input if c is a space then shift the contents to the left, removing the space. Of course it would probably be more efficient to copy the array, assuming it is of a manageable size. | |
Re: Most of the features you want are probably available via the operating system API, I'll assume you're using Windows so here's the API ref. [url]http://msdn.microsoft.com/en-us/library/ff818516(v=vs.85).aspx[/url] of course you don't have to roll your own, there is plenty of code available for random stuff. [url]http://www.codeproject.com/KB/cpp/AddColorConsole.aspx[/url] otherwise here's the console link: [url]http://msdn.microsoft.com/en-us/library/ms682087(v=VS.85).aspx[/url] … | |
Re: Excellent. Famous people rule. | |
Re: [QUOTE=iAssistant;1611570]How is your weather in your country? I am living in the Philippines and the weather here today is stormy and according to news, we are overloaded of typhoons in this month. One typhoon is over and there is 2 more waiting on the line. Oh boy![/QUOTE] I wish it … | |
Re: [QUOTE=mrSatellite;1613981]can anyone show me the code of prime number program using while loop but without using bool..?[/QUOTE] Can you use google, or do it yourself? | |
Re: There are infinite ways to do it. Example of a C++ container template in the C++ STL: [url]http://www.cplusplus.com/reference/stl/list/[/url] Linked list information: [url]http://www.codeproject.com/KB/cpp/linked_list.aspx[/url] [url]http://www.functionx.com/cpp/articles/linkedlist.htm[/url] [url]http://richardbowles.tripod.com/cpp/linklist/linklist.htm[/url] First of all you may benefit from deciding how you want to implement your list before you do so. | |
Re: I think Micro$oft can do eet. | |
Re: Much agreed, the format of your post is most unhelpful to us. It's really your responsibility to make sure you meet those requirements, and if you're having trouble or you have a specific question we'll surely help. | |
Can I use a DLL embedded in an executable (as a resource) without writing it to the disk? (Windows) | |
I'm attempting to transfer some OpenCV images over the network, I've been trying to put them into a format I can easily encrypt and transfer, but I'm almost certain it's not going to work properly. Essentially the IplImage is a structure but it has a pointer that points to some … | |
Is there some trick to networking between LAN machines? I want a client/server system on the network but I haven't a slightest about the IP. I'd like to avoid dropped packets, so from my limited knowledge I'd go with TCP. Etc. How do I locate another machine via IP on … | |
Re: Article suggests memory fragmentation might be a bit of a problem. Personally I'm inclined to ignorantly suggest it might actually be a stack overflow, check the project options--you might be able to increase the size of the stack for your program (not guaranteed to fix anything). | |
| |
These days the use of mainframe computers and terminals is highly outdated, but I'd like to predict it will make a comeback sometime soon. Today our terminals, our smartphones and tablets and even laptops and TVs are much more powerful than they used to be--and much more mobile. Instead of … | |
Re: A gigantic complicated MS Access database and a C# GUI for manipulating data, and then generating crystal reports. | |
Re: The best way? Probably a database of some sort, either just a file or an actual database (SQL, Access, etc.) Main thing is, you need a way to store the word, and it's definition in a logically related manner. You could use markers to mark the begin/end of data in … | |
Java: I have a bunch of stuff drawn to the blank space of a JApplet app. I need to add a JButton at a specific location. I don't know how. What's the easiest way to do this? | |
Re: [QUOTE=firstPerson;1565746]No it deactivates it, but if you sign in within 2 weeks it reactivates it for you. If you pass the 2week period then they 'delete' it, but they might have you still on their database who knows. If you want to stop using it for a bit, then tell … | |
My simple POP3 client (set up for Gmail) isn't downloading all of my messages... Any idea why? I have 350 messages in my inbox and the program only says 296 of them show up. Program.cs [code] using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.Net.Security; using System.IO; … | |
Here is a sort of description to my yet-unimplemented AI agent to play tic-tac-toe. It doesn't have to win, it just has to work, and my description of it has to be good. Tell me what you think: [code] /* "RATION_AL" The goal of my agent is to implement an … | |
Re: [quote]void main()[/quote] Change "void main" to [icode] int main() [/icode]. Also, writing the program so that there is less coding would be beneficial, what happens when you try to run that thing? | |
Re: Dev-C++ is no longer supported, last I checked. A better IDE will probably compile it. | |
Re: haha oh man but those crappy search engines in the 90's were the best!! oh ma gawd, who remembers [URL="http://en.wikipedia.org/wiki/MSN_Chat"]MSN chat[/URL] ??? To put things into my warped perspective, google's ability to track your searching and browsing is tantamount to a star of david on your shirt in germany during … | |
So I can set a global low level keyboard hook from within a DLL pretty easily, but does it actually load that DLL into every process? How is it then, "Global" ? Any useful insight into the way this works? I use the command line program "tasklist" with the /M … | |
Re: I can't help but think it could be done better without all the macros and one giant main function. Btw, are you using C or C++ for this? I think classes could be used to your advantage. | |
Is there a library that's easy to setup and use with Visual Studio 2010 for AES encryption/decryption? I've been fiddling with CryptoPP and it's endless link errors and iterator_level_not_equal error messages for an hour now, so I think it's time to look for an installer or a new lib. Any … | |
Re: Isn't it called the "Order of Operations" ? Or rather, in a programming language, operator precedence. | |
Is there a simple way to get a list/array of all the predefined colors? (without listing them all individually) ? It seems as though the colors are properties of the class "Color" rather than an enumeration. | |
Can I use my own code that I slapped a GPL on and provided to sourceforge in my own commercial application? In that way, does the GPL somehow relinquish my own rights to my IP? | |
Re: It's easier with a library that abstracts the complicated socket stuff. Right now I would probably consider using boost for it (personally). [code] #include <boost/asio.hpp> void TransferData( std::string data ) { //Server/port. boost::asio::ip::tcp::iostream con("server","9001");//or protocol, like "HTTP" if( !con ) ;//Connecting failed or something. else con << "Ehlo their mate. … | |
| |
[url]http://live.reuters.com/Event/Iowa_Caucuses_2012[/url] Iowa Caucuses, on the page you can find some stuff regarding the various candidates... | |
Re: Functions cannot be defined or declared inside of other functions. Use this for reference: [code] #include <iostream> using namespace std; //Below is a function prototype or "declaration" void ShowMessage(); //Entry-point. int main() { ShowMessage(); //Compiler inserts "return 0;" automatically. } //Function body or "definition" void ShowMessage() { cout << "Hello, … | |
Re: What version of boost are you using? It compiles fine for me (the exact code you posted, with some additional include files). Here, try this (same code): [code] #include <iostream> #include <cstdlib> #include <ctime> #include <vector> #include <algorithm> #include <memory> #include <boost/shared_ptr.hpp> struct Test { public: Test(const unsigned int input) … | |
Re: QT, Irrklang, Windows API. All are probably complicated to use. Why not try to find a good IDE for csound? If I wanted to work with sound I would probably use csound or learn enough about sound to implement my own with an audio library for C/C++. | |
Re: Control to traverse a directory and select files/folders. Control for webcams. Control for direct input device manipulation (probably not a C# problem). I haven't searched the snippet section lately so I don't know if those are in there already. | |
Re: please post code in the code tags [noparse][code] /* code here */ [/code][/noparse]. Then, it seems you're using a highly outdated compiler that supports a non-standard version of C++, perhaps you would wish to upgrade to a newer compiler so that we (and others) can better help you? There are … | |
Re: Any plans on needing the class to be "thread-safe" ? Also, @firstPerson, most times you need to pass an instance of a class as a separate param to use with member functions of a class as suggested by his "OO" stuff. I bet there's a boost fix for this additional … | |
Re: From the website FAQ section of Bjarne Stroustrup, designer and original implementer of C++ The definition void main() { /* ... */ } is not and never has been C++, nor has it even been C. See the ISO C++ standard 3.6.1[2] or the ISO C standard 5.1.2.2.1. A conforming … | |
I've been fiddling with some boost spirit stuff, and my code seems to start infinitely looping somewhere in the standard library stuff. Any ideas what's wrong? The qi::phrase_parse works very well, but the karma gets me. [code] #include <iostream> #include <string> #include <vector> #include <algorithm> //#include <boost/spirit.hpp> #include <boost/spirit/include/qi.hpp> #include … | |
Re: Please see the link to the youtube video in my signature. If you can stand my voice and horrible narrating it will show you one of the best ways to figure out a problem like that, assuming you're using Visual Studio. Also if you're copying a project you may want … | |
Re: Normally it's bad practice to operate directly on the memory the std::string class is managing for you, that's why the pointer returned is a [icode][b]const[/b] char *[/icode]. You'll probably have to copy the string data to avoid getting error messages. i.e., [code] char *buffer = new char[data.size()+1]; strcpy(buffer,data.c_str()); //buffer is … | |
Re: [QUOTE=cscgal;1649394]In most cases, it's illegal. Torrents are for file sharing (usually illegal music/movies/pirated software) like Napster used to be.[/QUOTE] I live in a rural area and the only "high-speed" internet service available is uber-slow and it simply isn't even possible to download large files in the normal manner (the download … | |
Re: I have a library for some simple windows hooks written in C++/CLI that you can use in C#. It's pretty app-specific (written for EasyScreenCLI) but I'm sure you can adapt it to your needs with minimal difficulty. It has a mouse cursor hook too that gets the X/Y coordinates, somewhat … |
The End.