Re: [wxlua-users] Difference between Lua and wxLua executable

2013-08-26 Thread Milind Gupta
Thanks for looking into this. So to get the same effects for running a
wxLua program with Lua.exe we need a Lua.exe compiled with the manifest
that wxlua was compiled from?

Thanks,
Milind



On Sun, Aug 25, 2013 at 9:17 PM, Paul K paulclin...@yahoo.com wrote:

  No, my last commit actually didn't add the manifest file correctly (the
 #ifdefs were not set), but when I do set a proper manifest file I get a
 pop-up dialog error when running that msvcr90d.dll is missing. If I copy
 the msvcr90d.dll file over it works and I get the new calendar control, if
 I remove the correct manifest it runs without msvcr90d.dll copied over, but
 I get the old calendar control.

 But at least now we know the answer: the difference is indeed manifest
 related and you need to have the DLL that is referenced in the
 manifest to get it to work.

 Paul.


 --
 Introducing Performance Central, a new site from SourceForge and
 AppDynamics. Performance Central is your source for news, insights,
 analysis and resources for efficient Application Performance Management.
 Visit us today!
 http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
 ___
 wxlua-users mailing list
 wxlua-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wxlua-users

--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [wxlua-users] Difference between Lua and wxLua executable

2013-08-25 Thread John Labenski
On Fri, Aug 23, 2013 at 7:04 PM, Paul K paulclin...@yahoo.com wrote:

 Hi John,

  After that wxlua and lua produce the same (calendar) results. You can
  also tweak the manifest before embedding it to see the effect.

 Were you able to reproduce the same effect?


No, my last commit actually didn't add the manifest file correctly (the
#ifdefs were not set), but when I do set a proper manifest file I get a
pop-up dialog error when running that msvcr90d.dll is missing. If I copy
the msvcr90d.dll file over it works and I get the new calendar control, if
I remove the correct manifest it runs without msvcr90d.dll copied over, but
I get the old calendar control.

I think my problem is like this persons, but I have MSVC 2008 with SP1
already installed and turning off incremental linking doesn't help.
http://go4answers.webhost4life.com/Example/mscvp90ddll-reported-missing-23640.aspx

I doesn't seem like a common problem, it might be some strangeness with
MSVC 2008 since turning off incremental linking to fix a missing
msvcr90d.dll file seems like a strange fix.

Regards,
John
--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [wxlua-users] Difference between Lua and wxLua executable

2013-08-23 Thread Paul K
Hi John,

 After that wxlua and lua produce the same (calendar) results. You can
 also tweak the manifest before embedding it to see the effect.

Were you able to reproduce the same effect?

Paul.

On Mon, Aug 19, 2013 at 8:44 PM, Paul K paulclin...@yahoo.com wrote:
 Hi John,

 I just added a resource and manifest file for wxLua's lua.exe, but it didn't 
 change how the calendar control looked.
 Is there anything that you did differently?

 I went the easy way: I extracted the manifest from wxlua and added it
 to lua.exe:

 C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\mt.exe
 -inputresource:wxlua.exe -out:extracted.manifest
 C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\mt.exe -manifest
 extracted.manifest -outputresource:lua.exe

 After that wxlua and lua produce the same (calendar) results. You can
 also tweak the manifest before embedding it to see the effect.

 I don't know what you mean. What DLL is included with Windows that you ship?

 Not sure; when I tried the same manifest with my wx.dll compiled with
 mingw, I get side-by-side error:

 Activation context generation failed for ...zbstudio.exe. Dependent
 Assembly 
 Microsoft.Windows.Common-Controls,publicKeyToken=6595b64144ccf1df,type=win32,version=6.0.0.0
 could not be found.

 When I copy all the dlls from 2.8.12 and run with the same executable,
 everything is fine. I'm not sure what dll I'm missing, but I thought
 it was one of wxmsw28_*vc_custom.dll.

 Paul.

 On Mon, Aug 19, 2013 at 8:06 PM, John Labenski jlaben...@gmail.com wrote:
 On Mon, Aug 19, 2013 at 12:33 AM, Paul K paulclin...@yahoo.com wrote:

  It seems like the required addition to the manifest is quite simple
 (as per
 http://msdn.microsoft.com/en-us/library/windows/desktop/bb773175(v=vs.85).aspx):

 okay, I managed to get my application running with the right manifest
 (and I'm even using mingw instead of VS). What I mentioned earlier was
 correct, but I was missing a proper way to reference the manifest.

 It turned out that the way I included manifest was not correct as my
 .rc file had 1 RT_MANIFEST zbstudio.manifest and it should have been
 1 24 zbstudio.manifest. After I added the correct reference (and
 included dependentAssembly reference)  the manifest was recognized
 and I could run my application using wxlua 2.8.12 DLLs and could see
 the expected results.


 I just added a resource and manifest file for wxLua's lua.exe, but it didn't
 change how the calendar control looked.

 http://sourceforge.net/p/wxlua/svn/190/
 https://github.com/wxWidgets/wxWidgets/blob/master/include/wx/msw/wx.manifest

 Is there anything that you did differently?



 Unfortunately, this doesn't really help me as I was hoping to
 reference a DLL that is included with Windows, rather than ship mine,
 but maybe this will help others...


 I don't know what you mean. What DLL is included with Windows that you ship?

 Regards,
 John


 --
 Introducing Performance Central, a new site from SourceForge and
 AppDynamics. Performance Central is your source for news, insights,
 analysis and resources for efficient Application Performance Management.
 Visit us today!
 http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
 ___
 wxlua-users mailing list
 wxlua-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wxlua-users


--
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [wxlua-users] Difference between Lua and wxLua executable

2013-08-18 Thread Milind Gupta
Thanks John for putting time on this. When I posted this question on
wxWidgets (http://forums.wxwidgets.org/viewtopic.php?f=23t=37587) they
also said about the manifest file. I didn't explore it further from there.
  But would not the manifest file not compiled with the wx.dll itself
why would Lua need to be compiled with it?

Thanks,
Milind




On Sat, Aug 17, 2013 at 9:07 PM, John Labenski jlaben...@gmail.com wrote:

 On Fri, Aug 16, 2013 at 3:16 PM, Milind Gupta milind.gu...@gmail.comwrote:


 So when you do this do you get the same differences or is it just
 something on my system? Since these are run from the same Lua package but
 show different renderings I am really curious why this happens.


 Hummm, I do see the same differences you do and I get the same results
 even when I compile it fresh using MSVC 2008 (the sourceforge packages were
 built with MSVC 6).

 I ran depends[1] on them and found that they all use the exact same DLLs
 except for these differences :

 They both use these two DLLS (note I built using 64-bit arch)

 c:\windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16579_none_418ab7ef718b27ef\COMCTL32.DLL

 c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16579_none_8937eec6860750f5\COMCTL32.DLL

 wx.dll also uses this which is older and that may explain the older
 looking calendar control.

 c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9200.16384_none_bf100cd445f4d954\COMCTL32.DLL

 I believe it has something to do with the manifest file, lua.exe is not
 compiled with one, but all the wxLua apps use the wxWidget manifest file.

 http://msdn.microsoft.com/en-us/library/windows/desktop/bb773175%28v=vs.85%29.aspx

 I suppose I could try building lua.exe using a similar manifest file and
 see if that changes anything.

 Regards,
  John


 [1] http://www.dependencywalker.com/


 --
 Get 100% visibility into Java/.NET code with AppDynamics Lite!
 It's a free troubleshooting tool designed for production.
 Get down to code-level detail for bottlenecks, with 2% overhead.
 Download for free and get started troubleshooting in minutes.
 http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
 ___
 wxlua-users mailing list
 wxlua-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wxlua-users


--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [wxlua-users] Difference between Lua and wxLua executable

2013-08-18 Thread Paul K
I'm very interested in what manifest needs to be used as well. My
executable *does* include a manifest, but it doesn't statically
compile wx.dll and loads it at run-time. My calendar looks like a
generic one (the one that Milind has on the left side), so I either
need to have a different content in the manifest or needs to include
in the DLL file itself.

It seems like the required addition to the manifest is quite simple
(as per 
http://msdn.microsoft.com/en-us/library/windows/desktop/bb773175(v=vs.85).aspx):

  dependency
dependentAssembly
  assemblyIdentity
type=win32
name=Microsoft.Windows.Common-Controls
version=6.0.0.0
  /
/dependentAssembly
  /dependency

I added it to my executable, but the controls are still shown as generic ones.

I also removed this part of the manifest from wxlua and it indeed
turned the native controls into generic ones. It seems like this
is what is missing from the lua.exe file, but I'm not sure (yet) why
it's not working in my case...

Paul.

On Sun, Aug 18, 2013 at 6:34 PM, Milind Gupta milind.gu...@gmail.com wrote:
 Thanks John for putting time on this. When I posted this question on
 wxWidgets (http://forums.wxwidgets.org/viewtopic.php?f=23t=37587) they also
 said about the manifest file. I didn't explore it further from there.
   But would not the manifest file not compiled with the wx.dll itself
 why would Lua need to be compiled with it?

 Thanks,
 Milind




 On Sat, Aug 17, 2013 at 9:07 PM, John Labenski jlaben...@gmail.com wrote:

 On Fri, Aug 16, 2013 at 3:16 PM, Milind Gupta milind.gu...@gmail.com
 wrote:


 So when you do this do you get the same differences or is it just
 something on my system? Since these are run from the same Lua package but
 show different renderings I am really curious why this happens.


 Hummm, I do see the same differences you do and I get the same results
 even when I compile it fresh using MSVC 2008 (the sourceforge packages were
 built with MSVC 6).

 I ran depends[1] on them and found that they all use the exact same DLLs
 except for these differences :

 They both use these two DLLS (note I built using 64-bit arch)

 c:\windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16579_none_418ab7ef718b27ef\COMCTL32.DLL

 c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16579_none_8937eec6860750f5\COMCTL32.DLL

 wx.dll also uses this which is older and that may explain the older
 looking calendar control.

 c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9200.16384_none_bf100cd445f4d954\COMCTL32.DLL

 I believe it has something to do with the manifest file, lua.exe is not
 compiled with one, but all the wxLua apps use the wxWidget manifest file.

 http://msdn.microsoft.com/en-us/library/windows/desktop/bb773175%28v=vs.85%29.aspx

 I suppose I could try building lua.exe using a similar manifest file and
 see if that changes anything.

 Regards,
  John


 [1] http://www.dependencywalker.com/


 --
 Get 100% visibility into Java/.NET code with AppDynamics Lite!
 It's a free troubleshooting tool designed for production.
 Get down to code-level detail for bottlenecks, with 2% overhead.
 Download for free and get started troubleshooting in minutes.

 http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
 ___
 wxlua-users mailing list
 wxlua-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wxlua-users



 --
 Get 100% visibility into Java/.NET code with AppDynamics Lite!
 It's a free troubleshooting tool designed for production.
 Get down to code-level detail for bottlenecks, with 2% overhead.
 Download for free and get started troubleshooting in minutes.
 http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
 ___
 wxlua-users mailing list
 wxlua-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wxlua-users


--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [wxlua-users] Difference between Lua and wxLua executable

2013-08-18 Thread John Labenski
On Sun, Aug 18, 2013 at 10:58 PM, Paul K paulclin...@yahoo.com wrote:

 I'm very interested in what manifest needs to be used as well. My
 executable *does* include a manifest, but it doesn't statically
 compile wx.dll and loads it at run-time. My calendar looks like a
 generic one (the one that Milind has on the left side), so I either
 need to have a different content in the manifest or needs to include
 in the DLL file itself.


I too have tried to add an appropriate mainifest file to lua.exe and found
that it didn't change anything. Note that wx.dll already uses the same
resource file as wxlua.exe, but I think that the manifest file only matters
for the exe.

If anyone can find out how to fix this I will happily add it to wxLua.

Regards,
John
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [wxlua-users] Difference between Lua and wxLua executable

2013-08-17 Thread John Labenski
On Fri, Aug 16, 2013 at 3:16 PM, Milind Gupta milind.gu...@gmail.comwrote:


 So when you do this do you get the same differences or is it just
 something on my system? Since these are run from the same Lua package but
 show different renderings I am really curious why this happens.


Hummm, I do see the same differences you do and I get the same results even
when I compile it fresh using MSVC 2008 (the sourceforge packages were
built with MSVC 6).

I ran depends[1] on them and found that they all use the exact same DLLs
except for these differences :

They both use these two DLLS (note I built using 64-bit arch)
c:\windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16579_none_418ab7ef718b27ef\COMCTL32.DLL
c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16579_none_8937eec6860750f5\COMCTL32.DLL

wx.dll also uses this which is older and that may explain the older looking
calendar control.
c:\windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9200.16384_none_bf100cd445f4d954\COMCTL32.DLL

I believe it has something to do with the manifest file, lua.exe is not
compiled with one, but all the wxLua apps use the wxWidget manifest file.
http://msdn.microsoft.com/en-us/library/windows/desktop/bb773175%28v=vs.85%29.aspx

I suppose I could try building lua.exe using a similar manifest file and
see if that changes anything.

Regards,
 John


[1] http://www.dependencywalker.com/
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [wxlua-users] Difference between Lua and wxLua executable

2013-05-18 Thread Paul K
Hi Milind,

The only difference should be is that wxluafreeze includes wx library
statically compiled (so you don't need anything else) and in other
cases your executables expect wx.dll.

I'm not sure what graphics are different. Can you do two screenshots
and mark the differences on them? I don't use wxluafreeze, but I
wouldn't expect to see any differences.

Paul.

On Sat, May 18, 2013 at 2:11 AM, Milind Gupta milind.gu...@gmail.com wrote:
 Hi,
I have installed Lua for windows and when I run my program with
 Lua.exe (my program has require(wx)) the graphics are a little different
 compared to if I run it with an executable wlua also in the package. I see
 the same graphics as wlua if I run my program using wxluafreeze from the
 downloaded wxlua binary package.
Is there a difference of launching the program through Lua or through
 wLua? I am not sure what is different in wLua because it is just a 35KB
 executable and if I remove all wx.dll from the system then it is not able to
 execute the program while wxluafreeze still can execute the program without
 the wx.dll file.

 So what is the difference?

 Thanks,
 Milind


 --
 AlienVault Unified Security Management (USM) platform delivers complete
 security visibility with the essential security capabilities. Easily and
 efficiently configure, manage, and operate all of your security controls
 from a single console and one unified framework. Download a free trial.
 http://p.sf.net/sfu/alienvault_d2d
 ___
 wxlua-users mailing list
 wxlua-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wxlua-users


--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users