IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.51 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-06-03
[00:00]<pjfzzygz>It's only 9 o'clock. :S
[00:01]<kjr>Liquid-Work: seeya dude
[00:01]<kjr>I'll drink a beer tonight in your honor ;)
[00:01]<kjr>BURR!
[00:05]<`d0>hi
[00:05]<`d0>Moridin8 are you there?
[00:05]<`d0>I know what libraries I have
[00:05]<`d0>I am wondering if the porting from C++ to C# can be done
[00:05]<kjr>interop
[00:06]<`d0>yes he was discussing it yesterday
[00:06]<`d0>What If I have STL not ATL?
[00:06]<`d0>I don't have access to source code or Header files
[00:06]<kjr>you have a DLL?
[00:07]<`d0>one api is .lib the other is .dll
[00:08]<`d0>My other question is that we have existing OpenGL code for our haptic device, and wondering if it is possible to port to .NET
[00:17]<ygc|wjzc>hello, having a problem with a website
[00:17]<cfudsd>m0, its possible
[00:17]<ygc|wjzc>the url looks something like: http://foo.com/getfile.aspx?h=1234
[00:17]<ygc|wjzc>where 1234 is a hash
[00:17]<cfudsd>depends on what your definition of porting is though
[00:18]<ygc|wjzc>the idea is, the hash is matched up to a local file on the webserver, and i need to return the file to the user
[00:18]<ygc|wjzc>the files will be of varying types
[00:18]<cfudsd>if you expect porting to be slightly time intensive, painful etc.. then yes you can do it
[00:18]<cfudsd>if you just want to run it through some automated processes and click compile, then i don't think so
[00:18]<ygc|wjzc>here's the relevant code:
[00:18]<ygc|wjzc> Response.ContentType = "application/octet-stream";
[00:18]<ygc|wjzc> Response.Clear();
[00:18]<ygc|wjzc> Response.WriteFile(fpath);
[00:19]<ygc|wjzc>when i browse to the page, it tries to force me to download the aspx file, not the file represented in by fpath
[00:21]<ygc|wjzc>anybody know why this is happening?
[00:22]<cfudsd>octet-streams are evil, thats what is happening, evil.. google says don't be evil - other than that, i don't have a clue what is wrong
[00:23]<ygc|wjzc>why are octet-streams evil?
[00:24]<txnjzd>ink|work: as in you get literally that source?
[00:25]<txnjzd>or you get the contents of the associated .aspx page with html?
[00:25]<krffnjs>a tricky exception problem: http://rafb.net/paste/results/VD7pQf35.html
[00:27]<v2z>why not move the try/catch block inside the loop?
[00:27]<krffnjs>er
[00:27]<kjr>tbr: if at first you succeed, try try again ;)
[00:28]<ygc|wjzc>Theory: never got that far, actually
[00:28]<krffnjs>ill try it lol ^^
[00:28]<ygc|wjzc>but I just figured out the problem
[00:28]<kuggys>I have a static method, and it's the only method in a class. I know I should make the class sealed, but ncover complains that my private constructor never gets called. Is that something to just ignore?
[00:28]<ygc|wjzc>had to add a Content-Disposition header
[00:28]<ygc|wjzc>and all was well
[00:28]<txnjzd>Kunnis: which .net version?
[00:29]<kuggys>1.1, though we'll be moving to 2.0
[00:29]<txnjzd>for 1.1 you may be able to stop the warnings by making it abstract sealed
[00:29]<txnjzd>with .net 2.0 you can apply the "static" keyword to classes
[00:31]<kuggys>Okay, thanks
[00:31]<v2z>Kalleos, you might want to declare the variable 'transactions' outside of the loop seeing as once the loop terminates your reference to it is lost
[00:32]<krffnjs>ah good attention thx
[00:32]<v2z>no problem, good luck
[00:36]<d0`>hmm most of the code on codeproject are referring using .NET to C++
[00:36]<d0`>using interop
[00:37]<d0`>How do I do the opposite? Programming the higher level in .NET and already made .dlls in lower level
[00:37]<d0`>made in C++, so I can call C++ code from c#
[00:47]<d0`>http://www.codeproject.com/dotnet/cominterop.asp that seems like a nice article
[00:58]<gjrvcxnne>m0: eh? calling .net code from unmanaged C++?
[00:58]<cfudsd>you can call dotnet code from unmanged code via COM right?
[00:59]<gjrvcxnne>I would assume so
[00:59]<gjrvcxnne>I always call com code from .NET
[00:59]<cfudsd>or made a C++ file that has unmanaged code and managed code, so in the sense do a wrapper the oppposite way
[00:59]<cfudsd>ive done that before (what i just said)
[00:59]<cfudsd>i have unmanaged graphics application that calls managed C#
[01:01]<mjzymygo>hmm.. I need to take a real good look at C++/CLI
[01:21]<wyfaj>c++/cli is 1 step closer to world peace
[01:22]<kjr>heh
[01:26]<kuggys>Is there a tool to generate simple unit tests? I have a bunch of properties, and I just need to varify their read-write-ness.
[01:28]<txnjzd>Kunnis: We have a few in house. pretty quick to write a generator for them
[01:31]<kjr>hm, 11am on tuesday... /me marks his non-existent calendar
[01:33]<rxrcr_>intel interview then?
[01:33]<kuggys>Theory The problem is I can't find one that's already written.
[01:33]<kjr>yes
[01:33]<rxrcr_>hotness
[01:33]<kjr>chaka_: hopefully I can get an offer from the competing company beforehand
[01:34]<rxrcr>bidding war :)
[01:34]<rxrcr>or atleast, flexibility
[01:36]<kuggys>My contract is ending where I'm at now, they offered me FT, but there's there's another possiblity from another company, and they're paying 40% more...
[01:37]<kuggys>And the lead at the possiblity is a well respected local, so I think I'd learn a lot.
[01:38]<kuggys>It's the great battle of bird in the hand VS 2 in the bush.
[01:38]<kjr>chaka: well... the other company offers me comparable salary (55k instead of 34/hr) but it's contract to hire permanent
[01:39]<kjr>chaka: and I won't be a contractor employee...
[01:41]<kuggys>Kog Roughly the same battle I'm going though, though with smaller numbers.
[01:41]<rxrcr>hrm, there's a big diff between that salary and hourly rate. I'd hope the FT benies etc is worth it
[01:41]<kjr>Kunnis: well, I'm going from 10.50/hr to about 3-4 times that heh
[01:42]<kjr>chaka: if I can get on with the contract-to-hire firm (90 contract phase) I'll strongly consider it
[01:42]<kjr>they do interesting work too
[01:42]<kjr>I feel bad for not telling my current employers I'm heading out
[01:42]<rxrcr>thats cool then. Regardless it's a definite improvement for you
[01:43]<kjr>I plan on telling them as soon as I have an offer letter on the table
[01:43]<kuggys>Kog A friend of mine consoled me with the same problem. Companies have no loyalty anymore, so why should you have it for them.
[01:43]<kjr>Kunnis: because I have empathy
[01:43]<kjr>Kunnis: and because I hold myself to very high standards
[01:44]<kjr>I haven't done anything *wrong*... it'd just be nice to be able to tell my boss that
[01:44]<kuggys>Kog I understand that, but when you feel for them, also feel greedy, cause that's what they are.
[01:44]<rxrcr>Kog, What they pay you is a travesty; imo the only reason you should tell them anything is to maintain any sort of personal ties
[01:44]<kjr>chaka: neh... they're good people, just dumb managers







