« first day (495 days earlier)      last day (4439 days later) » 

12:03 PM
HI all
I have one issue
0
Q: Can't find PInvoke DLL - BUG?

PirabaI have got Windows mobile GPS third party application.That is C++ code which code contain GPS automatic enabling/disabling facility. I want to make dll. That also i did. When the user click invoice (C# code) GPS (C++) have to find. This is my source Code GPS.cpp extern "C" //No nam...

Pls help me
 
@ScottW that's impossible with C++.
 
one issue
do you know any solution to that
?
 
@Piraba you already got an answer. Rather than just begging more people to answer the same question, how about using the answer you already got to narrow down the question or ask a new on?
 
sbi
@Piraba I guess with a .NET/PInvoke problem you might be better off asking at the C# room.
 
nothing turns people off like a "pls help me"
9
 
12:09 PM
"pls" is the most horrible abbreviation ever.
3
It's like: "YOU MUST do all the work for me! I'm even too lazy to type three extra letters."
 
@jalt i am Java Developer. I am new to c++,C#
that why i asked this question from many people still i couldn't get proper solution
 
@ScottW If you don't Java the Java up, I will Java you and your Java Java ** Java!
@ScottW don't Java to me like that!
 
@Piraba If you ask the same question to many people and can't get a proper answer, then your question is broken
2
 
brb brushing my teeth
 
@daknøk That'd be "plx".
 
12:13 PM
so instead of finding even more people to ask the same question, make a better question
You asked the question on SO, and you got an answer. Is there something wrong with the answer you got?
 
sbi
@CatPlusPlus Plx is an abbreviation? I am perplxd.
 
If so, then determine why your question led to that answer, and fix the question. Make it more precise.
 
sbi
@jalf Oh c'mon! Next thing we see from you is requesting people to behave rationally in here! Really, where do you think you are?! Oh, wait...
 
back
 
Hi everyone. I'm trying to specialize the method doIt() in the following bit of code for various base classes
 
12:19 PM
Ok.
 
@daknøk boost::enable_if<boost::is_base_of<FooBase, T> >::value produces a compile-time error
 
I was talking about is_base_of<>::value but that doesn't seem to work either.
 
@Olumide probably because the condition evaluates to false?
 
@jalf perhaps not. Its based on this bit of code
http://ideone.com/uesLi
 
1 message moved to bin
1 message moved to bin
 
12:24 PM
yes
 
Europe wins!
 
But now i am facing compiling error
 
@Piraba this is a C++ chat room not C#
 
@IntermediateHacker What about Antarctica? It's not even listed. THAT'S UNFAIR!
 
With North America coming in 2nd place, South-East Asia next. and the Middle East coming in last :'( .
 
12:25 PM
recently I got +10 rep, so I can downvote a ten of crappy questions
 
@daknøk with the possible exception of @jalf , no species can survive in Antarctica.
 
@IntermediateHacker Tux?
 
Avada Kedavra!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
0
Q: What does 'OP' stand for?

Stackeri have seen it in comments and in answers, so im wondering out of curiosity: What does the word 'OP' stand for ?

ROFL
 
lol
@daknøk It's just he asked that in wrong place :)
 
12:29 PM
@MrAnubis Crucio!!!
 
@MrAnubis and he could have googled it: second result.
 
@IntermediateHacker Reflucto!!!!
@daknøk Google is good option but it can't answer all question !!
lol why did I say that
 
@MrAnubis Protego!!!
 
@daknøk how do you google a term like "OP"?
 
@IntermediateHacker I like your comment.
@jalf go to "http://google.com/" in your web browser (type it in the address bar, hit return), type in "OP" in the text field, hit return.
 
12:31 PM
@IntermediateHacker Toruk Makto!!
 
@daknøk yes, and it tells me about the Danish title for the Pixar movie "Up"
Very useful
 
lol
 
lol
 
urbandictionary.com/define.php?term=c%2B%2B I like the first definition.
And the example in the second entry.
lol "Simple to learn"
 
12:36 PM
The learning process is simple, it just takes a little time and patience.
 
A few months ago in class someone had to demonstrate how to find out what "polymer chemistry" meant, using the internet. So, what was the first thing she did? Open Google. So far so good. What was the second thing she did? Search for "dictionary". T_T You won't even find such a thing in a J**a dictionary.
 
J**a dictionary?
 
Java :P
Synonym of the F-word.
 
You can search for "define: polymer chemistry".
 
True story. Guess what? She was held back that year. :)
You don't say?
 
12:44 PM
Blame the education system who told her to look things up in the dictionary.
 
That's general knowledge, but OK it's the Dutch education system d:
 
You also Dutch? There's a bunch of us here.
 
Jazeker.
 
Oh yeah, I forgot you told me before.
 
Just like sehe, kevin, WTP'-- (me), you.
I have two accounts, actually.
 
12:48 PM
Who is kevin?
 
Mmm maybe I'm wrong.
 
@ScottW Holy crap. Scared the shit out of me
@ScottW Loud voice coming out my speaker yelling "Jazeker de hypotheker" -- see also youtube search
 
That would make for an excellent browser add-on/extension!
 
@daknøk Even Apeldoorn bellen...
 
@sehe this one is still my favorite:
 
1:02 PM
@ScottW ... you said it:
6 mins ago, by sehe
@ScottW Holy crap. Scared the shit out of me
@daknøk +1, @ScottW +1 too
@ScottW Dammit. Scrolling chat not funny anymore. Meant to quote you of course:
13 mins ago, by Scott W
jazeker de hypotheker
@ScottW that's certainly annoying. Mostly the Yehova's Witness trying to do an paternalist/amicable attitude
 
@StackedCrooked I meant Ruben, not Kevin.
 
1:19 PM
I'm not Dutch.
Technically, I don't even speak Dutch (which is an ugly mix of English and Flemish, with a bunch of awful pronunciation rules to boot)
 
I see, I'm sorry…
Dutch isn't ugly. :P
"Bels" in Noord-Brabant.
 
@daknøk true, the spelling is the same, it's just most of the pronunciation... sheesh, really, really weird.
^ seriously
"Vakantsie"
the "t" is pronounced as an "s", there's no "ts"!
 
"Vacation", same thing.
Yeah.
Near Belgium.
 
@daknøk indeed, but Dutch people always say the "ts". It's quite irritation when you hear stuff like "de politie is met vakantie vertrokken aan de statie"
I don't even think Dutch Dutch has "statie" as a word.
 
@rubenvb It has, it means "station".
 
1:27 PM
@daknøk do you also pronounce it as "statsie"?
 
Yes.
 
sounds an awful lot like "stazi" when you say it
sheesh
weirdos
 
@rubenvb I pronounce that sentence as "duh poolietsie is met vakkansie vertrokkuh aan duh staatsie."
@ScottW I go to school in Roosendaal.
 
@daknøk why the difference between "politie" and "vakantie"?
 
@rubenvb I guess because the letter before the "t" is a consonant.
It's more difficult to pronounce "nts" than it is to pronounce "ns".
 
1:31 PM
@daknøk ok, sensible explanation for a weird pronunciation :)
 
But some people pronounce "politie" as "poliesie" :P
Stupid Mac OS X Lion auto-correction.
It doesn't let me mix Dutch and English in one sentence.
 
@daknøk that's what all Flemish dialects would do (if the word is recognizable at all)
a desktop OS with autocorrect?
 
Xeo
> Use caution – One does not simply walk into Mordor. [from Google Maps]
3
 
@rubenvb yeah. It's handy when typing "necessary", but other than that it's always in my way.
 
@Xeo That’s amazing!
 
1:36 PM
Google Maps one suggested me to cross the Atlantic Ocean by kayak.
It sometimes suggest you to cross the Pacific Ocean by jet ski.
 
Xeo
@Abyx Maybe you're interested in knowing that downvoting questions doesn't cost any rep. ;)
 
> Stack Overflow gets 4,000 new questions a day, most of them crap
So true.
 
99% of Everything2 is crap.
 
sbi
Ok guys, 16 more upvotes on this (admittedly meek) answer, and I have 60k. Go for it! :D
@daknøk Oh yeah, I'm a repwhore!
 
Upvoted. Even if it's not the right answer, I don't care. @sbi is my only follower on Twitter so he deserves some extra rep. :P
 
sbi
@ScottW Oh well. It's now 15 upvotes. If you downvote, I'm back to 16 — and that allows for four more downvotes.
@daknøk Haha, am I really?
 
@sbi yeah :P
"1 followers"
Dear Next Person Who Opens a Pluralization 'Bug', I will personally come to your house and bludgeon you to death with a giant S
 
sbi
2:21 PM
@daknøk Well, post a few real good tweets referring to this chat. If I feel like retweeting them, a few more who know you from here might start to follow you.
@ScottW You can link to comments.
 
@rubenvb ah, that's awesome, then I guess my instructions aren't needed. Thanks for taking care of Windows, I appreciate having an up to date version available instead of just 3.0
 
sbi
Darn, I still need 15 upvotes on this. C'mon, guys, it's not a bad answer! :D
 
@rubenvb your builds are basically what I was looking for the whole time. They should add them to the Clang website
@sbi would the machines catch me if I just went around and upvoted 15 of your answers
 
sbi
@SethCarnegie Yep.
 
@RMartinhoFernades you can remove my sticky'd message now
@sbi ok then, + just 1
 
sbi
2:24 PM
@SethCarnegie I lurve you!
 
And suddenly when it has got 16 up votes, it turns out not to be the right answer. xD
 
sbi
Haha, @daknøk, you're a star!
 
:P
 
sbi
Well, well. Pledging doesn't seem to help too much. Should I threaten you guys?
And the oldest and strongest kind of fear of the unknown is fear of that which is probably an angry gorilla.
 
@SethCarnegie I did advertise them on cfe-dev. Mind you: exceptions are broken on Windows
 
2:28 PM
@sbi seems that chat highlights the comma. Filing a bug. :P
 
sbi
Darn, now the guy has posted his implementations, and someone else saw it faster than I did.
@daknøk Wut?
 
@rubenvb is clang.dll libclang.dll?
 
@sbi the comma that comes after my name got highlighted in green. Only I see that, though.
 
or, what do I need to use clang to parse C++ in another C++ project
 
@SethCarnegie uh, yeah. The Clang DLL.
 
sbi
2:29 PM
@daknøk Yeah, of course I don't see that. You would need to head over to the madhouse and file a bug, not me.
@Potatoswatter doh!
 
@sbi just did that.
 
@rubenvb ok thanks again, these builds are extremely helpful
 
sbi
@ScottW Oh, I misread this. Sorry, @daknøk.
@daknøk Post the link here, so we can upvote it.
 
@SethCarnegie you can even use std::thread (if you link with -static). This problem (requiring -static) might be solved though with mingw-w64/GCC, I still need to check this.
 
0
Q: Chat shouldn't highlight commas that come after mentions if they are not part of the user's name

WTP'-- The comma should not be highlighted in green, as it's not part of my name.

 
2:31 PM
@daknøk We ALL need to upvote this.
 
But, I can't! D:
Oh wait I can :P but that's unfair.
 
sbi
@daknøk Oh, wait! You are WTP'--? I didn't know that!
@daknøk You have a sock puppet? You shouldn't have said that.
 
WTP is darknok? Finkel is Einhorn?
 
Does anyone know where I can read the SVN log of clang
 
or through "svn co" and "svn log" of course
 
2:36 PM
@rubenvb thanks. Also, you said "you can even use std::thread" does that mean it's newly added? And would I read about stuff like that on that svn log?
 
@SethCarnegie std::thread was added in GCC 4.6, but based on pthreads, which on Windows was limited to pthreads-win32, which was incomplete (missing a few necessary functions). MinGW-w64 has the new winpthreads, which fills these holes, and GCC 4.7 has posix threads support for Windows (which I backported to GCC 4.6). So not new, but new on Windows.
 
@rubenvb ah ok, awesome
 
and by std::thread I mean all related functionality that's in GCC's libstdc++: <chrono>, <future>, <thread>...
 
user406009
Wait, so std::async finally works?
 
I haven't tested it
It might.
std::thread's join() works as expected, I haven't gotten deeper personally
 
2:40 PM
So, just to make sure (I'm a complete novice at this), those files are all I need to build a program that uses libclang to parse and manipulate C++ source code, right?
build it with something like MSVC++
 
@SethCarnegie uh, what?
Clang is a compiler
libClang is its library with a rich interface.
I built everything with MinGW (so it won't be very usable from MSVC++), so you have at least a working libstdc++.
Clang cannot link to MSVC++ libraries
yet
 
@rubenvb well the point of me trying to use clang was to be able to use libclang in another C++ project
(to parse C++)
So I was wondering if that download that you have includes libclang or
 
@SethCarnegie if you're building that project with MSVC++, then you'll need to build libclang with MSVS.
 
@rubenvb but if I build it with mingw, then those that you have are fine?
 
@SethCarnegie yes
 
2:45 PM
Ok got it
 
@ScottW me too! :P
I'm in the last year now. Next year I'm going to Hogeschool Rotterdam. I'm gonna study CS (or however that's called in English).
 
user784668
@daknøk What do you need a sockpuppet for?
 
@rubenvb the files in mingw64\include\clang are all the headers libclang needs to work (since, as I understand it, clang is a driver program for libclang) and then I just link to bin\clang.dll?
 
@ScottW What?! Which Gertrudis. My high school was called that :)
@daknøk Always. Gertrudis Lyceum, Roosendaal. I can't imagine so many nerds thriving there :)
 
@SethCarnegie Yes. I think clang++.exe can find its own headers (and maybe libraries), not too sure about g++.exe
 
2:49 PM
THE FUCK! The world is a small place....
I think I'm gonna die
 
@rubenvb yeah, I'll have to add them to the g++ search path
@rubenvb are they (or you as the case may be) working on getting exceptions working on Windows yet
 
@ScottW No need to drop names, but what brings you so close to friends who are at a local collge in West Brabant - of all places?
Also, I went there I think from 1990-1996 or thereabouts
@daknøk regarding online privacy, I'm no longer based in Roosendaal, I feel comfortable posting my whereabouts of 20years ago :)
:2730036 Afraid not. Perhaps, though, since I am excruciatingly bad at names
@daknøk You do realize that you are deleting as many items as you post :)
 
@SethCarnegie not that I'm aware of. ktietz from MinGW-w64 has expressed interest (but is low on time) and I believe r4start is also working on MS ABI issues.
@sehe won't IP addresses reveal your current whereabouts?
 
@ScottW I'm confused how that would bring up Gertrudis as a topic in the C++ lounge
@rubenvb Yup. Can you see mine?
 
Can someone please tell me why this bit of code isn't compiling?
http://ideone.com/zEYxh
 
2:54 PM
@sehe there's bound to be ways to get at those
 
@Olumide because it triggers compile errors.
 
I'm no Internet security master
 
@ScottW I'm afraid @daknøk has deleted essential evidence, so I can't trace it
 
@daknøk I walked into that one :)
 
I'm writing an issue tracker for recreational purposes.
 
2:55 PM
@daknøk @WTP'-- ya know you can change your account name instead of opening a new one…
 
@Potatoswatter I know, but I wanted to start over anyway.
 
@ScottW aha. I'm from Roosendaal. Born and raised. 17 years of it. I'm only just starting to learn to speak 'plat Braobaants'
 
@Olumide Missing #include <boost/utility/enable_if.hpp>?
 
@CollinHockey No its not that.
 
@ScottW Agge da moar wit!
 
2:58 PM
@ScottW that's a French teacher.
Quiz: in Ruby, what does this do?
if 0
  puts "Hello, world!"
end
 
@ScottW Never had him. What year are we talking about?
 
hopefully nothing?
 
user784668
@daknøk Eats an orange.
 
@CollinHockey +1
 
@daknøk prints hello world
 
2:59 PM
@SethCarnegie yes.
 
because 0 is an object and evals to true
 
Why? Because in Ruby, everything that is not false or nil is true. WAT
 
I knew ruby was trouble
 
@ScottW I'm having a hard time coming up with names of teachers anyway. We had 'Theo (?) v Egeraadt' (Natuurkunde/Physics), and the rest is blank for now.
 
Ruby Ruby Ruby Rubyyyyyy! aaahhaaa aahhhhhaaaa ahhha
 
3:01 PM
@ScottW I'm amazing myself at how bad I really suck at remembering names
 
user784668
@daknøk Then you failed. We know who you are, so what's the point?
 
@daknøk in my language, I would add an operator bool so that 0 could choose to evaluate to false as well
 
@SethCarnegie It needs to do so randomly
 
I think that in this case, Ruby is semantically more correct than C++.
0 isn't false, nor is it nil.
 
operator bool() { return *this != rand(); }
 
3:02 PM
@daknøk @ScottW let's get back later; I'm gonna have to do work :)
 
user406009
Shouldn't it be `
operator bool() { return *this != rand() %2; }`
 
#define return do {if (rand() * 1000 < 2) {throw 0;return;} else {return;}} while(0) just put it in some system header file.
 
user406009
#define if while
is better.
 
@ScottW cheers
 
3:05 PM
@EthanSteinberg #define if(x) if(false) is also fun.
 
@daknøk won't that simply fail to compile?
 
@KillianDS nein. It sees if(expression-here) as a function-like macro.
 
@daknøk no, he means the return one
 
@daknøk but it will also replace things like "return 5;"
 
user784668
#define return if(rand() * 1000 < 2) throw 0; else return
 
3:07 PM
@KillianDS 5; is a valid statement, so it should work.
@Fanael that one's MUCH better.
I see.
But while(0); 5; is valid. :P
 
yes, but your macro didn't have a ;
 
The macro should then include a semicolon, but if the function doesn't return void, you're screwed.
 
@Fanael In C and C++, rand returns an integer up to the billions, so that will very seldom fire.
 
@daknøk No, any decent compiler will catch you returning void where it shouldn't do that and fail compilation. So again, compilation fails
 
@KillianDS that's what I mean by "you're screwed".
 
user784668
3:12 PM
@Potatoswatter In C and C++, rand returns an integer up to RAND_MAX. Which is implementation-defined, and at least 32767. And there are implementations which have RAND_MAX defined as 32767.
 
user406009
IIRC the gcc compiler did let me not return something.
 
user406009
Crashed at run time though.
 
@Fanael Yes, I'm aware of that too, but you should have % instead of *
 
user784668
@Potatoswatter You missed the point, then.
 
@Fanael I think I get the point, just mentioning a typo. What you have there is the same as if ( rand() == 0 )
 
user784668
3:16 PM
@Potatoswatter Of course you don't want this bad joke to fire too often, do you?
 
boost.python, anyone?
 
user784668
@Potatoswatter This is a sloppy implementation of an unfunny joke. It's by design. Do you now understand?
 
@daknøk that's the same for any #define reserved_keyword some_uncompilable_crap, nothing special there :p
 
@Fanael Dunno. Still want to fix it. Also, including any standard header renders that ill-formed.
 
user784668
@Potatoswatter Then you definitely don't understand what a bad joke is. It ain't supposed to work.
 
user784668
3:23 PM
I'd agree if this was a part of some serious code. But it's not.
 
Do completely unfinished projects that are most probably awfully coded (but work partially, but not as much as can be philosophically considered "do something") qualify for the "fun projects on the wiki" list?
 
@rubenvb No, those are no fun for anyone but the author.
 
Most of Java isn't very fun
 
Why is this going in this direction? I just spent today introducing myself to Java by rewriting a convoluted mess of partially-coded, occasionally smattered with functionality, numerical uselessness.
 
@Pubby you have a page lock on the loungecpp wiki
 
3:29 PM
Bah… I still need to get back and figure out the relationship between low-pass filtering of angular rates and Euler angle integration.
 
there's no such thing as a fun Java project
 
@rubenvb I think it's gone now
 
I've seen fun Java AI projects, and what I'm doing now is fun. It's just not structurally intensive. The language and expression part isn't fun.
 
@Pubby I also noticed I could forcibly remove the lock :)
 
Man, Darths & Droids is hilarious.
 
3:49 PM
8
Q: Chat shouldn't highlight commas that come after mentions if they are not part of the user's name

WTP'-- The comma should not be highlighted in green, as it's not part of my name. (daknøk is my other account.)

Cmon folks, just 8 more votes to make the meta question more meta.
 
And instead of talking about the actual problem, people start to bitch about me having multiple accounts.
 
How does copy and swap work on classes with only move constructors/assignment?
Should it even be used?
 
u mean using move ctor/assignments for copying/swapping?
I dun think that ll work very well...
 
@BeyondSora I think he means calling std::copy or std::swap with data types that do not have a pass-by-value or pass-by-lvalue reference constructor (e.g. they're deleted)
 
I mean calling member function swap inside move ctor
and assignment
 

« first day (495 days earlier)      last day (4439 days later) »