NO

Author Topic: Mctrl GUI controls  (Read 3740 times)

Rnard

  • Guest
Mctrl GUI controls
« on: January 11, 2015, 11:53:54 AM »
All,
on the internet i have found this interesting library, which consists in additional GUI controls for Winapi programming:

http://mctrl.sourceforge.net/
https://github.com/mity/mctrl

Unfortunately, this has been build for Visual Studio.
Please find an attached Pelles Project, about drawing pie charts and bar charts in a window.
It is a copy and paste of sample codes from the author, so i assume they are correct....
The error i got is a "impossible to find GetStartupInfoA entry point within mCtrl.dll".

Can you suggest me how could i fix that ?
Did numerous attempts myself, but all unsuccessful.....

THank you in advance and best regards !

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
Re: Mctrl GUI controls
« Reply #1 on: January 11, 2015, 04:02:20 PM »
The library is broken.
Use the attached mCtrl.lib rebuilt from a modified mCtrl.def.
It was missing '_mcChart_Initialize@0' and '_mcDialogBoxParamW@24'. These symbols has been created adding the lines:
Code: [Select]
    _mcDialogBoxParamW@24 = mcDialogBoxParamW
    _mcChart_Initialize@0 = mcChart_Initialize
to the def module, then creating the import library with command:
Code: [Select]
polib /DEF:mCtrl.def /OUT:mCtrl.lib
Many other defs are missing and you'll get a lot of other undefined symbols using other library functions. You have to use same system to fix it.
The best solution anyway is to recompile the library using PellesC.
I was unable to do it right now because I have an XP machine and the code is buggy trying to include options not available on XP (they made some check on OS version, but it don't work correctly).
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide

Rnard

  • Guest
Re: Mctrl GUI controls
« Reply #2 on: January 11, 2015, 08:12:25 PM »
Frankie !!!
Great !!!!
I have just tried again and it works fantastic !!!!

Thank you very much indeed and regards,
Rnard

Rnard

  • Guest
Re: Mctrl GUI controls
« Reply #3 on: January 13, 2015, 10:26:02 AM »
Hi Frankie,
just one last detail: what tool did you use to create the def file that you sent me?

I use Filalyzer to view the Import/Export tables.
For the DLL in question, Filalyzer shows me one exported function more, but that's absolutely not a big deal, just a mere detail (not a function that i need to use).

Thank you in advance and regards,
Roberto

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
Re: Mctrl GUI controls
« Reply #4 on: January 13, 2015, 11:14:57 AM »
The def file is in the sources of the project. If you download sources you'll find it there.
I have just modified it, not created it.
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide

Rnard

  • Guest
Re: Mctrl GUI controls
« Reply #5 on: January 13, 2015, 02:18:13 PM »
Oh, got it !
Thank you!