BBeck's Profile User Rating: *****

Reputation: 689 Enlightened
Active Posts:
1,598 (1.37 per day)
24-April 12
Profile Views:
Last Active:
User is offline Today, 06:08 AM

Previous Fields

OS Preference:
Favorite Browser:
Internet Explorer
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:
Expert In:
Game Programming, XNA

Latest Visitors

Icon   BBeck is experimenting in his gaming lab. Don't be alarmed if something explodes.

Posts I've Made

  1. In Topic: C++ Certifications ? Programming Certs in general

    Posted 4 Jul 2015

    I have MS SQL Server Database Administration certification. I can tell you that a lot of the jobs I might apply for will absolutely not consider you if you don't have a college degree but many of them will weight the certification pretty heavily. Some won't consider you if you don't have a college degree or the certification. So, the certification can get you in the door on those jobs.

    Most HR people who do the hiring don't have a clue what the job entails. But if you have credible certification, it lets those HR people know that someone who does know what's going on has signed off on you.

    It's not absolutely mandatory to have the certification, but it certainly puts you in a much better position when negotiating to get hired.

    It basically boils down to having more options regarding who you can go to work for and a better position for your resume in their stack of resumes they are considering.

    But it's also dependent on who's certifying you. Everyone is familiar with Microsoft or Cisco certification. But "Joe's 'puter certification" might not get you very far. So, you want to make sure the certification is industry recognized.
  2. In Topic: Array of Bytes convert to bitmap in c++

    Posted 3 Jul 2015

    Be aware that there is more than one type of bitmap file out there.

    I might recommend writing code to read the bitmap first. If you can take a known working bitmap file, read it, and display the image, then you know you understand the format. Then writing it should be basically the same process in reverse.
  3. In Topic: Function question

    Posted 2 Jul 2015

    Yep. Run it. I bet it will work just looking at it. I don't like "while(1)" or "while(true)" because it's an infinite loop and such, but I bet it will work just looking at it. I also prefer to see "true" instead of "1" for clarity's sake.

    Is it the "right" way? Well, I always like to say that "working code is hard to argue with". The person who buys your software is not going to know how you coded this (for better or worse). All they're going to know is whether the software acts the way they expect it to work, whether it runs slow, or whether it's buggy. If it runs fast enough and doesn't crash, they're happy and they're the only ones who matter. (Unless your boss is a programmer and doesn't like the way you code it.)

    The approach I would take would be to pass the value to the function by reference:

    void function (int &x)

    That would seem to be far more efficient to me. You don't have the extra variable. It's a lot fewer lines of code.

    The while loop becomes:

  4. In Topic: Why does adding an int. to an unsigned int. produce such a weird numb-

    Posted 2 Jul 2015

    So a byte has 8 bits. An 8 bit number can store up to 256 values. Bits don't have negative values, so you have to represent it some how.

    1111 1111 = 255 as unsigned
    0000 0000 = 0 as unsigned
    1000 0001 = 129 as unsigned

    So how do you make negative numbers? You assign one of the bits to mean negative.

    1111 1111 = 127 as signed
    0111 1111 = -127 as signed

    The first bit determines the sign.

    So, the first thing to notice is that the "answer" is totally different whether you read it as signed or unsigned. If you store it as 1111 1111 unsigned and read it back as signed it's 127, not 255. Store it as 1000 0001 and read it back as signed and it's +1, not 129.

    But if you add two numbers together and they exceed the amount the bits can hold the number will overflow.

    1111 1111 + 0000 0001 could be 255 unsigned plus -1 signed and the answer is not going to come out 254 under any condition. Mathematically it's 0000 0000 with an overflow which is zero.

    If it were 1111 1111 + 0000 0011 as 255 unsigned plus -3 signed it would be 0000 0010 or 2 with an overflow if you read it back as unsigned or -2 if you read it back as signed.

    Anyway, you have to be really careful when adding unsigned and signed numbers together. First, you need to convert the unsigned number to a signed number so that you are comparing apples to apples. The computer may do this for you. But the first problem is that the conversion itself may cause a problem because the value 250 is too large to convert to an 8 bit signed number. Just the conversion will overflow it. On your computer it is probably using 4 byte or 32 bit integers, but it still works the same; you just have much bigger numbers before it overflows. But then you have to read the value back as an unsigned int or you'll get the wrong answer.
  5. In Topic: Convert LPWSTR to Const Char

    Posted 1 Jul 2015

    Yep. The "w" is for "wide character" which is multi-byte Unicode. It's not an ASCII character array so the functions to work with it have to be different.

My Information

Member Title:
Here to help.
Age Unknown
Birthday Unknown
Dallas, Texas, US of A, Planet Earth, Sol System, Milky Way Galaxy
Rock music composition and performance, Grunge Music, Bebop (think Thelonios Monk), Swing (think Cab Calloway), Gaming, Astronomy, RPGs, Scuba, Sail Boats, Furniture Building, Cooking, Rocky Patel Cigars, Character Driven Dramas(like HBO's Deadwood), Story Telling (plot writing), Linguistics, Economics, Target Shooting, Electronics (don't know as much as I'd like to), all aspects of 3D game programing including music, physics, modeling, texturing, annimation, probability, AI, lighting, etc., Texas Holdem' Poker, Learning, Dogs, the love of my life (my pit bull), guns (especially 19th century black powder), putting make-up on ogres, etc.
Programming Languages:
C, C++, C#, Visual Basic, Java, Pascal, T-SQL, HTML, FoxPro, ASP.Net(very little), Assembler, Machine Code(conceptually anyway)

Contact Information

Website URL:
Website URL


Page 1 of 1
  1. Photo

    BBeck Icon

    11 Aug 2013 - 04:27
    Generally, yes. :-)
  2. Photo

    aaron1178 Icon

    10 Aug 2013 - 00:42
    You wouldn't happen to get high marks in written exams would you ;)
Page 1 of 1