|
Hello again,
I just tried to download the ofiicial Microsoft PE/COFF specification. The .doc and .pdf versions don't exist, you'll only get a "Sorry, the page you requested.........".
But the compressed .doc (pecoffw.exe) is still there
|
|
|
|
|
|
|
http://www.dotnetspider.com/technology/
This site offers C# tutorials for beginners. C# and .Net explained in simple ENglish and ste by step.
|
|
|
|
|
Well I had code break on a compiled version of a Visual Basic .net application that was in use. Here is the story.
Environment: Windows network using Windows 2000 advanced Servers and Windows 2000 workstation Service Pack 4. .net Applications written with .net framework 1.1
The other day we had a series of security upgrades deployed on our network. As soon as that happened a Visual Basic .net application in use for some time developed numerous problems and was generating error messages all over the place. On workstations that had earlier versions of the .net framework, those versions had been removed and only the latest version which had been installed during the security upgrades remained.
I looked at the source code of two applications written in vb.net and found the following problem. All Catch statements that worked previously had an error in the source code when I examined it. The basic Catch statement Catch ex as exception no longer was valid. the squiggly blue line appeared under the ex. To rectify the problem I was required to type:
Catch ex as System.exception
Obviously the reference for System had always been present in the application. Just as an experiment I added Imports System to some of the class modules, but I was still required to type system.exception where ever a Catch statement was used in the apps that existed prior to the network upgrades. If I create a new project however, catch ex as exception statement doesn't have an error and the code compiles with no need to use the expanded system.exception. But in the .net apps that were written before the upgrade that code errors 100% of the time on catch statements and I must now type system.exception in all my catch statements.
I have tried deleting the references and re-entering them and all sorts of other tricks. I am pretty sure that those older apps are looking for a different version of the framework that is no longer there.
I could just leave all the syntax changed to Catch ex as system.exception but I am worried about the implications of what has happened to cause this code to break, and would sure like to know how to fix the problem without having to change code that shouldn't be broken.
Any thoughts or suggestions would be greatly appreciated.
|
|
|
|
|
I have a large enterprise application. It involves 50 - 100 seperate .exes and several thousand .dlls. We want to group the .exes in their own directories with the .dlls they use. There are about 100 base .dlls that are commonly used. We would like to keep these in a single directory and let all the other apps use them.
This does not appear to be possible. We can place them in the Global Assembly cache, but they have to be strongly named. If I understand correctly, using strong names will require me to rebuild all the apps that reference them each time we change one of the base .dlls.
The ony other alternative seems to be to put a copy of each .dll used by an application in the same directory as the application. This causes us to have many locations to keep synchronized, or keep all the .dlls and .exes in the sam directory.
Is there a better way?? Am I missing something here?
Thanks for any help I receive.
|
|
|
|
|
You might be able to load all those dlls manually at start up.
Just use Assemlby.Load, or you might register event hanlder for AppDomain.AssemblyResolve and then load the assembly if it can't be found thru normal lookup.
|
|
|
|
|
You can also setup different paths for AppDomain.RelativeSearchPath or AppDomain.DynamicDirectory
|
|
|
|
|
Hey
I have a .NET remote server application I want to access from a smart device(.NET compact framework). Is there any other way, than webservices to access this remote server? I can't find the .NET remote for the compact framework.....
best regards
Rasmus
|
|
|
|
|
Hi All
I have a MFC client wich is a part of big 3-tier application. Recently, I've begun to convert some parts of it into managed code.
By that, I mean that I rewrote some components of the app using C# and imported them into my app as a COM components (including the communication with the server wich I changed from COM+ to .Net remoring).
It works fine, but when I close the application I get exception in call to corExitProcess().
Does anybody know something about that?
Do I have to shut the CLR in some way?
thanks!
|
|
|
|
|
I suspect you're violating some condition that the CLR is relying on.
I suggest running your code using CLR SPY[^] and working from there.
|
|
|
|
|
Have any ideas what can it be?
i've tried the CLR Spy and it doesnt show me any errors.
thanks
|
|
|
|
|
Anonymous wrote:
It works fine, but when I close the application I get exception in call to corExitProcess().
A shot in the dark but it sounds as if your unmanaged code hasn't detached from the managed process thread. Have you tried catching the exception?
- Nick Parker My Blog
|
|
|
|
|
I'm developing a UserControl. It would be a lot easier if the UserControl could act as a container for forms except for that "Cannot add a top level control to a control" thing...
Right now I can add 'simulated' forms on the fly that are actally panels. It works OK but they don't look and act EXACTLY like a form.
It would REALLY be nice if my UserControl would act like an MDI form so that I could add child forms to it on the fly...
I guess you'd be able to add a MainMenu too - just think if you could just drop an MDI form on top of your UserControl. Don't laugh - I'll bet some guru out there has figured this out...
Any suggestions?
JerryT
|
|
|
|
|
Dare I ask why you don't use Form or inherit Form?
|
|
|
|
|
Hello All,
I need safe functions like "FloatToInt32Bits" and "Int32BitsToFloat",
equivalent of the "BitConverter.DoubleToInt64Bits()" and
"BitConverter.Int64BitsToDouble()"
Any help?
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
I'm learning ADO.NET , and trying to bind a text control to a dataset.
when program starts textbox shows 1st record OK , but as I execute
this.BindingContext[dataSet11.Orders].Position+=1;
the textbox doesnt change , although the datagrid row indicator does in the datagrid control.
<br />
<br />
private void frmChild_Load(object sender, System.EventArgs e)<br />
{<br />
sqlDataAdapter1.Fill(dataSet11.Orders);<br />
}<br />
<br />
private void button1_Click(object sender, System.EventArgs e)<br />
{<br />
this.BindingContext[dataSet11.Orders].Position+=1;<br />
Any ideas ????
.netter
|
|
|
|
|
How about a binding manager or currency manager?
|
|
|
|
|
I am trying to control the sort of DateTime values in a DataGrid. I have loaded DateTime's into a DataGridTextBoxColumn and want to control how they are sorted when the user click's the column header with AllowSorting = true. I can't not figure out which object is controlling the compare between two row values. I know that the DataGrids DefaultView is involved, but setting the views sort just gives me the ASCII sort, not good for DateTimes.
I have searched endlessly on the Web and MSDN, but no success...can anyone help?
|
|
|
|
|
Anyone else notice that something like:
for(double a=0.0; a<=7.11; a=a+0.01)
{
for(double b=0.0; b<=7.11; b=b+0.01)
{
if( 7.11==(a+b) )
{
// Something interesting!
}
}
}
causes floating point errors? That is, the variable "a" will go from say .79 to .800000001?
Don't try using Console.WriteLine() as it will print the text as .80 but use the debugger's quick watch. And I know the internal variable is .80000001 because the "if" fails to ever catch.
I'm using a PIII and have tested for the Intel division floating pointing error and there is none. Using VS.Net 2003, but did try equivalent code in VS 6.0 and it worked fine.
|
|
|
|
|
I was going to suggest that you should use
Console.WriteLine(a.ToString("r"));
As this would get the round trip value which should display more accurately. But I see the same problem.
Thinking back to my lectures at Uni' (10 years ago now) I recall a C/C++ lecturer suggesting the best way to check for equality in floating point numbers is along these lines (in C#):
public class DoubleEquality
{
private const MAX_ERROR = 0.0001;
public static Equals(double a, double b)
{
if (Math.abs(a-b) < MAX_ERROR)
return true;
return false;
}
}
You can set MAX_ERROR to be what ever level of precision you need.
EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
"Get in touch with your Inner Capitalist - I wish you much success!" -- Christopher Duncan, Lounge 9-Feb-2004
|
|
|
|
|
|
That just shows how much floating point stuff I've done in .NET.
Thanks for the tip.
EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
"Get in touch with your Inner Capitalist - I wish you much success!" -- Christopher Duncan, Lounge 9-Feb-2004
|
|
|
|
|
|
Hey
I'm doing a project in which I'm using j# browser controls. Now I have a need to get some data from the database(SQL). But as j# browser controls runs on the client machine, how can I manage to connect to the database. The application must be on the internet.
I have some rough ideas as using "XMlHTTP" active x component, SOAP technology, using httpUrl from java.net class.....
I didnt study all these cases yet, also I'm not sure which will work efficiently, as I have to deal with very large database.
Will anyone please help me.......
Regards...
|
|
|
|