pseudorandom21 166 Practically a Posting Shark

Did you incorporate a plugin system?

pseudorandom21 166 Practically a Posting Shark

This stuff isn't really necessarily suspicious per se, except for opening ports, etc. Windows Firewall, by default, should prompt you to allow that communication out or not.

Basically, the "code signatures" are actual bytecode signatures that other viruses have been detected with-- you might have included a shared library from a virus, and used those functions. THEN the AV app would detect a potential problem.

Windows firewall doesn't prompt to connect though, I've never had a prompt from a simple application connecting. I don't really know if it asks you about serving either, can anyone verify this for Vista/W7 ?

pseudorandom21 166 Practically a Posting Shark

What kind of client/server model did you use, I'm only familiar with the basic idea of a client connecting to a listening server. Does the "host/victim" require open ports, i.e., does it run a server or do you exchange info through something like IRC and make the host connect to your end? What VNC lib did you use, and what programming language(s) did you use?

pseudorandom21 166 Practically a Posting Shark

I wrote a trojan not that long ago that wasn't detected by my antivirus. It did incredibly suspicous stuff too, like sending a list of running procs over TCP or UDP to a listener, running procs, accepting commands to run in the command-line, remote shutdown/restart, send clipboard data back and forth, inject code into running procs to intercept windows messages (keystrokes, mouse info, etc) it even had a little vnc pluging for complete remote control. I guess nothing in it exactly replicated any other virus out there, or AVG just sucks.

Did you use it on the machine you developed it on? You can also "sign" .NET apps somehow, I forget what info it includes. How did you incorporate the plugin system?

pseudorandom21 166 Practically a Posting Shark

I think I'll give C::B a try after all, and *nix too. I don't use *nix but I did actually know about the word count tool.

pseudorandom21 166 Practically a Posting Shark

Anyone know of a generic guide for using third party C++ libraries, specifically with Visual Studio 2010? I'm thinking "winging it" isn't cutting it, I want a resource to learn more about how these things are usually prepared, and used.

I swear I saw a mention of a library system for C++ on a TR somewhere..

pseudorandom21 166 Practically a Posting Shark

Someday I will be a scientist like you :)

pseudorandom21 166 Practically a Posting Shark

There is more than one of those websites.

So yes, it is generally safe to assume it won't be flagged now or ever. Is that enough reading for ya?

Yep :D

pseudorandom21 166 Practically a Posting Shark

As far as I know: intellisense doesn't work for vs2010 either (for c++ programs & .net).

Does that mean C++/CLI ? No it doesn't work for C++/CLI, it works for C++ and it works for .NET, though separately. The intellisense is awesome actually.

pseudorandom21 166 Practically a Posting Shark

Ahh. Much to learn, you have. My young Padawan...

On a more serious note, different tasks require different tools. You seem to be happy with the tool you have, for the tasks that you do. It doesn't mean others would find VS appropriate for theirs. For example, by my perspective:

>>code snippets?
Useless. I need neither example codes, nor pre-made start-up code, I don't think any experienced programmer would need them.

>>Refactoring tools?
Refactoring tools are over-rated. If your library is so big you cannot refactor it by hand, don't do so. If your library is not too big, refactor by hand, the result will usually be better (although I heard VS2010 is pretty good for automated refactoring).

>>C++/CLI
If not doing .NET, this is useless, and a nuisance.

>>task list?
An old fashion TO-DO list works fine, a doxygen-generated TODO list is also good. I file this under "bells and whistles".

>>Disassembly output?
I can't remember the last time I used a debugging tool, let alone inspecting disassembly listings. I write code that doesn't fail in any significant way, and the small problems I have are easily found with a few well placed console outputs.

>>Class Diagrams?
I mostly do generic programming, where class diagrams are not applicable. For the OOP I do, I have never found class diagrams (UML) to be useful. Doxygen-generated class diagram are fine by me, and most open-source software documentation.

>>I use C#, F#, and sometimes VB also, …

pseudorandom21 166 Practically a Posting Shark

I'm not one to push anything on anyone but have you considered using Code::Blocks as an IDE its less M$-esque than VS meaning that its simpler(well a ton more easy to navigate than VS in my opinion) it doesn't lack in any feature that VS has except VS's Winforms and the M$ logo :P

sorry for bumping but Code::blocks is at least worth noting(although you could just use cygwin or mingw (essentially gcc for windows but cygwin comes with a linux-esque environment terminal))

What about code snippets? Refactoring tools? I actually use C++/CLI too. A task list? Disassembly output? Class Diagrams? I use C#, F#, and sometimes VB also, does Code::Blocks support these languages? Why would I want to switch to an environment that doesn't have a drag & drop designer, that seems like a pretty stupid thing to do when using C# or VB. Also, C++/CLI is a pretty powerful language, allowing me to use the .NET framework as well as native C++, I don't really want to do without.

pseudorandom21 166 Practically a Posting Shark

Thanks guys I'll try to work something out, good ideas too.

pseudorandom21 166 Practically a Posting Shark

Not successful means I built it successfully (I think) and added include and lib paths, and got compilation errors when trying to build a simple hello magick++ app. Definitely a bunked include path, have no idea how to fix it.

pseudorandom21 166 Practically a Posting Shark

The worst thing about C++ in my opinion is trying to use a library (with VS2010 at least). It always causes me great pain, and usually I am not met with success.

So, I'm trying to use the Magick++ library, which is a part of the ImageMagick program, and I tried following the source installation instructions and was not successful. Ideas anyone?

pseudorandom21 166 Practically a Posting Shark

Not sure where to post this, hopefully here.

Basically if I make an application that does some stuff in the background, how does an antivirus know it isn't a trojan horse or something? Will my application be flagged as a virus, or is it generally safe to assume it won't be?

pseudorandom21 166 Practically a Posting Shark

When I used it there were bugs, forgive me for expressing my opinion. I hate Dev-C++ actually, it was a piece of crap.

WaltP commented: Saying so doesn't make it true. Testable examples do. As far as we know, your bugs were programmer errors. -4
pseudorandom21 166 Practically a Posting Shark

Lol I hate to say it but Dev-C++ is a poor choice also, it's buggy and no longer supported as far as I know.

Code::Blocks and Visual Studio express are the best IDEs for Windows, in my opinion. VS2010 express won't let you down I'm sure.

As far as what you have posted goes, rand()%90 returns of course 0 to 89, and is it uber-important to do this using the raw Windows API? I'm sure you could use QT, wxWidgets or Winforms and you could probably understand it a lot better.

pseudorandom21 166 Practically a Posting Shark

Oh so it does... I'm not interested enough to put much more effort into it, I searched around for a library last night and today, and only found a couple that don't work on W7 64bit. :( bummer

For me the app. doesn't work in full-screen mode on Americas Army 2..

pseudorandom21 166 Practically a Posting Shark

So.. I want information on drawing on top of a DirectX game, like how Steam does it. I would consider naively trying to obtain a "device context" of the client area of the game's window, and then try some 2D drawing functions. D: I don't know if that's going to work too well lol.

Enough information to understand what's going on, and what needs to be done is really what I want, thanks.

---
This simple application draws a rectangle on most non-3D programs, but it didn't work with the video games I have tried it on.

#include <windows.h>
#include <iostream>
using namespace std;

int main()
{
	auto this_window = GetConsoleWindow();
	cout << "ShowWindow:" << ShowWindow(this_window,SW_HIDE) << endl;

	Sleep(5000);
	auto wnd = GetForegroundWindow();
	auto dc = GetDC(wnd);

	cout << "Rectangle:" << Rectangle(dc,0,0,200,200) << endl;

	cout << "ReleaseDC:" << ReleaseDC(wnd,dc) << endl;
}
pseudorandom21 166 Practically a Posting Shark

That is AWESOME! The product is only for C# ? I really wish native developers could use the refactoring and code completion tools managed developers get with VS2010.

pseudorandom21 166 Practically a Posting Shark

I don't know anything about your plight. But, are you linking with a .lib or .dll ?

pseudorandom21 166 Practically a Posting Shark

Oh man your response made me lol pretty hard though.

pseudorandom21 166 Practically a Posting Shark

:) ^^ I wish I had an assignment like that, it sounds really fun. I missed out on having programming courses :(

pseudorandom21 166 Practically a Posting Shark

Your reading must be wrong, because what you sent doesnt work

Are you kidding me? Really? Did you check the file names? Why not try making the if condition this: if(in && out) Oh and it would make your code look much more professional if you took better care of the indentation. If you're using Visual Studio you can select a block of code and indent it left or right, which is a very awesome feature. You can also comment a selected block of code and probably do other things.

pseudorandom21 166 Practically a Posting Shark
ArtificialPerson bob;
ArtificialPerson clone(bob);//CLONING!!!

Yes, a slightly funny and tasteful programming joke.

pseudorandom21 166 Practically a Posting Shark

If using VS2010...

Remember, you can set the cursor on a variable, and in the right-click menu select Refactor->Encapsulate Field.

Visual Studio 2010 does all the work for you :)

pseudorandom21 166 Practically a Posting Shark

@Narue, maybe it's just a poor choice of variable name?

pseudorandom21 166 Practically a Posting Shark

Hey this G13 gameboard is really pretty sweet, if you can justify the price by your thirst for frags.

pseudorandom21 166 Practically a Posting Shark

Ok so my parents bought a Nintendo Wii to use for Netflix, which is overall pretty sweet for me during the two more months I'll be living at home. So far I'm loving Netflix, but is there any way to pre-load movies instead of streaming them?

I would like to pre-load a list of movies and be able to jump around in them easily without having to wait 20 minutes for my crappy internet connection to keep up.

I know, obviously it would present a piracy problem if you could download the movies you watch on Netflix, but if it's stored on a Wii or encrypted then it might be feasible.

As of right now, I can start streaming a movie and then press pause and wait a while, but I still don't know if that will work as I hope it to.

Any thoughts?

pseudorandom21 166 Practically a Posting Shark

I might be in that boat in a couple months, lol. I just hope I can find an internship to tell the truth. What kind of work are you doing, is it interesting, and what programming languages do you get to use, etc?

pseudorandom21 166 Practically a Posting Shark

{
case PC gaming:
If the game supports my xbox 360 controller, I normally will use it.
else,
keyboard and mouse.

case console gaming:
not much choice
}

Recently I opted to upgrade my mouse & keyboard setup with a gameboard, it will arrive tomorrow and I'll let you know how it goes.

My gameboard of choice is a Logitech G13,
http://www.logitech.com/en-us/keyboards/keyboard/devices/5123

I expect the gameboard to have superior comfort and key-accessibility. I noticed using WASD some space on the left is wasted, I tried switching to an ESDF setup but was not as successful as I had hoped.

I'm literally staying awake at night checking the tracking info. out of excitement :D

pseudorandom21 166 Practically a Posting Shark

Basically I have a database added to my project, and I need to know how to make a column map to another table.

I have attached a couple of screenshots to show you what I mean, I want the "Absences" to be a new table, instead of a single DateTime.

pseudorandom21 166 Practically a Posting Shark

Hello, I'm considering serialization as a means of creating a simple database for an application. I'm wondering if I'm going to run into any problems trying to serialize a list of a record-style struct comprised of simple data types, like strings and int, maybe a a DateTime or two.

so.. I have something like:

struct foo{
string x, y;
int z;
DateTime theTime;
}

List<foo> fooList;//<-- need to serialize

Also, is there any way to know how many foos are serialized to a file?

pseudorandom21 166 Practically a Posting Shark

Sweet.

pseudorandom21 166 Practically a Posting Shark

Windows Update?

pseudorandom21 166 Practically a Posting Shark

I don't know that I know the exact answer, but the class "class recursive_directory_iterator " has a member function " void no_push(bool value=true) "

pseudorandom21 166 Practically a Posting Shark

Mostly people would say it's bad practice to use exceptions like you are, but for such a simple program it won't matter.

pseudorandom21 166 Practically a Posting Shark

Not a chance. At least the VTOL is unmanned :)

pseudorandom21 166 Practically a Posting Shark

Ahh yes, that video was erm, entertaining.

pseudorandom21 166 Practically a Posting Shark

Well guys, I'm having a hard time learning enough about ANNs to apply them to a problem.

Firstly my general understanding is that the network adapts during the "training" phase to produce the correct output with the given set of inputs. This is obviously useful with image recognition, or handwriting recognition.

But it has these properties by working in a specific way, and I'm mostly having difficulty implementing an ANN for a (very) simple application.

So... If someone has some experience with them, a little insight into what they really do, and how they do it would be most helpful!

pseudorandom21 166 Practically a Posting Shark

line 7, forgot a :

pseudorandom21 166 Practically a Posting Shark

Where did this tInches from from?? That doesn't rely on input from the user at all, so it begs the question, what is it doing??

Also, saying 67 inches is:

and then using 43 inches in your calculations doesn't make any sense man!!

pseudorandom21 166 Practically a Posting Shark

My guess is that there is an event that is raised every time the text changes, find that event and add the proper handler. In your handler I'm guessing you'll need to use the EventArgs (or similar) information to determine if the space was entered.

Really, my guess is that you can google this pretty easily when you're looking through the events to find the one you want.

After a google search I hath found keydown, keypress, and keyup events for that control.

Those will definitely work just fine.

Also, I just tested this and it works.

dotancohen commented: Thank you very much! +2
pseudorandom21 166 Practically a Posting Shark
void main(void)

void main is incorrect, use instead int main() or int main(int argc, char *argv[]) For an explanation as to why void main is incorrect, please see the creator of C++'s FAQ.
http://www2.research.att.com/~bs/bs_faq2.html#void-main

pseudorandom21 166 Practically a Posting Shark

I do like the idea, and I've never done anything ANNs before, so I'm interested.

pseudorandom21 166 Practically a Posting Shark

fmod(something) == 0 should be fmod(something) == 0.0 Otherwise a slight error might be because of limits of the representation of floating point numbers.

pseudorandom21 166 Practically a Posting Shark

Is it allowed to generate "knowledge" of the game, i.e., with an algorithm before it plays any game, or is it supposed to ONLY learn by playing? I suppose the two ideas are actually pretty similar.

pseudorandom21 166 Practically a Posting Shark

Sounds fun, I might be interested.

pseudorandom21 166 Practically a Posting Shark

Not to promote the use of alcohol, but it is in most places legal at least.

Well I turned 21 a few months ago, so I'm wondering what everyone else drinks when relaxing on their off days?

I like:
Miller Lite
Bud Light
Other non-traditional (non-mass-produced) beers like dos equis, killian's irish red
Miller High Life is dirt cheap, so when I'm on a budget it's great.

So, what are you drinking this weekend?

pseudorandom21 166 Practically a Posting Shark

You'll want a C++ DLL to access the functions from C#.

Unfortunately for you, it isn't really as easy as adding a reference to a C++ executable.

For a guide to creating a DLL please consult google.