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.67 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-20
Pages: < Prev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Next >
[15:09]<vxznrmw>true
[15:09]<vxznrmw>have worked with java along side of my c# for half a year or so
[15:09]<mjzymygo>which was a big issue due to space restrictions and other associated costs
[15:10]<vxznrmw>have both noticed the superiority in actual code performance and the time taking to develop shiznit
[15:10]<vxznrmw>from c# that is
[15:10]<wnnmd_frlld>how can i load array of structs from file at once?
[15:10]<vxznrmw>java isn't a bad language to work with at all
[15:11]<mjzymygo>not at all. Java is nice. just a little old atm
[15:11]<vxznrmw>but if you come from c#, it need a couple of features imo
[15:11]<mjzymygo>needs revitalising
[15:11]<vxznrmw>yup
[15:11]<mjzymygo>Weedy_lappy: look into serialisation
[15:11]<vxznrmw>if you look up the java docs (which is actualy not half bad), the member lists and such consist of 50% obsolete stuff
[15:12]<mjzymygo>I know. when those were originally created Sun didn't know what the future held... remember it was originally a platform agnostic system.
[15:12]<mjzymygo>Sun are also choosing to hang on to legacy shit.
[15:13]<mjzymygo>M$ are taking the route of deprecating old shit on the go... ergo the changes needed on 1.1 to 2.0 upgrades.
[15:13]<mjzymygo>I think it's the right move despite the complaints
[15:13]<vxznrmw>yea
[15:13]<vxznrmw>to me it was nothing but interesting with the new additions
[15:14]<mjzymygo>hmm...
[15:14]<mjzymygo>food time ;)
[15:14]<vxznrmw>heh
[15:14]<vxznrmw>work time, then
[15:14]<vxznrmw>:)
[15:14]<mjzymygj|fjjm>bbiab
[15:14]<vxznrmw>later
[15:18]<sdnffdxdlld>bleh
[15:19]<afd>hippy!!!!!
[15:20]<sdnffdxdlld>lo AqD ^_^
[15:22]<fyfuym-syfggag>qddddd
[15:22]<fyfuym-syfggag>:P
[15:22]<fyfuym-syfggag>lo andy
[15:24]<afd>Liquid-Silence: !!!!!!!!!]
[15:25]<sdnffdxdlld>:)
[15:32]<svzz[wjzc]>Morning guys
[15:33]<fyfuym-syfggag>afternoon fagx0tr
[15:33]<fyfuym-syfggag>err
[15:33]<fyfuym-syfggag>fagz0r
[15:34]<svzz[wjzc]>okay here's a tricky one, i have an class A that inherits from a Panel and a class B that inherits from A... and when putting a B object in a Form, the code in A's CTOR gets executed and i can't find any way to prevent this... i made a test application here's the main code : http://rafb.net/paste/results/mgulCM70.html and here's the app source files http://richardperreault.ca/windowsapplication1.zip
[15:35]<svzz[wjzc]>i even tried setting up preprocessing directive #define RUNTIME #if RUNTIME do stuff that should execute in design mode #endif and it gets executed anyway
[15:40]<svzz[wjzc]>LFH -> VC#2005 design mode executing unwanted stuff in CTORs. (Looking for Hack)
[15:42]<fnzjy>ahh oui oui
[15:43]<fnzjy>je ne vous pense pas le besoin une entaille
[15:44]<svzz[wjzc]>dude...
[15:44]<fnzjy>?
[15:44]<svzz[wjzc]>i speak french and i have no single idea what you jsut said
[15:44]<fnzjy>lol
[15:44]<fnzjy>well my french sucks then
[15:44]<svzz[wjzc]>and generally it is recommended we speak english on programming channels
[15:44]<fnzjy>eh i was just joshing son
[15:45]<svzz[wjzc]>son lol, okay
[15:45]<fnzjy>well what do you want me to call you?
[15:46]<svzz[wjzc]>StaZ ;)
[15:46]<fnzjy>you look like a John
[15:46]<svzz[wjzc]>i'm Martin
[15:47]<fnzjy>Sounds gross sometimes...
[15:47]<fnzjy>Whenever you flush.
[15:47]<fnzjy>;p
[15:48]<svzz[wjzc]>ok... sorry i don't understand you... error 504 : Connection impossible.
[15:48]<fnzjy>:/
[15:49]<fnzjy>well you don't know what a john is i guess.
[15:50]<svzz[wjzc]>other than a guy named John, no i don't
[15:53]<wnnmd_frlld>leroi, i see what you did there
[15:54]<svzz[wjzc]>Hey guys, since nobody seems to be able to tell me how i can prevent my code from executing at design time, maybe you have any idea what Keywords i can search with on google?
[15:57]<svzz[wjzc]>Another failure : the Assembly.GetExecutingAssembly() to see if we're in design mode... well in design as in runtime the name is exactly the same >_<
[15:58]<wnnmd_frlld>is there something like C++ memcpy ( void * dest, const void * src, size_t num );?
[16:00]<sdnffdxdlld>Weedy_lappy: you'd be more likly to get an answer if you describe what that does in case theres no c++ dudes around
[16:00]<svzz[wjzc]>copies a part of the memory... that's pretty low level stuff
[16:01]<svzz[wjzc]>used in array management for instance, iirc
[16:02]<sdnffdxdlld>well duh it copies the memory lol :P but what exactly ... cloning a an array?
[16:04]<wnnmd_frlld>memcpy is simple memory copy, pointer to destination, pointer to source, and size
[16:04]<vxznrmw>memcpy is cpp
[16:04]<svzz[wjzc]>well the RAM is actually coposed of a lot of "cells" and managed by adresses... pointers holds adressses... well it copies whatever is in the memory at point src, for size num to point dest
[16:05]<vxznrmw>but you can p/invoke CopyMemory
[16:08]<vxznrmw>what you wanna use it for?
[16:09]<svzz[wjzc]>oh damn that's impossible... there MUST be a way... a preprocessor, a global variable... anything that can tell me if VC# 2005 is actually in DESIGN mode
[16:10]<-- 2yd2nzy xrs fuyv>http://iownmymusic.org/ http://iownmydvds.org/ .")
[16:12]<sdnffdxdlld>stupid connection
[16:12]<sdnffdxdlld>Weedy_lappy: did you get an answer? what did you want it for?
[16:24]<svzz[wjzc]>FINALLY TABARNACK : I finally got a decent way to check if design mode is on : System.Diagnostics.Process.GetCurrentProcess().ProcessName will return "VCEXPRESS" in designmode and "MyApplication.vhost" at runtime
[16:25]<mjzymygj|fjjm>Staz: that only works when you are debugging
[16:25]<lyzxvxzddnz_>oiO
[16:25]<svzz[wjzc]>GODDAMIT
[16:25]<svzz[wjzc]>huh
[16:25]<svzz[wjzc]>wait a min
[16:25]<mjzymygj|fjjm>I told you how to detect if a control is in design time
[16:26]<svzz[wjzc]>Moridin8|Food it doesn't work in my case
[16:26]<mjzymygo>why not?
[16:26]<svzz[wjzc]>http://rafb.net/paste/results/mgulCM70.html <-
[16:26]<svzz[wjzc]>http://richardperreault.ca/windowsapplication1.zip <- the test app.
[16:27]<svzz[wjzc]>nothing except for that process checking thing will prevent the message box from appearing at design time and will allow it at runtime
[16:27]<fmcf>line 42..
[16:27]<svzz[wjzc]>the one in A's CTOR
[16:27]<mjzymygo>hang on
[16:27]<svzz[wjzc]>pdkl what's wrong?
[16:27]<fmcf>nothing is wrong
[16:28]<svzz[wjzc]>ok...
[16:28]<svzz[wjzc]>Moridin8 .DesignMode works only in the Form Load event... :-/
[16:29]<mjzymygo>public class A : Panel{public A(){if(!base.DesignMode)MessageBox.Show("this is not normal!");}}







