Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

mslu-problem

已查看 20 次
跳至第一个未读帖子

Steven Van Ingelgem

未读,
2005年9月20日 16:06:352005/9/20
收件人
Hi,


I am trying to get the unicows-thingie working, but it always fails on the
::LoadLibraryW-call.
The LoadLibraryA-call works like a charm, but I always get the 2nd
messagebox. [cfr src/msw/main.cpp @ 330].

I am using libunicows combined with the latest version of the unicows.dll
(1.1.3790).

What can I do to deploy my application on Win9x?


Thanks,
Steven

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-u...@lists.wxwidgets.org
For additional commands, e-mail: wx-use...@lists.wxwidgets.org

Vadim Zeitlin

未读,
2005年9月20日 16:40:322005/9/20
收件人
On Tue, 20 Sep 2005 22:06:26 +0200 Steven Van Ingelgem <kom...@hotmail.com> wrote:

SVI> I am trying to get the unicows-thingie working, but it always fails on the
SVI> ::LoadLibraryW-call.
SVI> The LoadLibraryA-call works like a charm, but I always get the 2nd
SVI> messagebox. [cfr src/msw/main.cpp @ 330].
SVI>
SVI> I am using libunicows combined with the latest version of the unicows.dll
SVI> (1.1.3790).
SVI>
SVI> What can I do to deploy my application on Win9x?

You have to ensure that you link it correctly, i.e. that unicows.lib is
always the first one in the list of libraries (for wx DLLs, if you use
DLLs, and your app). If LoadLibraryW() fails, all other W calls will fail
too.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/

Steven Van Ingelgem

未读,
2005年9月20日 17:21:392005/9/20
收件人
You're right...

I tried by removing the loadlibraryW-call, and it failed somewhere in some
init-procedure...

Also, I DID enter unicows.lib as the first of my links:

# ADD BASE LINK32 unicows.lib wxmsw26u_core.lib ...
# ADD LINK32 unicows.lib wxmsw26u_core.lib ....

Also when I see in project settings under the link-tab it is the first to be
mentioned. That's why I thought (this time) I did everything right...

For anyone searching on this list for the same problem:
This has been a handy site:
*
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mslu/winprog/compiling_your_application_with_the_microsoft_layer_for_unicode.asp
* Also see that the wx-libs you include are AFTER all the default libs, and
that the unicows.lib is the very first one in the row... That's it.


Vadim it works ;)

Thanks!

----Original Message Follows----
From: Vadim Zeitlin <va...@wxwindows.org>
Reply-To: wx-u...@lists.wxwidgets.org
To: wx-u...@lists.wxwidgets.org
Subject: Re: mslu-problem
Date: Tue, 20 Sep 2005 22:40:20 +0200

0 个新帖子