deceptikon 1,790 Code Sniper Team Colleague Featured Poster

In fact, in VS, if you create a folder in the project explorer, and then create a new file in that new folder, it will automatically set the namespace for you to include that folder name. It's quite handy!

Except when you don't want it. ;) I like to use VS folders for organization, but don't want the nested namespace. In those cases it's a minor annoyance to make sure I create new files at the top project level and then move them, or change the namespace of files created directly in the folder to be consistent with the rest of the project.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

Pretty much a fan-service series which almost non-existent story. I don't have high hopes for this one.

That's the lowest on my list of new series. I suspect that I'll drop it in short order, but you never know. You probably won't be surprised to hear that this series is based off of a dating sim of the same name. ;) Dating sim adaptations are hit or miss, but when they hit they hit big (thinking of Otome wa Boku ni Koishiteru as I type that, it's one of my favorite anime of all time).

Meh. ;)

:D

Another "holds good promise" series I would say.

This is another one based off of manga that I've read. It's a good enough read that as long as they don't stray too far from the source material it'll be a good one.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

why is it not necessary for a method to declare an exception when coding in C++?

Because the designers of C++ chose to use unchecked exceptions rather than checked exceptions while the designers of Java chose the opposite. Attempts have been made to introduce checked exceptions into C++, with less than stellar success. Further, it seems like the prevailing opinion among experts is that while checked exceptions were originally accepted as the better option, the dependency costs of enfocing them unconditionally has more of a negative impact than they're worth.

I think those in the know these days will suggest that the best option is unchecked by default and opt-in for checked when needed (which is the approach that C++ has attempted to take). Consider this interview with Anders Hejlsberg on why C# doesn't use checked exceptions like Java.

So does it make C++ a weaker language since it enforces a weaker rule?

It's quite a leap to go from "C++ supports a 'weaker' form of XYZ feature than Java" to "C++ is a 'weaker' language than Java". I could reverse that and say something equally offensive for Java programmers: Java's checked exceptions are frustrating, so Java is a more frustrating language than C++. ;) Obviously that's a hasty generalization, and it's also unfair to Java given that checked exceptions are a relatively minor feature. Conversely, it's unfair to label unchecked exceptions as 'weaker' rather than 'different'. It's no harder to write robust software …

mike_2000_17 commented: Good points! +14
deceptikon 1,790 Code Sniper Team Colleague Featured Poster

Is there any program out there where you can customize a programming language and compiler?

What exactly do you mean by "customize"?

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

Unfortunately, this season looks a bit meh

That's what I thought when looking at the summaries, but I have 8 on the "3 episode" test right now, which is exceptional given that the last year or so I've only kept at most 3 on the line:

  • Yahari Ore no Seishun Love Come wa Machigatteiru
  • Hataraku Maou-sama
  • Photo Kano
  • Shingeki no Kyojin
  • Suisei no Gargantia
  • Yuyushiki
  • Aiura
  • Hentai Ouji to Warawanai Neko
deceptikon 1,790 Code Sniper Team Colleague Featured Poster

I can change that NULL to nullptr I suppose?

Yes.

But also notice nullptr also not work for what NULL can with something like.

In other words, nullptr won't work outside of a pointer context, which is exactly what you want. NULL was never intended to be used as an equivalent to '\0' outside of pointer context, that came about from people who misunderstood the word "null" and also made assumptions about the type of NULL.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

NULL is defined in <stdio.h> as (void*)0.

In C that's a possible definition. In C++ it's defined simply as 0 (or something equivalent), otherwise you'd get an error every time you used NULL because there's no implicit conversion from void*. NULL would be completely useless in that case, so C++'s NULL fits the C++ version of a null pointer constant rather than the C version. If your compiler gives you an error for double* dptr = NULL;, it's a non-conforming compiler.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

it turns out I must have been using NULL incorrectly in a lot of places where int 0 should have been used.

Yup, it's a subtle trap. I've been advocating only using NULL in pointer context for years. I guess now the folks who ignored me will realize why it was important. ;)

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

The potential exists for someone to log onto my old account, and please don't tell me about passwords, since it would seem that the hack occurs down the line, so anything I enter is likely to be captured

So your solution is to avoid fixing the actual security issue and instead focus on closing all possible endpoints as reactive damage control? Interesting approach.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

Thanks. Is there some "official" place where that is said, I couldn't find one.

Well, there's only one "official" place and that's the ISO standard. Now that I think of it I don't recall seeing it explicitly written out anywhere else authoritative (if you don't count my reading of the standard to be authoritative ;D). However, it's been stated explicitly in a number of conferences, presentations, and talks about C++0x/C++11 that I've attended where the presenters were most certainly authoritative (Herb Sutter, Scott Meyers, Andrei Alexandrescu, Bjarne Stroustrup, Stephan Lavavej, etc...).

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

I was thinking that maybe I have to do something extra, like create a special case of the quicksort algorithm. What would you suggest?

The problem is that the comparison callback accepts pointers to void, which then need to be cast into the correct type before you can do any comparisons or member selection. tinstaafl's example does this, but he didn't mention what he did to fix the error and why. It's also in C++, but that can be forgiven as the C++isms are extraneous to the solution for your problem. ;)

int compare (const void * x, const void * y)
{
    const test * dx = (const test *) x;
    const test * dy = (const test *) y;
    if (dx->prob < dy->prob) return -1;
    if (dx->prob > dy->prob) return 1;
    else return 0;
}
deceptikon 1,790 Code Sniper Team Colleague Featured Poster

One of my company's products is a check 21 scanning, processing, and delivery suite. I'd say it's one of the more complex projects I've worked on given the many moving parts, combination of scanning, OCR/ICR, image processing, X9.37 management, a robust plugin system for delivery, and finicky banks who reject results for no good reason and with no explanation. ;)

Complexity doesn't necessarily mean difficulty though. If you want to go with difficulty, I'd go with the time I had to write a fast PDF417 barcode encoder in Javascript for integration with PDF files. Pity that project actually got canceled by the client after we'd done all of the work...

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

they don't explain clearly what the benefit of using them is, why I need them

Say you have two libraries, each in a separate assembly. Neither use namespaces, but both define a class called Widget. How do you know which Widget is which without some way to categorize them? The answer is namespaces.

when I need them

When there's a potential for name conflicts.

and why they're generated automatically

It's best practice to wrap everything in a namespace at the beginning, if only because it saves you the effort when you invariably discover that it needs to be done later down the road.

Say I have a class that I want to use in multiple projects, what namespace do I give it?

Something that's unique and descriptive. For example, I have a scheduling library for polling services with this structure (company name removed to protect the innocent):

CompanyName.Scheduling
    ScheduleEditor
    ScheduleTimer
    ScheduleTimerPulseEventArgs
    ScheduleOverlord

The namespace ensures that when I want a ScheduleEditor, I can get my company's editor by saying CompanyName.Scheduling.ScheduleEditor. We only have one scheduling library, so there's no need to be more granular than that. But ScheduleEditor isn't such a unique name that another third party library we use certainly won't use it.

Everytime I paste a class from one project into another I have to change the namespace and it's getting annoying. How can I avoid this pointless excersize?

Yes, that does get annoying if you …

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

Apparently reading the comments is helpful...who knew? ;) build() does indeed build the entire tree, but it expects an expression in prefix format rather than infix format. Presumably you've already figured that out since you said you got it working.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

Yes, you can use nullptr everywhere as a replacement for NULL. Even in the places where NULL was actually a degenerate case and didn't work as expected...unless you want the degenerate behavior, of course. ;)

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

As long as the vector object itself is in scope, it takes up memory. But if you want to well and truly destroy the items stored by the vector and release the allocated memory, you use the swap trick:

vData.swap(std::vector<std::wstring>());

You could also copy assign an empty vector, which can potentially be less performant than the swap trick, but has the benefit of clarity over the more obscure (if idiomatic) swap trick:

vData = std::vector<std::wstring>();

And invariably someone will chime in that the shiny new shrink_to_fit() method is available in C++11 for this very purpose:

vData.clear();
vData.shrink_to_fit();

But that's just a hint, and the compiler is not obligated to honor it and deallocate memory immediately.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

At a glance, ExpressionTree doesn't appear to respect whitespace. Try using "4+8" instead of "4 + 8".

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

i get many programs form different web but i didnt got it.....

We won't do your homework for you. However, if you post the code that you sto^H^H^Hacquired from the web and point out the parts that you don't understand, we'll be happy to help you "get it".

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

Should be easy few lines of code but I'm a Beginner!

I'd suspect that the problem is you don't understand how to reduce a fraction using the gcd, or normalize two fractions from the lcm. Like you said, it's an easy few lines, but if you don't know how to do it manually, you'll never be able to write the code for it.

So your first step is to break out the old elementary math book and read up on fractions. The "hard" parts are already done: gcd and lcm are already written and can be used to reduce and normalize.

First of all that code is cryptic and you're not really saying what is the problem.

How is the code cryptic? It looks straightforward to me. Obviously the question is how to write fraction reduction and common denominator for addition and subtraction. When gcd and lcm are already written, those two functions are absolutely trivial (two or three lines of code apiece), provided one knows the math behind it.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

how to write the code for show the data from the server using vb.net

That's...a very vague question. What data? What server? How are the server and the application connected (eg. web service or local network)? Is this a web application or a desktop application? As ddanbe mentioned, what level of knowledge do you have about VB.NET and .NET in general?

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

You probably want the SQLEXPRWT version for your OS, so depending on whether you're using 32-bit or 64-bit, choose one of these:

ENU\x86\SQLEXPRWT_x86_ENU.exe
ENU\x64\SQLEXPRWT_x64_ENU.exe

They include the database engine and basic tools like Management Studio, so it's what I'd consider to be the minimum install for a server. You may also want to install the additional tools package, but it's not necessary to get rolling.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

No, ultimately the sequence you get is still bound by the randomness of the library. But if that process produces a reasonably random seed for the library, it's a net win, though I'm not sure it's worth the effort over something simpler and probably faster like taking a hash of the current system time.

ddanbe commented: I agree, was just wondering. +14
deceptikon 1,790 Code Sniper Team Colleague Featured Poster

Fastest, huh? I'd say either Apple or Microsoft on the grounds that Apple controls the hardware and thus controls the experience, which in my experience is very responsive. Likewise, Microsoft has catered to relatively low end hardware while still maintaining a minimum standard to produce similar responsiveness. Google is completely open to any and all hardware, as well as open to third party software with little or not vetting, and the OS is natively powerful, which makes it difficult to maintain a consistent experience across all devices.

This is simply a logical view of the potential performance experience on each platform. Actual experiences are somewhat subjective and will vary. Though usually comparison videos will include a speed test for things like boot up, loading apps, and navigating to websites.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

What criteria are you using to determine which one "wins"?

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

Please use our job offers forum, since that seems like what you want. Thanks.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

It sounds like you haven't read the documentation on the Dictionary class, because retrieving stored values by key is one of the most basic and fundamental operations. Specifically, what you want is the Item property or the TryGetValue() method.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

yes deceptikon...that's what i am suggesting.Peolpe outside conversation are not allowed to have downvoting option.

If you want to lock down negative votes to avoid abuse (for whatever you define as "abuse"), I'd be more inclined to have a different barrier of entry. Something like a minimum membership level or minimum reputation points. But requiring someone to post in a thread before being allowed to downvote is just asking for valueless posts. The assumption that posting for the sake of downvote rights would result in something that helps the OP is not a safe one, in my opinion.

But ultimately, your suggestion goes against the spirit of the voting system. If there are hoops to jump through when voting, nobody will vote. The feature is intended to be quick, easy, subjective, and open to all.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

but in a small (2 persons) shop which works on turnover volume it's just not practical, and I'm sure the same applies to IT.

I understand your point, of course, but my first IT job was just me and the "department" manager. My first programming job had 3 of us after I was hired, including the company owner. Both times I was informed some years later that hiring me was a gamble that paid off in spades, so I'm cognisant of the risk vs. reward of helping people get their foot in the door and try to pay it forward.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

When I was an employer, I had several job applicants with quite impressive CV's but unfortunately (for them) zero experience.

The catch is that someone has to take the gamble on an inexperienced but promising candidate, or they'll never gain experience. Lack of experience is treated like a hot potato by many employers, but I see it as an opportunity to mold someone into exactly what the company needs.

However, I have a semi-rhetorical question about your statement. If a candidate has zero experience, how could they have an impressive CV without lying? An excessive amount of education is not impressive, it's actually prohibitive because there are negative connotations to being the "professional student" who learns a lot but doesn't do anything.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster

So if I work with it professionally and can produce relevant programs with the language then I can say that I know it.

Change the "and" to "or" and I'd agree. Either you currently work with it professionally or you're capable of working with it professionally, both would be justification for placing the language on your resume. And let's be realistic, the bar for entry in using a language professionally isn't that high. ;)

Does that still apply if I spend half my time googling and using DaniWeb to get to get a programming problem solved? :)

That depends. Are you simply cutting and pasting code that you don't understand or are you searching for help with solutions that you could figure out on your own if given time to do so? I often "borrow" code snippets to solve a problem quickly, but I don't use anything that I don't understand first.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

I could never get to grips with Skyrim, it just didn't grab me like the others.

Same here. Oblivion is better in so many ways. It's the same with Fallout 3 versus New Vegas, the former is much better despite being technically inferior on several points.

Same with Dragon Age.

I prefer Dragon Age II over Origins, which doesn't seem to be the prevailing opinion. ;)

Skyfun doesn't seem like it has a good enough flowing story.

I think it would have been better if they didn't cut the faction quest lines so short. Apparently there were bugs or time crunches and they streamlined them into tedious boredom. The main quest as usual wasn't nearly as interesting as all of the side quests and things you could do on your own. That's what I love about Oblivion, Fallout 3, and the like: you're not locked into the main quest from start to finish.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

There might be option that only person in the conversation can downvote because if he/she is downvoting then they must have reason for that and solution for that.

People outside of a conversation aren't allowed to have an opinion?

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

So I was just wondering, when would you feel that you're at a point where you would say that "you know this language"?

When I'm competent enough to write non-trivial programs in the language. For example, if you're only a few steps from the hello world program you're technically a programmer and you technically "know" the language, but you don't know it well enough to use it professionally. Knowing a language well enough to use professionally is the point at which it can be placed on a resume; any sooner and you risk getting called on lying.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

Odd, Fallout 3 does work on my machine with no hassle.

Then send me your machine so that I can play. ;)

EDIT: Just remember that Fallout 3 works for me on Windows 8 because I had a fix to make it work on Windows 7 (otherwise it doesn't work there either)

Interesting. I had no issues at all on Windows 7. And by "interesting" I mean "typical", because Bethesda games are fairly well known for being finicky.

If you want me to help you get it up and running I can :)

I might take you up on that, if I'm unable to get it running when the itch to play gets so strong that I'm willing to put in the effort of making it work. ;) Right now I'm reasonably content with Skyrin (which does work), and various MMOs. I still have everything on my Windows 7 partition, but it's awkward to boot into that with my current setup...

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

In desktop mode it's so similar to Windows 7 I can't tell the difference.

For the most part. The only annoyance I feel the need to voice when people ask is that I unintentionally invoke the charms bar when moving my mouse from screen to screen. It's just slow enough to irritate me when the mouse gets locked in the upper right corner of the screen and I wanted it to move to the other screen.

I honestly don't see what the big deal is with the Start screen though. It hasn't hampered me in any significant way after about spending about 15 minutes learning what goes where.

Please give examples of the games that are now incompatible on Windows 8 but work on Windows 7.

Fallout 3 and Oblivion are two examples from my own library. Granted, I haven't tried very hard in getting them to run, but running them out of the box is full of fail.

If you really want to see a list of all your applications, scroll along the Metro interface. Should all be in there ;)

Should, but aren't always. I've installed several programs (I forget which ones) that didn't show up on the Start screen, nor show up on the list of applications for pinning to the Start screen. They're in the list of installed applications under the Control Panel though, and I was forced to navigate to the installation folder to pin my icon on the …

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

The best pickup line in the universe ever is to be good looking and fit.

That's not a pickup line, it's a set of physical traits. The idea behind pickup lines is that for some reason or another (eg. you're fishing out of your league, your target is overconfident in their attractiveness) you need to build a case to woo them. Good looking alpha males don't need pickup lines because they naturally attract and are pursued by women.

it doesn't matter how nice, genuine or confident you are

Nice and genuine, agreed. Confident, not so much because confidence is an attribute of the alpha male, which would contribute to a woman's attraction to a man. See below for details on the theory.

women are just as shallow, if not more so than guys.

I'd say equally shallow, but in different ways if you consider the gender roles that have prevailed through our societal evolution (ie. the most successful familial structure).

Studies and experiments have shown that attractiveness to a woman is heavily influenced by signs and signals of wealth and status (the so-called "Alpha Male"). This makes sense when you consider the biological imperative of seeking out a mate who can successfully handle the protector/provider role for her and her children.

On the male side, the biological imperative targets signs and signals of fertility as being attractive. Men who would be dumped into the decidedly disadvantageous protector/provider role needed to be reasonably sure that …

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

That does seem to be a browser conformance issue. It doesn't occur in IE9 or 10. I'm a bit torn between saying that a website should attempt to cover the broadest range of browsers possible, and saying that if you're still using IE8 or older you should upgrade as quickly as possible. Or if you don't have that kind of control, slap the shit out of the IT tech managing your machine. ;)

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

so there's a chance that the edit box is only still available to me as part of my admin privs...

As an admin you get all of the bells and whistles, with full permissions across the board. ;)

If there's ever any question about who can do what, we have a permissions table that lists it all out at http://www.daniweb.com/permissions/view. This page is more of a dev utility than something intended for public consumption, but it's fairly intuitive (in my opinion), and available until such a time that Dani wants to lock it down.

Think I remember a while back seeing a post on this topic somewhere and Dani stating it was a feature that was only obtainable through ranks or something now and no longer for sponsors/donators.

After perusing the code for a bit, that seems to be the case. Sponsorship doesn't alter permissions in any way that I can see. Granted I only spent about 5 minutes looking, but I'd like to think I'm familiar enough with the code to know where to look. ;)

To have access to a custom title you need to be an admin, a mod, a staff writer, or a team colleague. But there have been internal discussions amongst the staff and also in Area 51 about ways to sweeten the deal for donating, so the way permissions work now doesn't necessarily reflect how they'll work in the future.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

The ultimate pickup line: "Hi."

Rationale: Canned pickup lines are a fantastic way to fail early in the game. Just confidently approach the man or woman you're interested in and strike up a conversation.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

What is line 24 supposed to accomplish? Keep in mind that connector->next is uninitialized at this point.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

**WHY THAT HAPPENED? plese answer **

The post in question matched a pattern of spammers wherein they'll post something completely valueless to an old thread along the lines of "thanks for posting" or "that was very useful, thanks", as a means to spam their signature. We delete those as violations of the following Keep It Spam-Free clause: "Do ensure that all posts contain relevant content and substance and are not simply vehicles for external links, including signature links"

It seems you got caught as a false positive, so I'll undelete that post for you. Just keep in mind that if your signature looks spammy, there's a risk of being seen as a spammer on a case-by-case basis until you've developed a good reputation in the community. It would be a good idea to familiarize yourself with our rules. They're mostly common sense, but it helps to know what moderators look for.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

AFAIK "rank" cannot be bought. It must be earned.

Default rank. That is, any of the default ranks when you don't have a custom title will be some combination of post count, reputation points, and account age. Permissions for a custom title can be bought by donating, if I recall correctly. At least, that used to be one of the perks of donating, but I'm not in a position to check the code at the moment to cross check my poor memory. ;)

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

You missed the most amusing pattern (in my opinion):

#include <stdio.h>

void triangle(size_t n)
{
    for (size_t i = 0; i < n; i++) {
        for (size_t j = 0; j < n - i - 1; j++) {
            putchar(' ');
        }

        for (size_t j = 0; j <= i; ++j) {
            printf("%-2c", ~i & j ? ' ' : '1');
        }

        putchar('\n');
    }
}

int main(void)
{
    triangle(16);
    return 0;
}
deceptikon 1,790 Code Sniper Team Colleague Featured Poster

Your examples clearly warrant making an exception.

Be careful what you say, the bracing nazis will come knocking on your door. ;)

Fortunately, very few of my if conditions span multiple lines.

Indeed, I try to avoid it as well, for more reasons than listed above. There are a number of code flow issues that make reading broken lines more difficult, even taking into account that long lines in general have readability problems. That's why I'm somewhat annoyed with modern C++ and C# because both encourage long lines through their standard library.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

What looks more pleasing?

I'd add a third option since it's my preference:

if (some condition) {
    true part
}
else {
    false part
}

I prefer the first form. I like a balance between white space and code crunching.

The problem is that your cases are trivial. Consider a long line on the condition that one wants to break into two lines:

if (some long condition &&
    some long conditoon &&
    some long condition) {
    true part
}
else {
    false part
}

This introduces an immediate problem: how do you make a clear separation between the indented condition parts and the if statement's body? You could use a blank line, but I find that less pleasing, so this is a case where I switch to Allman style:

if (some long condition &&
    some long conditoon &&
    some long condition)
{
    true part
}
else {
    false part
}

However, that also introduces an inconsistency with the else clause that uses K&R bracing. So do you just accept it, try to avoid such cases, or use Allman for both clauses?

if (some long condition &&
    some long conditoon &&
    some long condition)
{
    true part
}
else
{
    false part
}

And if you opt for the latter, do you try to resolve the inconsistency with the rest of the code? It's easy to make a case for the simple examples, but when the code becomes more realistic there can be …

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

The std namespace isn't "defined" anywhere. All the namespace std {...} stuff is saying is that the stuff contained in the brackets belongs to the std namespace.

Splitting hairs. Wouldn't specifying what "belongs to" the namespace also be considered "defining" the namespace? The only confusing part might be that a namespace is allowed to have multiple definitions that collectively define it.

One doesn't "reside" in another.

Namespaces have to be defined somewhere, and once again it's splitting hairs to say that "resides in" doesn't equate closely enough to "defined in" to have identical meaning.

AmrMohammed may also be misunderstanding what a header is and does. It's just another text file[1] that contains certain things (declarations, and such) through convention.

[1] A compiler may choose to store the headers it provides in another way, of course.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

The MouseMove event needs to take the current state of drag into account:

Private Sub PictureBox1_MouseMove() Handles PictureBox1.MouseMove
    If drag Then
        Me.Top = Windows.Forms.Cursor.Position.Y - mousey
        Me.Left = Windows.Forms.Cursor.Position.X - mousex
    End If
End Sub
deceptikon 1,790 Code Sniper Team Colleague Featured Poster

I had no idea you lived so close by. I live in Marietta as well!

Small world. :)

I gather this group is open to guys like me?

It's open to anyone, as far as I know.

deceptikon 1,790 Code Sniper Team Colleague Featured Poster

COBOL, followed quickly by C.