News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Check the forum for new posts

Started by jj2007, March 11, 2021, 01:45:19 PM

Previous topic - Next topic

jj2007

Attached the latest version of the "forum watcher". I fixed some minor glitches, now it works fine on Windows 7 and XP, but I have not yet had the occasion to test it on Windows 10 and Win XP. Feedback welcome :thumbsup:

What it does? Every two minutes it downloads a 20kB page from the forum and checks for the ten latest posts. If it finds new posts, it will popup and inform you about it. Hit Escape to minimise the window, move the mouse over the link to see the post's content.

The new version uses a RichEdit control, so that you can click directly on the post you want to see:


jj2007

Version 4 is out. Some improvement under the hood, for example: in the previous versions, if somebody used the name of a subforum in a post, like The Workshop, the post was split in two or more parts. This is fixed now.

A new feature: you can provide a file IgnoreUsers.txt that, as the name says, makes the proggie ignore posts by certain users. Search the source for User$ to see how it's done.

Source (asc & asm), executable and sample IgnoreUsers.txt attached - enjoy :thumbsup:

jj2007

#2
Version 5 is different - no more tooltips, but instead a control that shows the text.

To see the text, hover over one of the links (latest post on top).
To open the post, click on the link.


hutch--

 :biggrin:

That is a good idea, I have always hated conventional tool tips as they are slow and hard to read. If I want that type of data displayed, I put it on the title bar but you can put it elsewhere, Status bar or other controls.  :thumbsup:

zedd151

Quote from: jj2007 on March 11, 2021, 01:45:19 PM
... now it works fine on Windows 7 and XP, but I have not yet had the occasion to test it on Windows 10 and Win XP.
Wait a minute...
Works fine on XP or haven't yet tested on XP?  :tongue:
Either way, even I no longer use xp except to test compatibity.  :cool: 


I actually came here to see the issue of this program not running from the task bar... which version? When I'm inside I'll look at all the versions posted in any case... unless of course I'm on that ignore list  :biggrin:

zedd151

#5

For me, it doesn't run at all ... the latest version attached above

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name:   CheckNewPosts.exe
  Application Version:   0.0.0.0
  Application Timestamp:   6399cba9
  Fault Module Name:   CheckNewPosts.exe
  Fault Module Version:   0.0.0.0
  Fault Module Timestamp:   6399cba9
  Exception Code:   c000001d
  Exception Offset:   0000b989
  OS Version:   6.1.7601.2.1.0.256.48
  Locale ID:   1033
  Additional Information 1:   3edc
  Additional Information 2:   3edcd9941afa8417d463e16e3200e604
  Additional Information 3:   73b3
  Additional Information 4:   73b33e17ece893c1afb2de29f6a0b7ed


Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409


If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

Windows 7 64 bit. Opera web browser if that makes any difference...


Image attached in zip file (running in ollydbg)
I can open the .htm file in Internet Explorer and Opera without a problem. I switched default program to open  .htm from Opera to Internet explorer with the same results...

jj2007

Sorry, Z, is it possible that your cpu doesn't support SSE 4.2 instructions? Because that's where it crashes...

Anybody else having that problem?

zedd151

Quote from: jj2007 on January 01, 2023, 04:25:29 AM
Sorry, Z, is it possible that your cpu doesn't support SSE 4.2 instructions? Because that's where it crashes...
Write a quick proggy for me to check. It probably does not support, the computer is 11 ish years old


couple minutes later...
OOps I checked in qeditor Mine supports up to SSE 4.1 ...  :sad:  I forget that qeditor has that function for displaying cpu stuff, etc....

jj2007

Needs UAsm or a recent ML:

include \masm32\include\masm32rt.inc
.686p
.xmm

.data
align 16
someO OWORD 12345678

.code
start:
mov eax, offset someO
pcmpistri xmm0, OWORD ptr [eax], 1100b
  MsgBox 0, "No crash", "Hello Z", MB_OK
  exit

end start


Quote from: zedd151 on January 01, 2023, 04:30:42 AMOOps I checked in qeditor Mine supports up to SSE 4.1

I have a check for SSE 4.2 somewhere, apparently it fails miserably :sad:

zedd151

UASM v2.56, Oct 27 2022, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.




***********
ASCII build
***********


test.asm: 18 lines, 2 passes, 108 ms, 0 warnings, 0 errors
test.obj : warning LNK4033: converting object format from OMF to COFF
test.obj : error LNK2001: unresolved external symbol _MessageBoxA@16
test.obj : error LNK2001: unresolved external symbol _ExitProcess@4
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
test.exe : fatal error LNK1120: 3 unresolved externals
Press any key to continue . . .
Do I need uasm includes?? Or command line switches/options? Ive never used uasm before and rather not wade through documentation for one usage.

zedd151

Well I fiddled with it a bit... uasm.. forget it.
Now lemme find the 2015 build tools (for ml), they are here somewhere....  :tongue:

jj2007

Quote from: zedd151 on January 01, 2023, 04:45:13 AM
UASM v2.56, Oct 27 2022, Masm-compatible assembler.
...
test.asm: 18 lines, 2 passes, 108 ms, 0 warnings, 0 errors
...
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup

UAsm did its job, your linker is the problem.

zedd151

Quote from: jj2007 on January 01, 2023, 06:27:46 AM
Quote from: zedd151 on January 01, 2023, 04:45:13 AM
UASM v2.56, Oct 27 2022, Masm-compatible assembler.
...
test.asm: 18 lines, 2 passes, 108 ms, 0 warnings, 0 errors
...
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup

UAsm did its job, your linker is the problem.
Oh,  :tongue:
At any rate since my system is old I'm quite sure it does not meet the requirements of your program. I've already scrap binned uasm.  :toothy:

jj2007

Quote from: zedd151 on January 01, 2023, 06:54:27 AMI've already scrap binned uasm.  :toothy:

UAsm is a very fast, modern assembler, and for all normal uses absolutely compatible with MASM.

Your linker says "unresolved external symbol _WinMainCRTStartup", which means you got some options wrong. Which batch file did you use?

zedd151

Quote from: jj2007 on January 01, 2023, 07:24:56 AM
Which batch file did you use?
I already scrapped the one I cobbled together. 
You could have provided one with the options needed.   :tongue:  At any rate I don't feel like playing around with this right now. I'll look at it again later...
The only link option was "/SUBSYSTEM:WINDOWS", I tried polink as well, with no success. :toothy: