|
Maximilien wrote: 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.
|
|
|
|
|
That sounds like something you could do fairly easily in DirectX. This[^] is a useful starting point, and should give you some idea of what is involved.
|
|
|
|
|
Graham Breach wrote: That sounds like something you could do fairly easily in DirectX. This[^] is a useful starting point, and should give you some idea of what is involved.
Thanks.
|
|
|
|
|
It sounds like you're doing this pretty inefficiently.
Have a look at PolyPolyLine. With a combination of that and SetViewportxxx functions, you could zoom and pan quite speedily.
Have a look at:
The ViewPort Explorer[^]
Also, no need to draw text for every point unless there's only a few. Maybe hover a tooltip where the mouse is? Otherwise, you could be doing a LOT of text rendering...
DirectX is always a possibility, but a lot harder...
Do you have some horrible inefficent loops? ie,
for (n = 0; n < pMyLongLinkedList->GetSize (); n++)
{
pMyLongLinkedList->GetNthMember ()->DoStuff ();
]
etc.
Iain.
I have now moved to Sweden for love (awwww).
|
|
|
|
|
Iain Clarke, Warrior Programmer wrote:
Do you have some horrible inefficent loops? ie,
for (n = 0; n < pMyLongLinkedList->GetSize (); n++)
{
pMyLongLinkedList->GetNthMember ()->DoStuff ();
]
No there's nothing stupid like that. It is the sheer number of GDI calls that is the issue. (It is not my code, but it is decent.)
|
|
|
|
|
Iain Clarke, Warrior Programmer wrote: It sounds like you're doing this pretty inefficiently.
Have a look at PolyPolyLine. With a combination of that and SetViewportxxx functions, you could zoom and pan quite speedily.
Have a look at:
The ViewPort Explorer[^]
I'm familiar with viewports. But that is a good point, that the code (not written by me) might be scaling distances without needing to.
|
|
|
|
|
No directX is required.
Use memory DC first, then show memory to visible DC.
|
|
|
|
|
yes and no, sometimes, just computing the points positions (and other attributes) can take a long time, especially with thousands of points.
but good point anyway.
Watched code never compiles.
|
|
|
|
|
There must be something strange in your code. I have an application that draws 2000-4000 lines using pure GDI. It's ready in less then 0.5 seconds, on an outdated laptop.
|
|
|
|
|
Rozis wrote: There must be something strange in your code. I have an application that draws 2000-4000 lines using pure GDI. It's ready in less then 0.5 seconds, on an outdated laptop.
We have far more lines than that. Lines are drawn between each adjacent point. (Some speed gain can be had by pretending that some points lie on the same line.)
|
|
|
|
|
Any body having idea abut the usage of dia2Dump SDK? It shows everything if we study its code.
I need some limited info from it which I desired.
Regards
Usman
|
|
|
|
|
Not too difficult to find if you use the tools that are available: Google[^].
It's time for a new signature.
|
|
|
|
|
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 ...
[edit]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]
It's time for a new signature.
|
|
|
|
|
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...
|
|
|
|
|
Hi,
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?
Thanks.
|
|
|
|
|
May be this will help you ...
|
|
|
|
|
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?
Thanks.
|
|
|
|
|
permutations wrote: 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.
For a message handler, in the Properties window toolbar, click the Messages button and then select the message for which you want to add a handler. From the drop-down list box, select AddMessageHandler to add the message handler selected.
For an event handler, in the Properties window toolbar, click the Events button. Click the plus sign (+) to expand the object for which you want to add an event handler. Select the desired event, and then from the drop-down list box, select Add event.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
|
|
Same problem here.. Im writting WTL aplication and suddenly for one of my view events list in properties window is gone.
By pure luck, I have found solution. In my code view class was inherited from multiple base classes. I have commented one of the classes and event list was empty:
class CXXXView :
public CDialogImpl<CXXXView>,
public CDialogResize<CXXXView>,
public CWinDataExchange<CXXXView>,
COffscreenDraw<CXXXView>,
CDropFilesHandler,
ITimeLineListener
I just removed commented line, save h file and events is back. Make sure you have
enum { IDD = IDD_XXX_FORM };
in your h file.
|
|
|
|
|
How to stop the popup dialog,if an application embeded a webbrowser control,when opening a webpage which has javascript files,it will popup a dialog ask you to confirm whether to run the scripts.I want to know stop stop the dialog,run the java script as default,really thx!
I am not a genius, but shed more sweat!
|
|
|
|
|
And what does it have to do with C++ ?
|
|
|
|
|
this->put_Silent(VARIANT_TRUE); but how to do that in CHtmlView...
I am not a genius, but shed more sweat!
|
|
|
|