Search found 221 matches

by purplex88
Tue Jun 11, 2019 7:44 am
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 513

Re: Build for Visual Studio 2019

Note that I mean WIN32 not _WIN32. What is WIN32 for? I found this in minimal build :P
by purplex88
Tue Jun 11, 2019 6:13 am
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 513

Re: Build for Visual Studio 2019

Thanks, that environment path technique worked. I won't distribute the program with DLLs,right. I thought dynamic linking will take less amount of compile and build time? So, I can build, run and test quickly? My another little doubt: is WIN32 a right macro? Shouldn't it be _WIN32? There's no WIN32 ...
by purplex88
Mon Jun 10, 2019 7:12 pm
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 513

Re: Build for Visual Studio 2019

Yes, I had wrong project configurations. I created a new project and now it works. Is there any better solution to: This program can't start because wxbase312ud_vc_custom.dll is missing from your computer. Rather than moving wxbase312ud_vc_custom.dll next to .exe? I can't run the project from Visual...
by purplex88
Mon Jun 10, 2019 4:53 pm
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 513

Re: Build for Visual Studio 2019

Yes, I used "DLL Debug" to build them. I am using "WXUSINGDLL" macro as well:

Code: Select all

WIN32
_DEBUG
__WXMSW__
_UNICODE
WXUSINGDLL
_WINDOWS
_CRT_SECURE_NO_WARNINGS
Note there's no "vc_dll.obj" file in or outside the vc_dll folder.
by purplex88
Mon Jun 10, 2019 4:10 pm
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 513

Re: Build for Visual Studio 2019

Paths look correct. The error happens at link time.

What does "vc_dll.obj" even mean? Is there supposed be "vc_dll.obj" file?

I am compiling with this switch:
"Multi-threaded Debug DLL (/MDd)"
.

My link path is:
C:\Users\purplex88\AppData\Roaming\wxWidgets-3.1.2\lib\vc_dll
is also correct
by purplex88
Mon Jun 10, 2019 3:52 pm
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 513

Re: Build for Visual Studio 2019

Okay, 3.1.2 gave me no warnings and compiled fine

But when I compile a program I get an error:
1>LINK : fatal error LNK1104: cannot open file 'C:\Users\purplex88\AppData\Roaming\wxWidgets-3.1.2\lib\vc_dll.obj'
However, the minimal sample builds fine.
by purplex88
Mon Jun 10, 2019 2:51 pm
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 513

Re: Build for Visual Studio 2019

Yes, doublemax. I should get 3.1 as well. Thanks, since earlier I was using it. :)
by purplex88
Mon Jun 10, 2019 1:34 pm
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 513

Re: Build for Visual Studio 2019

Okay, here's a list: Severity Code Description Project File Line Suppression State Warning C4244 'return': conversion from '__int64' to 'XML_Index', possible loss of data wxexpat C:\Users\purplex88\AppData\Roaming\wxWidgets-3.0.4\src\expat\lib\xmlparse.c 1868 Warning C4267 '+=': conversion from 'siz...
by purplex88
Mon Jun 10, 2019 12:44 pm
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 513

Re: Build for Visual Studio 2019

Probably castings. I closed the project already but I hope it will be fine!
by purplex88
Mon Jun 10, 2019 11:57 am
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 513

Re: Build for Visual Studio 2019

Thanks, the warning messages are fine?
by purplex88
Mon Jun 10, 2019 11:35 am
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 513

Build for Visual Studio 2019

The latest stable release (3.0.4) of wxWidgets includes solutions for MSVC12 i.e. upto Visual Studio 2013. I recently changed it to Visual Studio 2019. Can I convert the "wx_vc12.sln" Solution file to 2019 and build the wxWidgets? I tried it, it worked " Build: 24 succeeded, 0 failed, 0 up-to-date, ...
by purplex88
Wed May 01, 2019 10:39 am
Forum: C++ Development
Topic: Display unicode on button?
Replies: 11
Views: 318

Re: Display unicode on button?

Thanks, I will do experiments with these now. I want to avoid this ANSI mess as much as possible though!
by purplex88
Wed May 01, 2019 9:17 am
Forum: C++ Development
Topic: Display unicode on button?
Replies: 11
Views: 318

Re: Display unicode on button?

I see. Suppose the file I was loading was saved using ANSI Windows 1252:

Can I specify the second argument in:

Code: Select all

wxString::wxString(const char*, const wxMBConv&)
to handle that CP-1252 encoding to build wxString?

It seems wxMBConv accepts only unicode (UTF-8, UTF-16, UTF-32) parameters.
by purplex88
Wed May 01, 2019 9:05 am
Forum: C++ Development
Topic: Display unicode on button?
Replies: 11
Views: 318

Re: Display unicode on button?

I see, you mean avoid

Code: Select all

wxString::wxString (const char * psz) 
and use

Code: Select all

wxString::wxString(const char*, const wxMBConv&)
so I can completely ignore locale and use wxString safely independent of locale.
by purplex88
Wed May 01, 2019 8:43 am
Forum: C++ Development
Topic: Display unicode on button?
Replies: 11
Views: 318

Re: Display unicode on button?

@doublemax. That means I can just completely avoid using locale settings, if I don't care about commas or decimal points etc? and Unicode and displaying characters in different languages will still work.