A tutorial on using owner-drawn menus in a context menu shell extensions, and on making a context menu extension that responds to a right-click in a directory background.
By implementing a UI library and exporting its necessary components to lua script, we can create a beautiful UI and implement relevant logic in Lua script completely.
I've implimented a ATL single thread apartment based project . class ATL_NO_VTABLE CMySrv : public CComObjectRootEx, public CComCoClass, public IMySrv In the method, I'm creating multiple worker...
Hello All; I am working on C++/MFC project where I need to use access control device SDK acualy I registred SKD DLL (using regsvr32.exe) to create a controller, after that I Open my MFC project and I added activex controller from the wizard, ...
We have a COM module written in VC++ 6.0 which is called from both VC++ 6.0 and VB 6.0 programs. As an early step in moving to .Net, this module was rewritten as a .Net 3.5 assembly with a thin COM module wrapper which is still called from VC++ 6.0 and VB 6.0 programs (these programs are...
I think I remember hearing something about having to install versions of .Net in the proper order. Maybe the new server was installed from a newer disc, and had .Net 3.5 on it, and .Net 20 was installed as an afterthought? You might want tto try uninstalling both versions, and then reinstalling...
I Created a 64 bit exe and 32 bit com dll ... i did neccesary changes in registry as suggested by some site .. now CoCreateInstance is returning :HRESULT_FROM_WIN32(ERROR_BAD_EXE_FORMAT) : %1 is not a valid Win32 application. HRESULTCould you please let me know why the error...
How did you register your COM dll?By default the 64-bit version of RegSvr32 is used and you need to use the 32-bit version.See https://support.microsoft.com/en-us/kb/249873[^]And here is some general information: Process Interoperability (Windows)[^]
Unless I misunderstood the documentation, you cannot do that. See Process Interoperability (Windows)[^]:On 64-bit Windows, a 64-bit process cannot load a 32-bit dynamic-link library (DLL). Additionally, a 32-bit process cannot load a 64-bit DLL.
hi,guysI'd like a word document inside the 25 to 45 the Range, inside which the data is added to another document? The Range There may be pictures or tables, it is not the way a string is added to another document. The following method can meet the requirement, but if the client during the...
Hi everyone!, I need to use this code made in C# to .Net [^] . I have a PLC connected to a PC through Modbus RTU (RS485). Between PLC and PC I have a RS485-RS232-USB converter.I'd like to know how this program could read and write memory registers of 4 bytes (2 words) size. I need to handle...
What you can do, using the article's program 'as is', is reading the pair of registers and then convert yourself the return values into the meaningful value. For instance, assume you read a register pair reg[n] = 0x4128 and register reg[n+1] =0x0000then, if the PLC uses the big endian...
I recommend trying AdvancedHMI. It has a ModbusRTU driver that supports float over Modbus by preceding the address with a F. For example, you would use F450001. To do this in code with AdvancedHMI:Dim MyValue as string= ModbusRTUCom1.Read("F450001")
Try NModbus[^], with great manual[^]See last page for the data type conversion you need.Some deeper theory about modbus rtu dta representation: http://www.chipkin.com/how-real-floating-point-and-32-bit-data-is-encoded-in-modbus-rtu-messages/[^]But before you try to do it from code (which...
O.k, this problem has been very evasive so far so I'm hoping someone here could help me.I have the following code to late bind to a VB6 DLL (via a wrapper created by the Type Library Importer)* Note the following code has been stripped of all error handling etc. for the purpose of this...
do you know which dll/ocx/exe implements the object wr_TCPIP_ASTM.TCPIP_ASTM_CommsClass (27CC4E03-D86D-40B5-96D4-F7EA5B148A0D)?You can find out using regedit - under classes rootHKEY_CLASSES_ROOT find wr_TCPIP_ASTM.TCPIP_ASTM_CommsClassunder wr_TCPIP_ASTM.TCPIP_ASTM_CommsClass should be...
The source code / article published here is to provide features of MS Script control (Functions like AddObject) and some features of VSA/Visual Studio editor like intellisence, code completion etc
I have an idl file in my c++ project I want to create instance for coclass from this idl file in my second project which I have created in c#. while creating that instance in c# project I get the exception at runtime. I search the solution for the exception and mostly got that I should set the...
Check whether the C+ app is in 32 or 64 bit mode. There are some setting to control it. When working with 32 and 64 bit dlls the naming and path should be different, so system isnt mismatching the modules. Check that the needed side loaded dlls are correct and in place. In the ATL projects the...
Hello C++ Gurus,I created a 64-bit COM DLL by compiling a 32-bit application in visual studio 2010(Mode-Release, Platform-x64) and registered it successfully using Regsvr32.exe tool.I am trying to create the instance of the dll but, I am getting "Class Not registered " error in the below...
I'm still(hopefully will remain?) pretty wet-behind-the-ears with respect to COM work. Though I do note that the behaviour you report is the same as that which I observe when starting a 32bit COM server under either windows xp or 7.That is to say CLSIDFromProgId does just that - it returns...
If you are trying to create a COM object from a 32 bit dll/exe , then your 64 bit com object cannot be instantiated . Because Windows maintain separate entries for 32 bit and 64 bit COM objects. Hence make sure that your COM object and your container application belongs to same architecture...
I wanto to define a custom proxy/stub com object At VC6.0 Envirment,steps as follow:1、Define A Simple IDL File2、Compile it by MIDL3、Add *_i.c、*_p.c、*.h、*.def To Empty Win32 DLL4、Define Funtion:DllGetClassObject、DllCanUnloadNow etc.5、Compile All DllLink Error...
The macro DLLDATA_ROUTINES in your dlldata.chas already defined DllGetClassObject and DllCanUnloadNow,so you have not to do it twice (your fourth position) :)
To upstairs:Thank You And I Have Other QuestionIf i want to realize a custom proxy/stub structure,I Must Build More Than One Proxy/Stub For All Com Object?Such As:ClassFactory、COM Class1、COM Class2,Because The macro DLLDATA_ROUTINES in dlldata.chas already defined DllGetClassObject(This...
To Upstairs: DllGetClassObject Is Defined By MIDL,How Can I Change its Definition?and How does The Com library know which class is derived fromthe custom interface?
Dear All,I found some good tutorials of COM server creating but most of them are in DLL which is in-process.I am looking for a good tutorial of "out-of-process" COM server building.Does anyone know any article refer to this?I study Windows MobilityCenter extension recently.And the...
Hello guysI have a problem with an out of process COM-server. I inject a DLL into a foreign process and this DLL registers some Classes as local servers. This is done in the following way:1. For each object the following registry entries are created:HKLM\SOFTWARE\Classes\CLSID\{GUID OF...
Well, my own "temporary" solution to the problem is the following:The problem was that i started my foreign process as administrator and the consumer client just as invoker. If i start the foreign process as invoker it gets detected and requests are delagated to it. I guess that i have to...
It is really unclear where the hEvent comes from in your DllMain. You cannot share local handles between processes. You should create the event object by name and this should work.// exeHANDLE h = CreateEvent(0,0,0,AnyGuid());WaitForSingleObject(h,INFINITE);CloseHandle(h);//...
You can do it. And it makes no sense, whatsoever.How else can I explain that it does not make any sense. Wasn't my answer clear? Please see: Activex Object created in C#, to be placed in VB.net application.[^].—SA
HiMy job is to create a DLL for a bigger project. It's been working fine, but it seems I've done something to it in the last couple of days that prevents it from being registered correctly using Regsvr32.Sure, I can roll back my code etc but I'm looking for a slightly more efficient and...
First you should check if your DLL (still) exports all required methods. Then make sure it does not depend on other libraries which are not loaded at the time regsvr runs. Having static (global?) vars is dangerous, you might try to replace your CStdiofile by a pointer (CStdiofile* m_myFile =...
Overview. As mentioned in "Manage Staffs - Part 2" part, It was easy to query the list of staffs as they were prepared before hand.. All necessary preparation steps occurred in "Add/ update staff information".. Let see "Add staff" first.. Add the following line into staffs.
Overview. In this article, let see how we use multiple languages in TinyERP.. Currently, In html files, ts file for HRM were still using hard-code value (I mean hard-code value of string). And this was not good for enterprise application which supports multi languages as default..
Objective: In this post, we, try to understand what is Object Storage Service in Alibaba Cloud and how to create your first Object Storage Service. We will try to understand the different business scenario where we can utilize this OSS service.
I've got a bunch of C++ COM components that I'm adding to a C# .NET project as references.All except one can be added successfully.There is one that is never recognized as a COM.It doesn't turn up in the COM tab in the Add Reference dialog.So I forced to load it as a file but I get...
Hello,If your object can be registered without problems with regsvr32 thenyou should check if your COM dll consist of type library. As it require to make exports automatially. To check it use "OLE-COM Object Viewer" tool (it comes with VS and or SDK). In there select "View TypeLib" and...
The DllRegisterServer function wasn't calling AfxOleRegisterTypeLib.Stupidly simple now that I know what it is, but gosh, it's been a hard week!Thanks to everyone who made suggestions. They all helped point me in the right direction in the end.
This article is intended to help you get up to speed quickly with developing an ActiveX control. It will show you the basic concepts you need to know about ActiveX, such as methods, properties, and events, and how to communicate between an ActiveX control and a web page.
Hi!I want to write a plug-in for Windows Media Player 11 to capture screenshots but I find it is really difficult for me. Is there someonewho can give me any suggestion?------------(My English is so-so, there may be some mistakes in my question, I'm so sorry! If you want to help me...
To learn how to create plug-ins for Windows Media Player, see the Windows Media Player SDK[^].This should outline what you can and can't do with a plug-in in WMP.