Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:46 28 Mar 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMB4W - blit, programming or hardware error - help

     Page 2 of 2    
Author Message
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 240
Posted: 02:35pm 06 Feb 2025
Copy link to clipboard 
Print this post

  bfwolf said  On my laptop (HP Probook 6550b, Win10Pro, 22H2) MMB4W shows just a black screen - no "signon message" or anything else..  
Any ideas?

bfwolf


Nothing new or original about my ideas, but I would tray to
1) run as Administrator,
2)tray compatibility modes
3) change video drivers
4) if system has integrated and discrete video card I would try both of them (run with graphics processor..."

Not so many chances , but I would check/ask question this for searching reason of problem https://github.com/OneLoneCoder/olcPixelGameEngine/issues
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9805
Posted: 04:53pm 06 Feb 2025
Copy link to clipboard 
Print this post

Almost certainly that you haven't got the required audio DLLs. Check the various threads for how to start without audio.
 
bfwolf
Regular Member

Joined: 03/01/2025
Location: Germany
Posts: 51
Posted: 08:56am 07 Feb 2025
Copy link to clipboard 
Print this post

Thanks for your tips!

  electricat said  Nothing new or original about my ideas, but I would tray to
1) run as Administrator,
2)tray compatibility modes
3) change video drivers
4) if system has integrated and discrete video card I would try both of them (run with graphics processor..."

...


"run as Administrator" and "tray compatibility modes" I already tried, but didn't help I didn't want to change the video driver because I think Windows 10 automatically installed the optimal one - and the laptop only has the integrated "Intel graphics unit" so there aren't many options.

Unfortunately, nothing enlightening could be found in the olcPixelGameEngine issues.

  matherp said  Almost certainly that you haven't got the required audio DLLs. Check the various threads for how to start without audio.


That was a really good tip! It's quite possible that I didn't install anything "special"!

Now I just have to find out how to start MMB4W without "audio" or maybe even which DLLs are missing and install them...

Thx, bfwolf!
 
bfwolf
Regular Member

Joined: 03/01/2025
Location: Germany
Posts: 51
Posted: 08:51pm 07 Feb 2025
Copy link to clipboard 
Print this post

To give you an update: Success!

I found no hint, how to disable audio, in the forum topics..

But I had a look into the MMB4W sources - in main.cpp I found some parts that let me assume that giving '0' as 1st arg should do it - and this worked!

BTW: Does a reasonably up-to-date manual for MMB4W exist somewhere? (PDF? Link?)

bfwolf
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2375
Posted: 09:00pm 07 Feb 2025
Copy link to clipboard 
Print this post

The latest I can find
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1636
Posted: 11:45pm 07 Feb 2025
Copy link to clipboard 
Print this post

See

  Quote  OK so we know it is the audio dll which is the problem - winmm.dll

Now please try the attached but launch mmbasic from a dos box using the command

MMBASIC 0



Perhaps this should be included in the manual (Panky?)


Bill
Keep safe. Live long and prosper.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2375
Posted: 12:12am 08 Feb 2025
Copy link to clipboard 
Print this post

winmm.dll
winmm.zip
Its in C:\windows\System32 on my computer.
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 240
Posted: 09:29am 08 Feb 2025
Copy link to clipboard 
Print this post

  bfwolf said  To give you an update: Success!

I found no hint, how to disable audio, in the forum topics..

But I had a look into the MMB4W sources - in main.cpp I found some parts that let me assume that giving '0' as 1st arg should do it - and this worked!

BTW: Does a reasonably up-to-date manual for MMB4W exist somewhere? (PDF? Link?)

bfwolf



It was explained im MMB4W manual   But looking into sources sometimes really helps   .

From a command line prompt in Windows , you can start MMBasic running a BASIC program in a number of
ways as follows:-
  Quote  
MMBASIC
'opens MMBasic

MMBASIC "program.bas"
' opens MMBasic and immediately runs program.bas

MMBASIC "program" ' opens MMBasic and immediately runs program.bas

MMBASIC "program.bas",text
' opens MMBasic and immediately runs program.bas,
passes text to the program as MM.CMDLINE$

MMBASIC "program",text
' opens MMBasic and immediately runs program.bas, passes
text to the program as MM.CMDLINE$

MMBASIC 0
'opens MMBasic with audio disabled

MMBASIC 0 "program.bas" ' opens MMBasic and immediately runs program.bas with
audio disabled

MMBASIC 0 "program"
' opens MMBasic and immediately runs program.bas with
audio disabled

MMBASIC 0 "program.bas",text
' opens MMBasic and immediately runs program.bas,
passes text to the program as MM.CMDLINE$ with audio disabled

MMBASIC 0 "program",text ' opens MMBasic and immediately runs program.bas, passes
text to the program as MM.CMDLINE$ with audio disabled.


One can also create win shortcut and edit cmd properties.
Edited 2025-02-08 19:30 by electricat
 
bfwolf
Regular Member

Joined: 03/01/2025
Location: Germany
Posts: 51
Posted: 08:56pm 08 Feb 2025
Copy link to clipboard 
Print this post

Many thansk for all your help!

  phil99 said  The latest I can find

Thx!!! That helped!

  phil99 said  winmm.dll
winmm.zip
Its in C:\windows\System32 on my computer.


A few minutes ago I searched the Windows directory for "winmm.dll" - I "felt" that I had about 20 "winmm.dll" instances in various subdirectories - with different dates. There is also a "winmm.dll" in C:\Windows\System32 and I tried to copy a slightly larger one with a slightly newer date - but Windows "doesn't like it" (i.e. refuses).

  electricat said  
It was explained im MMB4W manual   But looking into sources sometimes really helps   .

From a command line prompt in Windows , you can start MMBasic running a BASIC program in a number of
ways as follows:-

...

One can also create win shortcut and edit cmd properties.


Yes - after I downloaded the PDF of the "most recent" MMB4W manual, I found the relevant section. So until I have solved the "actual problem" with the "winmm.dll", I can live with the first argument '0' for mmb4w.exe - then I just have no audio.. Who cares?

In olcPGEX_Sound.h in the MMB4W source there is the instruction
#pragma comment(lib, "winmm.lib")
and that already points to the "winmm.dll"..

Or is in fact another DLL to blame?

bfwolf
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2025