Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
46 user(s) are online (33 user(s) are browsing Forums)

Members: 2
Guests: 44

amije, samo79, more...

Headlines

Forum Index


Board index » All Posts (thomas)




Re: Locale.library format string
Not too shy to talk
Not too shy to talk


@abalaban

See autodocs of locale.library/FormatDate:

%H - hour using 24-hour style with leading 0s

The second h is just a h. %Hh will give you 22h at 10 pm.

Bye,
Thomas

Go to top


Re: Launching ADF files off of a HD...
Not too shy to talk
Not too shy to talk


@outlawal2

There is no such thing like a "program in ADF format".

ADF files are backups of floppy disks. You have to write them back to floppy or mount them in a virtual floppy drive to do anything with them.

Note that most games do not run from a virtual floppy drive because they access the floppy hardware and do not use operating system functions to read data.

Some virtual floppy drives:
http://aminet.net/package/disk/misc/diskimage
http://aminet.net/package/disk/misc/xfs
http://aminet.net/package/disk/misc/fms_20

Software to write ADF files to floppy disk:
http://aminet.net/search?path=disk&desc=ADF

Bye,
Thomas

Go to top


Re: Resize an array in C
Not too shy to talk
Not too shy to talk


@freddix

Quote:

freddix wrote:
Imagine I have an array defined with this :

char WindowTitle[] = "MyArray";

and I want during execution for example, to change it by a new string

char NewTitle[] = "TitleEnteredByUser";

and I want to put NewTitle[] -> WindowTitle[]



In order to keep it as simple as possible I would do something like this:



char WindowTitle[256] = "MyTitle";
.
.
.
strcpy (WindowTitle,"TitleEnteredByUser");



Just make sure that the user cannot enter more than 255 characters.

Bye,
Thomas

Go to top


Re: GCC Compilation warnings I cannot fix
Not too shy to talk
Not too shy to talk


@freddix

Quote:
*NewObjectListPTR is a pointer to a list of pointers.


That's not what you told the compiler.

If you declare a variable like this:

type *var;

then "var" is a pointer to "type". And if you later reference "*var" then this means you are referencing the "type" which "var" points to. If "type" is int, then you reference an int.

Bye,
Thomas

Go to top


Re: GCC Compilation warnings I cannot fix
Not too shy to talk
Not too shy to talk


@freddix

Quote:

int *ObjectPTR2;
int *NewObjectListPTR;
*NewObjectListPTR = ObjectPTR2; // LINE 212 IS HERE //


This really should be obvious.

NewObjectListPTR is a pointer to an int, so *NewObjectListPTR is an int. You assign ObjectPTR2, which is a pointer, to that int.

I am not sure what this line actually shall do. If the code works correctly, you could do something like

*NewObjectListPTR = (int)ObjectPTR2;

but that would only prove that you don't know yourself what the code is doing.

Better declare all variables so that it works without a cast.

Bye,
Thomas

Go to top


Re: CyberStorm PPC Message
Not too shy to talk
Not too shy to talk


@CountRaven

You also have to add the name and path of the file to the Kicklayout.

You can do anything into the Kickstart directory but only what is mentioned in the Kicklayout is loaded. Everything else is just ignored.

Bye,
Thomas

Go to top


Re: CyberStorm PPC Message
Not too shy to talk
Not too shy to talk


@Framiga

Quote:
The best way is to give AOS4 the higher priority (no need to enter twice in the early boot menu)


Nonsense. Both MorphOS and AOS4 allow to set the boot device by parameter or Kickstart entry. So the best way is to give the OS 3.9 partition the highest boot priority, set boot drive parameter in MorphOS and add boot drive text file to OS4's Kickstart layout. Then you need to enter the boot menu only once, no matter which OS you choose.

Go to top


Re: An expanded mkfile executable
Not too shy to talk
Not too shy to talk


@Slayer

Quote:
mkfile "GBCPC V8 Full.rar" 3 gb 466 mb 840749 kb


This is not possible. You could theoretically remove the SIZE parameter and turn all /S in to /K/N, but then you could no longer write 3 GB but had to write GB 3 or GB=3.

Another possibility is to keep the /S and turn size into /N/M. But then you could no longer tell which number belongs to which unit. For example you could write 1 MB 2 KB 3 GB but the program would make 1 GB, 2 MB and 3 KB of it.

Even now you can already use 1 KB MB GB and the program would use 1 GB because it checks for GB first and ignores the other switches if it finds GB.

In addtion your calculation is wrong. 3 GB are 3072 MB and not 3000 MB, so 3 GB + 466 MB is not 3466 MB but 3538 MB.

Bye,
Thomas

Go to top


Re: Reinstall OS4?
Not too shy to talk
Not too shy to talk


@magic

"I don't think you need to install again. The 68k is deactivated by OS4 anyway. "

Better ?

Go to top


Re: Reinstall OS4?
Not too shy to talk
Not too shy to talk


@badgerme

I don't think you need to reinstall. The 68k is deactivated by OS4 anyway.

Go to top


Re: ChunkyPPC.Library version 31
Not too shy to talk
Not too shy to talk


@nubechecorre

You can download Freespace demo from Hyperion's web site. It contains V31 of chunkyppc.library.

Go to top


Re: Strange IDE problem
Not too shy to talk
Not too shy to talk


@CountRaven

The message means that a previous write process was interrupted and that now an automatic validation process is running in the background.

The worst thing you can do is to shut down or reset the computer while it is validating. You should just wait until it is finished (click on Retry regularly).

Fortunately in your case the validation process was already finished and after the reset all worked normally.

Bye,
Thomas

Go to top


Re: mouse wheels and input.device
Not too shy to talk
Not too shy to talk


@whose

Wheel speed is stored in ie_X and ie_Y.

Bye,
Thomas

Go to top


Re: Hard installation problems with SFS errors on reset
Not too shy to talk
Not too shy to talk


Sounds like a transmission error between the HDD and the controller. Try to reduce the DMA speed in UBoot and make sure you use an 80-line UDMA cable.

Go to top


Re: rawkey/vanillakey
Not too shy to talk
Not too shy to talk


@orgin

You should not examine the code without knowing which message you got. You will get a raw code for a RAWKEY message and an ASCII code for a VANILLAKEY message.

If you request both, Intuition will send a VANILLAKEY message for all keys for which one ASCII characer exists (i.e. letters, numbers, Esc, Return etc.) and a RAWKEY message for all other keys (i.e. cursor keys, function keys, qualifiers etc.)

Bye,
Thomas

Go to top


Re: ILocale->FormatString32() example
Not too shy to talk
Not too shy to talk


@krashan

Here are examples for various format functions:

http://www.amiga-news.de/forum/thread ... id=25548&BoardID=7#257442

It's for OS 3.x, though, i.e. FormatString32 is not contained. But it should be similar to the older FormatString.

Bye,
Thomas

Go to top


Re: Transfering from 680x0 to PPC
Not too shy to talk
Not too shy to talk


@Alkaron

It should work out of the box. Uninitialized is not good. Check with the old hardware if it's still recognized. Perhaps you damaged it during the transport.

How (and where) did you connect it to the PEG ? How (and where) was it connected to the Amiga ?

Bye,
Thomas

Go to top


Re: Listbrowser background color
Not too shy to talk
Not too shy to talk


@orgin

Quote:

orgin wrote:
@salass00

Thanks, unfortunately the listbrowser remains dull gray. (GA_BackFill, myhook)


Perhaps try REACTION_BackFill instead ?

Bye,
Thomas

Go to top


Re: SAMBA on the SAM
Not too shy to talk
Not too shy to talk


@tommo1975

The netbios-ns message comes because nmbd is not running. Windows seems to flood a malfunctioning computer with requests.

Nmbd usually fails to run if it cannot write its log file. Use SWAT in extended view mode to check if all configured paths do actually exist (extended view also shows default values which are not written to smb.conf).

Also check the log files for interesting messages. Usually the log files contain useful hints.

And don't blindly believe an idiot's guide if you aren't an idiot.

Bye,
Thomas

Go to top


Re: Compactflash to IDE adapter
Not too shy to talk
Not too shy to talk


@Fernecho

No special software is needed. The CF card is handled like a hard drive. Just use HDToolbox to install it.

If HDToolbox does not see it, then the CF card you use is not compatible.

Bye,
Thomas

Go to top



TopTop
« 1 ... 7 8 9 (10) 11 12 13 14 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project