Felipe,

Felipe Momm schrieb:
Hi,

I'm trying to add a Graphics control to my app in C# to get the graphics from quantmod package. The code compiles, but when i try to run the application it stops in the line above saying that the "Class not registered (... HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))":
((System.ComponentModel.ISupportInitialize)(this.axGraphicsDevice1)).EndInit();

Well, where can i find this assembly to register? I thought it was already registered, because if not, it wouldnt show the controls in VS 2008.

The code is really simple so far, i just added a control to the form and im trying to add the graphics device now. The R connection is ok, because i made a "2 + 2" test.

connector.AddGraphicsDevice("dev1", (StatConnectorCommonLib.ISGFX)axGraphicsDevice1.GetOcx());

For now i will save the graphics in jpg and then load in the application, but i really want to do the right way.

I'm using Vista Ultimate, VS 2008, RCom Server 2.50 and R 2.6.2.
I'm not sure if this is what you would like to hear, but registering COM servers is quite a hassle with Vista. If possible, please try the same thing on a more COM-friendly OS, like W2K or XP and see if the problem still persists. If yes, the problem is somewhere with your project, if not, then Vista is the problem and google will give you some hints how to solve this.

Thomas


_______________________________________________
Rcom-l mailing list
[email protected]
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at

Reply via email to