|
|
Comments and Discussions
|
|
 |

|
Exactly what I was looking for and easy to use. Thanks.
|
|
|
|

|
Can you update it to WindowsXP-64-bit or windows server 2003 - 64bit?
When I set the project to 64bit, there were many problems. Of course, you can complete it under VS.net 2005.
|
|
|
|

|
Sorry, I don't have experience on 64 bit platforms.
|
|
|
|

|
Is this same as running in VISTA ? I was unable to install this DLL in Vista...and it could be because it is just 32 bit DLL.
Any advice ?
|
|
|
|

|
Anyone have an implementation code sample for C#. I'm hung up on build error "cannot convert from 'double[]' to 'ref double'"
Steve
|
|
|
|

|
compiler is Visual Studio 2005..
---------------------------
RegSvr32
---------------------------
C:\Project\exProject\3_2D Graph\SmartGraph_SRC\Debug\SmartGraph.dll의 DllRegisterServer fail.
error code: 0x8007000e
---------------------------
|
|
|
|

|
Do you have MSVCR71.dll in your system32?
|
|
|
|

|
yes..
I have msvcr71.dll
and msvcr71.dll of position is c:\windows\system32..
|
|
|
|

|
compiler is .net 2005 --> error
compiler is .net 2003 --> success.
^_^v
Have a good time~
|
|
|
|

|
Registered .dll
Inserted Smartgraph in form (Visual C++ CLR project).
Used following code:
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e)
{
this->timer_protok->Interval = 1000;
nLen = 2;
trend1->SetPlotType(0);
trend1->xLable = ("Vrijeme");
trend1->yLable =("Amplituda");
trend1->Title =("Graf koji ne radi!!!");
}
private: System::Void timer_protok_Tick(System::Object^ sender, System::EventArgs^ e)
{
intTimerCounter++;
xdata = intTimerCounter;
ydata = 10 * Math::Sin(xdata);
trend1->SetData2(xdata,ydata,nLen,-25.0,100.0,-25.0,100.0,true);
trend1->UpdateGraph();
trend1->Refresh();
}
As result I got a straight line with a right end following the x and y data (as it should do), and left starting point with constant y value, and changing x value that behaves like y data of ending point (in this example oscilating around 0 value). In other words something like swinging lever...
Please help.
Kresimir
|
|
|
|

|
xData and yData must be pointers to the start of data, for example if xData = int [10] and yData = int [10], then you must call setData with &xData, and &yData as parameters. I think in C# you must do this in a "fixed" block
|
|
|
|
|

|
Hi Hossein,
First of all, let me say thank you for this handy control. It is just what I was looking for for one of my dialog-based MFC applications. But I am having some trouble integrating this with the application.
I have added this control to a property page but as soon as I click the tab for this particular property page, it disappears. The application and the other property pages work fine even after that. The constructor for the property page is called, but OnInitDialog is never called. It looks like the page receives a AfxSig_v_v_v signal and OnDestroy is called to process the signal. I have added the statements you have given in your article to the InitDialog function and I have also taken a look at the demo project.
Do you know what could be the problem here? Am I missing something very obvious? I am using Visual Studio .Net 2003 and the programming language is C/C++.
Thanks,
Priya
|
|
|
|

|
Hello, the only thing that you may forgotten is the registration of the ActiveX. Do you register it without any error? If so, unfortunately, I don't have any idea!!
|
|
|
|

|
Hi Hossein,
Thank you for your response. I did register the dll successfully. I'll keep debugging the problem and will post the solution here if I do solve it.
Thanks,
Priya
|
|
|
|

|
Phew...finally figured it out. I don't think anyone else will make such an obvious mistake, but in case they do, I hope this helps. I had forgotten to add AfxEnableControlContainer() call to the InitInstance() function for the application. Now everything works like a charm.
|
|
|
|

|
Hi, congratulation...
every one may make such mistakes, I don't know this trick!! because its only the case were someone like you need to insert it in a property page.
Good luck
|
|
|
|

|
Hi,
i work with VS2005.
i try to open your dialog IDD_SMARTGRAPHDEMO_FORM with the resource viewer and i have this message:
The activeX control "{A2919A75-B379-4BBD-8D95-15BEB3BAA140}" is not registered. Register the control and try again.
With activeX i have to register/Where is it?
mike
|
|
|
|

|
The ActiveX is graph.dll, you can find it in binary files. register it using the following command in Run menu:
Regsvr32
you must have some dlls to register it, they are included in binary files, I think.
good luck
|
|
|
|

|
SetData takes two, "double %"s, an int and a bool. Could someone tell me what a "double %" is, I've never seen something that looks like this before. This may be a stupid question, but I've never seen a "double %" before.
|
|
|
|

|
When I was writing the code, I wrote "double *", now I'm completely confused to see "double %" instead!!
|
|
|
|

|
Yeah, I looked at the source and found it's supposed to be a "double *", but for some reason I can't figure out, when I add the compiled component into my project visual studio claims it's a 'double %'.
|
|
|
|

|
did you ever solve this one?
I'm getting the same problem.
|
|
|
|
|

|
its .net solution, not vc 6 project.
|
|
|
|
|

|
I have the loop in my code ,in whitch i want to plot new data every time.
i use SmartGraph, but the graph don't update every loop and show only initial data, i try to use below code, but i can't succeed.
{
.............
SetData(xdata,ydata,t, true);
ShowWindow(SW_SHOW);
UpdateWindow();
m_myError1.UpdateGraph();
UpdateWindow();
}
mh
|
|
|
|

|
Hi,
did you set its parent window?
what IDE are you using?
|
|
|
|

|
thanks i can solve this problem only by this code: RedrawWindow()
mahdieh
|
|
|
|

|
I have the loop in my code ,in whitch i want to plot new data every time.
i use SmartGraph, but the graph don't update every loop and show only initial data, i try to use below code, but i can't succeed.
{
.............
myPlotError->m_myError1.SetData(xdata,ydata,t, true);
myPlotError->ShowWindow(SW_SHOW);
myPlotError->UpdateWindow();
myPlotError->m_myError1.UpdateGraph();
myPlotError->UpdateWindow();
}
mh
|
|
|
|
|

|
I didn't test it with .NET 2005! it may be incompatible.
|
|
|
|

|
I am new to VC. please help me out.
I want to use SmartGraph.dll in my current project. I had registered dll file. but I do not know how to add the dll into my project. do I still need any .h and . lib file?
Thanks
|
|
|
|

|
Hello,
this component is an ActiveX. To use it, you must at first register it using "regsvr32", then right click on your dialog and select "insert ActiveX". A list of all activex controls, installed on your pc, will be appeared, now select SmartGraph(or Graph). it will appear on the dialog...finished!
|
|
|
|

|
Hi,Hossein:
Thanks for your reply.
It works now, but when I try to add a variable m_Graph to the IDC_SmartGraph through ClassWizard, the Developer Studio generate a C++ wrapper class for ActiveX Smartgraph automically. When I rebuild project, I get a lot of compile errors for undeclared identifier, such as, VIS_I4 DISPID_BACKCOLOR...
By the way, I used VC++6.0 and is SmartGraph compatible with VC++ 6?
Thanks again and have a nice day.
|
|
|
|

|
Hi again,
I work with VC 2003, but to check this problem, I tried smartGraph on my friend PC which works with VC 6.0 (SP6), I do the same steps as wrote before. then I add smartgraph to my project and used ClassWizard to create a variable. I used some functions(SetTitle, SetData, UpdateGraph). The project compiled without any error and all things ok. The only think remained is that SP6 has been installed here and I hope if you install SP6, your problem will be answered.
|
|
|
|

|
Thanks very much for your reply.
I solve the problem by new another project, but I do not know how to show smartgraph in view window of MDI. I add a variable m_graph in the myview.h, but I do not know how to make it visble?
Thanks for your help.
|
|
|
|

|
hi
Its a great program, I was looking for one just like this.
i tried installing as per the steps you have suggested, and I am using Visual C++, but it did not worked.
can you help me in installing and using the code.
aslo i would like to know what kind of input data is it? and what format is it?
thanks
Zues 1981
|
|
|
|

|
you may need MSvcr71.dll to install the component. input data is (double*), a pointer to the start of your data. the provided sample application may be usefull.
|
|
|
|

|
in the install process i m not able to understand the second and third steps.
i will be thankful to you on helping me out.
zeus 1981
|
|
|
|

|
what version of VC you have? VC 6.0 or .net?
|
|
|
|

|
This is exactly what I needed and have searched for quite a long time.
W
|
|
|
|

|
your welcome
|
|
|
|

|
i can not download the sourse code ,can you send me a copy of the source code ,thanks !!my email:zjh_hua@hotmail.com
|
|
|
|

|
Anyone used this control in C#?
I could not use it. it always gives error: Can not convert from 'double*' to 'ref double' in the method SetData when i use this fragment
double[] x = ....
double[] y =....
unsafe
{
fixed(double* xx = x, yy = y)
myGraph.SetData(xx, yy, 10, true);
}
|
|
|
|

|
Hi, We are having chart control which does real time graphing. I need to include Zoomin Zoomout capabilities. I thought your code must be usefule. Would you please give me your email so that I can ask you in much detail. My query is the chart control is in MFC, VC++ 7. Can I use this Smartgraph control developed using ATL in my ocx project code? If so how to do this? Please help me Please let me know if this is not possible and if I requred to post my qurey in this dicussion board itself. Thanks, Krithika
|
|
|
|

|
Thanks! It is a great chart control!
How to use it (zooming in/out) in VB? Any sample?...
-Kona
|
|
|
|

|
I've contacted the author and it seems not to work in VB. This graph component needs some pointers which is not supported by VB. My suggestion was to make it an OCX to overcome this problem perhaps. Unfortunately, I did not receive his opinion about this.
|
|
|
|

|
Very useful indeed! I would like to contact you for some image processing questions I have since it looks like you have some experiance in this field. Please let me know by email if that is OK.
Regards,
Behrouz Heshmatipour
behrouz@rayane.com
|
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
|
A 2D graph component with zoom capability.
| Type | Article |
| Licence | CPOL |
| First Posted | 31 Aug 2004 |
| Views | 184,052 |
| Bookmarked | 153 times |
|
|