|
I have one openFileDialog1 .
How to get the name of the selected file.
But not the all path.
Exp:"C:\NewFolder\TextFile.txt".
Just "TextFile.txt"
Vasildb
|
|
|
|
|
You can use a Path object from the Sytem.IO namespace.
string fileName = Path.GetFileName(OpenFileDialog1.FileName);
Path.GetFileName[^]
FileDialog.FileName[^]
Paul Lyons, CCPL Certified Code Project Lurker
|
|
|
|
|
hi,
use Substring and LastIndexOf functions to get the required value;
any string supports these methods.
regards.
|
|
|
|
|
That's, most certainly, doing it the hard way and in some cases unreliably.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thnx Dave ,for correction.
|
|
|
|
|
That should never be done. Prone to too many errors.
|
|
|
|
|
Hi,
Can some one please let me know how can I use an API in my application.
Thanks:
Rakesh
Rakesh
|
|
|
|
|
Hello,
Means you want to inport API in our c# aplication???
Than use DllImport attribute
DllImport("TestLib.dll")]
public static extern void DisplayHelloFromDLL ();
nishu
|
|
|
|
|
I am looking to work with LCS APIs like RTC Client API. I am unable to find this RTC Client API. Can you help me in this regard?
Actually the situation is like this:
I have some users in my Active Directory and I want to develop some client application which will display all the users in the Active directory using the Live Communication Server APIs like RTC Client API.
Rakesh
|
|
|
|
|
What API? If it's WinAPI, you may want to take a look at this site:
http://www.pinvoke.net/
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I am looking to work with LCS APIs like RTC Client API. I am unable to find this RTC Client API. Can you help me in this regard?
Actually the situation is like this:
I have some users in my Active Directory and I want to develop some client application which will display all the users in the Active directory using the Live Communication Server APIs like RTC Client API.
Thanks:
Rakesh
Rakesh
|
|
|
|
|
rockyl wrote: I am looking to work with LCS APIs like RTC Client API. I am unable to find this RTC Client API. Can you help me in this regard?
Have you looked here: MSDN2: RTC Client API[^]
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
[DllImport("kernel32")]
public static extern long WinExec(string ipCmdLine, int nCmdShow);
in any method of yours
long sonuc = WinExec("C:\\Program Files\\Winamp\\Winamp.exe", 3);
/* nCmdShow=9 for windows open in orginial size
=3 open full screen
=6 open in minimize*/
|
|
|
|
|
Sorry to say but I did not get your point. I was actually speaking about the Live Communication Server APIs.
Rakesh
|
|
|
|
|
if you have C/C++ signatures to call the API by there's a tool available called "pinvoke wizard" that will generate the pinvoke signatures for use in .net. If you don't have any API documentation first and foremost, it sucks to be you! All I can suggest in that case is to visit the c++ forums and ask for help in reverse engineering the API from the dll files.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
*edit* nevermind, looks like others answered your question
|
|
|
|
|
Hi,
Can anyone give me a link or tell me where i can find some documentation about the functions inside avicap32.dll?
Thanks a lot
Do your best to be the best
|
|
|
|
|
If u cant find anything than write a simple code to get the assembly info from .dlls and exe
Use System.Reflection
use
Assembly.Load() file function to load the dll files and get all the properties
Regards ,
nishu
|
|
|
|
|
Can you give me an example on how to use Assembly to see all the available properties and functions from that DLL?
Thanks
Do your best to be the best
|
|
|
|
|
Does Assembly.Load work for non managed dlls? I don't think so.. avicap32.dll is an "old" native dll so Assembly.Load shouldn't work in this situation!
But it's easy to get information about it by using the search function
- http://www.codeproject.com/audio/avicapwrp.asp
- http://www.activevb.de/rubriken/apikatalog/bylib/bylib11.html
|
|
|
|
|
Thats the cool solution I think:->:->
Regards ,
nishu
|
|
|
|
|
How do I call a class Library(DLL) that I have created using Visual Studio 2005? I created the class library using Visula studio 2005. Thanks.
Peter Usinga
|
|
|
|
|
Hi,
If you created the DLL in C# you just have to add the DLL to the References of your project and then use the namespace which is contained in that DLL.
Hope it helps.
Do your best to be the best
|
|
|
|
|
Add a reference to the DLL in the project.
|
|
|
|
|
I have .NET 1 WinForms DataGrid bound to DataTable in C#
I need to change column order interactively, like dragging column
header to other place.
How to implement this ?
Andrus
|
|
|
|