Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
Acmlm's Board - I2 Archive - - Posts by HyperLamer |
User | Post | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HyperLamer <||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4281/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Some of these I would like to be able to run in pure DOS (not possible with all of them, but yeah). As for the batch file problem, apparently I didn't fix it after all. XP's command line seems to be doing this really strange and stupid thing with my parameters. Observe: program.exe *.cow - Arguments are '*.cow' assuming there are no .cow files nearby. program.exe *.exe - Arguments are 'program1.exe program2.exe program3.exe' etc, listing whatever files match the given pattern. I need to see the pattern itself, not a list of files. (I got findfirst() to work though, and might I say that thing REALLY needs a way to filter by attributes. ) Also, I'm wondering how possible it is to do various things with console windows, such as: -Open one console window and have several different programs output to it (specially designed to do so). -Have a program spawn console windows and output to them; prefferably being able to create a few different ones and show different things in them simultaneously. It'd really help with some of the bigger projects that don't have real GUIs yet. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HyperLamer <||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4282/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
For me it takes... Oh right, it doesn't, because it's 2GB and only contains one component I'd ever want to use. Seriously, getting a bit off topic? |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HyperLamer <||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4283/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I'm sure by "destroyed" they meant "put popups on the desktop they couldn't figure out how to remove". | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(restricted)
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4285/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
Well let's see, where to start here... |
1) What I do is edit my makefile (a batch file) to have windres compile them before the program. Then I'm pretty sure you just include them in the call to gcc, like "gcc -o program.c resource.o" or something like that. 2) DialogBox() is one, I think another was something like CreateDialog()... MSDN has tons of info on this (and no, you don't need a license of, or even to be running, any Microsoft product to view it ). The biggest thing to keep in mind is that controls are treated just like windows, which can be confusing at times. (Also, there's MessageBox() for a pre-made, generic message box.) 3) Depends what kind and how you're using them. printf("%d",Var) prints a numeric variable. printf("%s",Str) prints a string. printf("%c",Var) prints a character (which can be a number, for example 31 prints an exclamation point). You can format them too: %3d = " 42", %03d = "042", and even hex: %x = "2a", %X = "2A", %03X = "02A" and so on. Outside of printf() it's pretty simple. Var = Var + 2; //Self-explanatory Var += 2; //Same as above Var++; //Same as 'Var = Var + 1', and yes, you can do -= and -- too &Var; //Pointer to Var (This would be int*, not int, or whatever type it is) 4) MSDN, unlike most things Microsoft (), isn't all that bad. If you just use the search instead of trying to navigate manually, you should be alright. Besides that, typing a function's name (with or without brackets) usually yeilds good results, but you might need to add 'c' or 'c++' to the query.
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4286/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
Thanks, I'll try that next time I get work on a project that needs a GUI. |
As long as we're discussing C, is this possible? const char x[] = "Text: "; What I want is to NOT have a null terminator at the end of x, so that it flows right into y, and the above would print "Text: Hey, it's text". Any way to do that? Also, how can I make a function with a variable number of arguments like printf()? (Actually, I'm just making something like printf() but with one extra argument, in case that helps. )
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4287/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
[edit] Ok... The problem just kinda disappeared when I fixed a missing bracket in another function in a completely different file. [/edit] |
Ooh, here's another, very interesting one: BYTE ReadMemory(int Addr, int AccessType) The first if statement is fine, but when it gets to the second one, suddenly Addr is undeclared and the function returns void (warns me about returning a value in a function that doesn't). As for the null-less string thing, it looks like it worked (no errors) but I can't very well tell with this problem. (edited by R2H2 on 04-25-05 04:29 PM)
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4288/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
Nice page tite but you need to change the image tags. You want Title, not Alt; IE showing the Alt text is just Microsoft stupidity. |
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4289/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
Shy Guys > Mario. |
(restricted) |
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4291/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
Hah, I should have thought of that. And yes, it is global. |
Any idea why DIB sections might draw wrong? Say I write 0xFFFFFF into the bitmap; rather than drawing one white pixel it draws one red, one green and one blue! I'll post more info later; I need to go and can't get into my FTP anyway.
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4292/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
It's 24. Here's what I was doing, it's a bit messy at the moment though: |
BYTE GFX0[2][0x1800]; //8000 - 97FF Tiles
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4293/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
I'm not sure about 8-bit; as you can maybe tell it's a Gameboy emulator, and GBC uses 15-bit colours. I figure I'll need at least 16 (though I could get away with 8 in non-colour mode). Will I need to define a palette for those though, or do they have a default one? |
Good point about the desktop colour matching too; I'll probably end up writing something to match the current colour settings. And thanks for pointing out the pointer (no pun intended). I keep forgetting that int pointers increment by the size of an int. [edit] Er, what exactly does the 4th byte do in 32-bit colour? Depending what I set it to in each colour, different colours will show up or not, and no matter what combination I use everything shows up blue. (edited by R2H2 on 04-28-05 06:12 AM)
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4294/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
Ah, found it... Another pointer problem. I had changed MainBMPData to a byte pointer for the 24-bit colour and forgot to change it back. |
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4295/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
My computer seems to be having trouble staying in Standby mode. I activate it, the hard drives shut down, the screen goes blank, and then a second later it starts up again. This happened yesterday and I finally got it to work by not allowing the mouse to bring it out of standby mode; this let it stay but interestingly enough moving the mouse would still bring it back up. Today that's not even working... I tried enabling it for the mouse and disabling it for the keyboard instead, and that seemed to work (only tested it once) but nothing except the power button will bring it back up. Nothing else is set to be able to do it... What could be doing it? |
[Generic computer info crap] OS=WINDOWS_XP SERVICE_PACK=NONE RAM=192MB CPU=800MHZ CELERON VIDEO=4MB ONBOARD CRAP=TRUE [End generic computer info crap] (restricted) |
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4297/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
Well I'm getting around 400% speeds, and I think even NO$GMB uses GDI. I will check that out though. Do you need to have some special program installed for that like with DirectX though? |
I suppose 8-bit could work if I dump the palettes into it whenever they're changed. [edit] Also how can I get the size of the window borders and title bar? CreateWindowEx() seems to be including them in the window's size, so my actual drawing area is too small. Bah, more fun bugs. I'm writing the colours 183C4A, 397D9C, 5AB6DE and 8CEBFF. It's drawing the colours 394900, 7B9E00, B5DF00 and EFFF00. It works fine if I use 000000, 404040, 808080 and C0C0C0. (edited by R2H2 on 04-29-05 06:48 AM) (edited by R2H2 on 04-29-05 12:51 PM) (edited by R2H2 on 04-29-05 05:07 PM)
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4298/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
I think the working directory would be MinGW's \bin directory (where the compiled EXE gets placed). That's where it is for me but I can't remember if I maybe changed some setting or hacked something up to make it that way. |
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4299/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
Er yeah, I did mean the MSDN library, but I usually just go to msdn.microsoft.com and type whatever function I'm looking for in the search box. If it exists it'll be the first or second result. |
HyperLamer |
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 4300/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours
|
It uses less power. |
It can't be any of those except maybe #3. Keyboard and mouse are both disallowed (and weren't being touched, though they could be defective), as well as the network, and the modem (if there's even still one in there) isn't plugged in. There is the slight possibility that it is the network though. Considering how the mouse was still able to turn it back on when I disabled that... FreeDOS: Sure. As soon as they make a version my computer can boot up with. |
Acmlm's Board - I2 Archive - - Posts by HyperLamer |