-
that's my problem dev-c++ and other free compilers are the same as piece's of crap when installed on my computer. they just don't work or i get errors all of the time.
with my DM compiler i can get by usually with common errors that are not difficult to fix.
is the dev-c++ update thingy working yet? i use to have it for a few months waiting for the update server go be up and back online but it never was so i just unistalled it.
-
Dev is awesome your probably getting outdated header warnings as for the updating just download the latest version from their site. It has always worked great for me.
-
Do not fear if you like digital mars though... I googled a bit and apparently DM is decently well behaved; so I'd say get acquainted with the standards and start coding by them! :)
-
i'll check out dev-c++ again this weekend.
for now i have another question. how would i go about passing an int array or an int into the SetClipboardText() called here..
Code:
SetClipboardText(szName,strlen(szName));
i want to be able to do something like this
Code:
SetClipboardText(myarray[x],myarray[x]);
in a for loop where x is the variable used to count through the loop.
-
Well the function I gave only works for text. I guess you could convert the integer to a string, and put it on the clipboard.
-
i tried that but got ugly results. maybe i don't know how to do it correctly.
-
what do you mean by ugly results? What exactly are you trying to do?
-
Code:
char num[100] = "";
...
...
for (int z = 0; z < 10; z++)
{
num = myarray[z];
SetClipboardText(num,strlen(num));
}
something like that since i can't pass integers into that function.
-
no, each time you write something to the clipboard, it overwrites what was already there.
Maybe create one large text string which consists of all the integers of the array separated by a newline character.
-
that's not the problem. not compiling is the problem.