• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:23
CEST 03:23
KST 10:23
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL54Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
The SCII GOAT: A statistical Evaluation The GOAT ranking of GOAT rankings Statistics for vetoed/disliked maps How does the number of casters affect your enjoyment of esports? Esports World Cup 2025 - Final Player Roster
Tourneys
Korean Starcraft League Week 77 Master Swan Open (Global Bronze-Master 2) RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
Flash Announces Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/ Player “Jedi” cheat on CSL Unit and Spell Similarities Help: rep cant save
Tourneys
[Megathread] Daily Proleagues [BSL20] Grand Finals - Sunday 20:00 CET Small VOD Thread 2.0 [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Trading/Investing Thread Russo-Ukrainian War Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 616 users

The Big Programming Thread - Page 101

Forum Index > General Forum
Post a Reply
Prev 1 99 100 101 102 103 1031 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Adeny
Profile Blog Joined January 2009
Norway1233 Posts
December 23 2011 00:44 GMT
#2001
On December 23 2011 08:53 tofucake wrote:
To do that in C++ will require you to know some basic things like hooking processes and using various API calls. I'm pretty sure it's easier in C#.


Wouldn't it require the same things in C#, but also p/invoke stuff?
tec27
Profile Blog Joined June 2004
United States3696 Posts
December 23 2011 04:51 GMT
#2002
On December 23 2011 09:44 Adeny wrote:
Show nested quote +
On December 23 2011 08:53 tofucake wrote:
To do that in C++ will require you to know some basic things like hooking processes and using various API calls. I'm pretty sure it's easier in C#.


Wouldn't it require the same things in C#, but also p/invoke stuff?

Yeah, if either required it then both would require it (unless someone like wrote some stuff to encapsulate it in one but not the other). But anyway, if your goal is to read the currently playing item out of Windows Media Player, you'll want to look either for some sort of API to do so, or give up on that goal for now. Its not going to be a simple task in any language if they don't provide an easily accessible way to do it (especially so since their windows are custom and they don't update their window title)
Can you jam with the console cowboys in cyberspace?
Kluey
Profile Joined April 2011
Canada1197 Posts
December 23 2011 05:08 GMT
#2003
Okay, I need to make Hangman in Visual Basic. What should I do to display the character the user guesses while making underlines for how many letters there are.
Craton
Profile Blog Joined December 2009
United States17246 Posts
December 23 2011 05:48 GMT
#2004
On December 23 2011 13:51 tec27 wrote:
Show nested quote +
On December 23 2011 09:44 Adeny wrote:
On December 23 2011 08:53 tofucake wrote:
To do that in C++ will require you to know some basic things like hooking processes and using various API calls. I'm pretty sure it's easier in C#.


Wouldn't it require the same things in C#, but also p/invoke stuff?

Yeah, if either required it then both would require it (unless someone like wrote some stuff to encapsulate it in one but not the other). But anyway, if your goal is to read the currently playing item out of Windows Media Player, you'll want to look either for some sort of API to do so, or give up on that goal for now. Its not going to be a simple task in any language if they don't provide an easily accessible way to do it (especially so since their windows are custom and they don't update their window title)

Windows XP had this http://www.microsoft.com/download/en/details.aspx?id=8868 which made live simpler. There was one thing that altered the window name to the now playing song back in WMP 9.0 and there was another thing that would write the now playing song to a spot in the registry, both of which would make such a task pretty simple.

I've been tinkering with http://www.theleagueofpaul.com/codesnippet-managed-windows-media-plugins.html but not much luck so far.
twitch.tv/cratonz
ArcticVanguard
Profile Blog Joined August 2010
United States450 Posts
December 27 2011 14:19 GMT
#2005
Does anyone have any suggestions for a tutorial for learning GUI programming for Windows? Language is C++. I'm looking at Qt but I'm having trouble following some of them out there. The thing I've seen is that GUI programming on any platform is a nightmare, but surely there are SOME out there that I can use.
"When I became a man I put away childish things, including the fear of childishness and the desire to be very grown up." ~C.S. Lewis
KaiserJohan
Profile Joined May 2010
Sweden1808 Posts
Last Edited: 2011-12-27 14:27:00
December 27 2011 14:26 GMT
#2006
On December 27 2011 23:19 ArcticVanguard wrote:
Does anyone have any suggestions for a tutorial for learning GUI programming for Windows? Language is C++. I'm looking at Qt but I'm having trouble following some of them out there. The thing I've seen is that GUI programming on any platform is a nightmare, but surely there are SOME out there that I can use.


For c++ it's generally a nightmare. I played around with win32 GUI and oh my god its torture and 10+ years old, dont touch it. That's why we use C# for GUI and I recommend you do the same. For other platforms you usually have other languages to di t in, Java for Android, Obj-C for iOS, etc..

I've looked at Qt only a little, and I've had work partners use it some, and trust me its pain but still better than win32 stuff.

Seriously just use C# to create GUI, you just need a thin layer of C# to make it work, you can write pretty much everything else in C++
England will fight to the last American
ArcticVanguard
Profile Blog Joined August 2010
United States450 Posts
December 27 2011 14:29 GMT
#2007
On December 27 2011 23:26 KaiserJohan wrote:
Show nested quote +
On December 27 2011 23:19 ArcticVanguard wrote:
Does anyone have any suggestions for a tutorial for learning GUI programming for Windows? Language is C++. I'm looking at Qt but I'm having trouble following some of them out there. The thing I've seen is that GUI programming on any platform is a nightmare, but surely there are SOME out there that I can use.


For c++ it's generally a nightmare. I played around with win32 GUI and oh my god its torture and 10+ years old, dont touch it. That's why we use C# for GUI and I recommend you do the same. For other platforms you usually have other languages to di t in, Java for Android, Obj-C for iOS, etc..

I've looked at Qt only a little, and I've had work partners use it some, and trust me its pain but still better than win32 stuff.

Seriously just use C# to create GUI, you just need a thin layer of C# to make it work, you can write pretty much everything else in C++

I'm pretty inexperienced with this kind of thing though, is it pretty easy to write everything in C++ and have it work with the C# GUI? Any references or anything you might suggest? I'm not opposed to use C#, I've just never touched it before and I know almost nothing about it.
"When I became a man I put away childish things, including the fear of childishness and the desire to be very grown up." ~C.S. Lewis
memcpy
Profile Blog Joined April 2010
United States459 Posts
Last Edited: 2011-12-27 14:39:03
December 27 2011 14:38 GMT
#2008
On December 27 2011 23:19 ArcticVanguard wrote:
Does anyone have any suggestions for a tutorial for learning GUI programming for Windows? Language is C++. I'm looking at Qt but I'm having trouble following some of them out there. The thing I've seen is that GUI programming on any platform is a nightmare, but surely there are SOME out there that I can use.


I'm currently working on a C++ GUI and I decided to go with wxWidgets. You design the interface with wxFormBuilder and it generates a few .cpp/h files for virtual functions to overload for events. Once you get it all linked up with your project it's pretty easy from there.

As for the people who suggested C#, I'd strongly agree that you use that instead if you can. WPF or Windows Forms are way easier than anything in C++.
kaihangkk
Profile Joined December 2011
8 Posts
December 27 2011 14:48 GMT
#2009
i know nth about programming....which language would be the best one to start with?
tofucake
Profile Blog Joined October 2009
Hyrule19030 Posts
December 27 2011 15:02 GMT
#2010
On December 27 2011 23:48 kaihangkk wrote:
i know nth about programming....which language would be the best one to start with?

Replace "programming" with "speaking" and you might see why this question is incredibly hard to answer.

What do you want to do with programming?
Liquipediaasante sana squash banana
KaiserJohan
Profile Joined May 2010
Sweden1808 Posts
December 27 2011 15:11 GMT
#2011
On December 27 2011 23:29 ArcticVanguard wrote:
Show nested quote +
On December 27 2011 23:26 KaiserJohan wrote:
On December 27 2011 23:19 ArcticVanguard wrote:
Does anyone have any suggestions for a tutorial for learning GUI programming for Windows? Language is C++. I'm looking at Qt but I'm having trouble following some of them out there. The thing I've seen is that GUI programming on any platform is a nightmare, but surely there are SOME out there that I can use.


For c++ it's generally a nightmare. I played around with win32 GUI and oh my god its torture and 10+ years old, dont touch it. That's why we use C# for GUI and I recommend you do the same. For other platforms you usually have other languages to di t in, Java for Android, Obj-C for iOS, etc..

I've looked at Qt only a little, and I've had work partners use it some, and trust me its pain but still better than win32 stuff.

Seriously just use C# to create GUI, you just need a thin layer of C# to make it work, you can write pretty much everything else in C++

I'm pretty inexperienced with this kind of thing though, is it pretty easy to write everything in C++ and have it work with the C# GUI? Any references or anything you might suggest? I'm not opposed to use C#, I've just never touched it before and I know almost nothing about it.


I think its fairly easy. C# itself is very easy in fact, it's a high-level language like Java.
You need a "C# wrapper" for C++. Google around for "C# to c++", vice versa, and alike, you'll find it, there's plenty of guides on it.

On C#: Are you using Visual Studio for C++? I assume so; just try a C# "WPF" or Windows Presentation Format or whatever project its called, its basically drag-and-drop GUI. If not, you REALLY should use Visual Studio unless you aim to develop on other platforms, in which Eclipse might be good.



England will fight to the last American
KaiserJohan
Profile Joined May 2010
Sweden1808 Posts
December 27 2011 15:13 GMT
#2012
On December 27 2011 23:48 kaihangkk wrote:
i know nth about programming....which language would be the best one to start with?


If you want to get a feel for what programming is, try a high-level language like C# or Java. Start with C# if ur on windows, theres several tutorials on getting started.
England will fight to the last American
mrafaeldie12
Profile Joined July 2011
Brazil537 Posts
December 27 2011 15:19 GMT
#2013
Hey guys i'm not sure this is the right place to post,but does anyone know if Ruby can be used for desktop apps?Thanks.
"..it all comes thumbling down thumbling down thumblin down"
ArcticVanguard
Profile Blog Joined August 2010
United States450 Posts
December 27 2011 15:34 GMT
#2014
On December 28 2011 00:11 KaiserJohan wrote:
Show nested quote +
On December 27 2011 23:29 ArcticVanguard wrote:
On December 27 2011 23:26 KaiserJohan wrote:
On December 27 2011 23:19 ArcticVanguard wrote:
Does anyone have any suggestions for a tutorial for learning GUI programming for Windows? Language is C++. I'm looking at Qt but I'm having trouble following some of them out there. The thing I've seen is that GUI programming on any platform is a nightmare, but surely there are SOME out there that I can use.


For c++ it's generally a nightmare. I played around with win32 GUI and oh my god its torture and 10+ years old, dont touch it. That's why we use C# for GUI and I recommend you do the same. For other platforms you usually have other languages to di t in, Java for Android, Obj-C for iOS, etc..

I've looked at Qt only a little, and I've had work partners use it some, and trust me its pain but still better than win32 stuff.

Seriously just use C# to create GUI, you just need a thin layer of C# to make it work, you can write pretty much everything else in C++

I'm pretty inexperienced with this kind of thing though, is it pretty easy to write everything in C++ and have it work with the C# GUI? Any references or anything you might suggest? I'm not opposed to use C#, I've just never touched it before and I know almost nothing about it.


I think its fairly easy. C# itself is very easy in fact, it's a high-level language like Java.
You need a "C# wrapper" for C++. Google around for "C# to c++", vice versa, and alike, you'll find it, there's plenty of guides on it.

On C#: Are you using Visual Studio for C++? I assume so; just try a C# "WPF" or Windows Presentation Format or whatever project its called, its basically drag-and-drop GUI. If not, you REALLY should use Visual Studio unless you aim to develop on other platforms, in which Eclipse might be good.


I aim for cross-platform compatibility as much as possible. Right now I'm using Code::Blocks for C++ and Eclipse for my Java work. Thanks for the help!
"When I became a man I put away childish things, including the fear of childishness and the desire to be very grown up." ~C.S. Lewis
Zeke50100
Profile Blog Joined February 2010
United States2220 Posts
December 27 2011 15:58 GMT
#2015
On December 28 2011 00:34 ArcticVanguard wrote:
Show nested quote +
On December 28 2011 00:11 KaiserJohan wrote:
On December 27 2011 23:29 ArcticVanguard wrote:
On December 27 2011 23:26 KaiserJohan wrote:
On December 27 2011 23:19 ArcticVanguard wrote:
Does anyone have any suggestions for a tutorial for learning GUI programming for Windows? Language is C++. I'm looking at Qt but I'm having trouble following some of them out there. The thing I've seen is that GUI programming on any platform is a nightmare, but surely there are SOME out there that I can use.


For c++ it's generally a nightmare. I played around with win32 GUI and oh my god its torture and 10+ years old, dont touch it. That's why we use C# for GUI and I recommend you do the same. For other platforms you usually have other languages to di t in, Java for Android, Obj-C for iOS, etc..

I've looked at Qt only a little, and I've had work partners use it some, and trust me its pain but still better than win32 stuff.

Seriously just use C# to create GUI, you just need a thin layer of C# to make it work, you can write pretty much everything else in C++

I'm pretty inexperienced with this kind of thing though, is it pretty easy to write everything in C++ and have it work with the C# GUI? Any references or anything you might suggest? I'm not opposed to use C#, I've just never touched it before and I know almost nothing about it.


I think its fairly easy. C# itself is very easy in fact, it's a high-level language like Java.
You need a "C# wrapper" for C++. Google around for "C# to c++", vice versa, and alike, you'll find it, there's plenty of guides on it.

On C#: Are you using Visual Studio for C++? I assume so; just try a C# "WPF" or Windows Presentation Format or whatever project its called, its basically drag-and-drop GUI. If not, you REALLY should use Visual Studio unless you aim to develop on other platforms, in which Eclipse might be good.


I aim for cross-platform compatibility as much as possible. Right now I'm using Code::Blocks for C++ and Eclipse for my Java work. Thanks for the help!


If you're aiming for cross-compatibility, you could also go for Qt Creator. Not only does it have the benefit of having Qt Widgets and the like should you choose to use the SDK, but it can integrate the Visual Studio debugger, which is by far the most useful debugger out there at the moment. Code::Blocks is good, but Qt with VC++ is just more powerful in the end. I like to think of Qt as Code::Blocks/Dev-Cpp v2.0 :D Note that you might have to use QMake depending on what you're doing (i.e., extensive customization outside of Qt-related things), which can get ugly, although you shouldn't have to worry too much.

As for the GUI programming issue, it's certainly easier to stick with Java or C# (at least for Windows). However, if you're already more experienced with C++, then you might just have to brute-force your way to learning how to mess with Qt, unless you want to use Java or learn C#.

http://developer.qt.nokia.com/doc/qt-4.8/tutorials.html


Those are the best resources I can find at the moment, barring forums and whatnot. The Youtube videos aren't the best in quality (i.e., the recording screen is small), but they get the job done. It's actually really helped me, and there are even corrections posted by the author in the comments.
Soleone
Profile Joined April 2010
Canada80 Posts
December 27 2011 20:30 GMT
#2016
@mrafaeldie12

yes, you can use Ruby for desktop apps. It will mostly probably not have the most polished GUI, but the advantage is that you will be at least double as fast in development time than if you would be using C++ or something else lower level.

Here are two of the options I would consider:

- FXRuby: http://www.fxruby.org/doc/book.html
- Shoes: https://github.com/shoes/shoes

If you have more Ruby related questions don't hesitate to send me a PM
Soleone
Profile Joined April 2010
Canada80 Posts
December 27 2011 20:33 GMT
#2017
@kaihangkk

I would start with a high level language like Ruby or Python where you can concentrate on learning concepts rather than language specific syntax weirdness. Take a look at this little free book: http://pine.fm/LearnToProgram/
SiKStArCuE
Profile Joined April 2011
United States19 Posts
December 28 2011 21:22 GMT
#2018
Can someone please give me some good book references for topics on assembly language and computer networks?
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
Last Edited: 2011-12-29 18:28:38
December 29 2011 18:16 GMT
#2019
Anyone here familiar with the Knapsack problem? http://en.wikipedia.org/wiki/Knapsack_problem

I'm playing this PvP game that's very similar. You have a battleship with x number of weapon slots, limited capacity, and a large assortment of different types of weapons to fill those slots with, all with varying stats (including weight). I'm trying to write a program that will take your captain's stats, the number of weapon slots you have available, the max capacity your ship can hold, and all the possible weapons you can equip, and find the combination of weapons with the highest damage output. You can't just equip the highest damage possible for your level, because you will use up all your weight capacity before you use up all your weapon slots.

Of the solutions to the knapsack problem, the 0-1 solution is the closest to what I need. The problem is I have an additional constraint of limited number of weapons I can use (as many as weapon slots I have), plus I'm having a hard time interpreting the formula and understanding exactly what it's doing. Anyone have any experience with this kind of dynamic programming who might be able to help me out? I just need a better explanation of the formula so I can know how to implement it in my code. Thanks!

Edit: I think I understand the logic of the formula, but I can't quite get when it actually returns a value. Based strictly on what is written there, it seems to me like it will never actually produce a value until it gets down to the first item, in which case it would just produce 0. At some point you've gotta say, "ok, we don't need to go any further, just return this item's damage value", but I don't see when that would happen.
Shruikan998
Profile Joined April 2010
Canada11 Posts
December 29 2011 19:31 GMT
#2020
If I am looking to get into web design, and aim primarily to be self taught... What is the best language for me to learn to do this with?
Ive never seen plants grow out of a TOILET
Prev 1 99 100 101 102 103 1031 Next
Please log in or register to reply.
Live Events Refresh
Next event in 1h 38m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 266
RuFF_SC2 137
Livibee 87
StarCraft: Brood War
Sea 1098
NaDa 40
Icarus 2
Dota 2
420jenkins668
capcasts134
NeuroSwarm92
febbydoto10
LuMiX1
League of Legends
JimRising 686
Counter-Strike
Stewie2K751
taco 608
Other Games
summit1g10365
tarik_tv4837
ViBE191
Organizations
Other Games
BasetradeTV70
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH244
• Hupsaiya 108
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki16
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift4827
• Jankos1588
• masondota2974
Upcoming Events
Korean StarCraft League
1h 38m
CranKy Ducklings
8h 38m
RSL Revival
8h 38m
ByuN vs Cham
herO vs Reynor
FEL
14h 38m
RSL Revival
1d 8h
Clem vs Classic
SHIN vs Cure
FEL
1d 10h
BSL: ProLeague
1d 16h
Dewalt vs Bonyth
Replay Cast
2 days
Sparkling Tuna Cup
3 days
The PondCast
4 days
[ Show More ]
Replay Cast
4 days
RSL Revival
5 days
Replay Cast
5 days
RSL Revival
6 days
Liquipedia Results

Completed

BSL 2v2 Season 3
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.