Download Pelles C here: http://www.pellesc.se
Quote from: TimoVJL on Today at 07:33:02 PMMenu option Update Schema just crashSorry, this option is broken after I redesigned the mechanism of update messages, and I forget to correct it.![]()
.386
.model flat,stdcall
option casemap:none
GENERIC_WRITE equ 40000000h
CREATE_ALWAYS equ 2
CreateFileA PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CreateFile equ <CreateFileA>
.code
OpenFileToWrite PROC fname:DWORD
invoke CreateFile,fname,GENERIC_WRITE,\
0,0,CREATE_ALWAYS,0,0
ret
OpenFileToWrite ENDP
END.386
.model flat,stdcall
option casemap:none
lstrlenA PROTO :DWORD
lstrlen EQU <lstrlenA>
WriteFile PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
.code
WriteLine PROC hFile:DWORD,LineAddr:DWORD
LOCAL BytesWritten:DWORD
invoke lstrlen,LineAddr
lea edx,BytesWritten
invoke WriteFile,hFile,LineAddr,eax,edx,0
ret
WriteLine ENDP
END.386
.model flat,stdcall
option casemap:none
CloseHandle PROTO :DWORD
ExitProcess PROTO :DWORD
OpenFileToWrite PROTO :DWORD
WriteLine PROTO :DWORD,:DWORD
.data
fname db 'Test.txt',0
line1 db 'This is a test.',13,10,0
line2 db 'Another test.',0
.data?
hFile dd ?
.code
start:
invoke OpenFileToWrite,ADDR fname
mov hFile,eax
invoke WriteLine,eax,ADDR line1
invoke WriteLine,hFile,ADDR line2
invoke CloseHandle,hFile
invoke ExitProcess,0
END start
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int __cdecl main(int argc, char **argv)
{
char buf[4096];
FILE *fd = fopen("fGdiPlusFlat.h", "r");
if (fd) {
while (fgets(buf, 4096, fd)) {
if (*buf == 10 || *buf == ' ') continue;
int len = strlen(buf);
if (!strncmp(buf, "Status __stdcall ", 17)) printf(buf);
if (!strncmp(buf+9, "WINGDIPAPI ", 11)) printf(buf);
if (!strncmp(buf+9, "WINAPI ", 7)) printf(buf);
}
fclose(fd);
}
return 0;
}
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int __cdecl main(int argc, char **argv)
{
char buf[4096];
FILE *fd = fopen("gdiplusflat.h", "r");
if (fd) {
while (fgets(buf, 4096, fd)) {
if (*buf == 10 || *buf == ' ') continue;
int len = strlen(buf);
if (!strncmp(buf, "GpStatus ", 9)) {
printf(buf);
while (fgets(buf, 4096, fd)) {
printf(buf);
if (!strncmp(buf, ");", 2)) break;
}
}
}
fclose(fd);
}
return 0;
}
Quote from: TimoVJL on Today at 12:09:18 PMFrankie's fGdiPlusFlat.h would be a good addition.
https://github.com/Frankie-PellesC/fSDK/blob/master/Include/fGdiPlusFlat.h
Page created in 0.067 seconds with 15 queries.