Search found 387 matches

by mael15
Fri Dec 06, 2019 5:28 pm
Forum: C++ Development
Topic: opencv2 setlocale clashes with wxLocale
Replies: 2
Views: 41

Re: opencv2 setlocale clashes with wxLocale

setlocale(LC_NUMERIC,"C"); When is this called and when do you get the assert? Can you make sure that wxLocale is only initialized after openCV? It is called when I use https://docs.opencv.org/3.4/dd/d1a/group__imgproc__feature.html#ga47849c3be0d0406ad3ca45db65a25d2d to detect circles in an image a...
by mael15
Fri Dec 06, 2019 3:51 pm
Forum: C++ Development
Topic: opencv2 setlocale clashes with wxLocale
Replies: 2
Views: 41

opencv2 setlocale clashes with wxLocale

Hi, I started using opencv2 and it uses setlocale(LC_NUMERIC,"C"); for the float decimal point. Now I myself use wxLocale for the language of my program resulting in: // As we get our decimal point separator from Win32 and not the // CRT there is a possibility of mismatch between them and this // ca...
by mael15
Thu Nov 28, 2019 1:16 pm
Forum: General Development
Topic: pattern recognition of circles in images
Replies: 1
Views: 80

pattern recognition of circles in images

I need an initial push in the right direction. My goal is to achieve some sort of image pattern analysis for circles in an image. I have attached two examples, I want to extract the small circles, maybe even the lines in the black & white image that stand for a plane full of circles. Is there a libr...
by mael15
Mon Nov 18, 2019 3:01 pm
Forum: General Development
Topic: c++ intellectual property protection
Replies: 7
Views: 260

Re: c++ intellectual property protection

AFAIK CPUID is not a unique CPU ID, it is just features the CPU has, so it is the same for all CPUs with the same model? Yes, I noticed that. I thought I could just use it as one more rarely changing number to include into calculating a unique hardware ID. BTW, on Windows, there is WMI interface fo...
by mael15
Fri Nov 15, 2019 3:53 pm
Forum: General Development
Topic: c++ intellectual property protection
Replies: 7
Views: 260

Re: c++ intellectual property protection

Okay, I am pretty happy with this way of collecting unique hardware data. May it help someone with the same problem: #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <intrin.h> #include <iphlpapi.h> // we just need this for purposes of unique machine id. So any one or two mac's is // fine. ...
by mael15
Fri Nov 15, 2019 1:15 pm
Forum: General Development
Topic: c++ intellectual property protection
Replies: 7
Views: 260

Re: c++ intellectual property protection

thanx! could you point me in the right direction on how to read different hardware ids?
as for the code protection: it is an industrial app, but there are competitors who might want to take a closer look, I actually did it myself in the past, so I need some protection there.
by mael15
Fri Nov 15, 2019 12:17 pm
Forum: General Development
Topic: c++ intellectual property protection
Replies: 7
Views: 260

Re: c++ intellectual property protection

I am in the unique situation that my program will be sold together with a laptop. And it will probably be less than 20 per year, so I could make a manual encrypted computer ID database inside my app or in a separate file. When starting, the programm creates the laptop´s hardware ID (cpu serial? what...
by mael15
Wed Nov 13, 2019 4:59 pm
Forum: General Development
Topic: c++ intellectual property protection
Replies: 7
Views: 260

c++ intellectual property protection

After 10 years of only in house usage, the windows c++ app I am developing will be sold to an outside customer. So now I have to come up with some ways of intellectual property protection, so some way of licence authentification and raising the bar for reverse engineering. The app will be pre-instal...
by mael15
Tue Nov 05, 2019 2:45 pm
Forum: C++ Development
Topic: avoid static cast in payload
Replies: 3
Views: 129

Re: avoid static cast in payload

What I have in mind is something like the observer pattern, only without registering observers somewhere. I have different kinds of pages inheriting from PageBase in a vector, there will be additional kinds of pages in the future. I want to notify every page of a possibly relevant change in other pa...
by mael15
Mon Nov 04, 2019 3:38 pm
Forum: C++ Development
Topic: avoid static cast in payload
Replies: 3
Views: 129

avoid static cast in payload

I have two parts of my app that I want to keep seperate. When something important happens in one part, I want to notify the other with a message that can have very different payloads. I would create specialized payloads that inherit from AdditionalInfoPayloadBase and static_cast them depending on TC...
by mael15
Wed Oct 30, 2019 12:00 pm
Forum: Compiler / Linking / IDE Related
Topic: link error "wxObjectArrayTraitsForArrayOfUsers::Free(class User *)"
Replies: 2
Views: 193

Re: link error "wxObjectArrayTraitsForArrayOfUsers::Free(class User *)"

It did, thank you! I had to use WX_DECLARE_USER_EXPORTED_OBJARRAY instead of WX_DECLARE_OBJARRAY.
=D> =D> =D>
by mael15
Wed Oct 30, 2019 11:17 am
Forum: Compiler / Linking / IDE Related
Topic: link error "wxObjectArrayTraitsForArrayOfUsers::Free(class User *)"
Replies: 2
Views: 193

link error "wxObjectArrayTraitsForArrayOfUsers::Free(class User *)"

I have a weird Link error: systemstate.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static void __cdecl endecrypt::wxObjectArrayTraitsForArrayOfUsers::Free(class User *)" ([email protected]@[email protected]@[email protected]@@Z)". endecrypt is a dll that i wrote long ...
by mael15
Mon Oct 21, 2019 12:39 pm
Forum: C++ Development
Topic: GetMultiLineTextExtent faulty with double 70.xx only?!?
Replies: 1
Views: 185

GetMultiLineTextExtent faulty with double 70.xx only?!?

wxMemoryDC mdc; double fontSize = 69.90; int strWidth = 0; while (fontSize < 71.1) { mdc.SetFont(wxFont(fontSize, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL)); strWidth = mdc.GetMultiLineTextExtent(wxT("test")).GetWidth(); OutputDebugString(wxString::Format(wxT("fontSize %4.2f ->...
by mael15
Tue Sep 10, 2019 2:53 pm
Forum: wxCode
Topic: wxPdfDc semi transparent brush
Replies: 9
Views: 1021

Re: wxPdfDc semi transparent brush

This has been fixed in the latest commit on GitHub. Yes, Works now! =D> :D You don't have to tweak the project files. All what is required is to adjust the settings in the file wx_setup.props. Change the lines defining the options wxCompilerPrefix and wxMsvcVersionAuto, so that they look like this:...
by mael15
Fri Sep 06, 2019 6:34 pm
Forum: wxCode
Topic: wxPdfDc semi transparent brush
Replies: 9
Views: 1021

Re: wxPdfDc semi transparent brush

Well, you did not reveal earlier that you were using the wxPdfDC template mode. Indeed this did not work due to missing references to the required extended graphics state information. This has been fixed in the latest commit on GitHub. Aaaaaah, okay, nice! I will check it first thing Monday. Thank ...