Sign in to follow this  
Followers 0
Kharlog

Problem With Vs2005

19 posts in this topic

I've recently updated to VS2005 from VS2003. I was able to use AutoItX with VS2003 but when i try to use it in VS2005 the program crashes in runtime. It even crashes if i just create an object (AutoItX3Lib.AutoItX3 au3 = new AutoItX3Lib.AutoItX3() for example) of it. I didn't have any problems with VS2003. I'm using AutoItX as interop (references -> add). The assembly reference settings are defaults. Any idea what's going on?

Share this post


Link to post
Share on other sites



Is there actually someone that can get AutoItX work with VS2005?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Ok, i investigated this a bit further.

I wrote a C# code:

using System;
using System.Runtime.InteropServices;
using System.Security.Permissions;



class autoitxtest
{
  [DllImport("AutoItX3.dll", EntryPoint = "AU3_PixelGetColor")]
  public static extern long PixelGetColor(long x, long y);

  public static void Main()
  {
    Console.WriteLine(PixelGetColor(400, 400));
  }
}

This works nicely (prints the color value) with Sharpdevelop 1.1 and VS2003. But when i compile this with Sharpdevelop 2 or VS2005 i get a runtime error (exception):

System.BadImageFormatException was unhandled

Message="An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"

Source="testi4"

StackTrace:

at autoitxtest.PixelGetColor(Int64 x, Int64 y)

at autoitxtest.Main() in D:\ohjelmointi\testi4\testi4\CodeFile1.cs:line 22

at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)

at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ThreadHelper.ThreadStart()

So AutoItX doesn't work with C# 2.0. At least it doesn't work the same way it used to work with version 1. Anyway, i need those new features C# 2.0 has. Can I get AutoItX to work with C# 2.0 somehow?

[edit] oh, i forgot to mention the AutoItX version i used. It's 3.1.1.0. [/edit]

Edited by Kharlog

Share this post


Link to post
Share on other sites

I tested the betaversion 3.1.0.11. I got same results.

Share this post


Link to post
Share on other sites

Just a long shot, but:

at autoitxtest.PixelGetColor(Int64 x, Int64 y)

Could it be that the NET library as defined a long to 64bit and AutoItX uses 32?

Share this post


Link to post
Share on other sites

I read \AutoItX\StandardDLL\VC6\AutoIt3.h. There are all the exported functions listed. From that file:

AU3_API long WINAPI AU3_PixelGetColor(long nX, long nY);

That means (afaik) that i must use long (int64) as a method type and for parameters. It works properly with C# 1.x. Only with 2.0 it results a runtime error.

Share this post


Link to post
Share on other sites

I read \AutoItX\StandardDLL\VC6\AutoIt3.h. There are all the exported functions listed. From that file:

AU3_API long WINAPI AU3_PixelGetColor(long nX, long nY);

That means (afaik) that i must use long (int64) as a method type and for parameters. It works properly with C# 1.x. Only with 2.0 it results a runtime error.

Why is this afaik? If it works with C# 1.x and not with C# 2.0 do you expect C# or AutoItX to have changed? My guess is that C# 2.0 is prepared for 64bit processors and reading about samples in the: Microsoft.NET\SDK\v2.0\Readme.htm file even sugests that this could be the issue.

I have to add that I have not tried to use AutoItX with NET so your the expert :think:

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Why is this afaik? If it works with C# 1.x and not with C# 2.0 do you expect C# or AutoItX to have changed? My guess is that C# 2.0 is prepared for 64bit processors and reading about samples in the: Microsoft.NET\SDK\v2.0\Readme.htm file even sugests that this could be the issue.

I have to add that I have not tried to use AutoItX with NET so your the expert smile.gif

Afaik, because im uncertain. Obviously C# have changed. It might be the 64-bit support that causes the problem. Now, what can I do about it? Any way to get it to work? It would be so much easier to use AutoItX than to implement those useful functions myself :think:

I thought that i could compile the autoitx stuff with for example C# 1.x and use the executables from the program coded with C# 2.0. But that wouldn't be too practical...

Edited by Kharlog

Share this post


Link to post
Share on other sites

Afaik, because im uncertain. Obviously C# have changed. It might be the 64-bit support that causes the problem. Now, what can I do about it? Any way to get it to work? It would be so much easier to use AutoItX than to implement those useful functions myself :think:

I thought that i could compile the autoitx stuff with for example C# 1.x and use the executables from the program coded with C# 2.0. But that wouldn't be too practical...

What happens if you change the long's to int's in the calling code?

It would be strange if there is no compiler switch specifying 32bit architecture.

Share this post


Link to post
Share on other sites

What happens if you change the long's to int's in the calling code?

It would be strange if there is no compiler switch specifying 32bit architecture.

Ok, I tried it with ints. Now the method definition looks like that:

[DllImport("AutoItX3.dll", EntryPoint = "AU3_PixelGetColor")]
    public static extern int PixelGetColor(int x, int y);

The code actually works now. With longs it returned always the same number. I didn't realize that before. But the code still works only with C# 1.x and not with 2.0.

Share this post


Link to post
Share on other sites

Ok, I tried it with ints. Now the method definition looks like that:

[DllImport("AutoItX3.dll", EntryPoint = "AU3_PixelGetColor")]
    public static extern int PixelGetColor(int x, int y);

The code actually works now. With longs it returned always the same number. I didn't realize that before. But the code still works only with C# 1.x and not with 2.0.

Could you be more specific on the "still works only with C# 1.x" ?

I have just installed NET Runtime 1.1 and 2.0 and SDK.2.0 And SharpDevelop 2.0.0 build 1291.

Created a console solution:

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Security.Permissions;



namespace autoitxtest
{
    class MainClass
    {   
      [DllImport("AutoItX3.dll", EntryPoint = "AU3_PixelGetColor")]
      public static extern long PixelGetColor(long x, long y);
    
      public static void Main(string[] args)
      {
          Console.WriteLine("Hello World!");
        Console.WriteLine(PixelGetColor(400, 400));
      }
    }
}

This code compiles with no warning.

Placed the AutoItX.dll in c:\winnt\system32

The program returns:

Hello World!
10066329

Im running w2k with SP4 and IE 6.0.x

As you can se I'm using longs in the PixelGetColor declaration.

How can I verify that the code is compiled with NET 2.0 ?

Share this post


Link to post
Share on other sites

Just fund the VersionInfo flip in SharpDevelop: It returned:

mscorlib,2.0.0.0,C:\WINNT\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll
SharpDevelop,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\bin\SharpDevelop.exe
System,2.0.0.0,C:\WINNT\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll
System.Windows.Forms,2.0.0.0,C:\WINNT\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll
System.Drawing,2.0.0.0,C:\WINNT\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
ICSharpCode.Core,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\bin\ICSharpCode.Core.dll
ICSharpCode.SharpDevelop,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\bin\ICSharpCode.SharpDevelop.dll
log4net,1.2.9.0,C:\Program Files\SharpDevelop\2.0\bin\log4net.dll
System.Configuration,2.0.0.0,C:\WINNT\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
System.Xml,2.0.0.0,C:\WINNT\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll
WeifenLuo.WinFormsUI.Docking,0.99.0.3,C:\Program Files\SharpDevelop\2.0\bin\WeifenLuo.WinFormsUI.Docking.dll
ICSharpCode.TextEditor,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\bin\ICSharpCode.TextEditor.dll
HtmlHelp2,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\AddIns\AddIns\Misc\HtmlHelp2\HtmlHelp2.dll
MSHelpServices,1.0.0.0,C:\Program Files\SharpDevelop\2.0\AddIns\AddIns\Misc\HtmlHelp2\MSHelpServices.dll
CustomMarshalers,2.0.0.0,C:\WINNT\assembly\GAC_32\CustomMarshalers\2.0.0.0__b03f5f7f11d50a3a\CustomMarshalers.dll
StartPage,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\AddIns\AddIns\Misc\StartPage\StartPage.dll
Microsoft.mshtml,7.0.3300.0,C:\WINNT\assembly\GAC\Microsoft.mshtml\7.0.3300.0__b03f5f7f11d50a3a\Microsoft.mshtml.dll
System.Design,2.0.0.0,C:\WINNT\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll
FormsDesigner,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\AddIns\AddIns\DisplayBindings\FormsDesigner\FormsDesigner.dll
BooBinding,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\AddIns\AddIns\BackendBindings\BooBinding\BooBinding.dll
CSharpBinding,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\AddIns\AddIns\BackendBindings\CSharpBinding\CSharpBinding.dll
Microsoft.Build.Framework,2.0.0.0,C:\WINNT\assembly\GAC_MSIL\Microsoft.Build.Framework\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Framework.dll
Microsoft.Build.Engine,2.0.0.0,C:\WINNT\assembly\GAC_MSIL\Microsoft.Build.Engine\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Engine.dll
XmlEditor,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\AddIns\AddIns\DisplayBindings\XmlEditor\XmlEditor.dll
System.Web.Services,2.0.0.0,C:\WINNT\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll
System.DirectoryServices,2.0.0.0,C:\WINNT\assembly\GAC_MSIL\System.DirectoryServices\2.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll
System.Data,2.0.0.0,C:\WINNT\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll
ICSharpCode.NRefactory,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\bin\ICSharpCode.NRefactory.dll
MonoAddIn,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\AddIns\AddIns\Misc\MonoAddIn\MonoAddIn.dll
ICSharpCode.Build.Tasks,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\bin\ICSharpCode.Build.Tasks.dll
NAntAddIn,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\AddIns\AddIns\Misc\NAntAddIn\NAntAddIn.dll
Microsoft.Build.Tasks,2.0.0.0,C:\WINNT\assembly\GAC_MSIL\Microsoft.Build.Tasks\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Tasks.dll
Microsoft.Build.Utilities,2.0.0.0,C:\WINNT\assembly\GAC_MSIL\Microsoft.Build.Utilities\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.dll
Debugger.AddIn,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\AddIns\AddIns\Misc\Debugger\Debugger.AddIn.dll
Debugger.Core,2.0.0.1291,C:\Program Files\SharpDevelop\2.0\AddIns\AddIns\Misc\Debugger\Debugger.Core.dll

Ok that is not readable but you can compare it to your system with windiff or somthing.

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

Thanks for your effort Uten. By saying it works only with C# 1.x I mean that it doesn't work when compiled with VS2005 or #develop 2. I tried the code you wrote and get the same error (BadImageFormatException). How did you get that version listing?

And btw, I'm using Windows Xp x64 Professional Edition SP2 and IE 6.0.x.

Edited by Kharlog

Share this post


Link to post
Share on other sites

Thanks for your effort Uten. By saying it works only with C# 1.x I mean that it doesn't work when compiled with VS2005 or #develop 2. I tried the code you wrote and get the same error (BadImageFormatException). How did you get that version listing?

And btw, I'm using Windows Xp x64 Professional Edition SP2 and IE 6.0.x.

I found it in sharptdevelop help->about->Version info (flip)->copy (button)

As you are running a x64 processor (?) and OS I think you will find many situations like this when you try to use components and libraries compiled for 32bit.

The answer is compatibility. In .NET, a developer can still use COM controls and make Win32 calls in their assemblies. A 64-bit application can't host 32-Bit COM controls, and if you ran an assembly in 64-bit mode it would have a problem if it made a 32-bit specific call.

In the next release of .NET, .NET 2.0, Microsoft will include x64 binaries and 32-bit binaries in the x64 setup. Microsoft also has added a new setting to the various .NET Compilers which determines which architecture you want your assembly to target 32-bit, x64, IA64 (Itanium), or "anycpu". If a developer specifies 32-bit, the application will run as a 32-bit application on Windows x64. If the architecture is set to "any cpu", it will run on any .NET supported platform (providing it doesn't use any architecturally specific calls).

The reason it works out of the box with NET 1.x is that NET 1.x is 32bit.

You will probably find information on how to compile 32bit code on 64bit architecture at msdn

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

As you are running a x64 processor (?) and OS I think you will find many situations like this when you try to use components and libraries compiled for 32bit.

Yeah, that might be the reason. I'm running AMD Athlon 64 processor. I have also Windows XP Professional 32-bit edition installed. I might try compile in that OS as well.

The reason it works out of the box with NET 1.x is that NET 1.x is 32bit.

You will probably find information on how to compile 32bit code on 64bit architecture at msdn

I'll search for that.

My version info:

mscorlib,2.0.0.0,C:\XPX64\Microsoft.NET\Framework64\v2.0.50727\mscorlib.dll

SharpDevelop,2.0.0.1291,D:\appz\Sharpdevelop2b3\bin\SharpDevelop.exe

System.Windows.Forms,2.0.0.0,C:\XPX64\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System,2.0.0.0,C:\XPX64\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll

System.Drawing,2.0.0.0,C:\XPX64\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

ICSharpCode.Core,2.0.0.1291,D:\appz\Sharpdevelop2b3\bin\ICSharpCode.Core.dll

ICSharpCode.SharpDevelop,2.0.0.1291,D:\appz\Sharpdevelop2b3\bin\ICSharpCode.SharpDevelop.dll

log4net,1.2.9.0,D:\appz\Sharpdevelop2b3\bin\log4net.dll

System.Configuration,2.0.0.0,C:\XPX64\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml,2.0.0.0,C:\XPX64\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll

ICSharpCode.FiletypeRegisterer,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\Misc\FiletypeRegisterer\ICSharpCode.FiletypeRegisterer.dll

ICSharpCode.TextEditor,2.0.0.1291,D:\appz\Sharpdevelop2b3\bin\ICSharpCode.TextEditor.dll

WeifenLuo.WinFormsUI.Docking,0.99.0.3,D:\appz\Sharpdevelop2b3\bin\WeifenLuo.WinFormsUI.Docking.dll

StartPage,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\Misc\StartPage\StartPage.dll

CSharpBinding,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\BackendBindings\CSharpBinding\CSharpBinding.dll

XmlEditor,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\DisplayBindings\XmlEditor\XmlEditor.dll

System.Data,2.0.0.0,C:\XPX64\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll

System.Design,2.0.0.0,C:\XPX64\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll

System.DirectoryServices,2.0.0.0,C:\XPX64\assembly\GAC_MSIL\System.DirectoryServices\2.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll

System.Web.Services,2.0.0.0,C:\XPX64\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll

Microsoft.Build.Engine,2.0.0.0,C:\XPX64\assembly\GAC_MSIL\Microsoft.Build.Engine\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Engine.dll

Microsoft.Build.Framework,2.0.0.0,C:\XPX64\assembly\GAC_MSIL\Microsoft.Build.Framework\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Framework.dll

ICSharpCode.NRefactory,2.0.0.1291,D:\appz\Sharpdevelop2b3\bin\ICSharpCode.NRefactory.dll

FormsDesigner,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\DisplayBindings\FormsDesigner\FormsDesigner.dll

MonoAddIn,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\Misc\MonoAddIn\MonoAddIn.dll

ICSharpCode.Build.Tasks,2.0.0.1291,D:\appz\Sharpdevelop2b3\bin\ICSharpCode.Build.Tasks.dll

NAntAddIn,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\Misc\NAntAddIn\NAntAddIn.dll

Microsoft.Build.Tasks,2.0.0.0,C:\XPX64\assembly\GAC_MSIL\Microsoft.Build.Tasks\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Tasks.dll

Microsoft.Build.Utilities,2.0.0.0,C:\XPX64\assembly\GAC_MSIL\Microsoft.Build.Utilities\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.dll

Debugger.AddIn,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\Misc\Debugger\Debugger.AddIn.dll

Debugger.Core,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\Misc\Debugger\Debugger.Core.dll

We seem to have exactly same versions of those "things" we both have.

Edited by Kharlog

Share this post


Link to post
Share on other sites

Looks like ther version numbers does not reveal if the libraries are 62 bit or not. Witch is a bit strange, in my opinion, as MS is shipping both versions in the 64bit package (or is it optional)?

Any how, I think the QUOTE in my last post explains why you got the errors you got. So I hope you have an idea of how to solve (what to look for) your problem.

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

Sorry for late reply, I had other things to worry about. I tried compiling the code in Windows XP 32-bit version and It compiled with C# 2.0 without problems. Now I could just compile in this windows or turn off the 64-bit mode somehow. But certainly is what caused the error. Thanks for your help Uten, you've been most helpful. If I find out how to compile it succesfully in 64-bit OS I'll let you know.

Version info:

mscorlib,2.0.0.0,C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll

SharpDevelop,2.0.0.1291,D:\appz\Sharpdevelop2b3\bin\SharpDevelop.exe

System.Windows.Forms,2.0.0.0,C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System,2.0.0.0,C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll

System.Drawing,2.0.0.0,C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

ICSharpCode.Core,2.0.0.1291,D:\appz\Sharpdevelop2b3\bin\ICSharpCode.Core.dll

ICSharpCode.SharpDevelop,2.0.0.1291,D:\appz\Sharpdevelop2b3\bin\ICSharpCode.SharpDevelop.dll

log4net,1.2.9.0,D:\appz\Sharpdevelop2b3\bin\log4net.dll

System.Configuration,2.0.0.0,C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml,2.0.0.0,C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll

WeifenLuo.WinFormsUI.Docking,0.99.0.3,D:\appz\Sharpdevelop2b3\bin\WeifenLuo.WinFormsUI.Docking.dll

ICSharpCode.TextEditor,2.0.0.1291,D:\appz\Sharpdevelop2b3\bin\ICSharpCode.TextEditor.dll

StartPage,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\Misc\StartPage\StartPage.dll

Microsoft.mshtml,7.0.3300.0,C:\WINDOWS\assembly\GAC\Microsoft.mshtml\7.0.3300.0__b03f5f7f11d50a3a\Microsoft.mshtml.dll

CSharpBinding,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\BackendBindings\CSharpBinding\CSharpBinding.dll

Microsoft.Build.Framework,2.0.0.0,C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Build.Framework\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Framework.dll

Microsoft.Build.Engine,2.0.0.0,C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Build.Engine\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Engine.dll

System.Web.Services,2.0.0.0,C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll

System.DirectoryServices,2.0.0.0,C:\WINDOWS\assembly\GAC_MSIL\System.DirectoryServices\2.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll

System.Design,2.0.0.0,C:\WINDOWS\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll

System.Data,2.0.0.0,C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll

System.Data.SqlXml,2.0.0.0,C:\WINDOWS\assembly\GAC_MSIL\System.Data.SqlXml\2.0.0.0__b77a5c561934e089\System.Data.SqlXml.dll

MonoAddIn,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\Misc\MonoAddIn\MonoAddIn.dll

ICSharpCode.Build.Tasks,2.0.0.1291,D:\appz\Sharpdevelop2b3\bin\ICSharpCode.Build.Tasks.dll

NAntAddIn,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\Misc\NAntAddIn\NAntAddIn.dll

XmlEditor,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\DisplayBindings\XmlEditor\XmlEditor.dll

ICSharpCode.NRefactory,2.0.0.1291,D:\appz\Sharpdevelop2b3\bin\ICSharpCode.NRefactory.dll

FormsDesigner,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\DisplayBindings\FormsDesigner\FormsDesigner.dll

Microsoft.Build.Tasks,2.0.0.0,C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Build.Tasks\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Tasks.dll

Microsoft.Build.Utilities,2.0.0.0,C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Build.Utilities\2.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.dll

Debugger.AddIn,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\Misc\Debugger\Debugger.AddIn.dll

Debugger.Core,2.0.0.1291,D:\appz\Sharpdevelop2b3\AddIns\AddIns\Misc\Debugger\Debugger.Core.dll

Edited by Kharlog

Share this post


Link to post
Share on other sites

#18 ·  Posted

Ok, the solution is very simple (can't believe that i have wasted weeks of my time finding workarounds :think: ). All you have to do is going to configuration manager and choosing to build your project for x86 processor architecture. Problem solved :(

Share this post


Link to post
Share on other sites

About the integer sizes: in C#, int has always been System.Int32, long has always been System.Int64.

About AutoIt integers, it supports both int (system dependant) and Microsoft's __int64. You need to know which one the function calls for though.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0