|
Hi,
MFC ,is not included and ATL 3.0 and VC++ 6.0.
I think it(Excel ) is not recoginizing it as a control, and it is showing only the control image.
any help?
thanks.
-anil krishna
|
|
|
|
|
Hi,
MFC ,is not included and ATL 3.0 and VC++ 6.0.
I think it(Excel ) is not recoginizing it as a control, and it is showing only the control image.
any help?
thanks.
-dhanush
|
|
|
|
|
Hi Michael,
Thaks for responding.It didn't include MFC,it's ATL 3.0 full control, Wizard options default and VC++ 6.0. Behaving in the same manner for both Word/Excel 97, i.e. fine with word but failing with Excel. I think it(Excel ) is not recoginizing it as a control, and it is showing only the control image.
any help, urgent plz?
thanks.
-dhanush
|
|
|
|
|
Have you tried debugging the control through visual studio when it is embedded in Excel. What does it fail on in the code?
Does it fail on all Windows 2000 machines or just one?
Michael
|
|
|
|
|
hi michael, thank u for u r response
I tried to debug in VC++ IDE, but the control is not coming into the code.Yes, it's failed on some combinations like WinNT 4 + Excel 97/2K. It's displaying the control content(which some image), but it's not responding to the events on it like mouse clicks even the messageboxes that i placed in OnDraw() & control's constructor are not prompted. As i think Excel is not recognizing it as a control, but why it's so i don't know if u can plz help.
lastly is there any diff between containment behavior of word and Excel, because the same control is working in all Word Versions.
Thanx in advance hoping that u will respond.
|
|
|
|
|
I've developed ActiveX Dll in VB6. Now I am trying to use it as DCOM server in win2000. Client machine is WinNT. DCOM population for .DLL is made by Windows 2000 'COMPONENT SERVICES' administrative tool. While running VB client application in remote WinNT system I get 'Run-time error (800401fd): Automation error Object is not connected to server'. If anybody knows solution for this problem, please write. Thank you in advance.
|
|
|
|
|
Hello,
i did program, in which i used 5 dialogboxes of which one is the main dlg. Whenever i show a dialogbox otherthan maindlg i should hide&restore the maindlg.I did it in MFC by with the help of AfxGetMainWnd() & showwindow().but when i told to do the same program as ATL Component, i am not able to hide&restore the main dlg(i tried with GetActiveWindow()& ShowWindow()). Is there any solution for my problem, please help me.
Thanx in advance
|
|
|
|
|
Hi
I am developing a web application using ASP and VB. I developed a dll to make some database operations, and i call its methods in my ASP pages. So for so good. My problem is that i define a type in the dll, which i make public, but i don't seem to be able to use it in my ASP. If i use the same dll in another VB aplication i have no problem whatsoever. Also, the dll public methods are visible and working fine in the ASP...just the type is missing. To make the dll i used VB's dll wizzard, the type is public, and to access the dll in asp i use the folowing code:
<%
obj = Server.CreateObject("dllname");
obj.method1(); // Works fine
var x = new dllpublictype; // doesn't work...
%>
Thanks in Advance
Pedro
|
|
|
|
|
I have created a number of Active X controls useing MFC and I have tested them in the Active X control Container and they work fine - but when i try to get them to work in IE they don't seem to work.
Does anyone have any examples of what needs to be done to get the active x control to work in IE?
thanks
|
|
|
|
|
Hi,
There is a very nice article in MSDN: "Internet First Steps: Upgrading an Existing ActiveX Control". It describes all needed steps like packaging, making control "safe", licensing and so on. Read it... I think you will be able to find all the answers...
Regards,
Alex Gorev,
Dundas Software.
|
|
|
|
|
hai All,
can anyone tell me how to add e menu to a composite control. Thanx in advance.
|
|
|
|
|
Hi all.
I want to know what is different between ATL Dialog and MFC Dialog ???
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
HELP PLEASE
I have created a simple COM Server (.exe) using the VC++ Wizard.
I have modified it to be a singleton by adding the following code to my COM class's .h file
DECLARE_CLASSFACTORY_SINGLETON(SiteStatus)
Where SiteStatus is the name of my class
This works fine on 2 machines, ie only 1 instance of the COM Server is created regardless of how many clients use it.
The problem is on one machine it does not act as a singleton, ie more than one instance of the server is created.
Anybody have any ideas why ?
I am puzzled
Thanks
Adrian
|
|
|
|
|
Hi,
I'm trying to use a VB activex dll in a vc app. Everything works out OK until I try to create and use the component from inside a thread of my MFC client.The app crashes. My idea is that since an vb dll is Aparament threaded(STA) the problem occurs as I'm trying to use MTA. Is this so? Would the problem go away if I used a vb activex exe, cause it runs in it's own thread. I'd appreciate some explainations from the gurus here.
TIA.
Hush..Hush.. thought I heard you calling my name now...
|
|
|
|
|
That must not be a problem. Check if u have intialised COM on ur creater thread.
|
|
|
|
|
I make some file downloading activex component with atl
and this component call dll because there need some modification at file
but asp page test
this component call 3times at one submit(request)
and dll method call three times at one page reguest..
why? --;
|
|
|
|
|
How do we draw ActiveX window (visible ActiveX) on to a window using "win32 SDK"(I mean not using Microsoft Foundation Classes !)?
Thanks and Best regards,
Deepu
|
|
|
|
|
Hi,
Probably you mean you want to host ActiveX control in your Win32 Application. Right?
Hosting a control without support of MFC is very hard to implement.
Try to search PATRON sample from MSDN. It's a sample used in book "Inside OLE" by Kraig.
It has no reliability to any librarys like MFC or ATL. Cause of the purpose of the sample,
it has little support as a container.
BTW, if you don't mind using ATL, try to use CAxWindow or something like that.
That control hosting support class template. It's very useful to host a control.
IMHO ATL which has very readable source compared to MFC, is something worth to work on
as a Windows programmer.
Essentially about ATL, I recommend to read the book "ATL Internals" by Chris Sells.
Hope this helps.
Regards,
Ryan
|
|
|
|
|
first call OleInitialize(NULL) (but off course you know that)
Then create the Object and get its LPDISPATCH, or it's interface pointer.
If necesary, Invoke any method of the interface for loading documents or initializing.
Query the OleInPlaceObject interface and set the object rectagular.
RECT Pos={0,0,500,400},Clip={0,0,500,400};
OleInPlaceObject->SetObjectRects(&Pos,&Clip);
When you want to paint it , query the IViewObject interface and call the 'draw' method.
RECTL rectl={0,0,250,200};
ViewObject->Draw(DVASPECT_CONTENT,-1,0,0,0,(HDC)hdcDraw,&rectl,0,0,0);
I use this in a CGI i am making where i just want to take a
quick snapshot of Adobe's SVG control.
I will generate SVG files using CF or ASP, then renter them
using SVG control, encode them to JPG using CGI+ and sent them
to the client!
In the same pattern you can use a control founded in Corel draw
that generates barcodes.
- - - - - - - - - - - - - - - - - -
Memory leaks is the price we pay \0
01234567890123456789012345678901234
|
|
|
|
|
Hi, I'm working with a composite control in Visual C++...
Among other things I have a button on the dialog..
The problem is that I can't get it to react on me pressing the enterbutton.
I've tried overloading the pretranslatormethod but that doesnt work so good....
HELP
|
|
|
|
|
Does anyone have a sample that uses OleCreateFromData() function?
Or can anyone tell me the details of using it?
- - - - - - - - - - - - - - - - - -
Memory leaks is the price we pay \0
01234567890123456789012345678901234
|
|
|
|
|
hi, would like to know how to realize resizing a window MPlayer
Called in VBapp with the help COMinterface, generated with the help ATL (VC ++ VS 6.0)
Thanks
|
|
|
|
|
Good afternoon, I would like to know how to realize sending definite events
Through a given time slice for example in VBapps, if it is necessary COMinterface with ATL (VC ++ VS 6.0) to realize. The value of an interval of sending should be set with the help Property ,i.e it to transmit VBapps.
I give thanks for advices
|
|
|
|
|
Appears so;)
I would like to know as to realize the Com-interface for control Mediaplayerîì in environment VC ++ with ïîìîøüþ for example ATL (for VBapps). In MSDN there is an example of implementation where it is possible Play, Stop, Reset- "Funktionen" and path to Avi or MPG for the file to call. I would like to add a capability of reproduction from a definite position of film,, forward and back from THIS position, transition to first and last to staff(frames). And also definite staff forward and back, the temporary coordinates for this listing should be transmitted with events To today I only has created a function Play (double Ze) through parameter by which one transmits value of a position. But as âñ ¸ it in link.. I do not represent: ((it be necessary Property-Variable to insert that the flow bundle was between these functions..
Thanks by All for advices
|
|
|
|
|
Hi together
I despaired almost. I tried a ATLMOVIE-example from MSDN to represent. But it was not possible to me ((
Again and again as I by means of ATLWISARD uner VS6.0 vc ++ have created, then testkotainer has invoked, at last I direct a filename - property(VT_BSTR) something to and invoke kclickte, it drops with ((. But (however) in " the original - proggi " something to select. Probably I put aside money that falch at Ertsellen either AtlObjekt or AltProjekt.aber What???
I require it that the project with events to create, and I do not know as to consisting ATLOBJEKT Events add
Thanks by All for advices
|
|
|
|