|
Still holding my breath... starting to turn blue
Cheers, AT
Cogito ergo sum
|
|
|
|
|
Hi,
I have a C# Forms application that hosts an ActivX control. I added a new method to the ActivX control called “GetRange()”. I then deleted the control from the Form, deleted it from the Toolbox and deleted the two interop dll references. I then re added the control. All works fine in debug build but in release mode I get an error...
“AxChart_v2Lib.AxChart_v2' does not contain a definition for 'GetRange' and no extension method 'GetRange' accepting a first argument of type 'AxChart_v2Lib.AxChart_v2' could be found (are you missing a using directive or an assembly reference?)”.
I have noticed that of two interop dll references only one has the new method in it, AxChart_v2Lib does not contain the new method, however Chart_v2Lib does.
Any ideas?
Thanks.
|
|
|
|
|
Looks like you forgot to rebuild one of your libraries with the updated source.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Hi Richard,
Thanks for the reply.
What libraries should I be building?
Thanks.
|
|
|
|
|
I fixed it by deleting the obj folder from my C# project.
Probably only needed to delete the interop dll's from that folder but I deleted the whole folder.
|
|
|
|
|
I have a requirement where I have to playback .ts files.
I used a simple Media Element to implement a media player. When I played the file in .net 4.0, playback was scrambled.
However, on changing platform to .net 3.0, file plays perfectly fine. Even in .net 3.5 it played fine.
Can anyone advice about the cause and solution for the issue.
|
|
|
|
|
revengeoffallen wrote: I used a simple Media Element
"Simple"?
You mean "easy to use"?
revengeoffallen wrote: Can anyone advice about the cause and solution for the issue.
The Framework doesn't care much which decoder is used. It's probably using different versions of the Media Player libraries, and possibly even different decoders. You could start with installing SysInternals' Process Explorer[^] and compare the versions of the libraries loaded and work from there.
Bastard Programmer from Hell
|
|
|
|
|
Hi
I've installed Visual studio 2005 but the user ASPNET hasn't been created. I need this user to configure reporting services.
Note that I installed Visual studio 2005 first followed by SQL Server 2005..
Any help would be appreciated.
Cheers
Berba
|
|
|
|
|
|
thx for the link...got some maintenance to do...
|
|
|
|
|
Hi all,
I hope I put this question in a right category.
I have a base class (let's call MyWindow) in C# which is based from UserControl.
MyWindow is used as a base class in other projects of the same solution, and the projects are written in different languages, some C# and some C++(CLI).
In C#, it's working properly. The Load event of the inheriting control is fired when the control is created in our application in run-time.
But for CLI/C++ projects, the Load event of the inheriting control is never fired.
Can you please give me some information to settle this?
Thanks for your help and time,
Zaw Min Tun
|
|
|
|
|
Have you checked the CLR setting in the projects config?
Cogito ergo sum
|
|
|
|
|
Dear Addy Tas,
Thanks for your reply.
Yes, CLR setting is checked.
But now I found out that it's happening only in some CLI/C++ projects. In other CLI/C++ projects, the load event is fired.
So now I'm trying to pin-point what's wrong with those projects, but still can't get a clue though I spent so many days on it. The projects are actually UserControl projects and we have another function to call such as Init() after creating the control. If I can't pin-point why it's happening, I'm thinking I will move the code lines from the Load-event to that Init() function.
Regards,
Zaw Min Tun
|
|
|
|
|
Hi,
An easy way to find out where it goes wrong is to add console.writeline as spcific places and see if it got there. Than slowly work your way to the line that is giving you problems. Either you find out why you have the issue or just move it to the init method.
Good luck, AT
Cogito ergo sum
|
|
|
|
|
What is Difference b/w layered and tier architecture. Describe related to .net architecture.
|
|
|
|
|
Although you may see these two terms used to refer to each other, there is a real difference between tiered an layered components. Tiered components indicates that there is a physical separation, such as in different assemblies on the same or different servers. Layered architecture refers to logically separating components, so (for instance) you have a data layer, business layer and data access layer. This does not mean that you need to create a separate assembly for layered architecture (although this is common - and means that it works closely with tiered architecture). So, as you can see, tiered architecture refers to the physical separation and the layered architecture refers to the logical separation as a result of a design phase.
In practical terms, tiered architecture is common in enterprise style developments, and this may not suit a small utility application developed at home - but a layered architecture could help here as well.
I have to say that this sounds like an interview question to me - I leave it to you to actually understand what I just typed in, and figure out how it relates to .NET. At least that way, it will demonstrate that you have comprehended the differences.
|
|
|
|
|
Thanks a lot
|
|
|
|
|
No problem. Glad to help.
|
|
|
|
|
Hi to all,
I have a scenario: We have a functionality in which we are sending mails through outlook. Now in control panel we do have an option to choose profile(from which profile mail will be sent.).
We can select the option "Prompt for a profile to be used".
My question is: Can we check that the user has selected the above option or not through coding?
cheers,
sneha
|
|
|
|
|
Probably. Make a snapshot of the registry, toggle the setting, make another snapshot and compare the two. There are some tools like RegShot[^] available on the internet that could help there.
Bastard Programmer from Hell
|
|
|
|
|
Hello,
What i have is: short[],byte[] arrays.
Those arrays hold the raw data of a monochrome image(8-bit or 16-bit).
I want to create TIFF files using those arrays,how can i do this?
Thanks
|
|
|
|
|
Ouch. This is a large task. Effectively you are going to have to recreate your array following the TIFF standards, and create a TIFF format file. This is not an easy task, and will require you to recreate the TIFF format on your own.
|
|
|
|
|
There is a constructor Bitmap(Int32, Int32, Int32, PixelFormat, IntPtr) , where the last parameter points to an array of pixel data in one of the known formats, so if your image data is just pixels (akin a bmp file), you could create a Bitmap , then Save it in the format of your choice. Make sure to read the remarks in MSDN!
|
|
|
|
|
I have a .NET 1.1 C# windows application that needs to pass an ADO.NET dataset object to a .NET 3.5 web service.
When I run it I get an unhandled XML Exception occuring in system.xml.dll. System Error.
I suspect that it is due to the difference in .NET frameworks between the windows app and the web service, but I could be mistaken.
Is anyone able to shed any light on this most horrible of problems?
|
|
|
|
|
Hi All,
I've been looking into AOP lately for a project and was wondering what the general consensus was in .NET land on this issue?
There are a few different approaches to this one can take, seems that the "pure" idea of AOP is performing compiler weaving with tools such as PoitSharp. However there isn't any budget for things like this so I started looking at LinFu which uses Cecil from the Mono project.
Having not implemented this before I'm interested in getting some info on real world experiences.
What kind of issues do we face in terms of debugging for instance? Also I wondering what the performance hits are like when using lots of proxies etc ...
Cheers,
Jammer
|
|
|
|