i am trying to use parallel port to send data to it using vc++, i have added LED's to know if it works fine.
I have included inpout32.dll in my system32 directory and inpout32.lib is linked to my project, i have even placed inpout32.dll at my projects directory.
When the project executes, it gives no error, but output doesnot appear at LEDs.
please let me know if there are any errors in my code below, or anything that can help me to see output
void _stdcall Out32(short PortAddress, short data);
Never having used Out32()... Have you verified that 0x378 is the correct address of the parallel port on your machine (and it is enabled)? Have you ruled out hardware problems, LED's that are backwards, ground(s) not connected...
I would like to use STL <numeric> adjacent_difference function in my program but I'm getting the error:
1>c:\program files\microsoft visual studio 8\vc\include\numeric(349) : error C2440: '=' : cannot convert from 'Csimple' to 'int'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called.
I have a <list> of Csimple's (udt) objects where I would calculate the differences (Csimple is a very simple class with only one int parameter called "firstInt").
simpleList.push_back(Csimple(10)); //fill the list with Csimple's objects
v_resItr = adjacent_difference(simpleList.begin(), simpleList.end(), res.begin());
I've also added the overloaded version of operator- and operator= as class members as suggest by errors provided by compiler
We have a window that displays a 2D grid, consisting of points connected by lines to form a rectangular network. The outline is irregular, and the point spacing may vary slightly. This represents an array of shots taken during a geophysical survey. The problem is that for a typical grid from a marine survey the rendering is rather slow, and when the user zooms in or out they must wait several seconds for the screen to update which is not good. Also if the user moves the window, the redraw takes several seconds, which looks a bit crap. Does anyone know if using DirectX would produce faster rendering? If so, what sort of performance gain would we see? Incidentally I assume DirectX 9 as we need to maintain compatibility with Windows XP, if not Win2K.
Can you share with us how you display those points ?
We simply use GDI calls such as LineTo and also for each point there is optionally a label that is output using TextOut or whatever. We do have an issue with performance because of the large number of points. Land surveys are fine, as there are only 100's or even 1000's of points. Marine surveys have maybe 100's of 1000's of points.