![]() |
|
MapSlapper |
spellcaster
Member #1,493
September 2001
![]() |
X-G, I know. -- |
Trezker
Member #1,739
December 2001
![]() |
I've tested the Slapper and likes it a little. Has run it on 98, works well. I've read every word of the docs. |
23yrold3yrold
Member #1,134
March 2001
![]() |
Quote: But I'd prefer if 23 could simply fix the bug So would 23. But I have no idea what the problem is. -- |
X-G
Member #856
December 2000
![]() |
Compiling from scratch didn't help when I tried it, so I doubt it's going to work for SC. -- |
Matthew Leverton
Supreme Loser
January 1999
![]() |
Ok, I just tried it on my "out-of-the-box" laptop with Windows XP SP1. Nothing happens after double-clicking on the program. If I look at the task manager, I can see that the process starts. It dies without any warning a few seconds later. Upon disabling the visual themes for the executable, it loaded right up. I may play around with the source if I feel up to it. |
Trumgottist
Member #95
April 2000
![]() |
I've played around a bit with the Compability Administrator for XP and MapSlapper, and I think I've narrowed down the reason for the crash. Applying the compability fix called AliasDXDC allows MapSlapper to run without disabling themes. This is the description of the fix: MS Compability Administrator said: Windows 9x and Windows 2000 internally cache DirectDraw DC handles. This guarantees that the same DC would be returned for a particular surface regardless of how many times it was released and acquired. This compatibility fix aliases DCs returned by DirectDraw and then de-aliases them when GDI functions are called. I hope that helps. -- Play my game: Frasse and the Peas of Kejick |
23yrold3yrold
Member #1,134
March 2001
![]() |
Thanks Trumgottist! So is this something I need to do or is this something the end user needs to do? BTW, I just picked up a mouse w/ scroll wheel, so I get to code the tile scrolling now -- |
Trumgottist
Member #95
April 2000
![]() |
It's something you need to do if it is to work nicely in XP, but I've narrowed down the problem for you. Exactly how to fix it I leave to you to figure out. -- Play my game: Frasse and the Peas of Kejick |
23yrold3yrold
Member #1,134
March 2001
![]() |
Sounds like I either need to give windows their own DC or stop doing so I'll see if I'm using any CS_OWNDC messages or anything later. EDIT: I added mouse wheel functionality; scrolling with it while drawing with the left or right button moves through the tiles now. Details are at the bottom of tour.html. Works great; I love it Google turns up nothing on AliasDXDC, so heck if I know what to do with this info -- |
Trumgottist
Member #95
April 2000
![]() |
I don't know C++, so I haven't even looked at your source, but what the quote above says is that you shouldn't count on a DC for a particular surface to stay the same. Exactly what that means, I don't know since I know nothing about DCs. However, if you want to throw test versions at me, feel free. You shouldn't worry about AliasDXDC, it's just a part of the Compability Administrator - a tool I used to get your program running. What's intresting is only that your program runs with that fix loaded = that's where the trouble is. Sorry if I confused you. -- Play my game: Frasse and the Peas of Kejick |
23yrold3yrold
Member #1,134
March 2001
![]() |
Okay, I think I found something like that. I have a "double-buffering" HDC that's static and updated in WM_SIZE for the main tile-drawing window. I've now restrained it's creation and destruction to WM_PAINT (which I didn't do initially since I thought it might be slower). It still works for me, so let's see if it works for you On the scroll wheel stuff; you may find tile scrolling while drawing messes up the Undo. It seems to work okay for the left button but not the right; I'm working on fixing this -- |
Trumgottist
Member #95
April 2000
![]() |
Still the same. (Btw: Tried to compile it with VC 6... tons of errors and warnings. _argc and _argv for example) -- Play my game: Frasse and the Peas of Kejick |
23yrold3yrold
Member #1,134
March 2001
![]() |
So what should I use for VC6? _argc and _argv work fine in MinGW I made a minor change or two; any difference? -- |
Trumgottist
Member #95
April 2000
![]() |
Crash, boom, bang. GetCommandLine() - (That's what the Allegro sources use.) -- Play my game: Frasse and the Peas of Kejick |
23yrold3yrold
Member #1,134
March 2001
![]() |
Yeah, I guess Roxette would be big in Sweden Okay, this one comments out the main message pump and just displays a friggin' MessageBox(). Does that at least come up!? Any other XP users are free to jump in and give Trrumgotist a break -- |
Trumgottist
Member #95
April 2000
![]() |
Nope. Still crash. Edit: This one crashes with disabled themes aswell. And with AliasDXDC. Weird. -- Play my game: Frasse and the Peas of Kejick |
23yrold3yrold
Member #1,134
March 2001
![]() |
You gotta be kidding! I removed the _argv/_argc and wrote up some code to do the equivalent using GetCommandLine(), plus I added some MessageBox()'s to the initialization code. Any difference this time? EDIT: Funny; still works just fine for me ... -- |
Trumgottist
Member #95
April 2000
![]() |
"hello world" -- Play my game: Frasse and the Peas of Kejick |
23yrold3yrold
Member #1,134
March 2001
![]() |
Well at least it's getting past the loading now Try now; I added a check to see if CreateWindow fails. That was the command right after "Creating Window!" ... -- |
Trumgottist
Member #95
April 2000
![]() |
Dies immediately. -- Play my game: Frasse and the Peas of Kejick |
Derezo
Member #1,666
April 2001
![]() |
Odd. [edit] "He who controls the stuffing controls the Universe" |
23yrold3yrold
Member #1,134
March 2001
![]() |
Well I hate to cry uncle, but I honestly have no idea what else I can do EDIT: "Bummer" means "GetCommandLine() didn't work" -- |
Derezo
Member #1,666
April 2001
![]() |
no, it no longer works with themes disabled. It shows the window and crashes both ways for me. [edit] "He who controls the stuffing controls the Universe" |
Trumgottist
Member #95
April 2000
![]() |
And for me it crashed right away, no matter what I do. -- Play my game: Frasse and the Peas of Kejick |
Derezo
Member #1,666
April 2001
![]() |
There must be something about this on the msdn site or gamedev or something. "He who controls the stuffing controls the Universe" |
|
|