|
|
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.
|
|
|
|
 |
|
|
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,767 |
| Bookmarked | 153 times |
|
|