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.
yeah I found this one and I got my task nearly done. Only thing remains as referenced DIA2Dump is , it actually shows everything(ALL KERNEL related symbols, Os Symbols when I give it PDB which I dont need) I only need my symbols which is defined in my DLL/EXE/PDB. like I have some DLL in which some symbols are symbol001(int x,int y) & then symbol002(int x3,int x4)... I only need these 2 not everything starting from Kernal level imports and sky is the limit
AS I used get_symbolsFileName by which I can trace symbols from where they come. But its failing and not populating me any info regarding symbol file like xyz.obj or any other file from which those symbols come. So that I can filter my symbols which I desired some how by this way
From what I could see this is a skeleton piece of source code for you to use and modify as you require, but I doubt that Microsoft will offer much in the way of support. As with so many things you may be the first person to use this, so you become the expert ...
I also notice that someone downvoted your original question, which may mean that someone (or more than one) does not want this subject discussed here; yeah I know, strange folk around. Good luck anyway.[/edit]
Yeah Microsoft did'nt provided much help or documentation on MSDN about this, just a little theory and source code as dump.
I need examples for using listted fucntions and unfortunately no complete source code is given as well. You just need to connect the call and that's it. Every time i call get_symbolsFileName and it returns nothing...
I am opening and writing to an excel sheet using VC6 in an MFC dialog based application.
The excel sheet contains some formulae like Negate and AVERAGE of certain cells. Manually if i enter data in the input field, I need to drag the cells to update them accordingly to the formula... Hope i am making sense...
How can I do this from my code?
I'm trying to write an MFC dialog app in VS2008. I put some controls on the dialog and then went to add some event handlers, and found what appears to be a bug in VS2008, unless there is some simple solution that I'm missing.
There are no messages associated with any controls. If I click on a control and then click on the Control Events icon (the lightning bolt), nothing is listed for any control. Because there are no messages listed, I can't add an event handler. (Well, I could do it all manually, but it's easier to use the code generator.)
I've spent the last two hours trying to figure out what's wrong. I see other complaints about the same problem, but no solutions (at least none that work for me).
I'm running VS2008 on a 64-bit Windows 7 system with IE8 installed. Does anyone know what's wrong or how to fix it?
Last Visit: 31-Dec-99 18:00 Last Update: 25-Sep-22 20:39