Windows 10: Compile C to HEX

Discus and support Compile C to HEX in Windows 10 Software and Apps to solve the problem; Hi, I program in Oshonsoft BASIC, and have some C CODE that may work if I can get the HEX from it. How can I compile it please? Camerart. Discussion in 'Windows 10 Software and Apps' started by Camerart, Mar 25, 2023.

  1. Camerart Win User

    Compile C to HEX


    Hi,

    I program in Oshonsoft BASIC, and have some C CODE that may work if I can get the HEX from it.
    How can I compile it please?

    Camerart.
     
    Camerart, Mar 25, 2023
    #1

  2. Compiler on C/C++ for Nokia 5530.

    As @grschinon, I too understood you were looking for a compiler that could compile C/C++ applications, but it was not all clear to me that you wanted to actually do it on the phone! So now that that's clear, the download page for Carbide.c++ and the SDKs
    should have tipped you off because of the "Requirements" posted - it clearly requires a Windows-based computer to run. Since this does not satisfy your needs, I suggest a Google search - please follow-up here with any useful leads.
     
    NourishingStone, Mar 25, 2023
    #2
  3. Veschich Win User
    Compiler on C/C++ for Nokia 5530.

    @grschinon - First see my post "Compiler on C/C++ for Nokia 5530". I believe you understand that we are talking about PHONE. Second i repeat that Carbide.C++ is exe and when i read what @hgohel post me i download SDK tool too(S60-SDK-200634-3.1-Cpp-f.1090b.zip),
    but now i'm not sure how to proceed. So if know how to write and compile programs on my phone on C++ please write me down the steps and tools i need to do this.
    Message Edited by on 20-Dec-2009 03:58 PM
     
    Veschich, Mar 25, 2023
    #3
  4. Compile C to HEX

    Batch Program that Sends Hex String to Serial Port

    Your initial question implied that you had some experience with batch files, console commands, redirection etc. It would have saved us some time and frustration if you had stated the lack of such experience right at the beginning.

    Let's do this properly, step by step.

    1. Mark the script you see below, then press Ctrl+C to copy it.
    2. Open a Command Prompt (cmd.exe). This gives you a black frame.
    3. Type these commands and press Enter after each:

      md C:\Tools

      cd /d C:\Tools

      notepad Hex.vbs

      (allow the new file to be created)
    4. Press Ctrl+V to paste the code.
    5. Save and close the file.
    6. Type this command and press Enter:

      cscript //nologo Hex.vbs 65 32 66 > hex.txt
    7. Type hex.txt and press Enter to open the output file you created in Step 6. It should contain A B. Why? Because 65, 32, 66 are the decimal ASCII codes for A space B.
    8. Now try your own hex string like so:

      cscript //nologo Hex.vbs 245 0 1 2 2 1 6 > com1
    Whether your com port will accept the code I have no way of knowing or testing.

    '---------------------------------------------

    'Script to generate a string of hex characters

    '19.9.18. FNL

    '---------------------------------------------

    sString = ""

    For Each iCode in WScript.Arguments

        sString = sString & Chr(iCode)

    Next

    WScript.Echo sString
     
    Frederik Long, Mar 25, 2023
    #4
Thema:

Compile C to HEX

Loading...
  1. Compile C to HEX - Similar Threads - Compile HEX

  2. Help with Visual Studio Compilation Errors on Windows 10 PLEASE

    in Windows 10 Gaming
    Help with Visual Studio Compilation Errors on Windows 10 PLEASE: Primarily I speak Russian, but this message will be in EnglishHello Support Team,I am a Windows user facing an issue with Visual Studio while trying to compile a project. I’ve been struggling with errors related to missing header files for almost 2 months now, and I...
  3. Help with Visual Studio Compilation Errors on Windows 10 PLEASE

    in Windows 10 Software and Apps
    Help with Visual Studio Compilation Errors on Windows 10 PLEASE: Primarily I speak Russian, but this message will be in EnglishHello Support Team,I am a Windows user facing an issue with Visual Studio while trying to compile a project. I’ve been struggling with errors related to missing header files for almost 2 months now, and I...
  4. Help with Visual Studio Compilation Errors on Windows 10 PLEASE

    in Windows 10 Customization
    Help with Visual Studio Compilation Errors on Windows 10 PLEASE: Primarily I speak Russian, but this message will be in EnglishHello Support Team,I am a Windows user facing an issue with Visual Studio while trying to compile a project. I’ve been struggling with errors related to missing header files for almost 2 months now, and I...
  5. What’s the best alternative from Microsoft to Step Recorder for capturing and compiling...

    in Windows 10 Gaming
    What’s the best alternative from Microsoft to Step Recorder for capturing and compiling...: The original Step Recorder could capture up to 999 screenshots effortlessly—triggered by each click—and automatically compile them into a lightweight, easy-to-reference HTML document. While it sometimes recorded redundant clicks e.g., accidental or repetitive ones, that was a...
  6. What’s the best alternative from Microsoft to Step Recorder for capturing and compiling...

    in Windows 10 Software and Apps
    What’s the best alternative from Microsoft to Step Recorder for capturing and compiling...: The original Step Recorder could capture up to 999 screenshots effortlessly—triggered by each click—and automatically compile them into a lightweight, easy-to-reference HTML document. While it sometimes recorded redundant clicks e.g., accidental or repetitive ones, that was a...
  7. Erreur de compilation open modelica

    in Windows 10 Gaming
    Erreur de compilation open modelica: J'ai un pb, quand j essaye de simuler un système sur open modelica , j'ai cette erreur:D:/openmodelica/share/omc/scripts/Compile.bat Tensiometre_cpu_v1 gcc ucrt64 parallel dynamic 8 0 PATH = "D:\OPENMO~1\tools\msys\ucrt64\bin;D:\OPENMO~1\tools\msys\ucrt64\bin\..\..\usr\bin;"...
  8. Erreur de compilation open modelica

    in Windows 10 Software and Apps
    Erreur de compilation open modelica: J'ai un pb, quand j essaye de simuler un système sur open modelica , j'ai cette erreur:D:/openmodelica/share/omc/scripts/Compile.bat Tensiometre_cpu_v1 gcc ucrt64 parallel dynamic 8 0 PATH = "D:\OPENMO~1\tools\msys\ucrt64\bin;D:\OPENMO~1\tools\msys\ucrt64\bin\..\..\usr\bin;"...
  9. Windows SDK 10.0.26100 causes compilation error in wchar.h with MSVC 2015 compiler

    in Windows 10 Gaming
    Windows SDK 10.0.26100 causes compilation error in wchar.h with MSVC 2015 compiler: I'm trying to build a legacy product that used MSVC 2015 Update 3 compiler version 19.00.24215.1.Since Windows SDK 10.0.26100 was installed on the machine the build fails with the following error:C:\PROGRA~2\WI3CF2~1\10\include\10.0.26100.0\ucrt\wchar.h313: error C3861:...
  10. Windows SDK 10.0.26100 causes compilation error in wchar.h with MSVC 2015 compiler

    in Windows 10 Software and Apps
    Windows SDK 10.0.26100 causes compilation error in wchar.h with MSVC 2015 compiler: I'm trying to build a legacy product that used MSVC 2015 Update 3 compiler version 19.00.24215.1.Since Windows SDK 10.0.26100 was installed on the machine the build fails with the following error:C:\PROGRA~2\WI3CF2~1\10\include\10.0.26100.0\ucrt\wchar.h313: error C3861:...