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. 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:...
  3. 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:...
  4. Windows update and aspnet compiler

    in Windows 10 Gaming
    Windows update and aspnet compiler: hi, i use windows 11 version 24h2, the first question is: aspnet_compiler.exe its always on execution, and using memory ALL TIME, i think its a virus but idk, if someone helps me its better. question 2: how i fix this errors on windows update:...
  5. Windows update and aspnet compiler

    in Windows 10 Software and Apps
    Windows update and aspnet compiler: hi, i use windows 11 version 24h2, the first question is: aspnet_compiler.exe its always on execution, and using memory ALL TIME, i think its a virus but idk, if someone helps me its better. question 2: how i fix this errors on windows update:...
  6. Compilation error Microsoft JScript

    in Windows 10 Software and Apps
    Compilation error Microsoft JScript: Hello! Apparently, I downloaded a virus on my PC. I opened a site, just wanted to download music from tge Internet, and it downloaded me a file named "essentials.x" or something like that, while I didn't allow and didn't let it download, it happened independently. Then I got...
  7. Lost all sticky notes compiled over a few years from my iMac.

    in Windows 10 Software and Apps
    Lost all sticky notes compiled over a few years from my iMac.: Lost all sticky notes compiled over a few years from my iMac. I believe it happened when I upgraded my system to Sonoma. I have perused support sites, but have not come up with a solution. Please help....
  8. Lost all sticky notes compiled over a few years from my iMac.

    in Windows 10 Gaming
    Lost all sticky notes compiled over a few years from my iMac.: Lost all sticky notes compiled over a few years from my iMac. I believe it happened when I upgraded my system to Sonoma. I have perused support sites, but have not come up with a solution. Please help....
  9. Microsoft Visual Studio 9.0\VC\ce\include\streambuf syntax errors compiling for ARMV4I...

    in Windows 10 Gaming
    Microsoft Visual Studio 9.0\VC\ce\include\streambuf syntax errors compiling for ARMV4I...: I am trying to build a legacy c++ targeting ARMV4I platform and I am getting several syntax errors among others from VS 2008. Some of my output is like below:c:\Program Files x86\Microsoft Visual Studio 9.0\VC\ce\include\xdebug158 : warning C4159: #pragma packpop,... : has...
  10. Microsoft Visual Studio 9.0\VC\ce\include\streambuf syntax errors compiling for ARMV4I...

    in Windows 10 Software and Apps
    Microsoft Visual Studio 9.0\VC\ce\include\streambuf syntax errors compiling for ARMV4I...: I am trying to build a legacy c++ targeting ARMV4I platform and I am getting several syntax errors among others from VS 2008. Some of my output is like below:c:\Program Files x86\Microsoft Visual Studio 9.0\VC\ce\include\xdebug158 : warning C4159: #pragma packpop,... : has...