Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
Acmlm's Board - I2 Archive - - Posts by sloat
Pages: 1 2 3 4 5
User Post
sloat

Level: 16

Posts: 1/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 06-12-04 09:51 AM, in Delphi 5 or Visual Basic 6? Link
VB is slow and limited.
Delphi is crap. In fact, just stay away from Borland altogether.
GCC is good (not that good for windows), but you'll tear your hair out using it.

Well...that's my opinion anyway. I voted for gcc, but you should really just pick the one that you like the most.
sloat

Level: 16

Posts: 2/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 06-21-04 09:30 AM, in Sorting is ... [PHP/MySQL] Link
text/string coulmns have be enclosed in single or double quotes. check your insert query for your first problem. it's also the problem with your second set of queries. ie:

"SELECT `Downloads` FROM `kt15x_files` WHERE `Name` = '$filename' LIMIT 1"

"UPDATE `kt15x_files` SET `Downloads` = $counter WHERE `Name` = '$filename' LIMIT 1"

and also be sure to escape the strings that you're passing in the query, if magic quotes aren't turned on. php provides the mysql_escape_string() function for this.

if that doesn't work...well, sorry i guess.
sloat

Level: 16

Posts: 3/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 09-27-04 11:59 PM, in 'XML-database' driven website? Link
it'd be horrible to deal with group access though. think ms access horrible.
dunno if you planned on taking it that far, but...

i'd stick with mysql or some other rdbms. xml is better suited for things that need extreme verbosity.
sloat

Level: 16

Posts: 4/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 09-28-04 10:29 AM, in $_GET and $_POST Link
php has a feature called register_globals that will create variables via a query string or from a form. nowadays, this is turned off. the reason is that you could put malicious variables in the query string.

$_GET and $_POST aren't necessarily more secure, but you have to use them if register_globals is turned off.

more info:
http://us4.php.net/manual/en/security.globals.php
sloat

Level: 16

Posts: 5/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 10-21-04 10:52 PM, in 4bpp routine Link
ByteVal = (HighNib * 16) Or LowNib

HighNib in this case would be 4 and LowNib would be 9.

&H4 * &H10 = &H40
&H40 Or &H9 = &H49

Unless I misunderstood what you were asking.
sloat

Level: 16

Posts: 6/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-01-04 11:52 PM, in Easiest programming launguage to learn Link
It doesn't really matter which language you learn first. All that matters is that you learn how to program. There's a big difference between knowing how to program and knowing a programming language. In my opinion, if you know how to program, then you can solve a particular problem with just about any language if given enough time and effort.

If you learn one language and can't apply any of it to another language, then maybe you should think about a different career or hobby. The world needs more pottery makers.
sloat

Level: 16

Posts: 7/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-02-04 10:43 AM, in Easiest programming launguage to learn Link
VB can't make standard DLL files -- only ActiveX -- and thus can't venture in to the fun fun realm of global and cross-thread message hooks without the assistance of a 3rd party control.

VB can't do variable argument functions.

VB cannot execute multiple threads concurrently. (VB6 anyway. Multithreading is part of the .Net Crapwork)

VB cannot static link anything.

And like Disch said, you can't have direct access to the message pump, unless you create the window from scratch.

I know there's something weird about the stack and GDI. Every GDI intense project I've worked on in VB had frequent stack overflows.

Those are the only reasons I can remember that I hated VB for.
sloat

Level: 16

Posts: 8/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-02-04 09:46 PM, in How do I invert colours? Link
You could also use PatBlt to draw an inverted rect over a device context if it applies better. It's sorta the same as BitBlt, but doesn't take any source bitmaps.

For more info:
MSDN PatBlt




(edited by sloat on 11-02-04 12:46 PM)
sloat

Level: 16

Posts: 9/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-03-04 09:56 AM, in Easiest programming launguage to learn Link
Static Link Libraries are precompiled code modules that get built in to your program. VB Modules and Active X controls aren't static linked. A VB application will include ALL of the code in the module (last time i checked anyway), where as an application in C or ASM will include only the code that you use from a static lib.

Dynamic Link Libraries can be imported via an import lib at compile time, or loaded dynamically. C and ASM in Windows can handle importing functions from DLLs (provided there is an import lib) as well as getting functions dynamically, but VB can only do dynamic. If you have a dependency viewer program, you can see that the only DLL a VB application imports is the runtime.


The message pump isn't the same thing as the Window Procedure. The message pump is the GetMessage-DispatchMessage loop. It's usually only ever changed in games or something otherwise graphics intensive.

sloat

Level: 16

Posts: 10/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-06-04 10:21 AM, in Apparently I don't know as much C as I thought... Link
I'm pretty sure there are macros for VC++ that let you print to the debug output window if debugging is enabled.

I don't remember what they are...I've never used them...but I'm pretty sure I saw them somewhere in MSDN. That's not much help, I know. I do remember that the names were weird and you needed some obscure header.

But you should just forget about all that fancy debugging stuff. Everything you need is provided by the Beep and MessageBox API functions.


(edited by sloat on 11-06-04 01:22 AM)
sloat

Level: 16

Posts: 11/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-08-04 11:44 PM, in Need a leeeeeetle bit of GBA ASM help Link
should be:

bl label

branch with link. it's the same in either arm or thumb mode.
sloat

Level: 16

Posts: 12/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-09-04 11:59 PM, in Need a leeeeeetle bit of GBA ASM help Link
what's the address it's going to?
sloat

Level: 16

Posts: 13/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-10-04 08:53 AM, in Apparently I don't know as much C as I thought... Link
couldn't you write a class and overload the [] operator?
or you could just stop beating around the bush and just use a 0 based index.
sloat

Level: 16

Posts: 14/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-10-04 11:29 PM, in Need a leeeeeetle bit of GBA ASM help Link
hrm...i dunno why it wouldn't work.
i know the opcode takes a 24-bit address, but you'd think the assembler would take care of that for you.

i guess try
bl 0x071F08

i dunno what else to do. sorry i'm not more help.
sloat

Level: 16

Posts: 15/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-18-04 11:48 PM, in And you thought VB was bad for adding unneeded stuff to files? Link
You're complaining about a 36kb file when VB uses a 2 Meg runtime?
There are other optimizations that you could do that will bring it down further, but if you want to use the C Runtime functions, then 36kb is about as small as it will get.

VB stores strings in Unicode and C depends on your build configuration. If you switch to Unicode for C, the functions will switch automatically afaik, but strings have to be prefixed with an L...like so:

MessageBox(0, L "Something", L "Something else", 0);

also char is still a regular char...it's not unicode. i forget what the type is and i think you have to enable it in the build settings.

or you could use the conversion strings WideCharToMultiByte and MultiByteToWideChar. WideChar means unicode btw, and multibyte is regular.
sloat

Level: 16

Posts: 16/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-25-04 02:11 AM, in Visual Basic Question Link
To create an mdi form, set the IsMdiContainer property of the form to true.
MDI Children have to be created in code, but you can still use the Form Wizard to design the windows.

Once you create them, set the MdiParent property to the MDI Form.

Here's a page from MSDN that will help: IsMdiContainer

sloat

Level: 16

Posts: 17/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-29-04 10:01 PM, in porting VB.NET code to C++ help Link
erm...well streams are something else in C++. you're using the older C file functions, but there's nothing wrong with that. Some people will argue that they're better.

But anyway, fgets will get a certain number of bytes from a file at the current position. you don't need the loop there. you could loop it and just get one byte at a time, but that'd be a bit of a waste.

after you get the data, you can access it like any other array. x = buffer[12]; or whatever.


about the size of the data, is each element supposed to be one byte or two? if it is two, you would have to cast. either make the buffer of type short and cast to char * when you're calling fgets, or keep it the way it is and make a variable of type short * that you'd use to access the array.
sloat

Level: 16

Posts: 18/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-30-04 10:42 AM, in porting VB.NET code to C++ help Link
Disch, I was just splitting hairs with the stream thing. Personally, when i think of streams i think of the fstream class. Then I vomit.

I like the C style file functions better, but i like the Windows API the best. Not portable, but whatever. more flexible, like taking a void pointer instead of char. And I'm pretty sure the C Runtime with VC++ doesn't have functions for memory mapped files. It's so much simpler to use a pointer to walk through large files.
sloat

Level: 16

Posts: 19/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 12-14-04 09:44 AM, in Why ZAMN Editor?! Why?! Link
Hey,

Sorry about all this.
I've posted a test exe file. Just download it and replace the other file from the full edition.

new exe file

Can anyone tell me what it says when it crashes (and what you did to make it crash, ie change levels, change modes, etc.)? Any other messages that pop up would be most helpful.

-----

I just noticed in that screenshot that you have zsnes running too. If you have the rom loaded in zsnes and try to load the editor, you should get a message saying that it couldn't find the rom. I'm not sure what would happen if you tried the other way around, but I wouldn't recommend it anyway. I tried to make the editor require exclusive access to prevent file screw-ups, but I don't remember how extensively I tested this.


(edited by sloat on 12-14-04 12:51 AM)
sloat

Level: 16

Posts: 20/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 12-16-04 09:13 AM, in Why ZAMN Editor?! Why?! Link
You don't get any error messages at all when the editor starts up? Nothing about not being able to find the file or not being able to find image files?

The only reason it would crash when you try to change levels or save would be because the rom isn't loaded. There are a couple reasons it couldn't be loaded:

1. It's not named zamn.smc
2. It's not a valid rom. Won't work if it's zipped or something.
3. It's read only. Every other file attribute is ok.
4. The rom is open in something else, like zsnes or a hex editor.
5. You run it using "Run as..." in windows xp.

I don't know what else it could be.
It works fine for me if the png files are read-only. Works fine on a network share. Works with or without themes. Works fine with or without the ini file. Hardware configuration shouldn't be an issue since I used GDI.

I can't find anything that would cause it to not work the way it should.
Pages: 1 2 3 4 5
Acmlm's Board - I2 Archive - - Posts by sloat


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.018 seconds.