Recent Posts

Pages: [1] 2 3 ... 10
1
Hi, sinsi!
Thank you very much!
2
Use your main window's handle when calling the message box
Code: [Select]
    invoke MessageBox,mainwnd,0,0,MB_OK or MB_HELP
In your main window's message loop for WM_HELP
Code: [Select]
    invoke ShellExecute,0,0,offset hlpfile,0,0,1
3
Paljon kiitoksia, Timo!
Can just do the same with simple MessageBox? How do MsgBoxCallback? Via WM_HELP? Or track pressing the F1 key?
4
The Campus / Re: how to attach a file.hlp to MessageBox with the button "Help"?
« Last post by TimoVJL on December 18, 2018, 10:57:39 PM »
Maybe it's useless with MessageBox(), but with MessageBoxIndirect()
Code: [Select]
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

VOID CALLBACK MsgBoxCallback(LPHELPINFO lpHelpInfo)
{
//MessageBox(0,0,0,MB_OK);
WinHelp(0, "MyHelp.hlp", HELP_CONTEXT, lpHelpInfo->dwContextId);
}

void __cdecl WinMainCRTStartup(void)
{
MSGBOXPARAMS mbp;

//memset(&mbp, 0, sizeof(mbp));
mbp.cbSize = sizeof(mbp);
mbp.hwndOwner = 0;
mbp.hInstance = GetModuleHandle(NULL);
mbp.lpszText = "Text";
mbp.lpszCaption = "Caption";
mbp.dwStyle = MB_HELP;
mbp.lpszIcon = 0;
mbp.dwContextHelpId = 1; // help topic ID
mbp.lpfnMsgBoxCallback = MsgBoxCallback;
mbp.dwLanguageId = 0;
int rc = MessageBoxIndirect(&mbp);
ExitProcess(0);
}
5
The Campus / how to attach a file.hlp to MessageBox with the button "Help"?
« Last post by Mikl__ on December 18, 2018, 08:35:49 PM »
Help me to attach a file.hlp to MessageBox with the button "Help" (MB_HELP). Thank you in advance.
6
The Colosseum / Re: Alcothoughts in Alcothread
« Last post by K_F on December 18, 2018, 06:56:57 AM »
...How knows ...
Who knows
sorry

Episode I
I think

It was Sunday "extended" news  program
Sorry, I was asking about the name of the episode/Series
;)
7
The Colosseum / Re: Alcothoughts in Alcothread
« Last post by AW on December 18, 2018, 02:54:50 AM »
Someone is drinking like a Cossack but need more practice to have the same endurance.   :idea:
8
The Colosseum / Re: Alcothoughts in Alcothread
« Last post by GoneFishing on December 18, 2018, 12:59:53 AM »
 :icon_redface:
9
The Workshop / Text to Speech access violation
« Last post by jj2007 on December 17, 2018, 09:48:09 PM »
Marinus posted a cute TTS example here five years ago. When playing with it, I noticed that it works fine as long as you don't debug it. The exception happens here (Win7-64):
Code: [Select]
InterlockedDecreme Ú$  8B4C24 04         mov ecx, [esp+4]                        ; KERNELBASE.InterlockedDecrement(guessed Arg1)
77666A98           ³.  B8 FFFFFFFF       mov eax, -1
77666A9D           ³.  F0:0FC101         lock xadd [ecx], eax
77666AA1           ³.  48                dec eax
77666AA2           À.  C2 0400           retn 4

Chasing the problem is a bit difficult because InterlockedDecrement gets called a Million times. Any idea if this is a bug, a feature, whatever?

P.S.: No crash in my XP VM (but the voice is awful). On Win10, it works fine in normal mode but crashes when debugging. And surprisingly, the voice is female and talks Italian. On my Italian Win7-64, the voice is male and talks English.
10
The Colosseum / Re: Alcothoughts in Alcothread
« Last post by GoneFishing on December 17, 2018, 11:32:34 AM »
@anunitu:

I was thinking of LA but NY will do too
as a place of my reincarnation

So pray for that

and have fun:
https://www.youtube.com/watch?v=WZNb8A48USo
Pages: [1] 2 3 ... 10