Type: Posts; User: Vila
Search took 0.01 seconds.
April 29th, 2010, 02:44 AM
Hi, in runtime I can see that X-axis limits of my chart (minimum and maximum) are automatically changed as I insert points. That's nice. So I came to an idea to change that minimum and maximum...
April 16th, 2010, 01:54 PM
Ok I make them non-static (i made them static while attempting to solve my problem xD and obviously buried my self even deeper), and now when i removed that I compiled my code without any errors. Now...
April 16th, 2010, 01:46 PM
Yeah it is to my eye, but not to my linker xD
Only for you i made this code 2 seconds ago and tried to compile:
using namespace std;
April 16th, 2010, 01:35 PM
That's a typo i made while typing code to this site. Code is flawless in my actual program and members don't have generic names like myMember1. Still i have:
Undefined reference to...
April 16th, 2010, 01:25 PM
As I read from some online examples structures should work like this:
April 16th, 2010, 03:51 AM
I thought that short is 8bit unsigned integer, and it turns out it is 16bit integer. Sorry about that. Will use unsigned char.
April 16th, 2010, 03:40 AM
If I call with bufflen = 12 then ret = 12 and in file:
01 00 02 00 03 00 04 00 05 00 06 00.
This is confusing...
April 16th, 2010, 03:36 AM
Code in C++:
buffer = 1;
buffer = 2;
buffer = 3;
buffer = 4;
buffer = 5;
buffer = 6;
short *p = &buffer;
April 14th, 2010, 03:41 AM
But, it is non-standard device eg. not recognized as keyboard or mouse. Confusing, but true.
April 11th, 2010, 10:57 AM
Yes it has specific vid and pid (and i know them). But, device puts data on "keyboard" eg. it does keypresses of data, so I detect them with GetAsyncKeyState (and that works and it isn't problem), so...
April 11th, 2010, 08:27 AM
I understand this is jumping from subject to subject (WinAPI -> DirectX), but I am trying to solve above mentioned problem:
Any solution is acceptable :)
So I tried DirectX function to...
April 11th, 2010, 07:39 AM
DeviceIoControl also returns error code 5 ACCESS_DENIED. :(
Yeah it is, i was trying that function and then tried WriteFile and decided I need WriteFile and forgot to change the name of...
April 9th, 2010, 03:48 PM
I managed to put it down to this:
I opened device for writing (maybe not good?) like this:
DeviceHandle = CreateFile _
April 9th, 2010, 02:06 PM
A DT-Box which purpose is to convert SY-4 to USB (eg. I have a device that returns some values and this box is seen by Windows as Human Interface Device).
Box has one button which sends data taken...
April 9th, 2010, 09:51 AM
I must confess I don't do this in c++, but since there is no forum for vb.net, I'll try to make it simple (If you disagree on this thread being here please feel free to delete it).
I just read it.
I will respect forum rules in future.
Thanks for telling me that. :)
That characters were 176,177,178,219 (it isn't 'some other character').
And I use wrong code page (1252).
So will you tell me how to change code page.
And, just for the record, I...
Yes. But what do you mean by code page (Can you describe what is code page?)?
I fought the problem was with preprocessor definitions.
It was: WIN32;_DEBUG;_CONSOLE
so I added: _UNICODE...
I can't make program print what I want!
I type this script:
cout << "█▓▒░\n";
and all I get on console is:
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!