| System.IntPtr... (2 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi Guys, please help me... When a i have a IntPtr variable, that points to a function... how can i call the function... example: .... MethodInfo Method; IntPtr Ptr; Method this.GetType().GetMethod("function test"); Ptr Method.MethodHandle.GetFunctionPointer(); //Now i have the Pointer what i have to do to call the function..? |
|
| Passing Parameters from vb to c++ (2 replies) |
| microsoft.public.dotnet.framework.clr |
| I have a function created in c which I want to call from vb and have the function change one of the parameters and give it back to vb. Usually, to change the value between function calls you have to pass by ref. However, when I declare the function as this in c : long LDAPWrap::CLDAPWrap::LDAPResult(long pld, long lmsgid, long lall,long &pres) Visual basic tells me that &pres is an unsupported dat... |
|
| interpreted vs compiled languages (question) (7 replies) |
| microsoft.public.dotnet.framework.clr |
| I read alot about .Net NOT being an interpreted language in that the, for example, VB.Net code is compiled down in to the MSIL which is then compiled into native machine code by the JIT compiler. Whilst my definition of a compiled language would be "The program is compiled to native machine language, which is then executed." I'm slightly confused by what exactly we mean by the term interpreted lan... |
|
| Why does aspnet_wp.exe not attach during debugging? (3 replies) |
| microsoft.public.dotnet.framework.clr |
| The aspnet wp.exe process does not get automatically attached to the process when debugging. Therefore, the debugger won't break on set break points (as mentioned in previous post). I always have to manually attach aspnet wp.exe to the process to be able to debug, but it used to be automatic when hitting "Debug/Start" (like last week). What happened? Did I inadvertently set some option to prevent ... |
|
| Creating a CLR thunk to a delegate (2 replies) |
| microsoft.public.dotnet.framework.clr |
| I wish to create a delegate which can be called without an object reference. For example normalDelegate new MyDelegate(someClass) boundDelegate new boundDelegate(normalDelegate,someObjectInstance) I want boundDelegate("arg") to now invoke a static function somewhere (created during the boundDelegate constructor) which then invokes someObjectInstace.normalDelegate. How would I go about this with th... |
|
| Disassembler help (5 replies) |
| microsoft.public.dotnet.framework.clr |
| Help... I'm getting an intermitant System.ExecutionEngineException in my code. The dubugger is telling me its on the line of code below, but I'm not familiar enough with the assembly to fully understand the implications. Can someone help me out? Disassembly follows: Else 00000225 nop ldlgResult lfrmDialog.ShowDialog(frmParent) 00000226 mov edx,dword ptr [ebp 8] 00000229 mov ecx,dword ptr [ebp 2Ch]... |
|
| DataGrid Style (4 replies) |
| microsoft.public.dotnet.framework.clr |
| Can I create a DataGrid Style like this(pls watch the attatchment)? ZhangZQ |
|
| Remote CLR Management (2 replies) |
| microsoft.public.dotnet.framework.clr |
| I want to write .NET applications for my organization in a distributed fashion whereby the app resides on a web server and the client runs a small local stub exe which launches my DLL. However, with the dll I have created, there are security issues that prevent the user from launching the file. I can fix the problem at their machine by physically making a change in the caspol.exe but this is no go... |
|
| HOWTO: Force GC to reduce reserved memory (11 replies) |
| microsoft.public.dotnet.framework.clr |
| Hello, is it possible to force the Garbage Collector to reduce the "# of Total reserved bytes" to almost "# of Total commited bytes" ??? And also to free this memory, so the "# of Private bytes" will decrise ? Greetings Jochen |
|
| Problem with String.Concat via Type.InvokeMember? (5 replies) |
| microsoft.public.dotnet.framework.clr |
| There seems to be a problem calling String.Concat via Type.InvokeMember (or perhaps I've gotten the incantation wrong): using System; using System.Reflection; namespace InvokeTest { class Class1 { [STAThread] static void Main(string[] args) { try{ typeof(String).InvokeMember("Concat", BindingFlags.Public|BindingFlags.InvokeMethod|BindingFlags.Static, null,null,new Object[] {"hello ", "world"}); } ... |
|
| Database access from .net. (3 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi, I'm a bit confused about the best way to connect to a database server from .net. Basically I have a Linux machine running the PostgreSQL database server which I routinely connect to from Windows 2000 Server, via ODBC, using a database admin tool. I need to access and modify the contents of tables on my PostgreSQL database from .net in C#. There seem to be a lot of ways of doing this and I don'... |
|
| C++ client, C++ server (2 replies) |
| microsoft.public.dotnet.framework.clr |
| I'm trying to develop a C application (console for now) that uses a managed C dll assembly. The project structure is: MgdCpp (Solution) d:\dev\MgdCpp MgdCppClient: d:\dev\MgdCppClient (Output: $(OutDir)\MgdCppClient.exe) MgdCppLib: d:\dev\MgdCppLib (Output:: $(OutDir)\MigCpplib.dll) In the client's LINKer LIBPath, I point to the dir for the MgdCppLib: (d:\dev\MgdCppLib) (adds to /LIBPATH: linker c... |
|
| Column in Datagrid as Combobox? (2 replies) |
| microsoft.public.dotnet.framework.clr |
| The MSDN tells it would be possible to create own DataGridColumnStyles and there also exists a DataGrisComboBox in Microsoft.ClrAdmin. It can be bound to the GridColumnStyles Collection but just shows a DataGridTextBox. Who already tried this successful? |
|
| How to know if is there a MTS context? (4 replies) |
| microsoft.public.dotnet.framework.clr |
| How can I write the following line in .NET: if GetObjectContext() is nothing then ' There's no context ... I need to know if the actual DLL has a MTS context, so it can log more information from there. Thanks. |
|
| How to disable 'new row' in DataGrid? (3 replies) |
| microsoft.public.dotnet.framework.clr |
| Is there a way to disable new rows in DataGrid? There is a a * (asterisk) always at the last row of the datagrid. The datagrid contains editable data and I do not want to use "ReadOnly True" to disable the "New Row (*)" at the end of the datagrid. Any information is appreciated. Thanks. Regards, Allan |
|
| String and Binary or hex Data (4 replies) |
| microsoft.public.dotnet.framework.clr |
| how do i get a this value from a string ?? string1 "5580fe4" ; string2 "5cf19a4" ; I need to compare these values, add and do some operations (if one is less or greater than other). I have tried Convert class and int.Parse etc but get a FormatException. How do I go about it and do it in c# ??? Thanks, Alex |
|
| Instantiating a different object with new (2 replies) |
| microsoft.public.dotnet.framework.clr |
| Hello: Is it possible to change the behaviour of new so that it instantiates an object of a type different to that specified? For instance "new A()" actually returning B a subtype of A. How does remoting redirect execution to create proxy objects rather than the actual object? Thanks John |
|
| How to use one .config file for multiple services/exe's? (2 replies) |
| microsoft.public.dotnet.framework.clr |
| I have multiple Windows Services which together comprise an application system named "MyProduct". At present, each of the services is using GetConfig to retrieve the user defined "MyProduct" section from the .config file. Since each part of the product runs as a separate service, they each insist on having their own .config file named servicename.config. But the configuration information in the My... |
|
| Custom Serializer how-to? (2 replies) |
| microsoft.public.dotnet.framework.clr |
| I have a couple of different file formats (both roughly a flat file) that I'd like to create a custom serializer for. I'd like to make these serializers work just like the XmlSerializer object (i.e. using custom attributes to specify how to serialize the object.) I know a little about what I'm asking to do. I already know that the XmlSerializer dynamically creates an assembly to do the serializing... |
|