|
If you don't need the Minimize, Maximize and Help Button simply set the Form.ControlBox property false.
www.troschuetz.de
|
|
|
|
|
HI,
i got the Tlbimp.exe at path
C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin\Tlbimp.exe
I have my Atl(COM) DLL at f:\ComDll.dll
this dll is written by me in VC++ (ATL COM wizard) it has some functions i want to use these functions in my ASP.Net net web page.
How can i Import it or use it in ASP.Net using C#.
Plz reply me urgent
at zahid_ash@hotmail.com
or
zahid_ash@yahoo.com
thanx
Regards.
|
|
|
|
|
hi,
You can easily bind com components using vs.net sdk. Go to reference folder of your project and right click to get the Add reference option. Choose that option and choose com tab. Then you can browse and locate the directry which contain your dll.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
i did that all is fine upto this.
But now in ASP.Net i Add a Button under this button Event i want to use the Function of that DLL.
say function is Test(.. ,..),, and Class is MyClass in COM DLL.
How can i use it in C# , Means how can i create the Object of that class to call the Function.
the name shown is refernce folder after adding refernce is COMDLLLib , and name is Interop.COMDLLLib.
what thew way to create object and call function
thanx
Regards.
|
|
|
|
|
hi,
Refer your dll on namespace reference location.
Like
using system;
using yourdll;
etc.
then
try to create instance on your event handler location.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
hi i m doing this but
the arror ocuur " the type or name sapce could not found"
y this is happening
thanx
Regards.
|
|
|
|
|
hi,
Otherwise would u like to try tlbimp.exe. if so i will explain.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
i tried it , but it not worked,
i added refernce from Add refernce , it is shown in refrence tree as COMDLLLib
and it also copy the dll to bin folder with name interop.COMDLL.dll.
but i cant create the object ,
plz send me any sample
thanx
Regards.
|
|
|
|
|
hi,
C:\>TLBIMP.EXE 'location of your .dll file and filename' /out: 'name of your new dll'
for eg. i am trying to import a windows .dll file into managed assembly. and the name of my new assembly and location respectively Mydll.dll and C drive
C:\>TLBIMP.EXE C:\WINDOWS\system32\webv.dll /out:mydll.dll
So my final .dll( managed assembly) wil be there in C drive.;)
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Sorry to disturb u again and again.
I did it as u said , i got finaly C:\SockDll.dll
But now how can i make its object and call mehtods uisng C# code.
Bcoz i m new to C3 and ASP.NEt
thanx
Regards.
|
|
|
|
|
hi,
Nevar a problem.
I think i already told you about reference forlder.
Right click the reference folder which is there in your asp.net application. And locate the .dll file.
After that, if you try to view the content of reference folder you will came to know u'r dll file is there in that list.
check this much and get back to me.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
yes i did it.
now SockDll is refernce folder of ASP.NET.
but i not know how create its object now unber a button event and call it method.
thanx
Regards.
|
|
|
|
|
hi,
In the namespace declaration section try to call your dll file.
like
using System;
using name of your dll;
then you will get all avilable types in button click.
Eg:
using System;
using SockDll;
private void button_clcik(object sender, System.EventArgs e)
{
SockDll.MyClass Obj=new SockDll.MyClass();
Obj.Method();
}
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
but on writing Using SockDll;
it gives error
c:\inetpub\wwwroot\WebApplication2\WebForm1.aspx.cs(2): The type or namespace name 'SockDll' could not be found (are you missing a using directive or an assembly reference?)
y it is ???
Regards.
|
|
|
|
|
tell me your .dll is not there in reference folder.
The error is because that perticular dll is there in reference folder.
please check that.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
do u have MSN ID plz come there thay may save our boths time and i can solve it. plz come online
mine is zahid_ash@hotmail.com
Refernce (Tree node) folder has the DLL
thanx
Regards.
|
|
|
|
|
Hi all,
I have a datatable, which I want to query by using LIKE operator like we do in SQL
SQL
Select * from Tab1 where col1 LIKE '%xyz%'
C#
datatable dt
dt.select(...)
Is it possible in C#. Please advice
Thanks
Ruchi
|
|
|
|
|
Yes, it is possible. Check here[^] for an explanation and examples.
Paul Lyons, CCPL Certified Code Project Lurker
|
|
|
|
|
dear paul,
please re-check whether it is working in table select.
dataset.Table[0].Select("Disp==%sdsd%");
(forget abt the above syntax).
It is not working for me..
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Paul,
I know how to use Select with DataTable. I couldn't find any example for LIKE operator from the link that you specified.
Could you please point out specific example out of that link.
Thanks
Ruchi
|
|
|
|
|
Hi, I'm trying to connect to my tv tunner but I don't get any sound. It doesn't allow me to change Audiosource (it's always at SPDIF). There's no way to do it. I have tested my app and the Capture application sample in other computers, with exactly the same result: good video but no sound.
What Am I doing wrong? Neither sample app works to me and my friends...
Thank you
|
|
|
|
|
Well, I've solved it manually by changing settings at the Video Crossbar properties page.
How can I do it programatically?
Thx
|
|
|
|
|
Hi,
In MFC we had a very nice feature where in we can split the form. Can we do the same thing here. I am designing something like Visual Studio, with tool box on one side and a form (actually a plain user control) where in the tools can be dragged and dropped on the form. But when the forms size is increased, as it is a single view we cannot view the tool box. I was hoping to make something so that the tool box and a property grid stay where they are and the form can be resized in a different view.
I may not have explained few things clearly. If you need more info, pls do write and i will try to explain as much as possible. In short its a visual studio, where in i want the tool box at one side not disappear from screen when the design forms size is increased .
Thank you all.
|
|
|
|
|
Hi!
A split form can be achieved with a Splitter (thus the name ) control.
For example, if you add a TreeView , a Splitter and a ListView to your form and set the Dock property of the TreeView and Splitter to Left and the ListView 's Dock to Fill then you get the window layout of Windows Explorer.
You might have to play with the order of your controls so that the splitter behaves correctly.
Regards,
mav
|
|
|
|
|
Hi,
Thanks for the reply mav. I have seen examples with splitter and they all deal only with list view and tree view. I tried to use it with other controls (some user controls ) but was not successful. Please let me know if it can be done with controls other than listcontrol, tree control.
Thanks
|
|
|
|