Search found 144 matches

by Tapsa
Mon Aug 20, 2018 10:05 am
Forum: Compiler / Linking / IDE Related
Topic: Unable to link after Visual Studio update
Replies: 1
Views: 465

Unable to link after Visual Studio update

I've updated my Visual Studio from 2015 to 2017. Now my source codes are completely fine, because when I copy paste them to minimal sample project, they compile and link without any problems. I have tried to manually patch my vcxproj file, without success so far. I can hijack the minimal sample ever...
by Tapsa
Fri Mar 03, 2017 9:24 am
Forum: C++ Development
Topic: Smooth Out wxScrolled<wxPanel> Scrolling
Replies: 9
Views: 1813

Re: Smooth Out wxScrolled<wxPanel> Scrolling

You are the man, doublemax ! I added a timer to detect how much is scrolled after last mouse wheel event is processed, and it varies . Instead of skipping the event I will call Scroll directly to prevent too much scrolling. You are indeed correct that during drawing there is no other code executed, ...
by Tapsa
Thu Mar 02, 2017 8:09 pm
Forum: C++ Development
Topic: Smooth Out wxScrolled<wxPanel> Scrolling
Replies: 9
Views: 1813

Re: Smooth Out wxScrolled<wxPanel> Scrolling

That is skeleton code where I planned to add more things.
I have no drawing code for this part, but is the wx code interrupted for scroll events?
Maybe even Windows itself stacks the scroll calls before handing them over to my application?
by Tapsa
Thu Mar 02, 2017 7:42 pm
Forum: C++ Development
Topic: Smooth Out wxScrolled<wxPanel> Scrolling
Replies: 9
Views: 1813

Re: Smooth Out wxScrolled<wxPanel> Scrolling

It continues at least 20000 lines backwards (I can hold enter down and there are forever more lines to show), but here is the most recent calls: Program received signal SIGSEGV, Segmentation fault. 0x039092db in wxEvtHandler::ProcessEvent (this=0x77d70f8, event=...) at ../../src/common/event.cpp:146...
by Tapsa
Thu Mar 02, 2017 6:47 pm
Forum: C++ Development
Topic: Smooth Out wxScrolled<wxPanel> Scrolling
Replies: 9
Views: 1813

Re: Smooth Out wxScrolled<wxPanel> Scrolling

It crashes as soon as WasProcessed is called in wxEvtHandler::ProcessEvent, because the event object is destroyed? Windows 10 64-bit, MinGW-w64 6.2.0, wx 3.1.0. I came here in case someone had better idea altogether how to do this. To check if window is being painted I thought to look at the scroll ...
by Tapsa
Thu Mar 02, 2017 1:37 pm
Forum: C++ Development
Topic: Smooth Out wxScrolled<wxPanel> Scrolling
Replies: 9
Views: 1813

Smooth Out wxScrolled<wxPanel> Scrolling

I am trying to implement smooth scrolling function for wxScrolled<wxPanel> object. if ( Still painting? ) { Add one (not more) pending scrolling event. } else { Scroll immediately, causing repaint. } Default behavior, that I need this against for, is to queue up scrolling events even if the drawing ...
by Tapsa
Tue Jan 31, 2017 8:07 pm
Forum: C++ Development
Topic: How to play multiple wxSound objects at once?
Replies: 6
Views: 1319

Re: How to play multiple wxSound objects at once?

TY. That lib (along with some decoders) seems to be a good way to go. It's ridiculous that there is no one-liner library out there for such a simple thing as playing multiple sounds simultaneously. Like this #include "one_liner_sound_library.h" ... SoundLib::Play(/* some settings */); SoundLib::Play...
by Tapsa
Mon Jan 30, 2017 8:22 am
Forum: C++ Development
Topic: How to play multiple wxSound objects at once?
Replies: 6
Views: 1319

Re: How to play multiple wxSound objects at once?

wxMediaCtrl seems to have no method to load media from memory.
I need a function similar to this:

Code: Select all

wxSound (size_t size, const void *data)
It looks like I am left to seek for alternative libraries outside of wx.
It turned out that I need mp3 support too, so mixing wave forms would not be enough.
by Tapsa
Sun Jan 29, 2017 8:58 am
Forum: C++ Development
Topic: How to play multiple wxSound objects at once?
Replies: 6
Views: 1319

Re: How to play multiple wxSound objects at once?

If I understand correctly, I will need separate wxMediaCtrl objects for the simultaneously playing sounds?
by Tapsa
Fri Jan 27, 2017 11:06 am
Forum: C++ Development
Topic: How to play multiple wxSound objects at once?
Replies: 6
Views: 1319

How to play multiple wxSound objects at once?

In my program I need to play up to four sound files simultaneously. First problem I found is that wxSound is noncopyable, but I got over it only to find out that the documentation correctly says If another sound is playing, it will be interrupted. in the description of wxSound::Play, which I sadly n...
by Tapsa
Fri Dec 16, 2016 10:23 am
Forum: Compiler / Linking / IDE Related
Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
Replies: 16
Views: 2705

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

There are "setup.h" file in both mswu and mswud folders as you asked. I don't have nmake on my PC. Yes I can still build and run the minimal sample using DLL Debug configuration. MSVC is so intelligent that it looks for you already beforehand some stuff up. I have managed to get the errors in my own...
by Tapsa
Fri Dec 16, 2016 8:46 am
Forum: Compiler / Linking / IDE Related
Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
Replies: 16
Views: 2705

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

Thanks for the project, but it doesn't compile. I added WXWIN=C:\Cpp\wxWidgets to system variables. Immediately upon opening PBApp.sln these errors are shown: Error (active) cannot open source file "wx/wx.h" PBApp DLL c:\Users\Tapsa\Downloads\Empty MSVC14 DLL project\Precompiled.h 14 Error (active) ...
by Tapsa
Thu Dec 15, 2016 3:18 pm
Forum: Compiler / Linking / IDE Related
Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
Replies: 16
Views: 2705

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

To conserve space on my little SSD. Anyway, now realizing that build config needs to be identical, I finally succeeded in building minimal sample as DLL Debug. EDIT: I can't mark this topic as solved, because I only managed to build and run minimal sample. My own project still has loads of errors an...
by Tapsa
Thu Dec 15, 2016 2:47 pm
Forum: Compiler / Linking / IDE Related
Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
Replies: 16
Views: 2705

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

xP I didn't know that... now same with Visual Studio, how do I do the default build?

And, how do I build only adv, core and base libs of wxWidgets? Those USE_AUI=0 etc can only ditch half of the libs, but still several useless to me libs are built.
by Tapsa
Thu Dec 15, 2016 2:27 pm
Forum: Compiler / Linking / IDE Related
Topic: Identifier "wxZipStreamLink" is undefined + unresolved externals
Replies: 16
Views: 2705

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

Same problem still happens. I deleted wxWidgets folder, unpacked it all again from 3.1.0 7z file. Then I ran in wxWidgets\build\msw command mingw32-make -f makefile.gcc BUILD=debug SHARED=1 Building minimal sample with mingw32-make -f makefile.gcc fails to .\..\..\include/wx/platform.h:136:22: fatal...