Delphi COM / ActiveX / DCOM Topic

Inter-app communiction using DDE, OLE, COM, MTS, COM+, DCOM, WebServices, SOAP, etc. |
<table style="BORDER-RIGHT: #800000 1px dotted; BORDER-TOP: #800000 1px dotted; BORDER-LEFT: #800000 1px dotted; BORDER-BOTTOM: #800000 1px dotted" cellspacing="0" width="100%" border="0"><tbody><tr> <td bgcolor="#dadada" class="darkcolor2" align="center" |
|
|
Thread 24 of 24 | Thread Starter | | |  Neophyte185 | How do I access menu commands in one program from I am a neophyte programmer. I have figured out how to generate a simple Delphi 7 form with a button in it which will run an executable. , , procedure TForm1.Button1Click(Sender: TObject);, begin, ShellExecute(Form1.Handle, 'open', 'c:\E3238s\bin\E3238s.exe',, nil, nil, SW_SHOWNORMAL);, end;, end., , My problem is I need to know how to access the menus that are a part of this executable. For example how would I access the FILE menu in order to select EXIT. |
 6010 Hits | |
Thread 23 of 24 | Thread Starter | | |  PS_2742 | Consumers CompanionConsumers Companion is your ultimate destination to find the legit customer reviews on digital products, related to health, fitness, self-help, etc., To know more about Consumers Companion, Checkout: https://consumerscompanion.com/
2 replies. Last post: |  Anonymous | I am not a much technical-minded person but I often visit your page for quality content. One of my friends suggested me to quit https://assignmentjunkie.co.uk/buy-assignment-online online and follow your posts only for best high-quality professional content. I am not disappointed at all. Good job. |
|
 219 Hits | |
Thread 22 of 24 | Thread Starter | | |  JustusJanssen | Excel and Word automation{Too Long!} 2 replies. Last post: |  Anonymous | With such an educational blog that proves to be very valuable for others deserves to be shared. I enjoyed reading your post.
---
Johnson
|
|
 8221 Hits | |
Thread 21 of 24 | Thread Starter | | |  Mani | Class not registeredHello delphiers,, , Im not sure if anyone of you have come across this error message "Class not registered". I get this message when i try to create a COM object which starts communicating with the respective client-side program., , The client-side program in context is Lotus Notes 6.0.3. I have installed it on the same PC where I have Delphi 5 Ent installed, I also have run the notesws.reg file which adds the relevant registry entries. The .tlb files in the \lotus\notes\ directory are also installed in Delphi., , The moment I create the NotesSession object, I get this error message., , Somehow i feel that the classes are not able to find one or more keys or CLSID or GUID written into the registry. I traced through the .Create method to be able to make this guess. The GetSrv or GetServer method fails in the .tlb / OleSys.pas file., , How to go about fixing this problem? Where should i look? What is not yet installed or configured?, , Regards,, , Mani |
 11845 Hits | |
Thread 20 of 24 | Thread Starter | | |  Ritche M | transfer files using Socketsgood day!, can any body please help me on how to transfer files from one computer to another using sockets or what other means., thanks a lot :) |
 1979 Hits | |
Thread 19 of 24 | Thread Starter | | |  NevilleRichards | Type Library Imports: D6/D7I have recently made a successful use of importing a type library and installing the component produced. This works fine in D7, but I only have the desktop version, and I need to be able to do it in D6 to use database access., , Now in D6, the library is imported and a source file produced which theoretically could be installed as a component. There is an "Install" button on the import dialog. However, the source produced will not compile. The error is "Property setter cannot have var parameters"., , It seems odd that D6 produces source code on the import which the compiler cannot then compile. Does anyone have any experience with this, or know a work-around. My inclination is to add "wrapper" procedures which don't have var parameters., , Neville |
 2256 Hits | |
Thread 18 of 24 | Thread Starter | | |  nflagg | where do I find the pointer to the client's IDI'm new to the COM scene, and don't know how to supply a pointer to the client's IDispatch interface to a COM server. When I don't provide this, the server behaves just fine when I call it, but crashes every time it attempts a callback. , , Below is the function call in question with the only documentation I have :, , function TMapper.RegisterWithMapServer(const client_name: WideString; window_handle: Integer; dispatch_pointer: OleVariant): Integer;, , "RegisterWithMapServer registers the map server client name and main window handle. Map server clients MUST call this function once at start up BEFORE calling any of the other functions. The parameter dispatch_pointer should be of type VT_DISPATCH and should contain a pointer to the client's IDispatch interface for the callback object.", , Thank in advance for ANY help!, , n |
 2155 Hits | |
Thread 17 of 24 | Thread Starter | | |  dking8124 | Specifying an imageIndex by referencing a tTreeNod{Too Long!} 1 Reply: |  dking8124 | Never mind! I got this one nailed..., , Using the treeNode, returned from the "...addChild" function, I can specify the imageIndex by adding: "retTreeNode.imageIndex := ..." as the next statement., , Actually, using the treeNode reference - within the iteration of the loop - you can manipulate the node (add DATA, specify the treeNode-image, change the text color, etc.), , "DUHH!!!" -- Albert Einstein |
|
 2838 Hits | |
Thread 16 of 24 | Thread Starter | | |  dking8124 | EOleException: op requires current recI'm programming a form that is fed by an SQL component in a datamodule. I programmatically define the statement with "...add()" statements; ie, , , datamodUSARunitCmdr.sqlAARpt.SQL.clear;, datamodUSARunitCmdr.sqlAARpt.SQL.add('SELECT hdr.aarDate,hdr.aarUnitIdent, hdr.aarSubmitDate, ');, ...., datamodUSARunitCmdr.sqlAARpt.open;, datamodUSARunitCmdr.sqlAARpt.enableControls;, , (I know the SQL-statement returns a recordSet, given the proper values for the parameters)., , The problem is that when the program reaches the "....clear" statement, the following exception is thrown:, "Either EOF or BOF is True, or the current record has been deleted. Requested operation requires a current record"., , What would cause this?, How could it be resolved?, If the query returns a recordSet, how could it generate an exception? 7 replies. Last post: |  dking8124 | Hey, dude,, , I don't care what Bill Gates says, this is NOT an exact science!!!, , Thanks for your help |
|
 4832 Hits | |
Thread 15 of 24 | Thread Starter | | |  Alex_Bulgaria | problem with ADOTableI am using Delphi5, trying to develop small database.When I refresh ADOTable connected to a MS Access database trough ODBC, I get this message: "Project stdatabase.exe raised exception class EOLEException with message "Insufficent key column information for updating or refreshing. Process stoped.Use Step ot Run to continue". There's no matter whether I refresh it programatically or trough database navigator component. What should I do to make it works? |
 3054 Hits | |
Thread 14 of 24 | Thread Starter | | |  Wouter | Com server and client returning a query resultset?Hi,, , Can someone help me? How can I return a query resultset with a com server. I have no problem returning strings or integers, etc... but i can't return a Query? , , Thanks.  , , [EMAIL]game1200@hotmail.com[/EMAIL] |
 1958 Hits | |
Thread 13 of 24 | Thread Starter | | |  Ritche M | How to disable right click in the taskbar.good day!, how can i disable right click in the task bar. when i right click the task bar, it shows: restore, minimize, close. i want to disable this menu., thanks 1 Reply: |  NevilleRichards | This menu gives you the same options as the menu given by either the title bar or the top-left icon on the application., , It is controlled by a property in the application main form, I believe., , I think that if you shut down any one of them, you will shut them all down., , Neville, :) |
|
 3356 Hits | |
Thread 12 of 24 | Thread Starter | | |  keas | Using VB build OCX in Delphi fails{Too Long!} |
 2141 Hits | |
Thread 11 of 24 | Thread Starter | | |  danbor | OLE in dll{Too Long!} |
 1977 Hits | |
Thread 10 of 24 | Thread Starter | | |  aurera | Help - Reinstalling a previous component versionI've modified a component and registered it. Now I've tried to re-register the original version. However upon testing, it just seems to pick the later version. I've even renamed the newer version hoping MTS does not pick it up but the results are always the same. , , Thanks in advance. |
 1909 Hits | |
Thread 9 of 24 | Thread Starter | | |  Ritche M | Programs in the Sytem Tray or Task Bari need help! how do i make my program run in the system tray? or how can i hide my program from the task bar?, , thanks :) 1 Reply: |  Angel | You can download free third party components to accomplish this. I recommend LMDTools, a useful free set of components which can be obtained from most delphi code sites. |
|
 2202 Hits | |
Thread 8 of 24 | Thread Starter | | |  Larry J. Rutledge | COM LessonsLearn Delphi COM programming in 6 easy lessons. From "basics of abstract methods which help to promote the understanding of how an interface operates" to "how to create a brand spanking new com object using the Type Library Editor"., , [URL=http://www.absolute-research.com\IISSamples\Default\com\Com.Htm]COM Technology - Lessons[/URL] 1 Reply: |  halimanh | and another link here... [URL=http://www.techvanguards.com/stepbystep/comdelphi/]http://www.techvanguards.com/stepbystep/comdelphi/[/URL] , , Hendra  |
|
 2656 Hits | |
Thread 7 of 24 | Thread Starter | | |  Ritche M | ADO in DLLhi, how can i initialize ADO in a dll. it will display "coinitialize has not been called" error when i compile it. there is no problem with my DLL if it does not use ADO, but i need to use ADO. thanks... 1 Reply: |  wpantoja | Use the CoInitializeEx before and ADO calls and CoUninitialize after you are finished. |
|
 2895 Hits | |
Thread 6 of 24 | Thread Starter | | |  Leon | Multiple form ActiveXHello,, , I've been trying to put together an ActiveX which has multiple forms - the already written Delphi program is to be changed into ActiveX and used in another application. I tried different things but I am not sure which way I should go. , , Thanks for your help,, , Leon |
 1813 Hits | |
Thread 5 of 24 | Thread Starter | | |  egignac | ActiveXHi , , I am new in the delphi technology, i' d like to knoww where i can get example of code of how to do an Activex that just return a string !, , Thanks |
 1873 Hits | |
Thread 4 of 24 | Thread Starter | | |  C.Oberhaus | determining COM methodsHi, , Is there a way anyone knows of to return a list (or return somehow) the methods contained in a com interface by name?, , I have a COM object stored as follows:, COMob : variant;, COMob := CreateOLEObject('someCOMobject');, , and I can call some methods like:, // access 'echo' method, myString := COMob.echo('test');, , But I need to find which other methods this particular COM object has.., , Any idea's? greatly appreciated..., , Pea 2 replies. Last post: |  Scott | {Too Long!} |
|
 1990 Hits | |
Thread 3 of 24 | Thread Starter | | |  gordon | OLEServer... Bug?I have as many of you will be aware been fighting a losing battle with a COM object I have been trying to import, and utilise.  , , I have after much investigation discovered that all the errors I am getting and in the OleServer.pas file on the event called, , TServerEventDispatch.GetTypeInfoCount, , I then get an error code:, , "access violation at 0x0044204d: write address of 0x00000003", , Is this a known bug of OleServer.pas or something to do with my imported COM object. The code for my object is in one of my previous threads. (UnImported CoClass Routines I think), , Hope someone can help as I am at the end of the plank, with a noose round my neck as far as this is concerned.  Not Actually however it is getting to be like that., , Thanks in advance |
 2234 Hits | |
Thread 2 of 24 | Thread Starter | | |  gordon | Creating un imported CoClass Routines{Too Long!} 3 replies. Last post: |  gordon | {Too Long!} |
|
 3049 Hits | |
Thread 1 of 24 | Thread Starter | | |  gordon | COM Routine Problems{Too Long!} 4 replies. Last post: |  gordon | {Too Long!} |
|
 2440 Hits | |
 |
|
|