We didnt create this com dll file, we just have to use it and there are just one method call & one event handeling from dll. I tried this: Type comType = Type.GetTypeFromCLSID(new Guid("{95D4B070-6A73-11D5-95B0-0008C7E92339}")); object instance = Activator.CreateInstance(comType); But the second line fails, i dont know why!! might be some dependency, but anyway there should be a way!! Thank You
Shahin77
Posts
-
Com DLL file reference access ... -
Com DLL file reference access ...The reason is im working on a project which is shared between 20 developers and i dont want to add any reference to the project, I dont want any dependency to this dll file when i compile. So any idea? Thank You
-
Com DLL file reference access ...I have a com object dll file called MyCom.dll with some classes, interfaces, methods and events. I can add it as a reference to my project in visual studio IDE and create an instance from one interface that i need: MyDllLib.InterfaceName myobject = new MyDllLib.InterfaceName(); I can also access all the events and methods for this interface via myobject. So by some reason i dont want to add this com dll file to my project references and dont ask why! My question is how can instantiate an interface from a com dll file and access it's methods and events. If i dont add it as a reference in .Net IDE so i can't reference it. Could someone recommend the best solution for this. Thank You,:confused:
-
IBM "Packed Decimal" To .NET "String" ConversionHi, Is there any function to convert String/Number to "Packed Decimal" and vice versa? Thank you.:confused:
-
C# & mswinsock.ocxNull is not working, im done with this if i just know what to send for this.:doh:
-
C# & mswinsock.ocxHi guys, This activex control has optionals parameters for GetData method: this.axWinsock1.GetData(ref object data,object type,object maxlen) i tried these: object rec= string.Empty; object type = 0; object maxlen = 0; this.winsock.GetData(ref rec, type, maxlen); or object rec= string.Empty; object type = string.Empty; object maxlen = string.Empty; this.winsock.GetData(ref rec, type, maxlen); but all i get is "Unsupported variant types" error message, do you know how to call this getdata method in c#? i know if you call it in vb.net you dont need to pas optional parameteres. Please help:confused:
-
C# & mswinsock.ocxHi guys, This activex control has optionals parameters for GetData method: this.axWinsock1.GetData(ref object data,object type,object maxlen) i tried these: object rec= string.Empty; object type = 0; object maxlen = 0; this.winsock.GetData(ref rec, type, maxlen); or object rec= string.Empty; object type = string.Empty; object maxlen = string.Empty; this.winsock.GetData(ref rec, type, maxlen); but all i get is "Unsupported variant types" error message, do you know how to call this getdata method in c#? i know if you call it in vb.net you dont need to pas optional parameteres. Please help:confused:
-
windows default currency symbolHow can i get windows default currency symbol as i can see it in windows reginal setting? Thanks in advance:)
-
USB Portyes i think so, i didn't install any driver, by theway i have windows xp pro sp2. it should be same as the usb keyboards.
-
USB Port:confused:Hi, I have to write a program to capture a usb barcode scanner,... as you all know, when you scan a barcode, it acts like a keyboard & just sends the barcode text to the active window. all i have to do is just to write a program which runs in the background & captures those scanned barcodes to a text file and it would not sent it to the active window,.. it's like windows message intercepting for your own purpose. i really apprecite if you can give me any sample code, or any clue. Thanks in advance
-
xml & xsd questionI have this xml file: How can i get this one? thanx in advance:confused:
-
how to get it? xml & xsdHi, i have this file : =================== =================== So how can i just get this one? thanx in advance:confused:
-
Question about MSPetshop & some problemHi, I dont know why when i change or add something in that MSPetshop sample application from microsoft, it doesn't effect until i found out i have to restart my computer & it's like it caches those assemblies (IDAL,DALFactory,SQLServerDAL,...) and this is disaster when you developing . so should i release cached objects manually? ( if so how). every time when i compile my project it registers the new dll in the GAC & but it doesn't work until i restart my computer, i used to get this error ( method not find) for 2 day & when i rebooted my computer it worked fine. any clue? thanx in advance:confused:
-
Visual Studio Setup and Framework versionHi everybody, I've created one setup program on visual studio .net 2003 and the framework is ver 1.1, the problem is when i want to run my Setup.MSI file on the older version of framework (1.0) then it fails and alerts me to upgrade to 1.1 version. i have't any custom action programmed in that setup file as well. i though this setup program (msi file) is something independent from .net and framework and msi file is windows standard,..... anyways any clue?...:zzz: thanx in advance
-
IIS 6.0 & Windows 2k3 questionIn windows server 2003 , it doesn't matter whether you have changes worker proccess startup account in order to get higher privilage, there is some thing new in that, as you can see in the iis there is one Application pools node, the only things you need to do is to create a new pool and set the Local system account for that pool, then you can specify you website to use this pool, in home directory of your web site, and set the application pool property to use that one u created. for issue #2 i think there should be something about server extention 2002 configuration, check it plz. hope it works for u
-
removing registry garbagesHi guys, When i want to reference one com object in my project i can see 3 or 4 object with the same name and version but different path, ( it 's for tlb file) is there any way i can clean my registry content up for those library, for example is there any method like this RemoveRegistry(GUID ClassGUID) then it removes all of the registry content for that library. thanx in advance:confused:
-
Calling a .NET Component from a COM Componentit wroks and thanx very alot. I was wondering if you say me what can do to make this control visible for all of component client container, sometimes i need to use this control in vb, vc,delphi,... , what i have to do to make it like the other activex control which commin up when you open the component reference form in the vb or anyother language. and another isues is one i've created one tlb file from that component, but now i cant remove it, i closed every thing, do i need to unregister it,,how !!! thanx very much
-
Calling a .NET Component from a COM Componentguys I really appreciate your knowledge, Im almost done with my component and i can test it in activex container test program and it works great, but i cant add this component to my vb project, i added this {40FC6ED4-2438-11CF-A3DB-080036F12502} for my class component guid in the registry as u told, but i cant still see it in there as com activex control, can u tell me what this {40FC6ED4-2438-11CF-A3DB-080036F12502} exactly does. thanx alot
-
Calling a .NET Component from a COM Componenthi guys, thanx for your great helps, but im still having problem. I dont know why but i can insert my control in activex control test container in .net but i have to click implemented categories button then just select .net category. but in visual basic or even in .net i just can see it as com reference not come component, i cann't add it to tool box!!! i test this link but this one is the same too, it just shows in references not activex section. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cssample/html/vcsamCOMInteropPart2Sample.asp any help really appreciated.:doh:
-
Calling a .NET Component from a COM ComponentYou wrote: If it does work, make sure you customize VB6's toolbox and add the .NET Control as an ActiveX control, not just a project reference. could u plz tell me how can i do this in vb? (customize VB6's toolbox and add the .NET Control as an ActiveX control) thanx alot