NO

Recent Posts

Pages: [1] 2 3 ... 10
1
Tips & tricks / Re: Fork of QD (2.3.17) in C
« Last post by TimoVJL on Yesterday at 07:18:16 PM »
Only dd partially converted to C, lot of errors.
This is for someone who want to develop it further and fix bugs.
Code: [Select]
#include "qdc.h"
#pragma comment(lib, "QDC.lib")

int printf(const char * restrict format, ...);
int puts(const char *string);
// char *dd_to_string(const dd_real *a, char *buf, int precision, int width, int fmt, bool showpos, bool uppercase, char fill);
int main(void)
{
char buf[200];
dd_real dd;
dd_sqr_d(2.0, &dd);
printf("%lf %lf\n", dd.x[0], dd.x[1]);
int exp;
dd_to_digits(&dd, buf, &exp, 10);
puts(buf);
dd_to_string(&dd, buf, 10, 10, 0, 0, 0, 0);
puts(buf);
dd_to_string(&dd_real_pi, buf, 31, 31, 0, 0, 0, 0);
puts(buf);
dd_real_read("1.2e10", &dd);
dd_to_string(&dd_real_pi, buf, 31, 31, 0, 0, 0, 0);
puts(buf);
return 0;
}
2
Work in progress / Re: TLPEView partially imitate wjr's PEView (FREEZED)
« Last post by frankie on August 18, 2017, 11:56:16 AM »
Very good!  ;)
3
Work in progress / Re: TLPEView plugin TLPEPlgUDis86
« Last post by TimoVJL on August 18, 2017, 07:56:45 AM »
New example:
TLPEPlgUDis86 plugin for TLPEView.
Using udis86
4
Work in progress / Re: TLPEView partially imitate wjr's PEView (FREEZED)
« Last post by Vortex on August 17, 2017, 01:16:43 PM »
Hi Jack,

Attached is a screenshot viewing the functions exported by kernel32.lib

5
Work in progress / Re: TLPEView partially imitate wjr's PEView
« Last post by jack on August 13, 2017, 07:13:13 PM »
hello TimoVJL
I use Exescope an old 32-bit utility, here's screenshot
I like your programs ability to work with both 32 and 64 files, but for a naive user as myself it would be nice to have something like the above, to easily see the dependencies and the exported names.
6
Tips & tricks / Re: Fork of QD (2.3.17) dll
« Last post by jack on August 13, 2017, 06:55:56 PM »
you are the man  :)
works like a charm, thank you.
7
Tips & tricks / Re: Fork of QD (2.3.17) dll
« Last post by TimoVJL on August 13, 2017, 06:27:29 PM »
so you have to add
Code: [Select]
#if _MSC_VER >= 18
#include <algorithm>
#endif
to dd_real.cpp and qd_real.cpp
8
Tips & tricks / Re: Fork of QD (2.3.17) dll
« Last post by jack on August 13, 2017, 03:54:44 PM »
thank you
but still the same problem when using vs-2013
Quote
src\qd_real.cpp(446) : error C2039: 'max' : is not a member of 'std'
src\qd_real.cpp(446) : error C2440: '=' : cannot convert from 'qd_real' to 'int'
I have vs-2010 somewhere.
9
Tips & tricks / compare with wild args
« Last post by TimoVJL on August 13, 2017, 03:10:45 PM »
At masm32 forum:
http://masm32.com/board/index.php?topic=6463.msg69298#msg69298

Similar for PellesC:
Function name renamed to avoid conflict with original name.
Code: [Select]
int CmpWildArgs(char *s1, char *s2)
{
char *p1 = s1;
char *p2 = s2;
while (1)
{ // endless loop
if (*p2 == '*')
{
p2++;
if (*p2 != '.') // mask continues
continue;
while (*p1 && *p2 && *p1++ == *p2++)
if (!*p1 || !*p2)
break; // end of string 1 or 2
}
else
{
if (*p1 != *p2 && *p2 != '?') // differ but not a mask
break; // difference found
p1++; // advance string 1
p2++; // advance string 2
}
};
if (*p1) // string 1 searched
return 1;
else
return 0;
}
test for it
Code: [Select]
int __cdecl main(void)
{
printf("1:%d\n", CmpWildArgs("file", "*") == 1);
printf("1:%d\n", CmpWildArgs("file", "*.*") == 1);
printf("1:%d\n", CmpWildArgs("file", "f*.*") == 1);
printf("1:%d\n", CmpWildArgs("file", "file*") == 1);
printf("1:%d\n", CmpWildArgs("file.c", "file.?") == 1);
printf("0:%d\n", CmpWildArgs("file.c", "file.??") == 0);
printf("0:%d\n", CmpWildArgs("file.c", "???.?") == 0);
printf("1:%d\n", CmpWildArgs("file.c", "????.?") == 1);
printf("1:%d\n", CmpWildArgs("file.c", "file.c*") == 1);
printf("0:%d\n", CmpWildArgs("file.c", "file.c?") == 0);
printf("1:%d\n", CmpWildArgs("file.x.c", "*.c") == 1);
printf("1:%d\n", CmpWildArgs("file.x.c", "????.*.c") == 1);
printf("0:%d\n", CmpWildArgs("file.x.c", "????.*.b") == 0);
printf("0:%d\n", CmpWildArgs("file.x.c", "*.?.b") == 0);
printf("0:%d\n", CmpWildArgs("file.x.c", "*.*.b") == 0);
printf("0:%d\n", CmpWildArgs("file.x.c", "*.*.c") == 0);
printf("0:%d\n", CmpWildArgs("file.x.c", "*.?.c") == 0);
printf("1:%d\n", CmpWildArgs("file.x.c", "*?x.c") == 1);
printf("1:%d\n", CmpWildArgs("file.ext", "*") == 1);
printf("1:%d\n", CmpWildArgs("file.prj", "*.*") == 1);
printf("0:%d\n", CmpWildArgs("file.ext", "x*.*") == 0);
printf("1:%d\n", CmpWildArgs("ab39.ext", "?B39.??T") == 1);
printf("0:%d\n", CmpWildArgs("abcd.ext", "?b?.?x?") == 0);
printf("1:%d\n", CmpWildArgs("abcd.ext", "?b*.?x?") == 1);
printf("0:%d\n", CmpWildArgs("abcd.ext", "?b*.?z?") == 0);
return 0;
}
10
Tips & tricks / Re: Fork of QD (2.3.17) dll
« Last post by TimoVJL on August 13, 2017, 02:31:30 PM »
No.
build cmd attached.
Pages: [1] 2 3 ... 10