tracing DLL in. NET
-
hi everyone, Sorry if my question sounds too foolish. I am totally new to .NET, I have .NET code which call a DLL function. I want to debug the dll function. but the devenv does not step into dll function.Is there any setting in .NET env to do this? or any other way of doing this. Regards Abhi Lahare `
-
hi everyone, Sorry if my question sounds too foolish. I am totally new to .NET, I have .NET code which call a DLL function. I want to debug the dll function. but the devenv does not step into dll function.Is there any setting in .NET env to do this? or any other way of doing this. Regards Abhi Lahare `
what are you calling .NET ? the development environment (Visual Studio .NET 2003) or the .NET framework ? i mean, is you dll a managed code library, or native ?
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
what are you calling .NET ? the development environment (Visual Studio .NET 2003) or the .NET framework ? i mean, is you dll a managed code library, or native ?
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
hi Toxcct, The DLL is a C++ DLL, and .NET is a C# application. since i am not aware of managed code library, or native i cannot answer that. Thanks in advance Abhi Lahare
-
what are you calling .NET ? the development environment (Visual Studio .NET 2003) or the .NET framework ? i mean, is you dll a managed code library, or native ?
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
hi Toxctt, Or do i have to set the debug path and trace through the dll function? but i don't want to do that. Thanks in advance, Abhi Lahare
-
hi everyone, Sorry if my question sounds too foolish. I am totally new to .NET, I have .NET code which call a DLL function. I want to debug the dll function. but the devenv does not step into dll function.Is there any setting in .NET env to do this? or any other way of doing this. Regards Abhi Lahare `
How are you trying to debug your dll ? Do you know that, in VC++, you can debug a dll very simply: you can choose an executable for debug session (you have to look in the project properties of your dll project). Then, you simply choose which executble will be started to debug your dll. When a function of your dll is called, you can step inside it (like a normal executable).
Cédric Moonen Software developer
Charting control -
How are you trying to debug your dll ? Do you know that, in VC++, you can debug a dll very simply: you can choose an executable for debug session (you have to look in the project properties of your dll project). Then, you simply choose which executble will be started to debug your dll. When a function of your dll is called, you can step inside it (like a normal executable).
Cédric Moonen Software developer
Charting controlOr an easier way: open your dll project and press F5 (like if you want to start debugging). A dialog will appear in which you can select the executable to will be started (and which of course need to use your dll). Select the executable of your other project.
Cédric Moonen Software developer
Charting control -
hi Toxcct, The DLL is a C++ DLL, and .NET is a C# application. since i am not aware of managed code library, or native i cannot answer that. Thanks in advance Abhi Lahare
wow, i think you have some lacks i have to fill here. C++ is only a language. you can program for different target system with C++, like Windows, Unix, Mac... the difference (if you code is well written and portable) will not be in your sources, but in the binary the compiler/linker generates. this binary is commonly called "native", as it directly contain the microprocessor instructions. by opposition to native code, .NET (i mean, the .NET framework) is a framework like the Java Virtual Machine which - is supposed to - allow the code compiled to work on every plateform. this implies the compiler generate an intermediate language (MSIL for .NET, ByteCode for JavaVM). this intermediate language is called Managed code because its execution is done only within the .NET framework. some languages (like C#) generate only managed code. but C++ can do both. if you program with Win32/MFC/ATL/WTL libraries, then the code will generate some native instructions. but the Microsoft C++ compiler can also generate "Managed C++" also called (C++/CLI) for the .NET framework. then, to come back to your problem, when you say the DLL is a C++ DLL, you don't explain much. also, saying that .NET is a C# application does no only explain nothing, but is wrong in the facts. now, knowing these things, can you please explain what problem you encounter, and what you want to do ?
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
hi everyone, Sorry if my question sounds too foolish. I am totally new to .NET, I have .NET code which call a DLL function. I want to debug the dll function. but the devenv does not step into dll function.Is there any setting in .NET env to do this? or any other way of doing this. Regards Abhi Lahare `
It's a COM dll ? you can make a reference in your C# project and use it directly in your code. It automatically makes use of the interop service.
--[:jig:]-- [My Current Status] I dont know why the hell the script for voting 5 is disabled only for me?? :mad: