.NET Framework - win32 error

Asked By csharpula csharp
16-Sep-08 07:54 AM
Hello,
I got the following message when trying to run a c# executable

aaa.exe is not a valid Win32 application.


which worked before it was coped to som eother location. Now it's not
working no matter where I copy the files.

What can be the reason for that?

*** Sent via Developersdex http://www.developersdex.com ***
Win32
(1)
Check
(1)
  kareem11 replied...
16-Sep-08 08:32 AM
Hi,

there are two reasons for this, two possible reason:
1. the exe is corrupted while being copied to the
target reason
2. the target system does not have the .NET runtime
the app needs to run. (2.0,3.0 or 3,5 or even 3,5SP1)

Check this two possible reasons,...

Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.codeplex.com/restarts
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
Create New Account
help
to look exactly like its Win 32 Common Control counterpart. Specifically, I'm interested in Check Box control. The location of the box within the control and the way the text t draw anything itself, except maybe toolstrips. Most .NET controls are just wrappers over the Win32 controls, and it's the low-level (Win32) control that handles its own drawing. The main cause of differently-appearing controls is themes some sample .NET code that will create a text box that displays differently than a check box in some built-in OS dialog? In addition to Jeff, the .NET Version and each platform. In .NET: a checkbox where CheckAlign is TopLeft and TextAlign is TopLeft. In Win32: I used the window styles BS_TOP | BS_LEFT. When I execute the .NET code the check appears at the top + left side of the check box control. When I execute the Win32 code the check appears at the left side but vertically centered to the text (not
I test the LIB in a simple project, but there are many errors as below, win32.cxx wincfg.cxx, ptlib.cxx. . .are all the source code in the LIB project, I with this issue now.Is there any way to debug them? Thanks Linking. . . ptlibce.lib(win32.obj) : error LNK2001: unresolved external symbol "class PPlugin_PSoundChannel_WAVFile_Registration PPlugin_PSoundChannel_WAVFile_Registration_Instance" (?PPlugin_PSoundChannel_WAVFile_Registration_Instance@@3VPPlugin_PSoundChannel_ WAVFile_Registration@@A) ptlibce.lib msdn.com / ce_base / archive / 2006 / 02 / 02 / Inside-Windows-CE-API-Calls.aspx) You should check, how to use the correct version of winreg.h and all the other Windows CE header files when compiling the files win32.cxx, wincfg.cxx, ptlib.cxx, stdlibx.obj and so on. BTW: The librarien just copies the OBJ file in the LIB file. There is not check for unresolved externals at all. Regards Helge HI Helge Thanks for your detailed explanation for the link error LNK2019, following your instructions, I check the sourcecode of ptlib(which can be downloaded in www.opalvoip.com) in my wince project, but I still can not find any thing wrong in the sourcecode, I also check the directory for header file and lib file in the option setting of the eVC IDE, they have no problem. The platform of my device is CE4.2, I check CE 4.2 winreg.h, the code extern "C" { can also be found.I am
loggato ha diritti di "Administrator". . . :-( Qualcuno pu? aiutarmi? per piacere. . . . VB.NET - Italian Discussions Microsoft.Win32.Registry.LocalMachine.CreateSubKey (1) Microsoft.Win32.Registry.CurrentUser.CreateSubKey (1) Microsoft.Win32.Registry.LocalMachine.OpenSubKey (1) RegistryKeyPermissionCheck.ReadWriteSubTree (1) Windows XP (1) Microsoft.Win32.RegistryKey (1) RegistryKeyPermissionCheck (1) CorradoN0SP4MPL34S3 (1) Specifico inoltre che questo ? il codice che uso: Private sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim regKey As Microsoft.Win32.RegistryKey Dim creochiave As Microsoft.Win32.RegistryKey Dim keyValue As String Dim writepermit As RegistryKeyPermissionCheck = RegistryKeyPermissionCheck.ReadWriteSubTree keyValue = "Software \ SpegniPC" regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(keyValue, True) If Not (regKey Is Nothing) Then REM Me.Visible = False Prima Installazione SPEGNIPC.") MessageBox.Show("Creo le Chiavi di Registro per Esecuzione Automatica.") creochiave = Microsoft.Win32.Registry.LocalMachine.CreateSubKey("Software \ SpegniPC", writepermit) creochiave.SetValue("Autostart", "1") creochiave = Microsoft.Win32.Registry.LocalMachine
nowhere.com VB.NET Discussions Visual Basic 6.0 (1) Visual Studio 2008 (1) Microsoft.Win32.Registry (1) VB.NET (1) IntPtr (1) VBA (1) VB (1) Constants (1) Public Const the registry rather than being restricted to HKCU \ Software \ Microsoft \ VB & VBA (or something) \ YourApp. Check out the Microsoft.Win32.Registry namespace, and with a bit of digging in the documentation you'll be doing so that people wouldn't have to learn how to access the Registry using the Win32 API. Normally VB would use API calls, just as any other software except .Net does to provide a tool that people could use without needing to understand or use the Win32 API. For those people, GetSetting and SaveSetting provides a very simple way to save program VB, C++, Delphi, etc. - - by Microsoft or by 3rd-party programmers - - is typically using the Win32 API. That's how Windows works, after all. Some software may also use ActiveX controls. And ActiveX, like .Net, is mainly just a set of wrappers around that same Win32 API. So it all comes back to the Win32 API. To criticize GetSetting / SaveSetting is saying "My wrapper / training wheels is better than yours
Where is "imports Win32"? .NET Framework Dumb question I know, but after 2 hours googling I give up. What is the easiest / recommended way to access the Win32 API from VB Studio Express? I assumed it would be a simple matter of Imports Win32, or something similar and the whole API would be exposed. Surely I do not have your own and paste in every application. Also see www.pinvoke.net (but I'd check each declaration used) There are probably other collections out there in the wide open web. - - Armin No, .NET expose most Win32 capabilities as classes, this is not a direct copy of the underlying Win32 API. If you do not find a feature you need you will have to declare for example : http: / / www.pinvoke.net / I assume this is to interact with an external Win32 app ? - - Patrice There is a site, http: / / www.pinvoke.net, which has tools and signatures mvps.org / > V B <URL:http: / / dotnet.mvps.org / dotnet / faqs / > keywords: Where, is, "imports, Win32"? description: Dumb question I know, but after 2 hours googling I give up. What is