Using WMI from Linux? The only way is using the COM WBEM Scripting locator and it's not automated by default. We MUST change the registry like I said.
Raphael Amorim Dantas Leite VC++, Java and C# programmer. Win32 and PocketPC enviroments
Using WMI from Linux? The only way is using the COM WBEM Scripting locator and it's not automated by default. We MUST change the registry like I said.
Raphael Amorim Dantas Leite VC++, Java and C# programmer. Win32 and PocketPC enviroments
Hello all, I have a COM component on a remote server with no DllSurrogate = "" value set in the remote registry. So, the instantion could not be done in the server side only. I made a method to access the remote registry primitives, using the pipe \\PIPE\winreg and also using the rpc.rcacn_np transport. So, this way I'm able to modifying the registry remotely, putting the DllSurrogate="" and performing the COM instantiation. Everything is working fine, but now I must do all of this without file and print sharing, which means that I'll not be able to use the PIPE anymore. So I'm looking for some COM with DllSurrogate="" already enabled that expose some function to modify my component. Or some service working at port 135 or 445 with some exposed methods to do the same thing, this way I can access using the rpc.rcacn_ip_tcp. So, any ideas. Thanks in advance.
Raphael Amorim Dantas Leite
Hello All, Is there a way to configure Visual Studio to use GCC or other compilers to generate native programs for devices with ARM9 processors. Anything is welcome, application wizard, project sample, add-in or a paper fragment containing the secrets of the universe. :) Thanks in advance Raphael Amorim Raphael Amorim Dantas Leite VC++ and .NET developer. Win32 and PocketPC enviroments
So, Is something like this? [WebMethod] [XmlInclude(typeof(CTestClass))] [XmlIncludeAttribute(typeof(CTestClass))] public bool GoObject(object obj) { if(obj is CTestClass) { return true; } return true; } Raphael Amorim Dantas Leite VC++, Java and C# programmer. Win32 and PocketPC enviroments
How do I edit the WSDL manually? Raphael Amorim Dantas Leite VC++, Java and C# programmer. Win32 and PocketPC enviroments
Hello all, I got this object obj, it's an instance of CTestClass. Now I want to pass this object across my network using MyWebService. So, I've wrote a Method called GoObject: [WebMethod] [XmlInclude(typeof(CTestClass))] public bool GoObject(object obj) { if(obj is CTestClass) { return true; } return false; }
But, whenever I call this method passing a client side instance of CTestClass, I get the following error message: The type TesteClass.CTestClass was not expected. Use the XmlInclude
or SoapInclude
attribute to specify types that are not known statically. What's the professional way to perform what I'm trying to :) Best Regards Raphael Amorim Dantas Leite VC++, Java and C# programmer. Win32 and PocketPC enviroments
Hello all, I've made a COM component that uses CryptAcquireContext. When I call it from VB.NET application it works perfectly, but when I try to call it from an ASP.NET web service CryptAcquireContext fails. The error is: "The system cannot find the file specified". How do I fix this error, is there some additional tag to put in Web.config file ? Thanks in advance Raphael Amorim Dantas Leite VC++, VB, Java, .NET and eMbedded Programmer
Hello, All of you guys who had developed ActiveX controls for Embedded platforms to please look at the thread Windowless ActiveX Control
at the VC++ ATL / WTL / STL
discussion board. Thank you guys. Raphael Amorim Dantas Leite VC++, VB, Java, .NET and eMbedded Programmer
If you want the key value try this article: http://www.codeproject.com/cpp/plaintextsessionkey.asp Raphael Amorim Dantas Leite VC++, VB, Java, .NET and eMbedded Programmer
Thanks geo_m, you're the man!:-D
Thanks a lot geo_m. But Whenever I drag the component icon from toolbox to the form, in the OnDraw()
event is drawn on the form as beveled window with "ATL 3.0 : ComponentName" written over it. I want to put the same icon that is in the toolbox instead of this, got it?
Hey all, Some doubts: 1- How to make a property of an Activex Control(VC++), shows up at the "properties window" in Visual Basic. 2- How to set up the design-time image resource that will be drawn that represents the Control on the form, when the user drag it from the toolbox to the form. I know it's inside the OnDraw()
event, isn't it? Remebering...all without MFC, just ATL. Raphael Amorim Dantas Leite VC++, VB, Java, .NET and eMbedded Programmer
Hello guys, Where can I find a good implementation of IClassFactory2, whitout using that DECLARE_CLASSFACTORY2(CMyLicense) macro, to perform licensing capabilities to my software? Thanks in advance, Raphael Amorim Dantas Leite VC++, VB, Java, .NET and eMbedded Programmer
Hello guys, Where can I find a good implementation of IClassFactory2
, whitout using that DECLARE_CLASSFACTORY2(CMyLicense) macro, to perform licensing capabilities to my software? Thanks in advance, Raphael Amorim Dantas Leite VC++, VB, Java, .NET and eMbedded Programmer
Hello guys, Where can I find a good implementation of IClassFactory2
, whitout using that DECLARE_CLASSFACTORY2(CMyLicense) macro, to perform licensing capabilities to my software? Thanks in advance, Raphael Amorim Dantas Leite VC++, VB, Java, .NET and eMbedded Programmer
Hello All, I'd never thought about that before :zzz:. I want to distribute an ActiveX control for Pocket PC, nevertheless I will also distribute three versions of that component: Emulator Release, Desktop and Device Release, ok till here? The developer will use those versions to build his application on my component, but where in the name of Jesus Christ he'll put my Emulator Release to start testing :confused: ? Inside the respective Emulation directory under Windows CE Tools folder...I don't think so!!! Try to test this...start your emulator and create a simple doc file and save it, and seach for it in your computer. File not found, isn't it :(( ? So what? There's a huge *.bin file :confused: in the emulation folder, is everything within? Raphael Amorim Dantas Leite VC++, VB, Java, .NET and eMbedded Programmer
Hello, Try to use the registry. Use the following registry functions: RegCreateKeyEx
RegOpenKeyEx
RegCloseKey
RegDeleteValue
RegQueryValueEx
RegSetValueEx
RegEnumKeyEx
Raphael Amorim Dantas Leite VC++, VB, Java, .NET and eMbedded Programmer
Hello, Try to use the registry. Use the following registry functions: RegCreateKeyEx
RegOpenKeyEx
RegCloseKey
RegDeleteValue
RegQueryValueEx
RegSetValueEx
RegEnumKeyEx
Raphael Amorim Dantas Leite VC++, VB, Java, .NET and eMbedded Programmer
When building an application for Pocket PC emulation that uses the Windows CE operating system functions, errors similar to the following may be encountered:
<filename>.obj : error LNK2019: unresolved external symbol _CeDeleteDatabase referenced in function <function>
These operating system functions use the _stdcall calling convention, but the compiler is declaring them as _cdecl. This problem occurs with the Windows CE Platform SDK for Pocket PC because the functions are incorrectly declared in the Windbase.h file without a linkage type.
Use one of the following workarounds:
-or-
If the first workaround prevents other functions/libraries from linking in your project, then modify the Windows CE database function declarations in the Windbase.h file. For example, for the error in the "Symptoms" section, change the following declaration
BOOL CeDeleteDatabase (CEOID oid);
to read:
BOOL WINAPI CeDeleteDatabase (CEOID oid);
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
Raphael Amorim Dantas Leite VC++, VB, Java, .NET and eMbedded Programmer
Hello all, I'm facing this problem: I got some COM components (not OCX's) that I want to protect against copying and the whole process is based on three machine configs. : a physical, a logical and a random configuration. Basically they're: Processor ID, HD volume signature and a Cryptographic key pair respectively). There's a *.lic license file that is signed by me, and got all this configs and the serial number. The COM component (Emulation) must check out this file to verify if was signed by be(ownership) and if corresponds to the developing machine. The COM component (device) checks only the ownership. but my problem is: How to get those machine informations from the Emulator component? I also thought about set the Emulation registry with those machine informations from the Desktop machine, but I really don't know how to perform it!!:-D Thanks for any help, Raphael Amorim Security Analist Media System Raphael Amorim Dantas Leite VC++, VB, Java, .NET and eMbedded Programmer