Recent Posts

Pages: [1] 2 3 ... 10
1
Mikl__'s ml64 examples / Re: OpenGL in masm64
« Last post by Mikl__ on Today at 06:12:22 PM »
Hi, TimoVJL, jj2007, felipe!
Thanks a lot!
There are asm-file, cursor, raw-file for texture and exe-file in the attachment
Interaction:
  • left mouse clicks ― rotation about x-axis
  • right mouse clicks ― rotation about y-axis
Hi, hutch--!
I will can make the planet "Australia" and its satellite "New Zealand" Feel yourself the creator of the universe!
2
The Soap Box / Re: Animals act better than this
« Last post by Siekmanski on Today at 08:46:41 AM »
If you control the narative, you can control the people.
You still think it's a conspiracy?
Or is it crime against humanity?

Your in the middle of it now, they are dividing you and instigating race wars as we speak.
Creating hell on earth.

Now it's the United States of America.
They want to control the people.
Fight for your freedom not each other.
Fight the ones responsible for this mess.

The fear of hope, happiness, freedom and trusting people.....
Don't fall for the hatred and division spread by the MSM.

Just analyse the the left-wing news outlets and compare it with reality.
The MSM ( Marxist democrats ) are setting you up, they are part of the evil, open your eyes and ears.
Use logic, think for yourself.
Who are bailing out rioters?
Why are Antifa rioters called protesters?
Why do Marxist democratic governors and mayors refusing Trump's help?
It's all part of their plan!

Who wants to destroy its own neighbourhood?
This is not about race issues, it's about divide and conquer.

They are afraid of Trump, WHY?
- Their EVIL actions and evil plans will be exposed by him.
- Why all the censoring on twitter and other multimedia?
- They don't want you to know!

The USA is not the first country in this situation.
Meet the people who are behind this mess and how other countries collapsed by these evil people.
This video documentary shows you exactly who are responsible for destroying your countries and your lives.

https://www.youtube.com/watch?v=8qp_q26ueIc ( don't miss the end of this video!!! )

Learn from history, it is real and has nothing to do with conspiracy loonies.
It's happening now in the USA.

The truth is learned, never told.
Use logic, think, mathematical improbabilities, put the facts together, connect the dots.
Immigration problems ( created hate and division ) all over the world, funded by Soros!!!!
3
The Workshop / Re: JpgTool application
« Last post by jj2007 on Today at 08:02:08 AM »
GdipCreateBitmapFromStream is much more flexible, as it just needs a pointer. That can come from InputFile or from an RCDATA resource, or even straight from the Internet. GuiImage can use all three modes.
4
The Soap Box / Re: Animals act better than this
« Last post by Magnum on Today at 07:10:23 AM »
In talking with some business owners, I found out some interested items.

1. Many waiters are not returning to work because they get more on unemployment that they did at a restaurant.

2. Some patients who do not have Covid, are classified as such because the hospital gets $14,000 for the ventilator

Things are improving quite a bit in Texas.

Many businesses are re-opening. :-)
5
The Orphanage / Torn writes and journaled file systems
« Last post by Magnum on Today at 07:04:12 AM »
Since we have a lot of gurus here, I seek your wisdom.

I was curious as to why Windows NTFS file system needs defragmentation as opposed to ext3 and ext4 systems.

So I did some research and I found this and would be interested in your feedback.

<The main disadvantages of a journaling system are that writes can get randomized and, more importantly, the act of updating the disk can corrupt <previously written metadata if power is lost at the time of the write, a problem commonly known as torn write.

https://docs.microsoft.com/en-us/archive/blogs/b8/building-the-next-generation-file-system-for-windows-refs

I found this on "torn writes", but to be honest I do not understand the explanation.

http://www.joshodgers.com/tag/torn-write/
6
The Campus / resource file way instead?
« Last post by daydreamer on Today at 06:43:54 AM »
I am trying to go what seems the modern way of have the textmessages data in resource parted from main file and make use of it in a messagebox that pops up,with all kinds of "loadstring",loadintresource ...
I got it working now but how do I also make caption and other things like the "about box"?
what ID numbers are safe to choose to not interfere with other windows messages?1024?

Code: [Select]
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE resource.
//
#ifndef APSTUDIO_INVOKED
#include "targetver.h"
#endif
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE 9, 1

/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.

IDI_PSEUDO3D       ICON        "pseudo3d.ico"//"rose.ico" dont work
IDI_SMALL               ICON    "small.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDC_PSEUDO3D MENU
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "E&xit",                IDM_EXIT
    END
    POPUP "&Help"
    BEGIN
        MENUITEM "&About ...",           IDM_ABOUT
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//

IDC_PSEUDO3D ACCELERATORS
BEGIN
    "?",            IDM_ABOUT,              ASCII,  ALT
    "/",            IDM_ABOUT,              ASCII,  ALT
END


/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ABOUTBOX DIALOGEX 0, 0, 170, 62
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About pseudo3d"
FONT 8, "MS Shell Dlg"
BEGIN
    ICON            IDR_MAINFRAME,IDC_STATIC,14,14,21,20
    LTEXT           "pseudo3d, Version 1.0",IDC_STATIC,42,14,114,8,SS_NOPREFIX
    LTEXT           "Copyright (c) 2020",IDC_STATIC,42,26,114,8
    DEFPUSHBUTTON   "OK",IDOK,113,41,50,14,WS_GROUP
END

/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
    IDD_ABOUTBOX, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 163
        TOPMARGIN, 7
        BOTTOMMARGIN, 55
    END
END
#endif    // APSTUDIO_INVOKED

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE
BEGIN
    "#ifndef APSTUDIO_INVOKED\r\n"
    "#include ""targetver.h""\r\n"
    "#endif\r\n"
    "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
    "#include ""windows.h""\r\n"
    "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
    "\0"
END

3 TEXTINCLUDE
BEGIN
    "\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED

/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE
BEGIN
   IDC_PSEUDO3D   "PSEUDO3D"
   IDS_APP_TITLE       "pseudo3d"
IDC_INVENTORY "inventory \nsayonara flute\nhammer\ngoldie key\nlockpick\n"
END

#endif
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE resource.
//

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

7
The Workshop / Re: JpgTool application
« Last post by hutch-- on Today at 06:31:37 AM »
Hi Erol,

Your version worked as before but I have tracked it down using your working example. It seems that the GDI+ function will only work with a BMP file. I changed it to a PNG and it no longer worked.
Code: [Select]
// 1000 BITMAP logo.bmp

1000 RCDATA "logo.png"
This is unfortunate as the code was clean and simple.
8
The Campus / Re: Float to ASCII
« Last post by JK on Today at 06:02:28 AM »
Thanks a lot - this one cost me quite some time!

I´m asking myself why the uppercase version just doesn´t work. According to here (https://en.cppreference.com/w/c/io/fprintf) and here (http://www.cplusplus.com/reference/cstdio/printf/) it definitely should.


JK
9
The Workshop / Re: JpgTool application
« Last post by Vortex on Today at 05:19:34 AM »
Hi Hutch,

Could you try the attached new version? Here are the modifications :

Code: [Select]
start PROC

    mov     rax,OFFSET StartupInfo
    mov     GdiplusStartupInput.GdiplusVersion[rax],1
    invoke  GdiplusStartup,ADDR token,ADDR StartupInfo,0
.
.

Code: [Select]
    .ifeq edx,WM_CREATE

        invoke  LoadRsrcImage,1000
     
    .elseifeq edx,WM_PAINT

Code: [Select]
LoadRsrcImage PROC ResID:QWORD

LOCAL BmpImage  :QWORD

        invoke  GdipCreateBitmapFromResource,hInstance,ResID,\
                ADDR BmpImage

        invoke  GdipCreateHBITMAPFromBitmap,BmpImage,\
                ADDR hBitmap,0

        invoke  GdipDisposeImage,BmpImage

        mov     rax,hBitmap
        ret

LoadRsrcImage ENDP
10
The Campus / ComboBox and Registry
« Last post by caballero on Today at 04:51:26 AM »
A simple example listing subkeys from a key in the registry, src included.
Pages: [1] 2 3 ... 10