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://samples.gotdotnet.com/quickstart/aspplus/doc/webdataaccess.aspx Just gave someone this link in other forum. :)
Best Regards, Apurva Kaushal
-
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? :)
(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
-
Tsk tsk - that code is not CLSCompliant ( because VB sucks ).
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? :)
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? :)
-
Please do !!! ( meet you there... )
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? :)
-
Please do !!! ( meet you there... )
Christian Graus - C++ MVP
damn, i was joking... nothing worthing it actually :doh: my clipboard only contains copies/pastes i'm doing with my Siebel Symbolic String translation Workings.
You don't know where to start ? ask a good friend
-
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? :)
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.