Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Knurz

Pages: [1] 2 3 4 5
Purebasic / Re: Sync V2M Music 2 GLSL Shader
« on: May 30, 2020 »
Works fine here (NVIDIA 1070), and looks awesome.



I'm starting my C comp..Segmentation fault  ::)

Hi Knurz,

Code: [Select]
push HWND
push offset MsgText
push NULL
push NULL
call MessageBox

The push order should be reversed.

Code: [Select]
push NULL
push NULL
push offset MsgText
push HWND
call MessageBox


Thanks, as I said, I'm not really an assembler guy =).


Hii Knruz and thanks for the tips!, i didn't knew about the first way! :D

i hope it may be of help to anyone! = 3

edit: attached exe and asm file in if that's better :D

Well, worked out fine for me too because I needed some asm frame to work with, now I'm capturing yours *evil laugh* :)

Edit: Thanks for sharing the source

Helloo! i've been looking for a way to add a menu using WinAPI within the same .asm file, without using resource (.rc) files

It can be done in C, like explained in this tutorial

MASM32's User.lib has the same function prototypes in there (CreateMenu, AppendMenuW, SetMenu)

This is for two reasons, one is because i'd like them not to be edited/spoted using Resource Editors, the other is that i want to keep everything on one .asm source file (as what i want to do is small enough)

I've not seen anyone documenting how to do this before in MASM32 (or even other Win32-targeted compilers) and ran out of ideas trying, any kind of help is very appreciated!

thanks beforehand! :D

I'm not that big assembly crack..but.. you can use the same functions as you use them in C, if you take a look at MessageBox function you can call it in two ways:

Code: [Select]
push HWND
push offset MsgText
push NULL
push NULL
call MessageBox

If you want to use a Macro, use INVOKE which does the stack-operations for you:
Code: [Select]
INVOKE MessageBox, HWND, offset MsgText, NULL, NULL
This should work for every win32 Function too.


ASM / Re: Best assembler for win32 < 4k intros
« on: June 18, 2018 »

I think MASM32 is the most common Assembler if you want to use Intel Syntax. For AT&T I do think it's the GAS Assembler.  (try minGW)


Projects / Re: The Papillons Remake
« on: June 02, 2018 »
Just to be sure, I'm not against vc runtime or anything like that :)
I'm pointing it out because most of users don't know how to fix it by installing msvc redistributable package thing.

That's why I would like to get rid of it =).

What I do these days is to simple setup on "Code Generation" - "Runtime Library" to "Multi-threaded (/MT)" and the vc runtime will be static linked to your executable file. Sure the file will increase in size but well.. AV programs today are so annoying that you can't have small executables anymore anyway :(

Nice thanks, I'll try that =).
It's annoying and I didn't even bother to upload a compressed version.

Another way is to follow this tutorial and complete remove c runtime lib usage (prepare to have some fun ;) ).

I think I'll go with the static link approach =)


Projects / Re: The Papillons Remake
« on: June 02, 2018 »
Nice remake!

Consider removing the use of "VCRUNTIME140.dll" and it will be perfect :)

Thanks! =)

After "dumpbin'ing" the VCRUNTIME140.dll I found that this dependecy seems to come from my usage of memcpy/set.
Any suggestions how I can link it to a non-VC-RT dll (I wasn't aware that using the mem-functions opens up a new dependecy).

Projects / Re: The Papillons Remake
« on: May 27, 2018 »
Thanks Padman =)

Projects / The Papillons Remake
« on: May 25, 2018 »

I loved this intro back in the days - fast scroller, raster effects and catchy chiptune.
Excuse the bad quality of the logo, I'm such a fail at GIMP/PS..  :crutches:

Source included, only unpacked version attached..

Have fun guys =)

Mhh I don't think that this is a PureBasic related error. What I see is that some library that you're using in your Purebasic code is missing some functions, but this functions should be included in your C-runtime (printf, sscanf...). You can find this error with other languages too, this seems to be a Mac specific error. If you can add this -lSystemStubs to the gcc (I just assume purebasic converts your source to some kind of c/c-- and compiles the c-code) which builds the binaries you should be fine.

Another approach that wouldn't require a rebuild of the library is to repack the library, this is only possible if the library is static and an archive.
I don't have a mac to try this, but the linux archives accept this stuff:
Code: [Select]
root@vdr:~# find /usr/lib -name "libc.a" | grep x86_64
root@vdr:~# ar t /usr/lib/x86_64-linux-gnu/libc.a |grep ^printf.o
root@vdr:~# ar x /usr/lib/x86_64-linux-gnu/libc.a printf.o
root@vdr:~# ls -la printf.o
-rw-r--r-- 1 root root 1440 May 18 20:13 printf.o
root@vdr:~# file printf.o
printf.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
root@vdr:~# ar q libsupp.a printf.o
root@vdr:~# ar t libsupp.a | grep printf.o

This would provide the libsupp.a (some random library I copied) with the binary routines of printf..

Viel Glück bei deiner Macspielerei :P

nice machine you got there with the A4000 =).

Did you try to update the archive's index with ranlib ?

Third run: see Problem3.pdf
I have no Idea what to do?
EDIT: Seems to be my problem, but how do I fix this:
Because you need to re-run ranlib whenever the modification date of a .a file changes.


I'm not a Basic or MacUser, but it says what you should do: rerun ranlib.
You have some native *.o files packed into a zip-like archive which ends with .a. The Linker (LD) has to know which object in this archive exports which function (by reading an index), because it has to link your calls to the specific .o file (and it's corresponding function) in the archive. If the information is out of date, the linker would be able to jump into a memory of the archive that is void and your program would crash. ranlib updates the index for the archive, which should remove the error.

Code: [Select]
31300034@NL-00126:~$ ar t /usr/lib/x86_64-linux-gnu/libresolv.a

Code: [Select]
31300034@NL-00126:~$ ranlib -U libresolv.a
31300034@NL-00126:~$ echo $?


Off-Topic: Man you have an archimedes at home, which model do you own ? I own an A3010 =)

Projects / Re: Something small...
« on: March 15, 2018 »
wow! this is a really cool intro! :D i love the text effect and star! x3 big props, man! = D

also thaanks a lot for the source too! = 3

Thanks =). Unable to paint anything, I have to use something simple  ::)

You're welcome, it's not very good with comments, if you have any questions, just contact me.

Projects / Re: Something small...
« on: March 10, 2018 »
That is really neat!  :goodpost:

Appreciate, glad you like it  :||

Projects / Re: Something small...
« on: March 08, 2018 »
Works pretty fine now, very oldschoolish intro for sure  :D

Looking forward to see more GL3 experiments :)

I'm very glad it did not crash  ;D

Next one will be a little bit longer =)

Projects / Re: Something small...
« on: March 07, 2018 »
Hi Rbz!

I edited my first post and attached an, which contains the non-packed executable.

(didn't use kkrunchy for that reason, but bero's packer seems to be on the blacklist too).

@Knurz I'm so glad you liked it! +O+ also i'm amazed you are still willing to help even after it is released; thanks you so much, man! also wOW i never though about managing one long charset image with UV Mapping! that's so damn clever! =' D

also yea, they are very costly :c in fact that was made me have to shorten the greets ;-; rip BUT once i sort that out i'll ensure myself everyone that helped me on DBF are in this time x3

also absolutely! :D i'll have arrays or one recursive function that do the work of all the objects next time lmao, thaanks you so much for your useful hints and help! you rocks!~ =' D

@Rbz i'm very happy of your approval; thaanks, man!~ +O+

Hey! Glad I could bring some ideas to you.. probably everyone did his first scrolltext like you did  =).
Hope to see more prods from you and your team in near future!

Have Fun! =)

Projects / Something small...
« on: March 04, 2018 »

I played around with GL3 a little bit the last two weeks and want to show what the result of my journey is =).
Nothing big, just a one-screener Amiga-like intro.

As always, source included. In the is a file called wobjbin.c, which is an importer for 3D-Formats based on assimp ( It's written on linux, using gcc-32, so you may run into troubles compiling it on win.

Have fun!

General chat / Re: The Welcoming Committee
« on: March 01, 2018 »
Yeah, we need more C Coders onboard =)


Pages: [1] 2 3 4 5