• 0
Sign in to follow this  

Loop Reverso


int Offset_Total[] = {4,52,100,148,196,244,292,340,388,436,484,532,580,628,676,724,772,820,868,916,964,1012};

path = Edit1->Text + "\\DpFileList.bin";
     if((arq = fopen(path.c_str(), "w+b")) == 0){
       ShowMessage("Erro ao acessar o arquivo");

for (int i = 0; i < ListBox1->Items->Count; i++) {
  if(fseek(arq, Offset_Total[i], SEEK_SET)!=1){
	 if(fwrite(&loopRevese, 1, 1, arq)==1){
	    ShowMessage("Dados gravados com sucesso!");

Como gravar nos Offsets 'Offset_Total[]' a quantidade de item no listbox1 reverso tipo: 9,8,7,6,5,4,3,2,1

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this