|
Here is the IDL definition
[
object,
uuid(DAFB7D76-0158-452F-8FD0-FF97A683DEA3),
helpstring("ITest Interface"),
pointer_default(unique)
]
interface ITest : IUnknown
{
[helpstring("method GetString")] HRESULT GetString([out,retval] BSTR* pVal);
};
[
uuid(E768DC15-A19B-407C-ACF9-C420D6FDB1BE),
version(1.0),
helpstring("TestServer 1.0 Type Library")
]
library TESTSERVERLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(788571BD-030B-49CC-8C0A-2DF74E58331A),
helpstring("Test Class")
]
coclass Test
{
[default] interface ITest;
};
};
The ATL COM Library uses APARTMENT threading model.
And the VB.NET windows service code fragment
try
Dim obj As New TESTSERVERLib.Test
Dim s As String
s = obj.GetString()
Catch ex As Exception
WriteToLog(ex.Message)
WriteToLog(ex.InnerException.ToString)
End Try
When the code executes the following error occurs:
Unable to cast COM object of type 'TESTSERVERLib.TestClass' to interface type 'TESTSERVERLib.ITest'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{DAFB7D76-0158-452F-8FD0-FF97A683DEA3}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Object reference not set to an instance of an object.
But the same code works in VB.NET forms application.
Can anyone please explain the reason.
|
|
|
|
|
I am trying to add an extra property page to a device in Windows 7 Devices and Printers. I am following
http://www.microsoft.com/whdc/device/DeviceExperience/DevPrintFolder-Ext.mspx
and
http://msdn.microsoft.com/en-us/library/cc144106(VS.85).aspx
I can add a shortcut item to "right click" menu of the device successfully; however, the extra property page does not show open in device Properties window. If I follow the same steps to add the extra property page to a .test file type, it works and I can see the extra property page shows up. It seems that the COM dll for the property page is fine. Any one successfully completed similar things before?
The following is what I added in Registry:
HKEY_CLASSES_ROOT\CLSID\{Page 1 Property Sheet Handler CLSID GUID}\InProcServer32
(Default) = C:\MyDir\MySheet1.dll
ThreadingModel = Apartment
HKEY_CLASSES_ROOT\DeviceDisplayObject\HardwareId\Device hardware id\shellex\PropertySheetHandlers\MySheet1
(Default) = {Page1 Property Sheet Handler CLSID GUID}
modified 23-Dec-22 21:01pm.
|
|
|
|
|
hello ,
Button on Toolbar not showing chervon effect. When i drag toolbar for chervon then first button is overlapp on all buttons and no image is added into chervon list..So may be problem and which function called when i drag button on toolbar.
Thansks
Am
|
|
|
|
|
maybe one day I could help you to solve the problem.
|
|
|
|
|
Hi Guys,
I have been searching for a SMPP lib for a while now, I finally stumbled on a dll, created by a Romzy, but there wasnt any samples or instructions for implementation, nor have I been able to trace the developer, I have tried using the DLL with little I could gather from the SMPP protocol definition, but in binding to a SMSC, it includes a Sendbindtranceiver with requires (index as short, hsocket as integer, SMPP_PDU_Bind_Transmitter), what I'd like to know is, anyone understand or can suggest what the index might mean or how that data type (short) can be represented and what does hsocket mean.
I do understand that it may be impossible to understand without seeing the code, but I m snatching at straws right now.
Any help or suggestions will be welcome.
|
|
|
|
|
Hi..
You are using a third party com or if you create your own api? Please let me know the detail.
Thanks
Md. Marufuzzaman
|
|
|
|
|
Hi, Thanks for the quick response.
I am using a third party com dll, but cant seem to bind to the smsc.
I will be grateful if you have a Smpp library preferably com, that I can use.
|
|
|
|
|
Well... You have 2 options (a) Create your own api, (b) Use third party api.
let me know that you only send 160 char message or Hex like .. Wap push, logo, mono ring tone etc
you also must get the smsc acknowledgment an Alphanumeric message submit ID right?
Md. Marufuzzaman
|
|
|
|
|
Thanks Marufuzzaman, I am not knowledgeable enough to build my own API, unless I can get a push in the right direction or can get hold of manuals in that regard.
I only need for it to send 160 char. to the receipient, no need for any acknowledgements or response from the receipient, just sending the message(s).
Any idea I can use?
|
|
|
|
|
Hi harrisyn,
So you will use a 3rd party api. Try the following:
http://www.activexperts.com/xmstoolkit/
If you interested to create SMPP api, I think I can help you.
Thanks
Md. Marufuzzaman
Md. Marufuzzaman
|
|
|
|
|
|
Hay..
Definitely my friends, actually last couple of days I'm trying to create an SMPP api, and it almost completed
I will share this with you my friends.
Thanks
Md. Marufuzzaman
|
|
|
|
|
Wonderful news ,
I'd hate to sound like Oliver Twist, but how soon can you complete it
Waiting expectantly
|
|
|
|
|
I will let you know as early as possible....
Md. Marufuzzaman
|
|
|
|
|
|
Hi Maruf,
Hows it coming, are we allowed peeks?
|
|
|
|
|
Hi
Do you try to convert the SMPP api into a COM+ object.
Thanks
Md. Marufuzzaman
|
|
|
|
|
Hi..
What about your project.. I m suffering fever...I will send you the code of my SMPP api.. could you please send my your email at maruf.zaman@hotmail.com
Md. Marufuzzaman
|
|
|
|
|
Hello,
I have used one COM .dll in my VB.Net project and when i install the application.
It runs ok. but when i open form which has created object of COM dll it shows one installation window without any message.
I have registered the .dll using regsvr32
Best Regards,
Chetan Patel
|
|
|
|
|
How can I set an icon to an ActiveX Control in the Internet Explorer 8 Manage-Addons-Dialog.
I know how to do it with a Browser-Extension but not how to do it with an ActiveX Control.
I even can't find any example.
Any help or tip would be great!
|
|
|
|
|
Juergen wrote: I know how to do it with a Browser-Extension but not how to do it with an ActiveX Control.
I even can't find any example.
Any help or tip would be great!
Do you have a link to information saying it can be done?
|
|
|
|
|
No I do not have a link to information saying it can be done but also no that it cannot be done.
I supposed if the Control has a place for Icons, then there should be a way to display one for each element not only Browser-Extensions.
|
|
|
|
|
Juergen wrote: I supposed
Well that doesn't give me any information to investigate with so I guess I can't help. Good luck.
|
|
|
|
|
Could you please describe how to add icon in IE8 Manage-Addons-Dialog for the Browser-Extension?
|
|
|
|
|
You have to add an registry-entry.
Here is an example:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Extensions\{FB5F1910-F110-11d2-BB9E-00C04F795683}]
"ButtonText"="Messenger"
"CLSID"="{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}"
"Default Visible"="Yes"
"Exec"="C:\\Programme\\Messenger\\msmsgs.exe"
"HotIcon"="C:\\Programme\\Messenger\\msmsgs.exe,302"
"Icon"="C:\\Programme\\Messenger\\msmsgs.exe,301"
"MenuText"="Windows Messenger"
"ToolTip"="Windows Messenger"
HotIcon/Icon also could be a path to a "Image.ico"
|
|
|
|