EDN Admin
Well-known member
The wrapper dll when i add it as reference to the my project in c# im getting a warning: Warning 2 Referenced assembly C:unfreez_wrapper.dll targets a different processor than the application. Downloading File
Now when im going to the visual studio c++ with the c++ code im going to the solution properties>confugiration properties and i see there its on win32(active) now and i can select win32 only.
And in my c# project on the solution properties> confugiration properties its on active(any cpu) and i can select only any cpu.
In my c# i can get into the conugiration manager and there i can change the property: active solution platform to make new and there i can change the: Type or select the new platform now its on Itanium but i can select there x64 or x86
But i dont want to change my solution to x86 i want to it to be any cpu.
The problem is the dll isnt fit for some reason.
The problem is that if ill compile my c# project with this dll as it is now when im running my program im getting exception:
System.BadImageFormatException: Could not load file or assembly unfreez_wrapper, Version=1.0.4289.2723, Culture=neutral, PublicKeyToken=null or one of its dependencies. An attempt was made to load a program with an incorrect format.<br/>
File name: unfreez_wrapper, Version=1.0.4289.2723, Culture=neutral, PublicKeyToken=null<br/>
at mws.Picturebox2_Fullscreen..ctor()<br/>
at mws.Form1.SatelliteClient_DownloadFileCompleted(Object sender, AsyncCompletedEventArgs e)
He cant load the dll for some reason even if its in my project reference.
I think the reason im getting this error is beacause this warning that the dll is target another processor : Warning 2 Referenced assembly C:unfreez_wrapper.dll targets a different processor than the application. Downloading File
Im not sure if thats the problem im just getting this exception all the time.
I can copy here the whole c++ code of the wrapper maybe in the c++ before i compile it to dll maybe something in the code is wrong ?
And why in the visual studio c++ 2010 express i cant change it to any cpu and its only win32 ?
Thanks. <hr class="sig danieli
View the full article
Now when im going to the visual studio c++ with the c++ code im going to the solution properties>confugiration properties and i see there its on win32(active) now and i can select win32 only.
And in my c# project on the solution properties> confugiration properties its on active(any cpu) and i can select only any cpu.
In my c# i can get into the conugiration manager and there i can change the property: active solution platform to make new and there i can change the: Type or select the new platform now its on Itanium but i can select there x64 or x86
But i dont want to change my solution to x86 i want to it to be any cpu.
The problem is the dll isnt fit for some reason.
The problem is that if ill compile my c# project with this dll as it is now when im running my program im getting exception:
System.BadImageFormatException: Could not load file or assembly unfreez_wrapper, Version=1.0.4289.2723, Culture=neutral, PublicKeyToken=null or one of its dependencies. An attempt was made to load a program with an incorrect format.<br/>
File name: unfreez_wrapper, Version=1.0.4289.2723, Culture=neutral, PublicKeyToken=null<br/>
at mws.Picturebox2_Fullscreen..ctor()<br/>
at mws.Form1.SatelliteClient_DownloadFileCompleted(Object sender, AsyncCompletedEventArgs e)
He cant load the dll for some reason even if its in my project reference.
I think the reason im getting this error is beacause this warning that the dll is target another processor : Warning 2 Referenced assembly C:unfreez_wrapper.dll targets a different processor than the application. Downloading File
Im not sure if thats the problem im just getting this exception all the time.
I can copy here the whole c++ code of the wrapper maybe in the c++ before i compile it to dll maybe something in the code is wrong ?
And why in the visual studio c++ 2010 express i cant change it to any cpu and its only win32 ?
Thanks. <hr class="sig danieli
View the full article