Click here to Skip to main content
15,911,132 members
Home / Discussions / C#
   

C#

 
AnswerRe: Processing keys presses without focus Pin
DaveyM691-Jun-08 22:37
professionalDaveyM691-Jun-08 22:37 
QuestionHow can i know from the keyboard scan code what is the real key that pressed? Pin
Yanshof1-Jun-08 20:23
Yanshof1-Jun-08 20:23 
QuestionFuzzy look up Pin
Member 40084921-Jun-08 20:22
Member 40084921-Jun-08 20:22 
AnswerRe: Fuzzy look up Pin
Christian Graus2-Jun-08 4:35
protectorChristian Graus2-Jun-08 4:35 
Questionto use checkboxes in order to delete records Pin
csp1-Jun-08 19:50
csp1-Jun-08 19:50 
AnswerRe: to use checkboxes in order to delete records Pin
Christian Graus2-Jun-08 4:39
protectorChristian Graus2-Jun-08 4:39 
QuestionRefresh Form Pin
cocoonwls1-Jun-08 18:58
cocoonwls1-Jun-08 18:58 
Question64 bit [modified] Pin
Christian Graus1-Jun-08 17:42
protectorChristian Graus1-Jun-08 17:42 
OK, I have an app which uses windows media player as a control. I need to build a 64 bit version. However, when I set the target to 64 bit, it says the build succeeded, but no code files are in the target directory. I think that may be because a setting is wrong, but when I fix it, I get this:

Error 49 An attempt was made to load an assembly with an incorrect format: E:\Source code\OVS\DiagnosticImagingAssistant\obj\x64\AussieRelease\DiagnosticImagingAssistant.exe. E:\Source code\OVS\DiagnosticImagingAssistant\SGEN DiagnosticImagingAssistant

Also a bunch of warnings like this:

Warning 33 Assembly generation -- Referenced assembly 'System.Data.dll' targets a different processor DiaFileWatcher
Warning 34 Assembly generation -- Referenced assembly 'mscorlib.dll' targets a different processor DiaFileWatcher

Do I need to be on a 64 bit version of windows to build 64 bit ? If it just errors out, what's the point of having the setting ?

It's actually complaining that a dll I wrote, which is being built as 64 bit, and imports windows media player, is the wrong format:

C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\sgen.exe /assembly:"E:\Source code\OVS\DiagnosticImagingAssistant\obj\x64\AussieRelease\DiagnosticImagingAssistant.exe" /proxytypes /reference:..\Odyssey.Windows.Controls\bin\x64\AussieRelease\AxInterop.WMPLib.dll /reference:..\OVSCommon\bin\x64\AussieRelease\Interop.DexterLib.dll /reference:..\Odyssey.Windows.Controls\bin\x64\AussieRelease\Interop.WMPLib.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll /reference:..\Odyssey.Windows.Controls\bin\x64\AussieRelease\Odyssey.Windows.Controls.dll /reference:..\Odyssey.Windows.Controls\bin\x64\AussieRelease\Odyssey.Windows.Forms.Controls.dll /reference:..\OVSCommon\bin\x64\AussieRelease\OVSCommon.dll /reference:..\OVSImaging\bin\x64\AussieRelease\OVSImaging.dll /reference:..\OVSCommon\bin\x64\AussieRelease\PresentationCore.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\ReachFramework.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.EnterpriseServices.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.IdentityModel.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Management.dll /reference:..\OVSCommon\bin\x64\AussieRelease\System.Printing.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.Runtime.Serialization.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.ServiceModel.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.Services.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\UIAutomationProvider.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\UIAutomationTypes.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll"
SGEN : error : An attempt was made to load an assembly with an incorrect format: E:\Source code\OVS\Odyssey.Windows.Controls\bin\x64\AussieRelease\Odyssey.Windows.Controls.dll.
Done building project "DiagnosticImagingAssistant.csproj" -- FAILED.

any suggestions appreciated.

Christian Graus

Please read this if you don't understand the answer I've given you

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

modified on Monday, June 2, 2008 12:14 AM

AnswerRe: 64 bit Pin
DaveyM691-Jun-08 22:50
professionalDaveyM691-Jun-08 22:50 
AnswerRe: 64 bit Pin
DaveyM691-Jun-08 22:52
professionalDaveyM691-Jun-08 22:52 
QuestionTwo basic questions about reflection Pin
George_George1-Jun-08 16:54
George_George1-Jun-08 16:54 
AnswerRe: Two basic questions about reflection Pin
PIEBALDconsult1-Jun-08 17:42
mvePIEBALDconsult1-Jun-08 17:42 
GeneralRe: Two basic questions about reflection Pin
George_George1-Jun-08 18:35
George_George1-Jun-08 18:35 
GeneralRe: Two basic questions about reflection Pin
PIEBALDconsult1-Jun-08 19:20
mvePIEBALDconsult1-Jun-08 19:20 
GeneralRe: Two basic questions about reflection Pin
George_George1-Jun-08 19:42
George_George1-Jun-08 19:42 
GeneralRe: Two basic questions about reflection Pin
Scott Dorman2-Jun-08 4:37
professionalScott Dorman2-Jun-08 4:37 
GeneralRe: Two basic questions about reflection Pin
George_George3-Jun-08 2:32
George_George3-Jun-08 2:32 
GeneralRe: Two basic questions about reflection Pin
Scott Dorman3-Jun-08 2:43
professionalScott Dorman3-Jun-08 2:43 
GeneralRe: Two basic questions about reflection Pin
George_George3-Jun-08 3:05
George_George3-Jun-08 3:05 
GeneralRe: Two basic questions about reflection Pin
Scott Dorman3-Jun-08 3:15
professionalScott Dorman3-Jun-08 3:15 
GeneralRe: Two basic questions about reflection Pin
George_George3-Jun-08 15:33
George_George3-Jun-08 15:33 
GeneralRe: Two basic questions about reflection Pin
Scott Dorman3-Jun-08 16:36
professionalScott Dorman3-Jun-08 16:36 
GeneralRe: Two basic questions about reflection Pin
George_George3-Jun-08 17:27
George_George3-Jun-08 17:27 
GeneralRe: Two basic questions about reflection Pin
PIEBALDconsult2-Jun-08 6:29
mvePIEBALDconsult2-Jun-08 6:29 
GeneralRe: Two basic questions about reflection Pin
George_George3-Jun-08 2:34
George_George3-Jun-08 2:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.