Hello, I'm writing an application to plugin into OCS server in order to receive SIP events. When I create a ManagmentClass to MSFT_SIPApplicationSetting class it failed. Does anyone know what can be the reason for it? When I tried to do the same with Win32_Environment it passed OK. Where can I check if this class is configured? And if not how can I configure it? Thanks ahead,
yoti11
Posts
-
OCS 2007, WMI -
calling c++ function from c.Hi, Thank for your reply. I already use variables in c stale.
-
calling c++ function from c.Hello, I've a program written in c and now I want to add functionality that already written in c++. Can I call c++ functions from c? Does anyone have article about it? Thank you.
-
Virtual MemoryHi, Does anyone knowes how can I obtain the virtual memory size of the process I'm running in? Thanks,
-
Execute managed function from unmanagedI still get the error Managed Debugging Assistant 'FatalExecutionEngineError' has detected a problem in 'D:\Dev\Test_TA.exe'. Additional Information: The runtime has encountered a fatal error. The address of the error was at 0x79f1c189, on thread 0x910. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack. This error ocured when the function pointer in the unmanaged code call to the function in the managed code. In the managed code I uesd GCHandle::Aloc(this). thanks
-
Execute managed function from unmanagedHi, Thanks for your reply. I already try that before, but it my case the program structure is little different. The problem is that the program has 2 phases: 1. Managed class creates a delegate and sends it to unmanaged class which assigns it to a function pointer member. 2. The unmanaged class listens to events from other place and when a specific event occurred then the unmanaged class should call the function in the managed class. (From the first phase) Maybe there is no different between cases but I still get this error. Thank you,
-
Execute managed function from unmanagedHello, I’m trying to send delegate to unmanaged code, so when the unmanaged class will catch an event it will execute the proper function in the managed class. I used GCHandle::Alloc() to prevent from the GC to change the position on the heap and Marshel::GetFunctionPointerForDelegate()to convert the delegate to unmanaged function pointer. The main problem is that an error occurred while I tries to execute the function pointer in the unmanage code to the managed code I get that error. “ Managed Debugging Assistant 'FatalExecutionEngineError' has detected a problem in 'D:\Dev\Test_TA.exe'. Additional Information: The runtime has encountered a fatal error. The address of the error was at 0x79f1c189, on thread 0x910. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack. “ Did anyone encounter this problem? Is it a problem with the Marshel::GetFunctionPointerForDelegate()? Or with the GC? Thanks,
-
Raise events from unmanaged to managedThanks for your reply, I've a delegate instance that lives all the time and I sent it to the unmanaged code using Marshal.GetFunctionPointerForDelegate. But I think there is a problem with the GC since it can be reallocated the delegate on the heap. How can it be handle? Thanks
-
Raise events from unmanaged to managedHi, I tried to raise an event from unmanaged code class to a class in managed code. I passed a delegate pointer (using Marshal) to the unmanaged class but I got an error when the unmanaged class tried to execute the function. I tried to use pin_ptr to the delegate pointer with no results. How can I raise event from unmanaged code class to a managed code class using delegate (managed) and function pointer(unmanaged)? Thanks
-
NT Service - working directoryHello, How can change the working directory of NT service from WINNT\system32 to the exe directory (C++ unmanaged)? Thanks,
-
Unmanaged C++, windows service -
Unmanaged C++, windows service -
c++.net and vc6 atlHello, How can I use com written in vc6 from c++.net managed code? Thanks,
-
includeHello, I wrote a com object in C++.ATL. I did a small header file for general definitions. When I include that file in other classes I got error such as missing ; etc example of the header file: #ifndef __LIC_T_H #define __LIC_T_H #include using namespace std; #define FILE_BUFFER_SIZE 100 #define ENCRYPT_ELEMENT_NUM 4 struct Lic_t { }; #endif thanks
-
C#-Secured XMLHello, I tried a small example from msdn of encrypt/decrypt elements in XML file. When I executes the Decrypt there is an exception "Unable to retrieve the decryption key." even so I use the same key name. Platform: .Net 2005, c#. The algorithm is AES, Asymmetric. The example from the msdn. Than you.
-
PlatformHello, How can I check on which paltform the program is running? (Such as: windows 2003, NT, 98 etc). Thanks. -- modified at 9:34 Monday 8th May, 2006