|
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
|
|
|
|
|
I have .NET 1 WinForms DataGrid bound to DataTable in C#
When new line is added, first column must become active.
How to implement this ?
To reproduce:
1. Run the code
2. Enter data to second column
3. Press down arrow key
Observed:
Second column in active
Expected:
First column must be active
using System.Windows.Forms;
using System.Data;
static class Program {
static void Main() {
Application.Run(new Frm());
}
}
class Frm: Form {
public Frm() {
DataTable table = new DataTable();
DataColumn column1 = new DataColumn();
DataColumn column2 = new DataColumn();
DataGrid grid = new DataGrid();
table.Rows.Add();
grid.Dock = DockStyle.Fill;
table.Columns.Add(column1);
table.Columns.Add(column2);
Controls.Add(grid);
grid.SetDataBinding(table, "");
}
}
Andrus
|
|
|
|
|
Hi,
I am using winforms .net 2.0
It seems that the visualStyle does not have any effect on the controls looks.
for example a button looks as if you are using .net 1.0
Any thoughts please?
|
|
|
|
|
There are several ways to get there:
*
* 1.
* call Application.EnableVisualStyles(); just before
* Application.Run(f);
* disadvantages:
* - this method does not exist under .NET 1.0
* - this method has a bug, causing later some ShowDialogs to throw a
* SEHException
* e.g. when using a ContextMenu on a NotifyIcon
*
* 2.
* create a manifest file with a specific name (<myApp>.exe.manifest) and put it
* in the directory containing the exe file itself. The fixed content must be:
*
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<description>.NET control deployment tool</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
*
* 3.
* create an instance of a special class before creating any of the intended
* forms, as in:
*
using (new LP_EnableTheming(true)) {
myForm form=new myForm();
form.CreateControl(); // can be included in myForm constructor !
Application.Run(form);
}
*/
The special class is inspired on the article at http://www.codeproject.com/useritems/ThemingInScope.asp
Luc Pattyn
-- modified at 14:12 Wednesday 27th December, 2006
|
|
|
|
|
Luc Pattyn wrote: The above got dammaged (all less/greater than signs got interpreted; I need an
extra HTML command ?!)
You need to check "Ignore HTML tags in this message" to keep the board from eating them.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|