|
Deapti, Tell me what is your doubt and what you want to know ?.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
I’m having trouble finding a clear answer to my question regarding visual inheritance and MDI children. I have made several dialog style forms/apps which were derived from a master template form (dll) – that works great, but I want to take it a step further. My next step was to create a MDI style application using visual inheritance for each child window. Just for information - I’m writing this in VS ver7 (C# base).
So, some questions:
1. Can I make a MDI application into which each child is a based on a master “template” form (dll). My hope is that each child would be its own DLL – easing future modifications and upgrades. Can this be done with .net’s virtual inheritance?
2. If this is possible, is there a way I can dynamically add new children DLL’s (which are visually derived from a master template form) to the MDI application without recompiling the base MDI application (that would be my dream)? Each new child would add new functionality to the core application – but maintain the same base “look”. Obviously this would take some coding, but is this possible?
If you have some ideas, experience, or know of any examples to either of my questions – please feel free to share your ideas.
|
|
|
|
|
You Wrote:
Can I make a MDI application into which each child is a based on a master “template” form (dll).
Sure you can make a common MDI for you child which is inherited from a common .dll.
You Wrote:
My hope is that each child would be its own DLL – easing future modifications and upgrades. Can this be done with .net’s virtual inheritance?
See once you created an inherited form. I mean child form you will get all the feature of your parent form. And this child form is entirly separate in nature with your parent. And you must care about one thing. See the modifiers of controls( members of your template).
You wrote
If this is possible, is there a way I can dynamically add new children DLL’s (which are visually derived from a master template form) to the MDI application without recompiling the base MDI application (that would be my dream)? Each new child would add new functionality to the core application – but maintain the same base “look”. Obviously this would take some coding, but is this possible?
See i don't know why you want to recompile the application. I mean the base. Are u going to make any updation after inheriting the form. Do you want to reflect it back to your child form ?
Sreejith Nair
[ My Articles ]
|
|
|
|
|
Hi,
Could Someone tell me with what version of the windows os is the .net framework already installed on??
gavirj
|
|
|
|
|
|
Thanks for the speedy responses - much appreciated.
What is IIRC??
So does Microsoft plan to include it in all their operating systems or will it always be a seperate distributable??
The reason Im asking is because I have an activex component that I would like to convert to .net but most of the people that would use it mostly only have 56k modems and to ask them to download a 20mb framework is a bit too much to ask.
gavirj
|
|
|
|
|
gavinJeffrey wrote:
What is IIRC??
If I Recall Correctly
gavinJeffrey wrote:
So does Microsoft plan to include it in all their operating systems or will it always be a seperate distributable??
Future versions of windows will include the .NET Framework. However if you will probably always need to supply a separate redistributable for people that are not using that OS, or if you are developing on a newer version of the framework. e.g. I would guess that if you were to develop something with .NET 2.0 for use on Windows Server 2003 you would still have to supply the 2.0 Framework (unless MS decide to include new versions of the framework in service packs)
Do you want to know more?
Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!
|
|
|
|
|
|
Hi,
I have an assembly that I have run tlbexp.exe on, to create a Type
Library to be used by a COM Client. The type library contains two
interfaces and two coclasses.
The COM Client was already using a COM version (compiled from an IDL,
and stored with a DLL) of these interfaces and coclasses, with
specific GUIDs and ProgIDs. I have re-written the interfaces and
classes in C# so that the exported type library matches that of the
existing COM (except one part which i will come to later).
What I intend to do is to simply unregister the existing COM version
off the "COM machine", and register the Type Library created by
tlbexp.exe. I require the COM Client continue to run without having
to recompile, however, if needed, further building (using the newly
exported type library) would also be required.
Currently, i have got as far as allowing the COM client to run OK with
the new type library, however, when i try and build the COM Client, it
complains that it cannot load a DLL. I was of the opinion that this
may be something to do with the fact that the older COM version of the
interfaces and classes where contained in a DLL, and now that DLL is
no longer registered.
Also, a smaller point which concerned me. When the tlbexp.exe is run
on an assembly, all the enumerations values are prefixed with the
enumeration name and an underscore. Reading the MSDN documentation it
states that this is deliberate behaviour to ensure names are unique
(see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcontlbexptypeconversion.asp).
So, i have two questions (finally!)
1. Are there any suggestions to why I am getting a "Unable to Load
DLL" error when trying to build the COM Client, and are there any
ideas of how to overcome this?
2. Is there any way to alter the behaviour of the tlbexp.exe to stop
it prefixing enumeration values?
Thanks,
Jamie.
|
|
|
|
|
Hi all,
i'm trying to write some Socket code in C#. I'm still learning all the intricacies of C#, and have come across something I'm not sure how to do. It may have been asked here before but I've failed to find any info on, so any help would be appreciated.
Socket.Send accepts a byte []. If I want to send an "int" which is the length of the bytes that I will be sending next, is there a conversion function from "int" to "byte []"?
The same goes for Socket.Receive. Is there a function that converts a "byte []" into an "int"?
Thanx
If there's one thing I've learned, it's that life is one crushing defeat after another until you just wish Flanders was dead. - Homer Simpson
|
|
|
|
|
you could try this -
byte[] myByteArray = (byte[])intValue;
Gavirj
|
|
|
|
|
Gavin,
that didn't work. I get the following error :
(136): Cannot convert type 'int' to 'byte[]'
Bute Nnamdi helped me, I needed to use the BitConverter class and it has a ToInt32 and GetBytes functions.
If there's one thing I've learned, it's that life is one crushing defeat after another until you just wish Flanders was dead. - Homer Simpson
|
|
|
|
|
The BitConverter class does what your looking for.
|
|
|
|
|
Int32 is a 32 bit integer.
32 / 8 = 4
therefore Int32 is 4 bytes long.
and the code you have there is correct for converting the byte array to an int, so im presuming you mean Int32 -> byte[]. for that, use:
int myInt = 5;<br />
byte[] bytes = BitConverter.GetBytes(myInt);
|
|
|
|
|
Hi Nnamdi,
just as I clicked send, I noticed the GetBytes function in BitConverter which I didn't see before, so I deleted my old message and was just about to write a thank you for your help.
<edit>
I think it's too early in the day. I can't believe I thought that a byte was 4-bits and not 8. I seriously need some sleep I think.
Thanx again
Jubjub
If there's one thing I've learned, it's that life is one crushing defeat after another until you just wish Flanders was dead. - Homer Simpson
|
|
|
|
|
Oh, I got you. That actually does not come with .Net. Just the ProgressBar class. You would actually have to make it on your own, or look for some free source code with that kind of control. If anything you might be able to just use a ProgressBar, and put a PictureBox on top of it that increases its Horizontal size everytime the ProgressBar increments. The PictureBox would have to be white of course, and you would have to experiment to see how much to increase the size for each increment, based on the size of the ProgressBar.
|
|
|
|
|
Thanks, I'll see what I can get on the net...
Greets
|
|
|
|
|
I have a C# console application that makes a reference to a managed c++ dll. This managed c++ dll is in the same solution. I have added the reference by clicking add reference, clicking on the project tab and selecting the managed c++ dll project. When I build this application it is ok, but when the console is loading, I get a System.IO.FileNotFoundException, cannot find the managed c++ dll or one of its dependencies. I am clueless, since the managed c++ dll has also been copied to the same directory as the console application .exe.
|
|
|
|
|
Did you by any chance change the output name of the managed c++ dll? Because I changed the output name of a dll in my solution with C#2005 and got the same exception when the application loaded.
|
|
|
|
|
Hello,
I have a C# project that generate an executable a.exe
I would like to create a stripped down version of this program using a compilation flag. The executable should have a different name, say b.exe
What is the best setup to get to this result?
Thanks!
|
|
|
|
|
hello
i write a smtp client winform (using socket connect to smtp server at port 25),and deploy it to iis by NTD (no-touch deployment),i can launch the form from the client machine,when i want to connect to the smtp server,the security exception is thrown,i know that i have not assigned the socket permission in the client side to the downloaded assembly,but i don't know how to do that,who can give me a step-by-step instruction.
any help will be appreciated.
|
|
|
|
|
Does anyone know a .net lib to manage AVI files?
|
|
|
|
|
Hi,
there are simple windows API functions for reading and writing AVI files, so you can use .Net wrapper (here is article about this: http://www.codeproject.com/cs/media/aviFileWrapper.asp[^], but if you want more advanced features, you'll probably have to use DirectShow (this may be problem, because managed directx, doesn't include directshow) ..
|
|
|
|
|
Thanks for the tip. I'll look into it.
|
|
|
|
|
Hello all,
I have been searching the site for a datagrid control that allows for grouping in a hierarchy style like Outlook. One that allows you to compress and expand groups. I have seen a couple of example that were close but they were all in VB and that is on my list for one of the languages to learn. So could you let me know if you have seen a post for one in C# or where i could find one.
Thanks
|
|
|
|