560 Posted Topics

Member Avatar for Jsplinter

Not to sound counter-productive but there is an installer available for boost, if you're using Windows I would say it's definitely worth checking out. It takes a long time to download the files but, you get the pre-built .DLLs and .LIBs for multiple compilers, target platforms, and runtimes. After you …

Member Avatar for pseudorandom21
0
450
Member Avatar for thecoolman5

Try adding "Winmm.lib" to the project options under additional link dependencies. Or add this line to the top of your file: [icode] #pragma comment(lib,"Winmm.lib") [/icode]

Member Avatar for thecoolman5
0
1K
Member Avatar for thecoolman5

Oh there is a way to make your program run on a certain date/time, on W7 it's under: Accessories -> System Tools -> Task Scheduler It's a very useful Windows feature too :D Also, I'm not yet convinced it's impossible to block ctrl + alt + delete, as soon as …

Member Avatar for pseudorandom21
0
684
Member Avatar for sadsdw

I also don't think fstream will have a problem with 4+GB files, I think sadsdw's problem is more likely due to memory usage (speaking from experience).

Member Avatar for sadsdw
0
258
Member Avatar for highlite

Once you drag + drop a "control" on your "form" you can select the control and in the properties pane at the top there is an "events" button you will want to click. Those events are most likely relevant to using your logic with your GUI. Find one, such as …

Member Avatar for highlite
0
352
Member Avatar for pseudorandom21

It's becoming that time again where Americans have to choose which idiot to vote for. In recent years I haven't voted nor have I been educated about the candidates, and so for 2012 I have decided to change that. Firstly, what is a good source of news for learning about …

Member Avatar for pseudorandom21
0
660
Member Avatar for pseudorandom21

I had a seemingly bright idea for a cleaner and easier to use operating system feature, for when the Windows clutter just gets too bad. Basically I want to alter the behavior of every window, such that when it loses focus it is minimized. But I don't know how to …

Member Avatar for pseudorandom21
0
142
Member Avatar for wingwarp

Learning C++ is probably going to take you quite a while. This link will help you at some point, [url]http://www.cplusplus.com[/url]

Member Avatar for tiredoy
0
451
Member Avatar for visom

[QUOTE=visom;1612133]Hi everybody I'm not sure where to put a question like this so forgive me if I'm in the wrong spot. I've just passed my college course C++ (had VB.net experience... if it matters) with a B. Is that knowledge enough to get a job somewhere or do I need …

Member Avatar for pseudorandom21
0
360
Member Avatar for br0wnm4n

[quote][icode]void main()[/icode][/quote] void main is incorrect, the two official entry-point headers are: [icode] int main() [/icode] and [icode] int main(int argc, char *argv[]) [/icode]

Member Avatar for pseudorandom21
0
385
Member Avatar for bxdfjmkl

Press "Windows Key + R" then type "cmd" or "command" or "command.com" in the run box, just make sure you get a command prompt window open. Then type "ver" or "systeminfo" and press enter. Please note that if you use systeminfo you will likely have to scroll up.

Member Avatar for pseudorandom21
0
111
Member Avatar for thecoolman5
Member Avatar for thecoolman5
0
966
Member Avatar for the_kitoper

[QUOTE=the_kitoper;1611024][CODE] #include <time.h> time_t whatTime(const char* month, const char* day, const char* year) { time_t rawTime; time(&rawTime); struct tm* convTime = localtime(&rawTime); std::cout << "Today is: " << ((convTime->tm_mon)+1) << "/" << convTime->tm_mday << "/" << convTime->tm_year << std::endl; } [/CODE] When using this code I get the output '7/27/111' …

Member Avatar for pseudorandom21
0
178
Member Avatar for pseudorandom21

Hey, I'm wondering if it's a good idea to put my email in the about box of a utility I wrote, and in the source code. My thinking is the developers or users will be able to contact me if they have problems with it or ever need to update …

Member Avatar for charlybones
0
99
Member Avatar for pseudorandom21

I copy data from a "DataGridView" to the clipboard, but it contains lots of mysterious tabs that shouldn't be a part of the data, here's a sample of what I mean: [code] Keywords Searches omaha nebraska apartments 260 houses for rent in omaha nebraska 140 houses in omaha nebraska 720 …

Member Avatar for pseudorandom21
0
196
Member Avatar for happygeek

What's up with all the "hacking" lately? I thought that's what we were doing, but we're not on the news.

Member Avatar for Netcode
2
562
Member Avatar for pseudorandom21

I need to extract an integer value from the end of a string, and I'm a little bit lost on algorithm functions/classes in C#. Is there any sort of convenient class/function to help with this? Here is a sample string: "omaha nebraska weather 2400"

Member Avatar for pseudorandom21
0
153
Member Avatar for pseudorandom21

Hi, currently my application uses panels to put all the controls on and manage docking, but I need a resizable border. How is this done?

0
64
Member Avatar for pseudorandom21

In the past I used a "Finite State Machine" to follow a sequence of keystrokes to completion, but I don't think it's effective and I was wondering how you guys would implement this: (I have the keyboard & mouse hook lib worked out) When a sequence of events (keystrokes & …

Member Avatar for gusano79
0
125
Member Avatar for pseudorandom21

I recently stumbled upon a boost installer (which I think is awesome), here [url]http://www.boostpro.com/download/[/url] and I was wondering if there is anything similar for QT and Visual Studio 2010? On the QT Website I found this page, but no VS2010 installer. Will the 2008 one work ? [url]http://qt.nokia.com/downloads[/url] I suppose …

Member Avatar for GreenDay2001
0
103
Member Avatar for debasishgang7
Member Avatar for abhimanipal
0
191
Member Avatar for pseudorandom21

I need to know a bit about this "default int" thing in C. What I mean is, is this actually ok and with what version of C is it ok? [code] main() { return 0; } [/code] As far as I knew this was standard modern C (i.e., no retarded …

Member Avatar for Narue
0
148
Member Avatar for Saidar

[url]http://msdn.microsoft.com/en-us/library/ms228963.aspx[/url] or maybe [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.application.doevents.aspx[/url] I'm not sure how it fits into your design but couldn't you "Raise" an event every time the progress bar needs updated? Do you know what a delegate is? You may also be able to call an update function directly as opposed to raising an event. …

Member Avatar for Mitja Bonca
0
997
Member Avatar for sergent

I'm no licensing expert but I do know that I hate the GPL, what if someone wants to use a part of your code in a product, or something that you don't want to give the source away? What if *you* want to use a part of it in something …

Member Avatar for sergent
0
243
Member Avatar for sergent

Nevermind, bad question. I remember needing to write a program that generates curve functions, as in specify a begin point an end point and a point or points the curve needs to pass through. Sadly I never got around to it. But! My math teacher told me it involved solving …

Member Avatar for sergent
1
276
Member Avatar for pseudorandom21

Hi this project is actually C++/CLI but I expected more useful help from the .NET developers (most things are similar). So, I have a transparent form (completely transparent) and I want to draw a visible rectangle onto it and since I am using C++/CLI I was hoping to do it …

0
72
Member Avatar for pseudorandom21

The idea(s) aside, how does a lone programmer with a few languages at his disposal make awesome software? Do you think with proper research, planning, and design a lone programmer can make awesome software, or do you think it will usually require a couple of partners? How do I learn …

Member Avatar for pseudorandom21
0
257
Member Avatar for raykwok

Umm, I'm not sure I would be giving out any personal information even if I have a phone number to call.

Member Avatar for pseudorandom21
0
241
Member Avatar for xxlt3xx

Does this help? [code] using namespace std; const string FILENAME = "INTEGERS.TXT"; const string AUTHOR = "Rf"; const string ROLE = ", (s)\n"; const string SOLTXT = "\nSolution by "; const string INFILE_ERR_MSG = "File does not exist or it is empty!\n"; const int EXIT_ERR_INFILE = -1; // Error with …

Member Avatar for xxlt3xx
0
172
Member Avatar for RAIMI

Agreed, we aren't in the stone ages of C programming--use vectors. The "app terminated in unusual way" may also be an uncaught exception, from my experiences.

Member Avatar for RAIMI
0
306
Member Avatar for jay_el_em

[QUOTE=a.oprea;1605170]I think the best choice is to begin learing a lower level language like C++ or java, after you master those, you can easily go up to more higher languages. The other way around is not that easy[/QUOTE] Lol, I love C++ (it was my first language), but I have …

Member Avatar for Rashakil Fol
0
110
Member Avatar for Jsplinter

[QUOTE=mike_2000_17;1605454]While you are using C++0x, then you might as well do: [CODE] my_list.remove_if( [](int x) -> bool { return x == 4; } ); [/CODE][/QUOTE] Hey mike the "-> bool" specifies a return type?

Member Avatar for Narue
0
233
Member Avatar for tikoti
Member Avatar for zachf632

I don't normally opt to use applications written in Java because they seem to not be as responsive on my system. If an application written in a different language is available I normally choose it. If one day soon bleeding-edge PC games are written in Java I will be surprised, …

Member Avatar for pseudorandom21
1
208
Member Avatar for happygeek

[quote]Apple has not opted for an upgradeable storage option with the iPad, for reasons which escape me[/quote] ^^ It's due purely to stupidity, or perhaps just pure douche-baggery, I can't decide which.

Member Avatar for pseudorandom21
0
527
Member Avatar for vidur

[QUOTE=vidur;1604602]a software written in python to change the extension of all existing exe files on a system to a randomly generated integer would prevent a conventional virus as knowing the file is an executable and hence from infecting it. i know there are easy ways of getting around this. so …

Member Avatar for pseudorandom21
0
223
Member Avatar for mhaber

The easiest way may be to use the C++ STL. [code] ifstream inFile();//<-- file opened and checked for errors elsewhere vector<string> dataStructure; string input; //Skip the first 5 lines: for(int i = 0; i < 5; i++) getline(inFile,input); //Store file in a data structure while(getline(inFile,input)) dataStructure.push_back(input); //Extract some tokens for(vector<string>::size_type …

Member Avatar for mhaber
0
6K
Member Avatar for old_kid

Int to string is easy in C++ with a "stringstream", or if you prefer you can use an old C function. [code] int someInt = 256; string out; stringstream(someInt) >> out; [/code]

Member Avatar for m4ster_r0shi
0
144
Member Avatar for cerezo_mark

[QUOTE=cerezo_mark;1603847]Hi i am a College Student and has a thesis of Face Recognition, this thesis was great and i want to have an experience building this thesis. But the problem is i don't know where to start. I have already studied some of structure approach of this thesis and apparently …

Member Avatar for cerezo_mark
0
280
Member Avatar for pseudorandom21

I'm hoping for a second opinion on which of these two motherboards to buy (I hope this is the right place). [url]http://www.newegg.com/Product/Product.aspx?Item=N82E16813128511&Tpk=Gigabyte%20A75M-UD2h[/url] [url]http://www.newegg.com/Product/Product.aspx?Item=N82E16813138331&Tpk=Biostar%20TA75A%2b[/url] Obviously the Biostar has better advertising, which one would you pick, and why? (Space inside my case is not an issue at all, and the USB 3.0 …

Member Avatar for omega066
0
106
Member Avatar for sha11e

string(size_t, char) is a constructor overload, the constructor is a function that initializes the class. Primitive data types (like int, float, double, char) don't have constructors, nor do they have functions associated with them. In languages other than C++ (like C#) integer types to have a set of functions available, …

Member Avatar for Narue
0
102
Member Avatar for MooGeek

Now you guys are depressing me, I'm 21 already and haven't even got to use my skills for money. 50 - 21 = some wasted time, <sigh>.

Member Avatar for almostbob
0
279
Member Avatar for TheProgramer

Post your code between the code tags like this: [code] /* Code */ [/code] What does this do? if (a == 1 || a == 3 || a == 5 || a == 7 || a == 9 || a == 11 || a == 13 || (a == 2 …

Member Avatar for pseudorandom21
0
170
Member Avatar for Celtrix

Using Win/Mac is like breathing to me. I suppose I must repetitively fumble around with my hardware (keyboard, laptop), a brain interface solves that problem.

Member Avatar for Celtrix
0
111
Member Avatar for Dr peter

[QUOTE=sknake;1602406]This may also be a helpful snippet: [code=c#] public static int GetRandom(int min, int max) { byte[] b = new byte[sizeof(int)]; new System.Security.Cryptography.RNGCryptoServiceProvider().GetBytes(b); int i = BitConverter.ToInt32(b, 0); Random r = new Random(i); return r.Next(min, max); } [/code][/QUOTE] Is it appropriate to seed the Random class every call like that? …

Member Avatar for shiva07
0
140
Member Avatar for sha11e

If you're still wondering, a variable on the stack has an address, which points to a reserved section of memory. The process is veery similar to using dynamically allocated objects with pointers. Hopefully this small example can clear up some of it: [code] #include <iostream> using namespace std; int main() …

Member Avatar for pseudorandom21
0
272
Member Avatar for busty043
Member Avatar for gujinni

I tend to think Iterators are more of an idea than being tied to a single implementation. A predefined function is one that is implemented already. Stl algorithm: [icode] std::random_shuffle( someVector.begin(), someVector.end() ); [/icode]

Member Avatar for gujinni
0
104
Member Avatar for pseudorandom21

Hi, I'm trying to display a message in the compiler output using VS2010. In C/C++ we can use:[icode] #pragma message(">> Win32 <<") [/icode], but for C# I'm not really sure what options are available.

Member Avatar for shajis001
0
157
Member Avatar for caut_baia

Reading from a hard drive is typically around a million times slower than reading/writing to memory. I read that somewhere, don't quote me.

Member Avatar for caut_baia
1
109

The End.