|
IMHO:
Memory is not allocated for ref parameters, they are like pointers in C++, the caller should allocate the memory.
And, the memory allocated by the out parameter is just like a return value of a function.
Don't forget, the memory allocation behaviour on .NET is well-defined, maybe you need to read something on the Garbage Collector.
I see dumb people
|
|
|
|
|
Hi , i have developed two controls that both are licensed.
QUESTION 1:
say i have :
control A
control B contains control A
both are licensed (using .lic files)
when i add control A to a form, vs.net automagicly adds a licenses.licx with information saying that control A uses a license.
so far so good.
but if i try to add control B to a form , vs.net adds informtion about control B into the licenses.licx as it should , the control appears in designtime..
but when i start , i get an error saying that no valid license could be found for control A!!!
so , why is it that the control can appear in designtime but not in runtime?
and how can i make control B add information about both itself and control A into the licenses.lixs when i add it to a form?
-----------------------------------------------------------------------------------------------
QUESTION 2:
if only one of my controls uses licenses (using .lic files).
say Control A is licensed but control B is not.
Control B contains Control A.
if a user of my controls then adds control B to a form , nothing gets added to the licenses.licx.
so , how can i make one control add license information about another into the licenses.licx???
//Roger
|
|
|
|
|
Hi,
I downloaded .NET Framework 1.1 Final Beta, and I think I installed it. However, I also have to have .NET Framework 1.0 (SP2) in order to have CSC.EXE, etc. running. What do I have to do in Visual Studio .NET to run my custom applications under the .NET Framework 1.1 Final Beta?
I'm hoping to see if .NET Framework 1.1 will solve some bugs I may be encountering, and believe me, I can't wait for either 1.0SP3 or .NET Framework 1.1 to ship.
Thanks,
Arun
|
|
|
|
|
it has to do with the app.cfg file or you can manually add the assemblies of the 1.1 beta instead of the default 1.0 assemblies in the solution explorer I honestly don't know much about the app.cfg file (do a search here about it I think somone wrote an article about it...)but I know that that you can edit this to run the 1.1 beta assemblies instead of the 1.0 ones. Personally I think just chooseing the 1.1 assemblies in the solution explorer would be the easyest.
|
|
|
|
|
How can I open an Explorer Window to a specific directory? I.E. When the user of my app clicks a certain menu item, I want, say "C:\Bin" or something open up. I know you can use ShellExecute, but my personal coding style with .NET is to stay away from DllImport as much as possible.
Thanks in advance.
Jamie Nordmeyer
Portland, Oregon, USA
|
|
|
|
|
Hard to find, isn't it? Fortunately, there is no need to use any DllImport stuff.
You need the Process class located under System.Diagnostics, of all places. It is actually a mixture diagnostic info and other useful functions. Just create a new Process object, and use one of the Start() overloads to run it. There are several options, including the UseShellExecute and StartInfo properties (one of the places where you can set arguments).
Cheers
|
|
|
|
|
Yeah, I definately would never have found that. Why on earth is it in Diagnostics, I wonder? I mean, maybe I'm just 'loco en la cabeza' or something, but to me, the Diagnostics namespace would pretty much just be, oh, I don't know, debugging stuff. I would've thought (and DID think) that something like this would be under the Runtime namespace (since it's something that you're doing at... Runtime).
Well, whatever. Thank you VERY much for pointing me in the right direction.
Jamie Nordmeyer
Portland, Oregon, USA
|
|
|
|
|
In fact, the more I look at it, Diagnostics contains FileVersionInfo, InstanceData, and various Performance and Process related stuff. I suppose someone did not want to call it the Info or Miscellaneous namespace, or something more reasonable. Sounds like a lot of stuff was just thrown-in with the Debug and Trace stuff, where there was a lot of room left over ... but Diagnostics? That makes me think strictly of tools for fixing something.
I wouldn't be surprised if there were scores of long meetings to discuss naming strategies. No doubt the developers/peons knew better, but there's no reasoning with corporate momentum. I'll stop ranting now.
Cheers
-- So many deeply-nested classes, and so little time...
|
|
|
|
|
Ok, here is a scenario. I need to adjust the alpha level of an icon under certain circumstances. Namely, for a disabled control. I only need to adjust the alpha level of the whole image, I don't need an alpha channel or map or anything like that. I don't know, and have been unable to find, any "quick and easy" way of doing this with the .NET framework.
I know GDI+ has the ability to use alpha mapping, but it seems you can only do that with solid or texture brushes. I havn't found any kind of DrawImage or DrawIcon function that takes an alpha value.
Does anyone know a simple way of modifying the alpha value of an image? Something that doesn't require adjusting the color value of every pixel in an image? Thanks much.
|
|
|
|
|
When the image is drawn on the screen, it is essentially painted pixel-by-pixel. So modifying the alpha value of each pixel would be no different from changing the alpha value of the entire image.
The only way I know of editing a picture is one pixel at a time.
Sorry I didn't have the answer you were looking for.
|
|
|
|
|
HI!
Is there an free FTP class library for .NET available?
OR an open source project that write a FTP class?
gicio
|
|
|
|
|
|
Hi!
I'm just learning c# and the .Net stuff and for fun I'm implementing an Explorer fake.
What I would need is the typical flow of calls when doing a drag/drop operation, for example when dragging a node (folder) in the treeview to another node.
I was going through the archive but couldn't find an article. Somebody there with some spare time?
Thanks in advance.
Matthias
In theory, there is no difference between theory and practice. In practice, however, there is.
(unknown author)
|
|
|
|
|
how to develop a class diagram in .NET FRAMEWORK.
|
|
|
|
|
Hi,
I've got a general question concerning .Net development. Say I've written a really cool class library which I use from my application. How can I ensure that a.) the library is not going to be used by somebody different than me? and b.) the code is not going to be decompiled and recompiled into a new library and then sold.
I've heard rumors that the only way to actually avoid decompilation is to scrample the IL Code. But that seems insufficient. Are we back in VB4 ages where everybody could actually take your app and make a new one out of it?
Any hints are greatly appreceated.
regards,
Matthias
In theory, there is no difference between theory and practice. In practice, however, there is.
(unknown author)
|
|
|
|
|
Matthias Steinbart wrote:
a.) the library is not going to be used by somebody different than me?
Don't distribute it
Matthias Steinbart wrote:
b.) the code is not going to be decompiled and recompiled into a new library and then sold
Don't distribute it
You can use an obfuscator but there are truely no guarantees that will prevent decompiling and reverse engineering. Anyone determined enough will break your code.
|
|
|
|
|
No offense, but I guess a lot of people are not going to be happy about this feature. I'm working for a bank where this seems to be the showstopper for a change to the .Net world.
I think those people at MS are smart enough to understand that this problem might cause problems to a lot of people. Why did they do it the way they did?
regards,
Matthias
In theory, there is no difference between theory and practice. In practice, however, there is.
(unknown author)
|
|
|
|
|
Hi,
I'm looking for a decent and cheap class library (if possible clean .Net code, no COM interop) for simple image processing. My requirements:
Must support most of the common image formats.
Should support simple image manipulation routines such as Greyscaling, Resizing, Rotating, Adjusting Brightness, Saturation, etc.
Should support printing.
If anybody can provide a hint. Thanks a lot in advance.
Matthias
In theory, there is no difference between theory and practice. In practice, however, there is.
(unknown author)
|
|
|
|
|
Hi
I have compiled my first .NET programme and need to deploy it to users machine. I know i need to install the .NET framework on each users pc in order to run my programme.
Does anyone know if there are any negative side effects of installing the .NET framework? I have installed the framework on four pcs and with each of them I have experienced some sort of complication after the install.
It seems the framework is interfering with other programmes on the computers. In two of the pcs, our users couldn't use any of their microsoft office applications and we had to uninstall the framework and re-load MS office. In the other two pcs our SW accounting package didn't work anymore.
If anyone knows of any known problems with the framework or can point me to some links or documentation of known problems I would really appreciate it.
Thanks
|
|
|
|
|
There are problems with VB.NET apps due to misleading PIAs. Hopefully, this will be solved in next releases.
Other than that, don't trust MS when they say the .NET run-time is only 20MB+. There are additional pieces of run-time needed in practice depending on the app. For instance, latest MDAC is required if you use ADO.NET for instance, let aside .NET database drivers.
|
|
|
|
|
.S.Rod. wrote:
Other than that, don't trust MS when they say the .NET run-time is only 20MB+.
So it'll be less then?
James
- out of order -
|
|
|
|
|
.S.Rod. wrote:
don't trust MS when they say the .NET run-time is only 20MB+. There are additional pieces of run-time needed in practice depending on the app.
Ah, another problem with someone in marketing.
Nick Parker
Not everything that can be counted counts, and not everything that counts can be counted. - Albert Einstein
|
|
|
|
|
Hi,
I`m having a lot of trouble linking in a standard (or COM based) DLL in the framework (written in C#), has anyone got any ideas to help?
|
|
|
|
|
One of the most important disadvantages of .NET Framework is youth of it. Hence there is not enough open source complementary classes and sources. One of the most important complementary frameworks which .NET needs to have is an OR Mapping tool for mapping persistence data in to classes. Reflection and Attributes in .NET framework make it easier to write such a framework (I’ve written a simple OR mapping framework and it only take 3,000 lines of code!!). Another important issue is distributing persistent objects in multi tire programs. I think it is a good idea to write a flexible framework for publishing persistent data in Object oriented way. Lots of OR mapping tools are available for java (like hibernate and OJB). Hence, I lunched a project in sourceForge for writing such an OR mapping in C# with distribution and remoting support and named the project dotDORM(Distributed OR Mapping). Although the project is not approved , yet I call for arm from any experienced C# developer’s to contribute in this project. If any one wants to know more about the project send an email to me. My email address is Behrang_j@yahoo.co.uk
Regards
Behrang
|
|
|
|
|
Hi..
If I write my program in .NET (such as C# or VB .NET), will it runt on the Mac Platform? or do I have to install extra software?
Thanks in Advance
Andy
|
|
|
|