that's not the problem. not compiling is the problem.
Type: Posts; User: bballzone
that's not the problem. not compiling is the problem.
char num[100] = "";
...
...
for (int z = 0; z < 10; z++)
{
num = myarray[z];
SetClipboardText(num,strlen(num));
}
i tried that but got ugly results. maybe i don't know how to do it correctly.
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..
...
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...
it was part of a whole program that did use those headers.
i use the Digital Mars compiler that requires all headers to end in a '.h' extension.
i tried this
ifstream a_file("test.txt");
a_file.getline(text, 50);
a_file.close();
it compiles but does not print anything when running.
char text[50];
ifstream a_file("test.txt");
a_file >> text;
a_file.close();
cout << text << endl;
and now... thank you dante :D
since this is related to this topic i'll just put this here also. why isn't this allowed?
keybd_event(VK_V,0,0,0);
keybd_event(VK_V,0,KEYEVENTF_KEYUP,0);
i can use VK_CONTROL but i can't...
thanks a lot bithub :cool: :)
Error: need explicit cast for function parameter 2 to get
from: unsigned
to: char *
at this line
SetClipboardText(szName,strlen(szName));
yea i did. i don't like those forums as much because they do not respond as fast.
is there also a way that i can just put the contents of a variable into the clipboard. for example if i prompt the...
i was given this example to paste from the clipboard and it works fine.
#include <stdio.h>
#include <windows.h>
#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>
#include...
i did some debugging and made a separate program
int main()
{
HDC hdcScrn;
COLORREF array1[100][100];
Sleep(2000);
COLORREF array1[1000][1000];
...
for (INT col = 400; col < 500; col += 10)
{
for (INT row = 400; row < 500; row += 10)
{
//GetCursorPos(&pt);
//clr=GetPixel(hdcScrn,pt.x,pt.y);...
INT array1[1000][1000];
....
for (INT col = 400; col < 500; col += 10)
{
for (INT row = 400; row < 500; row += 10)
{
GetCursorPos(&pt);
clr=GetPixel(hdcScrn,pt.x,pt.y);...
i'm not reading your nonsense noob's guide to asking a question. what i said was not even a question it was a statement of the problem. i have explained the problem enough that any person with any...
what's so confusing about what those few sentences said?
"it compiles but does not run. i comment that line out it compiles and runs like normal. whatever is wrong with the program is in that...
in my code i put the line in
array1[x] = pixColor2;
it compiles but does not run. i comment that line out it compiles and runs like normal. whatever is wrong with the program is in that line.
hmm well i can get it to compile but when i run it it immediately exits the program.
thanks a lot. but what about assigning the value of pixcolor2 to an array.
for (int x = 0; x < 5; x++)
{
COLORREF pixColor2 = RGB(10,50,100);
clr=SetPixel(hdcScrn,col,row,pixColor2);
...
why can't i do this?
COLORREF pixColor2 = (10,50,100);
cout <<pixColor2 << endl;
clr=SetPixel(hdcScrn,col,row,pixColor2);
(this is in 2 for loops and it makes about 100 pixels that color...
hmm...alright
that puts it in english for me but could you direct me to a tutorial? or what general topic that is under so i can run a search for it?
alright after a month of thinking and other things i've decided to try and do this program again. how would i go about simply viewing the source of http://www.yahoo.com/index.html and being able to...