Integrate irrlicht into a Windows application

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Haddock
Posts: 15
Joined: Tue Dec 16, 2003 7:19 pm

Integrate irrlicht into a Windows application

Post by Haddock »

I'm trying to develop a scene editor built around Irrlicht, and I try to get Irrlicht running inside a windows created by a Win32 application. By default, Irrlicht create its own windows, with a call to the Win32 function CreateWindow.
I succeeded in doing that by hacking the Irrlicht code, but is there a cleaner way where I don't have to hack the code ?
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

no.

by default the engine hides all Win32 uglyness inside of itself. if you want to deal with the win32 uglyness yourself, and merely use IrrLicht inside of that, you have to cut the win32 wrapping code out of IrrLicht. It does not supply any way for you to extract the hDC/etc from it.
a screen cap is worth 0x100000 DWORDS
RayOfAsh
Posts: 56
Joined: Wed Dec 24, 2003 4:08 am
Location: San Diego
Contact:

Post by RayOfAsh »

Umm, its open source, you dont "hack" the code.
Image
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

RayOfAsh wrote:Umm, its open source, you dont "hack" the code.
if you make any modifications to the engine source, and recompile it-- you're out of synch with the main engine code. Unless you succesfully write your hack and get Niko to incorperate it back into the engine for the next release, its still just a hack. IMO
a screen cap is worth 0x100000 DWORDS
RayOfAsh
Posts: 56
Joined: Wed Dec 24, 2003 4:08 am
Location: San Diego
Contact:

Post by RayOfAsh »

A Hack is when you illegaly break into somebodys system. A Crack is when you illegaly edit a program.

Its open source, meaning you can edit it all you want, so thus you cant crack or hack it.

IMHO.
Image
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

ah, sorry to disagree with you friend, but :arrow:

You are correct that there is a definition of 'hack' which is related to 'crack' and that it is generally network related.

This, however, is a dirtied version of the original term 'hack' which was coined simply to denote someone who sat at their keyboard and 'hacked' away at it all day (since even trivial tasks required an excessive amount of key activity, and older keyboards were really loud and clunky). Its sad that the term hacker is commonly only thought of along the terms of 'breaking and entering' or 'cracker', but the truth of the definition is that anyone sitting at their computer for more than 7 hours a day is usually a hacker.

To complicate things even more, the term 'hack' which is being used here is a 3rd meaning-- to throw together some (usually bad) code that will 'get the job done'. Doesnt matter if the code is clean, as long as it works. Usually, if you write some code in 30 minutes at the end of a deadline to fix some bugs that just popped up-- its a 'hack'.
a screen cap is worth 0x100000 DWORDS
RayOfAsh
Posts: 56
Joined: Wed Dec 24, 2003 4:08 am
Location: San Diego
Contact:

Post by RayOfAsh »

I havent heard that before, ever. But i have heard that the media gave the Crackers(thats what they were originaly called) the name Hackers.


Well i guess that meens im a Hacker, in all 3 meanings :lol: .
Image
KittenGamer

Um ...

Post by KittenGamer »

Problem: Speaking English.

English has many meanings for each word, especially in America, where one word can mean 100's of things now. Using common terms leaves for vague meanings without the use of other terms to clarify. So, the word 'hack' actually has many deifferent meanings but through the use of it in the first post we determine, it means taking something apart and reassembling it intoo something that works the way you need it to, only using a lot less words.

People in the computer field should know this better than everyone else, no words meaning will remain in tact for long, I mean look at all the terms that have been changed with the advent of computers to begin with. Terminal didn't mean a computer console to work on untill computers came into existance. World Wide Web actually means a large webbing the width of the world if you want to nit pick, but now it means something to do with the internet. So stop picking on someone for using a term in a way YOU don't approve and simply read the post to understand what they mean. This is not English 101 here.

P.S. I use a lot of core terms myself, old school meanings, but they are still not the original meanings of the words.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Well, I think crackers are people who crack software (copy protections, etc.)
and hackers are people who break into secured network systems !?!?!
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

I'll throw in two points -
I always thought that "hacking" was about changing or modifying anything to make it do something different/better whatever, regardless of it being open source or not...simply taking apart and changing.
The media unfortunately has turned "hacker" to mean "cracker" which is simliar to hacker, but done with malicious/illegal intent.

HOWEVER...all that is wrong anyway.
A "hacker" is a person who drives a taxi-cab. They even need a "hack license."
http://dctaxi.dc.gov/dctaxi/cwp/view,a, ... 624%7C.asp
Join us in the Irrlicht chatroom:
[url]irc://irc.freenode.net/irrlicht[/url]

I love deadlines. I like the whooshing sound they make as they fly by. -D.Adams
Ismarc
Posts: 6
Joined: Sun Apr 02, 2006 8:40 pm

Post by Ismarc »

I'd like to point out that the term hack derived from two different places, both of which are covered at http://dictionary.reference.com/search?q=hack. One was someone who rode a horse in a specific way, which is where the term hack to describe cab drivers came from. The other is from writing, normally associated with commercial writing. Hack related to computers initially was used because of the method and style that the code was actually written. It quickly took on the meaning of poorly styled but currently functional code. An appropriate usage would be "This patch is just a quick hack, I'll implement a better solution later." Hackers were the people who hacked out code. The media associated the term hack and hacker with crack and crackers because most often a cracker WAS a hacker. They used poorly styled, quickly written code to gain access to whatever they weren't supposed to have access to. It was this confusion that created the association.

Wow, went on more than I meant to there, but basically, every single person who has posted is correct about the definition of hack, however, the intended meaning of the original poster seems to be that it is a "quickly written, poorly styled" implementation of what he wanted to do.
KittenGamer

*open mouth, insert foot*

Post by KittenGamer »

Um, on the street 'cracker' means something very mean. In the dining room, 'cracker' is a crunchy dried up snack often covered with salt. Anything that makes cracks in concrete could technically be called a cracker, as well as me, for making wise-cracks. Semantics are not something people should even bother to argue about. Slang has added a lot of new meanings, so has the blending of languages and cultures. Basically I could call a tree an 'apple' and still be right, somewhere just not here. Basically, the differences in terms are nothing more than differences in exposure to them and the location in which one is exposed to them, meaning geographical not like 'socking' it to them. Anyhoo, I guess I am done with this discussion since I really think I am getting bored here.
AndyCR(Guest)

Post by AndyCR(Guest) »

Hackers are good, Crackers are bad.

Hacker = skilled programmer, though the term has been terribly abused by the media and mistaken for cracker.
Cracker = worst enemy of hacker. one who breaks into networks. considered the scum of the universe by true hackers.
Black Hat hacker = cracker
White Hat hacker = 'ethical' cracker
Grey Hat hacker = mix of Black and White hats. a cracker for hire, either side.

References: http://en.wikipedia.org/wiki/Hacker , http://www.catb.org/~esr/faqs/hacker-howto.html , http://www.plethora.net/~seebs/faqs/hacker.html
Post Reply