|
well, I have a .net assembly(FooAssembly) with a class(FooClass).
there is a delegate(event) inside FooClass and related eventArgs class.
I need to use this assembly in VB6, so I first create an interface for the FooClass, but for the delegate, I have no idea how to realize it.
anybody has any idea
Regards,
unruledboy@hotmail.com
|
|
|
|
|
Hello,
After spending eight hours on google, tryin' to find it I came to the conclusion that it only is possible using VBScript. BUT I really really want to realise it in C# or VB.net and it should be compatible with Server 2000.
Does anyone ever accomplished it in .NET ? Maybe with the help of 3rd party DLL?
Please help,
Eric
|
|
|
|
|
Hi Guys ,
I'm a s/w engineer working in Honeywell . I am a fresher and have some experience working in vc++,mfc,COM/DCOM and other microsoft technologies. I also have read some books on .NET and C# , but I found most of them (all) not of much help (I would rather use MSDN ). Now all the new development tht I would be doing would be in .NET . So can anyone suggest a good book in .NET and C# which would go into detail and would be like a complete bible instead of jst explaining the APIs .
Any help would be appreciated .
Amey
|
|
|
|
|
|
|
The best book is Inside C# second edition by Tom Archer ( who is a CP regular and now an MVP ). It goes into the sort of detail you're looking for, it's my number one C# reference.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I would second this suggestion, it's a great book!
|
|
|
|
|
Thnx guys , Ur help means a lot to me !
|
|
|
|
|
Jesse Liberty - Programming C# is pretty good at covering the ins and outs of the C# language pretty concisely. It's now in its 4th edition.
Kevin
|
|
|
|
|
I agree on this as well. It's published by O'Reilly. I also liked "Programming ASP.NET" by Jesse Liberty & Dan Hurwitz (O'Reilly as well). "ASP.NET 1.1 Insider Solutions" isn't so bad either - a bunch of tips and tricks. It's by Alex Homer, Dan Kent, Dave Sussman, and Dan Wahlin (published by SAMS).
Dirk Watkins
|
|
|
|
|
drkwtkns wrote:
I also liked "Programming ASP.NET" by Jesse Liberty & Dan Hurwitz (O'Reilly as well).
Yes, I have that too.
Kevin
|
|
|
|
|
Hello everybody,
I'm working on a share point site. I want create a web part containing a link which will point to my existing ASP.NET application. Currently i'm specifying the url of aspx page manually. Similarly to return back to share point site from asp.net page i'm specifying url of the share point site maually in aspx page.
Application is working fine on my local machine. But if i've to deploy it on other server; how will i deploy the sharepoint site along with my existing asp.net application?
If anyone knows the solution plz reply me.
Thanks.
|
|
|
|
|
Me and partners are developing an aplication using Mono. This is a job we must do for our university.
Please, if anybody could help us, I want to know if there is a library that has some methods to directly execute Unix shell's commands.
Thank you!
Sebastian Salvo.-
|
|
|
|
|
Does your shell (bash, ksh..) take command line arguments that run shell commands? For example, Windows' command shell (cmd.exe) has a /C parameter that does it.. If your's does, you can spawn the shell using the Process.Start method, passing the command as a command line argument. You can redirect standard output and error, so you can capture the output as well.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
RE: ListView / ImageList SmallIcons failing to load properly
The 16x16 icons do not display as well as they do in explorer.
It seems to me that the 32x32 icon stored is being mapped to the 16x16 size rather than the ImageList loading the 16x16 icon stored in the same .ICO.
I have a program that simply loads the listView either from embedded resources or directly from the directory that I used to build the embedded resource.
I view that directory (using explorer) side by side with the ListView showing List or Small Icons.
The directory contains about 30 of the icons from supplied from visual studio ... so we are not using any special icons.
When I edit the icons, at least a 32x32 and a 16x16 image is displayed and edited (the 16bit being mostly 4bit color depth. So both Small and Large sizes are supplied in each .ICO file.
Yet the Small Icon display results in the ListView are not the same as by explorer. Again, it appears that they are the 32x32 simply compressed to 16x16 ... not the better looking 16x16 images stored in each .ICO file.
How can I insure that the 16x16 (4bit depth) images are being loaded correctly into the ImageList supplied to SmallImageList?
The follow code snippets are simply the Reset and Add parts of the code. Each icon is being passed to the z_LisAdd method, either right from the file
(new Icon(<filename>) or from the resource enumerator value property.
=======================================================================
ListView zxLis;
ImageList zxPics1;
ImageList zxPics2;
private void z_LisReset()
{
zxLis.Clear();
if (zxPics1 != null) zxPics1.Dispose();
if (zxPics2 != null) zxPics2.Dispose();
zxPics1 = new ImageList();
zxPics2 = new ImageList();
zxPics1.ImageSize = new Size(16,16);
zxPics1.ColorDepth = ColorDepth.Depth4Bit;
zxPics2.ImageSize = new Size(32,32);
zxPics2.ColorDepth = ColorDepth.Depth16Bit;
zxLis.LargeImageList = zxPics2;
zxLis.SmallImageList = zxPics1;
}
private void z_LisAdd(string theText, Icon theIcon)
{
IntPtr iIcon = theIcon.Handle;
zxPics1.Images.Add(theIcon);
zxPics2.Images.Add(theIcon);
zxLis.Items.Add(theText, zxPics1.Images.Count - 1);
}
=======================================================================
|
|
|
|
|
Ok, I'll answer my own silly question (see below ... and pardon my silly confusion).
The answer is: grab the size you want at the stream input level.
I was thinking (wishfull thinking) that there would be an "implicit" proper conversion to the ImageList.
private void z_LoadFromResources()
{
System.Drawing.Icon xIcon16 = null;
System.Drawing.Icon xIcon32 = null;
zxReader = new System.Resources.ResourceReader(zxAsm.GetManifestResourceStream("ResourceViewer.Any.resources"));
zxEnum = zxReader.GetEnumerator();
z_LisReset();
FileInfo[] xFiles = new DirectoryInfo(Vals.IconsFromPath).GetFiles("*.ico");
while (zxEnum.MoveNext())
{
string sKey = zxEnum.Key.ToString();
xIcon16 = new Icon((System.Drawing.Icon)zxEnum.Value, 16, 16);
xIcon32 = new Icon((System.Drawing.Icon)zxEnum.Value, 32, 32);
z_LisAdd(sKey, xIcon16, xIcon32);
}
zxLis.Refresh();
}
private void z_LoadFromFolder()
{
System.Drawing.Icon xIcon16 = null;
System.Drawing.Icon xIcon32 = null;
z_LisReset();
FileInfo[] xFiles = new DirectoryInfo(Vals.IconsFromPath).GetFiles("*.ico");
foreach (FileInfo xFile in xFiles)
{
xIcon16 = new Icon(xFile.OpenRead(), 16, 16);
xIcon32 = new Icon(xFile.OpenRead(), 32, 32);
string sKey = xFile.Name;
z_LisAdd(sKey, xIcon16, xIcon32);
}
zxLis.Refresh();
}
private void z_LisAdd(string theText, Icon theIcon16, Icon theIcon32)
{
zxPics2.Images.Add(theIcon32);
zxPics1.Images.Add(theIcon16);
zxLis.Items.Add(theText, zxPics1.Images.Count - 1);
}
public static void MakeResources()
{
FileInfo[] xFiles = new DirectoryInfo(Vals.IconsFromPath).GetFiles("*.ico");
ResourceWriter xOut = new ResourceWriter(Vals.MakeToPath);
foreach (FileInfo xFile in xFiles)
{
xOut.AddResource(xFile.Name, new Icon(xFile.FullName));
}
xOut.Close();
}
|
|
|
|
|
I've developed a simple application including a server, a client and two remote objects. This application is built on tcp.
I need a monitoring application for this .NET remoting server. This application will display the status of different server remoting objects.
How to implement this server monitoring tool or application???
|
|
|
|
|
I need a little explanation on .net compilers. Here's what I know (or at least, what I think I know):
- C# code runs only in the .net runtime environment
- Managed C++ code runs only in the .net runtime environment
- Standard C++ code can still be run outside of the environment (maybe?)
- As far as I can tell, Visual Basic only runs in the runtime environment
Regardless of how much of that is right, here's the problem... I need to write some software for an audience that is less than tech-savvy. The odds are very good that they do not have the .net framework installed and can't figure out how. Some likely also run Windows 98.
I am using Visual Studio 2005. The program will be very easy to write in Visual C# or Visual Basic, but very hard in Visual C++. Is the only way for me to write an actual, compiled executable that doesn't need the .net framework to go dig out my old copy of Visual Basic 6?
Please help.
Thanks
|
|
|
|
|
actually, VB.NET runs only on the framework, but VB6 is outside...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Basically you are right. But you could build a setup containing your app and the .Net framework. This way your audience wouldn't have the problem of having to install it seperately.
|
|
|
|
|
Alright... just reinstalled VB6.
Thanks for the help!
|
|
|
|
|
|
Yes, but there aren't many options anymore for those of us who want to avoid an intermediate compiler.
I've been poking around in Visual Studio... I realized I don't know how to include the .net framework in a setup file. If anyone can point me in the right direction, I'd appreciate it.
|
|
|
|
|
hi,
Can any one help me how I can parse an SOAP response.IS their any API in .net that can parse SOAP response.
Please give me some links where I can find this.
Thanking in advace,
Satish.
|
|
|
|
|
If you added a web reference to your project then the call would just be like calling a function, if you are manually calling a web service or something else communicating back with SOAP, I think you might have to manually do that. It is in an XML/HTML format, so it should not be that hard to parse out with your preferred XML parser. What are you trying to do with it?
Steve Maier, MCSD MCAD
|
|
|
|