C++ GUI Programming For Beginners | Episode 1 - Installing wxWidgets

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2024

ความคิดเห็น • 267

  • @YAHYA-om2zp
    @YAHYA-om2zp หลายเดือนก่อน +2

    Finally A Person Who Talks About GUI Programming I Dont Know Why There Is No Other Courses Like Yours👍

  • @user-kz2pk3nx7l
    @user-kz2pk3nx7l ปีที่แล้ว +14

    For anyone looking to get up and running with wxWidgets in visual studio - THIS IS THE RIGHT SERIES!
    After spending a bunch of time sifting through outdated/incomplete wxWidgets documentation and other inconsistent youtube walkthroughs, finding this is a relief. Everything is clearly explained and works perfectly. Thanks a lot, great work!

    • @OttoBotCode
      @OttoBotCode  ปีที่แล้ว +1

      Awesome to hear. Thank you for the kind words!

    • @poggarzz
      @poggarzz ปีที่แล้ว

      @@OttoBotCode can i follow along without an IDE? because my computer isn't powerful enough to run visual studio

    • @OttoBotCode
      @OttoBotCode  ปีที่แล้ว +1

      @@poggarzz You need to link your project to wxWidgets. Doing so will be different if you use a text editor. Once you figure that out you can follow the rest of the series no problem 😊

    • @poggarzz
      @poggarzz ปีที่แล้ว

      @@OttoBotCode thank you for the suggestion 😁

  • @whynotanyting
    @whynotanyting ปีที่แล้ว +11

    Man, I didn't expect so many steps, at least it worked flawlessly.

  • @qtix4544
    @qtix4544 2 ปีที่แล้ว +32

    Not only you have helped in installing wxWidgets here, you have made concept of libraries very clear for me. Thanks for your amazing video! Short and complete!

    • @OttoBotCode
      @OttoBotCode  2 ปีที่แล้ว +6

      Awesome! Thank you 😀

  • @enricosanti7627
    @enricosanti7627 2 ปีที่แล้ว +21

    after 2 days of trying to figure it out through many different tutorials yours is the first that actually got it working! Thanks!

    • @OttoBotCode
      @OttoBotCode  2 ปีที่แล้ว +3

      Great to hear! Thanks for the comment 👍

  • @OttoBotCode
    @OttoBotCode  2 ปีที่แล้ว +15

    *Having Problems?*
    *Project Setup*
    Go to Properties -> C/C++ -> Preprocessor and check the "Preprocessor Definitions". Here you should have the flag "_UNICODE". For me it was there by default, if it is missing you have to add it explicitly.
    There is also an easier more convenient way to setup a wxWidgets project. I cover it in this video:
    th-cam.com/video/urIpZnCTeKw/w-d-xo.html
    *Building the library*
    The wxWidgets solution file MUST match the version of Visual Studio you are using.
    Make sure you are using the right one:
    wx_vc17 - Visual Studio 2022
    wx_vc16 - Visual Studio 2019
    wx_vc15 - Visual Studio 2017
    wx_vc14 - Visual Studio 2015

    • @atlantic_love
      @atlantic_love ปีที่แล้ว

      How to get this to install for codeblocks?

    • @spiraldj
      @spiraldj ปีที่แล้ว

      @@atlantic_love I don't think you can but I'm very new to comp sci so I could be wrong. My thought process is that wxWidgets uses features of the Microsoft visual C++ compiler so unless codeblocks let's you use other compilers etc, I don't think you can. If codeblocks does let you choose a compiler, you would need to look up how to switch it to use the correct compiler as wxWidgets, and anything else that wxWidgets needs. As far as adding the library, codeblocks should have plenty of documentation on how to do it. It's basically the same process but the menus are different

    • @atlantic_love
      @atlantic_love ปีที่แล้ว +4

      @@spiraldj It's a shame that the process is so convoluted in this day and age.

    • @spiraldj
      @spiraldj ปีที่แล้ว

      @@atlantic_loveit has to be that way though, at the end of the day digital information is all binary. There are different levels of programming. Assembly Language for example pets you control more of the code like where in memory data gets stored but it's super complex whereas c++ has less control over what you can do. The less complex it is the less you can do. Since everything ends up getting translated to binary, there really isn't any way to make an easy to use language that you can use to program anything you would be able to in binary

    • @OttoBotCode
      @OttoBotCode  ปีที่แล้ว +1

      @@atlantic_love I've recently learned that wxWidgets provides a property sheet that you can use to setup a project much faster. You can see the approach in this video: th-cam.com/video/urIpZnCTeKw/w-d-xo.html 😊

  • @MrMichimak
    @MrMichimak ปีที่แล้ว +3

    Everything worked out on the first run! Great series of tutorials!!!💯

    • @OttoBotCode
      @OttoBotCode  ปีที่แล้ว +1

      Glad to hear it! Thanks 😁

  • @sdmagic
    @sdmagic ปีที่แล้ว +2

    Absolutely brilliant! You've made everything crystal clear and easy. Thank you very much and keep on producing videos.

    • @OttoBotCode
      @OttoBotCode  ปีที่แล้ว

      Thank you! I will keep at it 😊

  • @king1king2king3
    @king1king2king3 4 หลายเดือนก่อน

    Your explanation is easy to understand. Go ahead continuing that series.

  • @rpross1986
    @rpross1986 6 หลายเดือนก่อน

    Beautiful! This is very exciting to be setting up a cross-platform GUI dev project! Very well explained with important terminology and the pacing and steps are informative, yet not too informative

  • @andresospina5706
    @andresospina5706 2 ปีที่แล้ว +5

    Man, i must say thank you, out of every video, yours is the only one that actually worked. I subscribe immediately.
    Just a few questions, hope you dont mind.
    Why is it that other guides indicate that you must modify the preprocessor definitions under the c++ tab?
    Is there any advantage on using the precompiled wxwidgets dlls/headers on the site? Is their setup similar to the manually built ones?
    God bless.

    • @OttoBotCode
      @OttoBotCode  2 ปีที่แล้ว +4

      Thank you! I'm glad it worked. You are always welcome to ask questions, I will try my best to answer them.
      There are a few symbols that should be defined for the C++ preprocessor in some cases. They are __WXMSW__, _UNICODE, NDEBUG, WXUSINGDLL.
      __WXMSW__ ensures that wxWidgets uses the correct port (i.e. it is not trying to build a Mac GUI on Windows for example). However, it seems to be defined without you having to do anything.
      _UNICODE is also defined by default. You can see that under the C++ tab.
      NDEBUG should be defined for Release configuration and it is by default. You can also see that under the C++ tab.
      WXUSINGDLL should only be defined if you are using DLLs. In this video we use static libraries instead.
      The only advantage to using the precompiled binaries (DLLs) is that the setup should be easier. wxWidgets recommend that you build the library from source, just like we did in this video.
      I hope that makes sense 😀

    • @andresospina5706
      @andresospina5706 2 ปีที่แล้ว +1

      @@OttoBotCode Thanks for the explanation!

  • @ramprasanthudhayabaskar8073
    @ramprasanthudhayabaskar8073 ปีที่แล้ว +1

    Perfect step by step explanation. Worked 100%.

  • @feraudyh
    @feraudyh 9 หลายเดือนก่อน

    You have worked hard to produce a spotless tutorial!

    • @OttoBotCode
      @OttoBotCode  9 หลายเดือนก่อน

      I'm glad the hard work is visible. Thanks for the comment!

  • @sunnydays089
    @sunnydays089 หลายเดือนก่อน

    this tutorial picked me up and held me gently in its warm arms, as a human would a worm that's sitting on the sidewalk in the rain

  • @jedrzejziebura5109
    @jedrzejziebura5109 2 ปีที่แล้ว

    Bruh, you are literally my saviour, it's the 3rd tutorial I've watched and the 1st one that worked for me, thanks a lot

    • @OttoBotCode
      @OttoBotCode  2 ปีที่แล้ว +1

      You're welcome! Good to hear that it works 😃

    • @AnimeshThakur-lp9mw
      @AnimeshThakur-lp9mw 4 หลายเดือนก่อน

      @@OttoBotCode Same Here, Thanks!

  • @ryuk991
    @ryuk991 5 หลายเดือนก่อน +1

    wxFrame is showing incomplete type not allowed and some variables are still not defined

  • @NibbleMeTwice
    @NibbleMeTwice 9 หลายเดือนก่อน

    This tutorial is just perfect. Everything was explained clearly and I was successful in the end. Thank you.

  • @eddiepixels
    @eddiepixels ปีที่แล้ว +4

    Very instructive video, thank you. Do you think that those instructions can be followed to install wxWidgets on Visual Studio Code and Eclipse CDT as well?

    • @yesseruser
      @yesseruser 7 หลายเดือนก่อน

      I think you'd have to use Visual Studio build tools for C/C++ from the developer command prompt to have that work. I don't know how to even install the build tools alone so I'm not sure.

  • @bubbyroller
    @bubbyroller ปีที่แล้ว

    Cheers dude, you have broken this down really well and made it easy to follow. Thank you.

  • @palmtrees9474
    @palmtrees9474 ปีที่แล้ว

    Everything works as it should! Great tutorial man! God bless you !

  • @ARGHWUT
    @ARGHWUT ปีที่แล้ว

    Thanks Otto, this worked brilliantly and was easy to follow. You're a treasure.

    • @OttoBotCode
      @OttoBotCode  ปีที่แล้ว

      Thank you so much 😁😊

  • @Player-kl3ci
    @Player-kl3ci 2 ปีที่แล้ว

    Omg thank you so much, I've been struggling from two days ago to do that, again thank you and have good day !

    • @OttoBotCode
      @OttoBotCode  2 ปีที่แล้ว

      I'm glad I could help 😁

  • @lolitbairiganjan2940
    @lolitbairiganjan2940 4 วันที่ผ่านมา +1

    Why do we specifically need Visual Studio? Can't we do it on Vs Code?

  • @anyafrombrasil
    @anyafrombrasil 17 วันที่ผ่านมา

    THANKS! You helped me a lot!! you´re amazing, thank you!!

  • @hadisfayz
    @hadisfayz ปีที่แล้ว

    Thanks a lot for this very nice tutorial! I have forgot quite a lot of it and could now recap everything!

  • @huudungnguyen5453
    @huudungnguyen5453 2 ปีที่แล้ว

    thanks a lot . I watched 4 clips until I watched your clip. Everything works perfectly. Tks again

    • @OttoBotCode
      @OttoBotCode  2 ปีที่แล้ว +1

      Great to hear 😊

  • @disekjoumoer
    @disekjoumoer ปีที่แล้ว

    Super, thanks a million. I was going a bit mad trying to build this.

  • @rishabharya3329
    @rishabharya3329 4 หลายเดือนก่อน +1

    my vs code is completely different than yours .... i did everything till 3:27 but you lost me after 3:28
    how to tackle this problem?

    • @op1be
      @op1be 2 หลายเดือนก่อน +1

      i hope that by now you might have realized that you may have been using visual studio code when you needed visual studio (they are different and have major differences)

    • @rishabharya3329
      @rishabharya3329 2 หลายเดือนก่อน +1

      ​@@op1be Thanks bro!

  • @gamingcomputers7485
    @gamingcomputers7485 11 หลายเดือนก่อน

    thank you for the tutorial i tried many other tutorials and they used anything else instead of empty project but that tutorial seems like straightfoward at least for now

  • @Ugc611
    @Ugc611 ปีที่แล้ว

    Finally found the tutorial that i need for gui.. thx man !!

  • @5950x
    @5950x 10 หลายเดือนก่อน

    Fantastic video and great explanation, Thank you.

  • @strokesf225
    @strokesf225 8 หลายเดือนก่อน

    i don't have the linker option on my project properties why is it not there and how can i make it apear?

  • @Mr.Fishward
    @Mr.Fishward 2 ปีที่แล้ว

    It took a big of fanagling (I had a few typos), but it works. Thank you so much!

    • @OttoBotCode
      @OttoBotCode  2 ปีที่แล้ว

      Great to hear. Well done! 😀

  • @variancewithin
    @variancewithin ปีที่แล้ว +1

    I'm pretty sure I followed your steps properly, but I still get squigglies over the GUI commands and it says 'identifier .... undefined"

    • @OttoBotCode
      @OttoBotCode  ปีที่แล้ว

      If you are interested you can send your entire project to ottobotcodehelp@gmail.com. Then I'll try to find out what the problem is.

  • @xolanigumbi8951
    @xolanigumbi8951 ปีที่แล้ว

    Good video, bro! Very well explained.

  • @mickaelsarian1465
    @mickaelsarian1465 หลายเดือนก่อน

    when i open the .sin file in vs code, it shows a bunch a code and there is no option for debug and win64 ? what am i doing wrong, i followed all the steps up to that point

  • @Thewawacat_
    @Thewawacat_ 6 หลายเดือนก่อน +4

    I got 45 errors with wx_vc17 :/

  • @GG-dk2xh
    @GG-dk2xh ปีที่แล้ว +1

    This is a really good video thanks. It would be great if you could do this wxWidgets install and setup video also for Linux and Mac systems

  • @disdonc6012
    @disdonc6012 ปีที่แล้ว

    Very well explained!

  • @good_dream696
    @good_dream696 ปีที่แล้ว +1

    Thank you so much bro, it worked perfectly. +1 subscribe er 😎😎

  • @ypesh
    @ypesh 7 หลายเดือนก่อน

    Thank you this is Super Mega Helpful!!!

  • @BlazeYT_
    @BlazeYT_ 2 ปีที่แล้ว +1

    Well wxWidgets on Linux (debian) is wx-common but I don't know how to trigger it on Geany

  • @tanmoymridha5002
    @tanmoymridha5002 ปีที่แล้ว

    Love it. Simple and easy

  • @frankheagerty7339
    @frankheagerty7339 ปีที่แล้ว

    Only helpful tutorial I have found you're awesome thank you

    • @OttoBotCode
      @OttoBotCode  ปีที่แล้ว

      Thank you! For your next project, check out my newest video in this series. It will allow you to create a project much faster 😊

  • @MikeSmith-te6cn
    @MikeSmith-te6cn 2 ปีที่แล้ว

    Thanks. This is the third video I have watched but, the first one that worked. It took me three times but I got it. I need to slow down and pay more attention. A personal problem I know. But thanks.

  • @therattestofrat
    @therattestofrat ปีที่แล้ว +1

    I've stated all of the libraries i need in visual studio but i still have 16 undefined errors.

    • @OttoBotCode
      @OttoBotCode  ปีที่แล้ว

      Would you mind sending your entire project to ottobotcodehelp@gmail.com? It can be as a zip or github link. I'll take a look and hopefully find the problem for you.

  • @chessmemes-
    @chessmemes- 11 หลายเดือนก่อน

    very clear and good tutrorial thank you very much

  • @prashantpanta9345
    @prashantpanta9345 3 หลายเดือนก่อน

    How to set it up on m2 ? I am new to programming and can't figure out how to do these things on mac.

  • @vangeance1012
    @vangeance1012 4 หลายเดือนก่อน

    ily so much dude

  • @Musa03571
    @Musa03571 4 หลายเดือนก่อน

    Hello dear brother, your videos are very informative, thank you for this. I have a question for you. Can I develop my own desktop application using the method you showed? For example, I want to make a simple application that calculates the acceleration of an object under the influence of the applied force (for example). This app needs to be downloadable for everyone. Is the path you showed suitable for this? If not can you guide me?

  • @DungVu-di7dz
    @DungVu-di7dz 5 หลายเดือนก่อน

    I setup confg: (video to share)
    project->optionns:
    configuration: All Configuration
    Plasfrom: All platfrom
    C/C++->Genneral->Edit-> paste each:
    1. C:\wxWidgets\include
    2. C:\wxWidgets\include\msvc
    Linker->System->SubSystem->chose Windows
    Linker->Genneral->
    Plasfrom-> win32->Additional library directoríes->paste
    $(WXWIN)\lib\vc_lib
    Plasfrom-> x64->Additional library directoríes->paste
    $(WXWIN)\lib\vc_x64_lib

  • @happygofishing
    @happygofishing 3 หลายเดือนก่อน

    you might have to reboot vs studio for your IDE to find the libs

  • @presli481_
    @presli481_ 2 หลายเดือนก่อน

    like half of the projects fail building when i try to build the solution (yes im using vs22 and trying to build wx_vc17)

  • @muhammadusama1590
    @muhammadusama1590 8 หลายเดือนก่อน

    When I am trying to open the .sln file, it isnt showing me any version to open it. I have the latest vs code and the Im trying to open the vc17 file. Please help

  • @jmadevx
    @jmadevx 5 หลายเดือนก่อน

    Works in Visual Studio project, but in Visual Studio Cmake project doesnt work

  • @MusicAMG
    @MusicAMG 2 ปีที่แล้ว

    did you try building the all the configurations, for what ever reason static won't build for me. It seems everyone always just builds the x86 dll one..(other videos I have watched)

  • @Maelstromme
    @Maelstromme 7 หลายเดือนก่อน +1

    I'm afraid that the evaluated values screen for $(WXWIN)\include are not producing the same results as in the video. It just says \include and \include\msvc before %(AdditionalIncludeDirectories)

    • @neilkarlosnatividad4892
      @neilkarlosnatividad4892 5 หลายเดือนก่อน

      same

    • @brock2k1
      @brock2k1 3 หลายเดือนก่อน

      Same for me, it looks like maybe something changed in VS2022. But it worked perfectly when I just typed out the whole directory name.

  • @jmadevx
    @jmadevx 5 หลายเดือนก่อน +1

    wxDefaultPosition undefined, and other stuffs to :/

  • @alysse8243
    @alysse8243 ปีที่แล้ว

    it works in visual studio 2022 but i cant make it work for visual code. i need help please

  • @lg7t
    @lg7t 2 หลายเดือนก่อน

    So this process wont affect my other project that i use console??!

  • @paramitasinha6266
    @paramitasinha6266 4 หลายเดือนก่อน +1

    Hey bro please help me
    I am using the new vs code and I don't see any debug, build, release, win32 etc options. What should I do to use the vs code solution file

    • @x2.mp3
      @x2.mp3 4 หลายเดือนก่อน

      I have same issue. Let me know if you found a fix

    • @paramitasinha6266
      @paramitasinha6266 4 หลายเดือนก่อน

      @@x2.mp3 I didn't

    • @mechtorious
      @mechtorious 3 หลายเดือนก่อน

      @@x2.mp3 It is not vscode. it is visual studio.

  • @nzgberg
    @nzgberg 7 หลายเดือนก่อน

    I followed this video. It was really helpful. Is there anything to be aware of for like the future? Like do I need to undo what I did when following your video if I want to use other libraries that aren't wxWidgets, or when coding in a different langauge or something like that? I'm learning this stuff for the first time, so I'm guessing this is a stupid question, but i reallly want to be sure

    • @OttoBotCode
      @OttoBotCode  7 หลายเดือนก่อน

      Everything here is specific to C++ and the wxWidgets GUI library.
      If you want to write C++, and don't need any third party libraries, all you have to do (on Windows) is create a blank project in Visual Studio and start writing code.
      Other C++ libraries will have their own installation process that may or may not be similar to the one for wxWidgets.
      Other programming languages like C# and Python have other means of creating projects and using libraries. It is typically much simpler than what you see here.
      I hope this helps!

  • @lickguitars1276
    @lickguitars1276 11 หลายเดือนก่อน

    can you tell me about the warning , is that a major issue or nothing to worry about?

  • @xeffen2535
    @xeffen2535 ปีที่แล้ว

    Bro great cideos you teach really well I wish I found your channel sooner. Shame you don't upload more frequently

    • @OttoBotCode
      @OttoBotCode  ปีที่แล้ว

      Thank you 😊Some of my projects take a lot of time and effort to complete, that's why I don't upload so often. This year, I will try doing more short videos and hopefully upload a bit more frequently.

  • @techsaifcore7
    @techsaifcore7 ปีที่แล้ว

    hello there i tried your code but it is giving a lot of errors to me

  • @EduardoGamingOfficial
    @EduardoGamingOfficial 2 ปีที่แล้ว

    i just can't figure it out. I liked all the source file exactly like you did and i still get the compiling error. I tried like everithing

    • @OttoBotCode
      @OttoBotCode  2 ปีที่แล้ว +1

      I'd love to help! Send your entire project (github link is fine) and the error you get to ottobotcodehelp@gmail.com. Then I'll take a look and see if I can figure out what is wrong ☺️

  • @brunogbrunoute
    @brunogbrunoute ปีที่แล้ว

    nice man

  • @franzageek
    @franzageek 8 หลายเดือนก่อน

    But what if I use Visual Studio Code instead?

  • @infantepisis
    @infantepisis 9 หลายเดือนก่อน

    To make sense, as free software (GPL), Visual Studio should not be used, it would be better to use codeblocks with mingw, or something similar.

  • @BusterBaer1
    @BusterBaer1 ปีที่แล้ว

    Is there some way to do this with XCode and on a mac? I'm lost...

  • @akhir9129
    @akhir9129 ปีที่แล้ว

    Ahtung!!! For those who can not build check following: Properties -> Configuration properties -> Advanced -> Character Set. And change this field to "Use Unicode Character Set"

  • @Bitrey
    @Bitrey ปีที่แล้ว

    I was getting the 'cannot open source file error' and I realized after an hour that the reason was simply because there was no 'mswud' inside the 'lib' folder, because I didn't build the debug version for x64, but just the release version! Hope this helps if someone is having the same problem

  • @lgdasilva5989
    @lgdasilva5989 7 หลายเดือนก่อน

    Watching this video on February 12, 2024. What a coincidence that this video is exactly 2 years old.

  • @amuga_1
    @amuga_1 7 หลายเดือนก่อน

    All this just to start coding is crazy.

  • @ItIsYouAreNotYour
    @ItIsYouAreNotYour ปีที่แล้ว

    Environment variable doesn't work for some reason. Direct path does. Thanks though.

  • @elphastgaming8332
    @elphastgaming8332 หลายเดือนก่อน

    I'm using CLion, can you help me with that?

  • @user-re5kg8rc7k
    @user-re5kg8rc7k ปีที่แล้ว

    Do you have a video for Netbean and wxWidgets setup instructions? thank you,

  • @josevillalba4497
    @josevillalba4497 ปีที่แล้ว

    Hi, your video is great ,if you do everything right it's work perfectly, thanks for all.

  • @StanleyRBLX
    @StanleyRBLX หลายเดือนก่อน

    how do i install on linux?

  • @FPChris
    @FPChris 2 ปีที่แล้ว +2

    Can you do a VSCode example?

    • @atlantic_love
      @atlantic_love ปีที่แล้ว

      On that note I'd like to see a codeblocks example!

  • @juzerbaatwala8868
    @juzerbaatwala8868 2 ปีที่แล้ว +1

    can you do a XCODE example

  • @CousinMarvin
    @CousinMarvin หลายเดือนก่อน

    6:52 For some reason i do not have any Linker there. I only have the Configuartion Properties and C/C++ . I swear there is always something that throws me off. IT can never go smoothly for me.

    • @OttoBotCode
      @OttoBotCode  หลายเดือนก่อน

      Perhaps you've created a library project instead of an "empty project"?

  • @PonelyPonely
    @PonelyPonely 8 หลายเดือนก่อน

    so every time I make a new project do I need to go in the project settings and do all of that?

    • @OttoBotCode
      @OttoBotCode  8 หลายเดือนก่อน

      There is a shortcut for most of these steps. Check out the "Fast Project Setup" video I uploaded 😉

  • @georgegao9225
    @georgegao9225 5 หลายเดือนก่อน

    救命恩人!困扰了我一天的东西这个视频几分钟讲清楚了。

  • @81937mm
    @81937mm 5 หลายเดือนก่อน

    I know this video is old but does anyone have a way to debug .sln file in VS?

  • @djsbriscoe
    @djsbriscoe 5 หลายเดือนก่อน

    When I try to build the debug x64 version ( debug and release of win32 build OK) of wxWidgets 3.2.4 using wx_vc17 - in Visual Studio 2022 (Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.9.4) I get an unsuccessful build. It mentions error C1083: Cannot open include file: 'wx/setup.h': No such file or directory multiple times.

    • @djsbriscoe
      @djsbriscoe 5 หลายเดือนก่อน

      I have just tried again with my anti-virus disabled and everything has compiled OK.

  • @MyStudio-io3so
    @MyStudio-io3so ปีที่แล้ว

    Great tutorial. However, I am not seeing visual studios solution files inside the build >msw folder. I am running Windows 10 and I have VS Code install. I use it for my other coding.

    • @Pantera1001
      @Pantera1001 6 หลายเดือนก่อน

      this is VS not VS code hope this helps

  • @bennguyen1313
    @bennguyen1313 8 หลายเดือนก่อน

    I have to link to a static 32-bit library, so need a c/cpp gui that can build into 32-bit.
    I've tried Visual Studio Community 2022 (Win10x64) with the NAppGUI library, but could only get it to build x64.. not x32.
    "LNK1112 module machine type 'x86' conflicts with target machine type 'x64'"
    Then I tried a 32-bit console program using Tk ( ActiveState's ActiveTcl or from Sourceforge) + Boost and setting the include path to the Tcl/Tk directories (C:\Tcl\include and cpptk_h and cpptk_cc files cpptkbase.h and cpptkbase_cc ). I'm sure I'm doing something wrong but same kind of error.
    How easy is it to build a 32-bit executable using C++/wxWidgets?

  • @user-nr2ur1ih7n
    @user-nr2ur1ih7n 8 หลายเดือนก่อน

    I am getting an error that says cannot open file '$(WXWIN)\lib\vc_lib.obj'. Yet it recognizes all my include line #include . At least there is no red squiggly line under the includes relating to wxwidgets. How can I get past this error message at build time?

  • @ramblingsFromJim
    @ramblingsFromJim 2 ปีที่แล้ว +1

    I used to do a lot of programming using wxWidgets, but never with Microsoft Visual Studio. This looks so easy, but I couldn't get it to work. I think the libraries are built with different folder names (it builds out "Libraries -> wxWidgets-3.1.5 -> lib -> vc_lib -> mswu" and "Libraries -> wxWidgets-3.1.5 -> lib -> vc_lib -> mswud") maybe the 'u' in the path name is unicode? When I go to build the sample application I get errors like this...[cannot open source file "../../../lib/vc_lib/mswd/wx/setup.h"]. It is trying to find the files in mswd instead of mswu. I am not sure what to change to get this to work. Am I missing an include directive? A path? Any thoughts?

    • @OttoBotCode
      @OttoBotCode  2 ปีที่แล้ว +1

      I also have the folders "mswu" and "mswud" NOT "msw" and "mswd". The sample application on your machine is trying to find the files in the wrong directory.
      Go to Properties -> C/C++ -> Preprocessor and check out the "Preprocessor Definitions". Here you should have the flag "_UNICODE". For me it is there by default, so I didn't have to add it explicitly.
      If I remove "_UNICODE" then I get errors similar to yours.
      Let me know if this fixes the problem!

    • @ramblingsFromJim
      @ramblingsFromJim 2 ปีที่แล้ว

      @@OttoBotCode Adding that flag got rid of the compile errors. Now I am getting a link error 'LNK1104 cannot open file 'wxbase31ud.lib'. Do I have to tell the linker somehow this is unicode as well?

    • @ramblingsFromJim
      @ramblingsFromJim 2 ปีที่แล้ว

      I got it. I changed the linker path to '$(wxwin)\lib\vc_lib', removing the 'mswd' part from the end of the path name. After that I got a successful compile and link. Thanks for the helpful video and for the advice on adding that unicode flag.

    • @OttoBotCode
      @OttoBotCode  2 ปีที่แล้ว

      @@ramblingsFromJim You're welcome!

    • @chiefbromden6471
      @chiefbromden6471 ปีที่แล้ว

      @@OttoBotCode I had the same errors in Visual Studio 2017. Adding _UNICODE solved all the problems and the program can be compiled fine.

  • @shalikozaryan
    @shalikozaryan ปีที่แล้ว

    I am using VScode, is it possibleto run it with VSCode??

  • @MegaWeixin
    @MegaWeixin ปีที่แล้ว

    Hello , how about integrating wxwidget to dev-c++?

  • @leeshelton9619
    @leeshelton9619 8 หลายเดือนก่อน

    HELP! I NEED HELP! I'm tryingto install the latest version of wxWidgets to use with Red Panda DevC++ compiler. I compiled the library from source & the "samples/minimal" example from the command line. My problem is getting anything to work in the Red Panda DevC IDE I'm having the same problem with my Embarcadero IDE!

    • @rretro2042
      @rretro2042 หลายเดือนก่อน

      Frankly I left embarcadero because it is just a mess when it comes to compatiblity, it has all kind of issues when working with external libraries, you are better off using visual studio.

  • @tr.themasterdev
    @tr.themasterdev 7 หลายเดือนก่อน +1

    pastebin blocked from turkiye.

    • @OttoBotCode
      @OttoBotCode  7 หลายเดือนก่อน

      Thanks for letting me know. You can download the code here:
      ottobotcode.com/gui/FirstGui.cpp
      Just copy and paste it into your project!

    • @tr.themasterdev
      @tr.themasterdev 7 หลายเดือนก่อน

      @@OttoBotCode Thank you

    • @Broyuz
      @Broyuz 3 หลายเดือนก่อน

      Cpp için hangi gui library kullaniyorsun şuan?

    • @tr.themasterdev
      @tr.themasterdev 3 หลายเดือนก่อน

      @@Broyuz cpp bıraktım şuanlık ama arkadaş olabiliriz

    • @Broyuz
      @Broyuz 3 หลายเดือนก่อน

      @@tr.themasterdev Olur, bende yaz ın cpp içinden geçmeyi planlıyorum. Bide büyük ihtimalle web ui kullanıcam.

  • @Asami_810
    @Asami_810 ปีที่แล้ว

    Can I install all the libraries using VS, but make my project on another IDE? Our teacher is insisting to use her preferred IDE.

    • @OttoBotCode
      @OttoBotCode  ปีที่แล้ว

      Unfortunately, you have to build the library with the same compiler you will use to compile your projects.

  • @dinho23232
    @dinho23232 7 หลายเดือนก่อน

    The link for the code to copy-paste doesn't work anymore, otherwise great tutorial.

    • @OttoBotCode
      @OttoBotCode  7 หลายเดือนก่อน

      Thanks for letting me know, I'll get it fixed!

  • @quvonchbekquvonch4385
    @quvonchbekquvonch4385 7 หลายเดือนก่อน

    Please can you help me to install wxWidgets on Clion platform ?

  • @simonesamardhziev4932
    @simonesamardhziev4932 ปีที่แล้ว

    Is there a way to set it up foe Clion?

  • @najmudheenkalapatil78
    @najmudheenkalapatil78 ปีที่แล้ว

    How to install into the eclipse?

  • @kofiassan1176
    @kofiassan1176 7 หลายเดือนก่อน

    Does anyone know how to do it on Codeblocks?