560 Posted Topics

Member Avatar for prutudom
Member Avatar for prutudom
0
745
Member Avatar for jackmaverick1
Member Avatar for moroccanplaya

Unfortunately without researching the HTTP RFC spec you may not be dealing with those things at a low level. There are a number of free libraries available for using HTTP, it may be worth a google search.

Member Avatar for pseudorandom21
0
51
Member Avatar for silverpanda
Member Avatar for ctrl-alt-del

[quote]Yes, but you'll have to reverse engineer their code to figure out where to insert your detour/trampoline function.[/quote] Hey that big block of NOOPs looks pretty good...

Member Avatar for pseudorandom21
0
163
Member Avatar for electrox73

Personally I would opt to use a library for HTTP. I know libcurl is at least one option, there are probably hundreds more. The reason I would use a [i]library[/i] is because if the project requires using the HTTP specification extensively, it will save you a lot of work. You …

Member Avatar for pseudorandom21
0
827
Member Avatar for usustarr

how to use typedef with a function pointer: [code] typedef void (*FuncType)(void); ... ... FuncType pointerToMyFunc = foo; [/code]

Member Avatar for arkoenig
0
124
Member Avatar for pseudorandom21

I'm just wondering how programmers rate their own skills, for instance I haven't been using C# very long, but I do feel I have a good grasp on the language. If I see on a job listing: "* 3+ years C# or Visual Basic.NET " What the heck is 3+ …

Member Avatar for abelLazm
0
131
Member Avatar for XodoX
Member Avatar for mike_2000_17
0
155
Member Avatar for Jessurider

This is a very pathetic question. The rules say you should give your post a descriptive name not "Need help". For Screen capturing, it can easily be done in C#. For packet capturing data being transmitted across WIFI that contains remote desktop information, I'm not sure this is the right …

Member Avatar for Momerath
0
77
Member Avatar for jackmaverick1

Typically you will get bad results if you call srand() too often. I've seen it used in a loop or a function right before every call to rand(). Try calling it once for the lifetime of the program.

Member Avatar for pseudorandom21
0
354
Member Avatar for ami7

I think he means the data structure call the "map" in C++. [url]http://msdn.microsoft.com/en-us/library/xfhwa508.aspx[/url] Check out the "Dictionary", and maybe other classes.

Member Avatar for Xcelled194
0
137
Member Avatar for royng

IRC, (AKA "Multiplayer Notepad") isn't really "cool" or "hip" these days. I am kind of fond of the idea, but unless I have a browser-based IRC client, I will be reluctant to visit often. Just because I won't ever open the IRC client, not because I don't like the chat. …

Member Avatar for royng
0
435
Member Avatar for TailsTheFox

If using Windows.... Does this help? [url]http://www.codeproject.com/KB/winsdk/harddiskspace.aspx[/url] How about this? [url]http://msdn.microsoft.com/en-us/library/aa364935(v=vs.85).aspx[/url] or this? [url]http://msdn.microsoft.com/en-us/library/aa364937(v=vs.85).aspx[/url] see also this: [url]http://support.microsoft.com/kb/202455[/url] You will probably need only to include <windows.h>

Member Avatar for TailsTheFox
0
134
Member Avatar for pseudorandom21

I have a DataGridView on a form that updates the datagridview automatically and will allow the user to manually edit the information. I need to save the information in the DataGridView somehow. I don't know what the best option would be. I could of course use a file to store …

Member Avatar for pseudorandom21
0
112
Member Avatar for sarge66
Member Avatar for pseudorandom21

First of all, what is a "data source", the kind that can be attached to a "DataGridView", what are they used for, and how can I use one?

Member Avatar for Momerath
0
329
Member Avatar for annitaz

Please see this page for more algorithm information: [url]http://en.wikipedia.org/wiki/Quicksort[/url]

Member Avatar for rubberman
0
102
Member Avatar for gl7

It doesn't "send" anything as far as I know, and if it does, it's probably dependent on the implementation--which you shouldn't concern yourself with. It "returns" an [b]iterator[/b] to the first element in the vector [b]container[/b]. For example: [code] std::vector<int> myVec(10,7); std::vector<int>::iterator it = myVec.begin(); for( ; it != myVec.end(); …

Member Avatar for gl7
0
206
Member Avatar for lochnessmonster

std::string is a C++ class (or maybe a typedef'd class template). It's not a C style "string". Notice the C++ string has member functions that can be accessed via the direct member access operator ([b] . [/b] ). i.e., [code] std::string input; std::cin >> input; std::cout << "Size =" << …

Member Avatar for WaltP
0
168
Member Avatar for L3gacy

Lambdas are awesome. [code] auto lam = [](const char *str) { std::cout << str << std::endl; }; lam("Hello World!"); [/code]

Member Avatar for L3gacy
0
206
Member Avatar for gazsroeposc
Member Avatar for gazsroeposc
0
2K
Member Avatar for pseudorandom21

I only know a little bit about the Global Assembly Cache. After creating a WPF application, in the toolbox, if you right click and select "Choose Items", it will open a window in which you can specify controls you want to use that are in the GAC. Is it safe …

Member Avatar for mcriscolo
0
151
Member Avatar for D2008
Member Avatar for TailsTheFox
Member Avatar for pseudorandom21
0
212
Member Avatar for pseudorandom21

What is the meaning of "immutable" when relating to an Int32 ? Int32 i = 0; i++; //etc

Member Avatar for Momerath
0
115
Member Avatar for yeto
Member Avatar for yeto
0
144
Member Avatar for lxXTaCoXxl

Unless this is an assignment I would use a library to do this. Otherwise, some creative design could likely solve the problem, you may want to work out some pseudo-code for the entire program. It may go something like: -order-of-operations scan, instantiation of evaluator class if required. Innermost expression is …

Member Avatar for pseudorandom21
0
282
Member Avatar for AODfan

May want to check the file stream for errors also. Could re-design loop to be: [code] while( inFile >> tempInt )//<-- exits loop on error, possibly what you want. { if( (tempInt + sum) > 1000 ) break; //... } [/code]

Member Avatar for AODfan
0
124
Member Avatar for pseudorandom21

Is there a way to store binary code in memory (as a value) then execute it? For instance if I have an array of bytes I have filled with the binary code of say, a .exe, is it possible to execute it?

Member Avatar for triumphost
0
92
Member Avatar for pseudorandom21

Is there a way to store binary code in memory (as a value) then execute it? For instance if I have an array of bytes I have filled with the binary code of say, a .exe, is it possible to execute it?

Member Avatar for gerard4143
0
3K
Member Avatar for Jessurider

I usually opt to use the Thread class, with mutexes, [url]http://msdn.microsoft.com/en-us/library/system.threading.thread.aspx[/url] and with a function and delegates. Delegates will probably be needed to access any controls on your form because the controls must be accessed on the same thread they were created. You can define a custom delegate for a …

Member Avatar for Jessurider
-2
151
Member Avatar for zachattack05

I do that all the time, except using a Mutex. I'm extremely new to C# and only today learned of the "lock" statement. From what I've read about multi-threading in C# you may not want your _Status to be static. I searched google again and couldn't find the exact page …

Member Avatar for zachattack05
0
134
Member Avatar for valdeth

I agree with using both an "ifstream" and an "ofstream" because it will simplify the process of reading and writing; if one used "fstream" for both i and o, it will most likely complicate things more.

Member Avatar for valdeth
0
177
Member Avatar for Bildderfrau

What exactly are you wanting? What are you having trouble with? What do you need improvement in?

Member Avatar for Bildderfrau
0
365
Member Avatar for Khoanyneosr

I see this all the time, and I hope by me explaining it, will make it clear to you. After creating an array like so: [icode]char buffer[10] = { 'a','b','c'};[/icode] when you use the operator[] ( [ # ] ) you are accessing a SINGLE ELEMENT. No matter how you …

Member Avatar for pseudorandom21
0
1K
Member Avatar for pseudorandom21

What happens when an exception is thrown from within a new thread of execution? How do I catch it? Must it be within the same thread? Also, what is the proper way to update a control residing on a form, from within a new thread? I think it would be …

Member Avatar for pseudorandom21
0
133
Member Avatar for Razzo1

loop through it and make sure at least one character isn't a space would also tell you. Oh, and it's "Your" instead of "You're", you're = you are

Member Avatar for mike_2000_17
0
2K
Member Avatar for chandrabhanu

[url]http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx[/url]

Member Avatar for Momerath
0
108
Member Avatar for pseudorandom21

Hey guys, I'm making a global operator, and I have a line where I'm comparing a std::string::difference_type to a std::string::size_type, I think the difference_type is usually a signed integer, and the size_type an unsigned.. Any ideas for an algorithm change? Also, there is a lambda function used I would like …

Member Avatar for pseudorandom21
0
120
Member Avatar for pseudorandom21

Is there any way to add a disclaimer using the "Publish" feature of Visual Studio 2010 ? I just kind of fear someone will claim the application damaged their computer and try to sue me or something, it's unlikely anyone would, but I suppose it could happen. If not, what …

0
69
Member Avatar for BTW8892

percent[i] = totalvote; that isn't correct. Try making it a percentage based on totalvote and the number of votes they actually got.

Member Avatar for BTW8892
0
1K
Member Avatar for gezUS
Member Avatar for pseudorandom21
0
136
Member Avatar for w1mark

If I'm understanding the problem correctly the solution is pretty simple. want all your "words" in the string in different strings or something? [code] #include <iostream> #include <string> #include <sstream> #include <vector> typedef unsigned int uint; //Returns, Num. words. uint getWords(std::string &in, std::vector<std::string> &words){ uint count = 0; std::stringstream ss(in); …

Member Avatar for w1mark
0
539
Member Avatar for abrocker

I agree with [b]cscgal[/b] on her thoughts about the two. Fortunately, I will also be attending a university in the fall for CS, so it may become more clear to me.

Member Avatar for pseudorandom21
0
233
Member Avatar for John Linux
Member Avatar for pseudorandom21
0
899
Member Avatar for Muhammad Sumair
Member Avatar for efficacious

There is a "for each" in C++/CLI. In C++ we do have a function named that: [url]http://www.cplusplus.com/reference/algorithm/for_each/[/url]

Member Avatar for pseudorandom21
0
168
Member Avatar for carlo0133

hmm, You must not be aware that there are thousands of free C++ libraries available. Alternatively your Operating System's API may actually support playback of MP3 sound, otherwise google a C++ sound library that meets your needs.

Member Avatar for template<>
0
151
Member Avatar for user543820

You need to use the .c_str() member of the std::string class to generate a NULL-terminated C-style "string" from the memory the std::string class is managing for you. I would also suggest a polymorphic approach to parsing expressions like that, specifically using polymorphically a member function to return the result of …

Member Avatar for Ancient Dragon
0
173

The End.