So, what's on your clipboard, right now?
-
If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)
http://www.codeproject.com/useritems/pointerlessimageproc.asp[^] http://www.codeproject.com/useritems/queuelinearfloodfill.asp[^] http://www.codeproject.com/useritems/fastimagedrawing.asp[^] --- I was IM'ing links to my new articles to a friend. :->
-
If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)
http://files.clanwarz.net/files/[^] and i am downloading some free cool stuff from there :):)
It is Good to be Important but! it is more Important to be Good [My Question]
-
Hmm.... I just copied a file to my share I think. Let's see.... [file:///C:/cygwin/bin/make.exe](file:///C:/cygwin/bin/make.exe) Interesting thread!! :-D
--------------------------------------------------------------- Life? Life will tear you apart and kick and leave you on the ground. When it does. Get up. Keep getting up. Get up again. Because it's going to get better. You might come to find the one event you thought was the most disasterous event in your life turned out to be the best thing that could have ever happened to you. -- code-frog@codeproject
-
If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)
If it's not too big, just paste it here, right now... Cheating not allowed.
-- Verletzen zerfetzen zersetzen zerstören Doch es darf nicht mir gehören Ich muss zerstören
-
Tsk tsk - that code is not CLSCompliant ( because VB sucks ).
Christian Graus - C++ MVP
-
(this is NOT my code, I just made it compile for someone in the C++ forum) #include <string.h> #include <malloc.h> void funcB(const char ** names) { //the actual values names[0] and names[1] are to be accessed and used but they are null!!!??? //free names[0] and names[1] free( (char*)names[0]); free( (char*)names[1]); } void funcA() { int array = 4; char ** Names = new char *[array]; int next = 0; int i; //initialise for(i=0;i < array; ++ i) { Names[i]=NULL; } char * list = "Abc"; Names[ next ] = (char*) malloc( sizeof( char )*( strlen( list ) + 1 ) ); memcpy( Names[ next ],list,sizeof( char )*( strlen( list ) + 1 ) ); ++next; list = "cdefg"; Names[ next ] = (char*) malloc( sizeof( char )*( strlen( list ) + 1 ) ); memcpy( Names[ next ],list,sizeof( char )*( strlen( list ) + 1 ) ); printf("vsp list got is %s\n", Names[0] ); printf("vsp list got is %s\n", Names[1] ); funcB((const char**)Names); } int main(int argc, char* argv[]) { printf("Hello World!\n"); funcA(); return 0; }
Christian Graus - C++ MVP
Christian Graus wrote:
(this is NOT my code, I just made it compile for someone in the C++ forum)
Don't be embarassed. Just because you're a MVP I'm sure you feel the need for the occasional "Hello, World!" program now and then. It's ok. We won't tell. :laugh:
FAULTLOG.TXT: File too large.
-
Yeah I know that, because of the casing :sigh: It's just, if I were to make it CLS compliant I'd have to use different names for the property and the field which I find annoying.
FAULTLOG.TXT: File too large.
I tend to follow the common convention of putting a _ before the private member. private int _count; public int Count { get { // etc
Christian Graus - C++ MVP
-
I tend to follow the common convention of putting a _ before the private member. private int _count; public int Count { get { // etc
Christian Graus - C++ MVP
That's actually a good idea. I don't know why I haven't thought about that; probably because I've learned from C++ to never use fields starting with underscores since they might be reserved, so I always feel a small sting of pain when I do it, but maybe it's time to forget my C++ past. :-D Thanks.
FAULTLOG.TXT: File too large.
-
Christian Graus wrote:
(this is NOT my code, I just made it compile for someone in the C++ forum)
Don't be embarassed. Just because you're a MVP I'm sure you feel the need for the occasional "Hello, World!" program now and then. It's ok. We won't tell. :laugh:
FAULTLOG.TXT: File too large.
*grin* It's not that it's simple, it's that it's kind of ugly :-)
Christian Graus - C++ MVP
-
That's actually a good idea. I don't know why I haven't thought about that; probably because I've learned from C++ to never use fields starting with underscores since they might be reserved, so I always feel a small sting of pain when I do it, but maybe it's time to forget my C++ past. :-D Thanks.
FAULTLOG.TXT: File too large.
Yeah, it takes a while to ease into what's best for C#, instead of what was best in C++.
Christian Graus - C++ MVP
-
If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)
non_labl_elem_defn Developing a grammar for JCup.
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan
-
If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)
a 32k frequency response curve, in Scilab text format
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
Linkify!|Fold With Us! -
If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)
CComObject * pWindowService; CComObject::CreateInstance(&pWindowService); pWindowService->QueryInterface(__uuidof(IWindowService), (void**)&m_pWindowService); :(
"Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"
-
If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)
-
If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)
char sOutPath[BUFLEN]; strcpy(sOutPath, sCfgPath); strcpy(sOutPath + pathLen - 3, "csv"); ofstream ofs(sOutPath, ios::out | ios::trunc);
Matt
-
If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)
/etc/init.d/network restart just restarted by network service(typed it in non-root used mode than copied to su prompt)
-
If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)
IDC_SOLUTION_PATHNAME_BROWSE Boring, huh? :->
Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"
-
If it's not too big, just paste it here, right now... Cheating not allowed. Can you tell I'm bored? :)
this.txtSok.Text = @"((gg(t|c)caattct.{60,90})|(tata(a|t)a(a|t)).{24,25}).*(c|t)(a|g)(c|t).*tga"; Gene finding regex. Still not perfect.. jhaga
It would be glorious to see mankind at leisure for once. It is nothing but work, work, work. I cannot easily buy a blank-book to write thoughts in; they are commonly ruled for dollars and cents. A[man], seeing me making a minute in the fields, took it for granted that I was calculating my wages. — business! - I think that there is nothing, not even crime, more opposed to poetry, to philosophy, ay, to life itself, than this incessant business. Henry David Thoreau
-
Hmm.... I just copied a file to my share I think. Let's see.... [file:///C:/cygwin/bin/make.exe](file:///C:/cygwin/bin/make.exe) Interesting thread!! :-D
--------------------------------------------------------------- Life? Life will tear you apart and kick and leave you on the ground. When it does. Get up. Keep getting up. Get up again. Because it's going to get better. You might come to find the one event you thought was the most disasterous event in your life turned out to be the best thing that could have ever happened to you. -- code-frog@codeproject
Diagon Alley wrote:
file:///C:/cygwin/bin/make.exe
Lol, it works for me. :-D
Ðavid Wulff What kind of music to programmers listen to?
Join the Code Project Last.fm group | dwulff
I, for one, welcome our new shrew-sized overlords. -
Tsk tsk - that code is not CLSCompliant ( because VB sucks ).
Christian Graus - C++ MVP
Unless the field (
contactPerson
) is also public or internal, that code is CLS compliant. Remember, CLS compliance only matters for exposed members of an assembly (public/internal access modifiers).Regards Senthil [MVP - Visual C#] _____________________________ My Blog | My Articles | WinMacro