Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. some help with a simple project

some help with a simple project

Scheduled Pinned Locked Moved Managed C++/CLI
help
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vertig0730
    wrote on last edited by
    #1

    This program converts a .bin to a readable file but it also increase the overall size(not good) any help or ideas. #include "stdafx.h" #using using namespace System; int _tmain() { unsigned char a1[16]; unsigned char a2[16]; unsigned int tempWRITE; //FILE *in = fopen("c:/test.bin","r"); FILE *in = fopen("c:/test.bin","rb"); FILE *out = fopen("c:/new.txt","w"); while(!feof(in)) { fread(a1,1,16,in); a2[0] = a1[3]; a2[1] = a1[2]; a2[2] = a1[1]; a2[3] = a1[0]; a2[4] = a1[5]; a2[5] = a1[6]; a2[6] = a1[4]; a2[7] = a1[7]; a2[8] = a1[9]; a2[9] = a1[11]; a2[10] = a1[8]; a2[11] = a1[10]; a2[12] = a1[14]; a2[13] = a1[12]; a2[14] = a1[15]; a2[15] = a1[13]; fwrite(a2,1,16,out); } fclose(in); fclose(out); return 0; } 1. Out of clutter, find simplicity. 2. From discord, find harmony. 3. In the middle of difficulty lies opportunity. Albert Einstein three rules of work

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups