Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

878912 Posts in 32944 Topics- by 24352 Members - Latest Member: odingrey

May 22, 2013, 11:45:40 PM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)The grumpy old programmer room
Pages: 1 ... 131 132 [133] 134 135 ... 275
Print
Author Topic: The grumpy old programmer room  (Read 306640 times)
knight
Level 3
***

aka dude4k


View Profile
« Reply #1980 on: April 02, 2011, 05:22:28 PM »

here it is
Code:
if (!(hWnd=CreateWindowEx(dwExStyle,
windowName, //converted from a char* to a wchar_t*
title,
dwStyle |
WS_CLIPSIBLINGS |
WS_CLIPCHILDREN,
0, 0,
        WindowRect.right-WindowRect.left,
        WindowRect.bottom-WindowRect.top,
NULL,
NULL,
hInstance,
NULL)))
Logged
mcc
Level 10
*****


glitch


View Profile WWW Email
« Reply #1981 on: April 02, 2011, 11:48:04 PM »

Can't play Super Meat Boy. Writing documentation.
Logged

My projects:<br />Games: Jumpman Retro-futuristic platforming iJumpman iPhone version Drumcircle PC+smartphone music toy<br />More: RUN HELLO
Average Software
Level 10
*****

Fleeing all W'rkncacnter


View Profile WWW Email
« Reply #1982 on: April 03, 2011, 07:00:02 AM »

here it is
Code:
if (!(hWnd=CreateWindowEx(dwExStyle,
windowName, //converted from a char* to a wchar_t*
title,
dwStyle |
WS_CLIPSIBLINGS |
WS_CLIPCHILDREN,
0, 0,
        WindowRect.right-WindowRect.left,
        WindowRect.bottom-WindowRect.top,
NULL,
NULL,
hInstance,
NULL)))

Show me the declaration of windowName.

If your system is demanding unicode, it should be something like:

Code:
const wchar_t *const windowName = L"my_window_class";
Logged

Franchise - The restaurant wars begin!

What would John Carmack do?
st33d
Guest
« Reply #1983 on: April 03, 2011, 07:01:45 AM »

Can't play Super Meat Boy. Writing documentation.

Can't play Super Meat Boy. Own a mac.
Logged
wademcgillis
Guest
« Reply #1984 on: April 04, 2011, 05:28:26 AM »

Can't play Super Meat Boy. Writing documentation.

Can't play Super Meat Boy. Own a mac.
I don't play Super Meat Boy, but I could. Own a mac. Bootcamp-ing Vista. I like it better.
Logged
st33d
Guest
« Reply #1985 on: April 04, 2011, 05:41:35 AM »

I fail to see how using Vista on a Mac is an improvement.
Logged
Skomakar'n
Level 10
*****


Vąutah


View Profile WWW Email
« Reply #1986 on: April 05, 2011, 09:55:52 PM »

I fail to see why anyone would use Vista in any computer.
Logged

mak gam
Geisha Novia: Out now!
Bottoms Up!: Devlog

Royal Railway on Twitter.

Adam Emil
mcc
Level 10
*****


glitch


View Profile WWW Email
« Reply #1987 on: April 05, 2011, 10:36:30 PM »

I fail to see why anyone would use Vista in any computer.
Obviously, to test whether your software is compatible with Vista.
Logged

My projects:<br />Games: Jumpman Retro-futuristic platforming iJumpman iPhone version Drumcircle PC+smartphone music toy<br />More: RUN HELLO
Ludophonic
Level 1
*


View Profile
« Reply #1988 on: April 05, 2011, 11:10:28 PM »

Wasted hours trying to figure out why my project dependencies in visual studio 2010 weren't working and I was getting link errors. Just discovered that they changed the way it works and dependencies don't link automatically anymore. Despite there being a linker option called Link Library Dependencies.

I also notice they finally got around to re-writing the C++ parts of the visual studio UI in managed code. Now I can enjoy a spinning ring randomly pausing everything for a couple seconds when clicking on a tab just like my C# mates. blah.
Logged
JMickle
Level 10
*****


lqikq come home


View Profile
« Reply #1989 on: April 06, 2011, 02:52:00 AM »

I fail to see why anyone would use Vista in any computer.
Obviously, to test whether your software is compatible with Vista.
is it even worth it? if someone uses vista, do you want them playing your game?
Logged

bateleur
Level 10
*****



View Profile
« Reply #1990 on: April 06, 2011, 03:26:47 AM »

if someone uses vista, do you want them playing your game?
Yes, definitely. Just because someone's using it, doesn't mean they like it. The most likely reason is that their pooter came with Vista. Modern machines don't need upgrading often. There will still be a significant section of the market with Vista machines five years from now.
Logged

wademcgillis
Guest
« Reply #1991 on: April 06, 2011, 04:26:57 AM »

if someone uses vista, do you want them playing your game?
Yes, definitely. Just because someone's using it, doesn't mean they like it. The most likely reason is that their pooter came with Vista. Modern machines don't need upgrading often. There will still be a significant section of the market with Vista machines five years from now.

I have three Windows install discs in my house. Vista, XP, and 7. I installed 7 on the family computer, XP on my netbook, and Vista on my Mac. Plus, almost everything I do on the computer is either cross platform (Minecraft / Web browsing), or Windows only (VS 2010). The only reason I got a Mac was for XCode, so I could do Mac/iOS dev.
Logged
motorherp
Level 2
**



View Profile WWW Email
« Reply #1992 on: April 06, 2011, 10:22:53 AM »

Causing myself future head-aches  Lips Sealed

Code:
// HACK-TASTIC - get ogl texture id private member
// WARNING - make sure to check / re-calc member offset when getting new versions of library
return *(unsigned int*)((char*)&m_sfImage + 40);


Edit:  Just added a static assert on library version so the compiler will remind me to check this if/when I upgrade my libraries.  Much better Smiley

Code:
// HACK-TASTIC - get ogl texture id private member
// WARNING - make sure to check / re-calc member offset when getting new versions of library
STATIC_ASSERT(SFML_VERSION_MAJOR == 2 && SFML_VERSION_MINOR == 0);
return *(unsigned int*)((char*)&m_sfImage + 40);
« Last Edit: April 06, 2011, 10:47:56 AM by motorherp » Logged

st33d
Guest
« Reply #1993 on: April 06, 2011, 02:00:23 PM »

Today's amazing Flash CS4 bug:

I was not allowed to create a local variable called "shape" in a function block. It simply refused to be assigned to a value.

Yep. You read that right. I spent an hour confirming it. No local variables called shape allowed, everything else compiled fine.

Solution: roll back to last week's backup, compile identical code, problem vanishes.

After that a completed game I've done suddenly exhibits an error on only my boss's computer and on no other. Evidently a Flash Player version bug.

I will find the man at Adobe responsible for CS4 and I will skin his genitals before stamping on them with boots made of salt.
Logged
st33d
Guest
« Reply #1994 on: April 07, 2011, 08:30:20 AM »

Finally an answer:

http://bugs.adobe.com/jira/browse/ASC-3620

Vector.unshift is broken in 10.0

Which means I have to refactor all use of Vector.unshift to Array.unshift or else I'm going to be plagued by bug reports from users who don't update their Flash Player like my boss.

AAARRRRGGGHHHHH!!!!
Logged
Pages: 1 ... 131 132 [133] 134 135 ... 275
Print
Jump to:  

Theme orange-lt created by panic