Errors, bugs, questions - page 2051

 
Slava:

Where is the file creation code?

Do you close the file before deleting it?

What does RefreshRates have to do with it?

Are we talking about a five or a four?

Can an open file be deleted?

 
Alexey Viktorov:

Can an open file be deleted?

Can a deleted file be asked for its creation time?

PS I can see the stream of consciousness, that's why I asked such different questions

 
Slava:

Can a deleted file be asked for its creation time?

PS I can see the stream of consciousness, that's why I asked such different questions

Well,,,,, if you can't but really need to,,,, then you can))))
 
Slava:

Where is the file creation code?

Do you close the file before deleting it?

What does RefreshRates have to do with it?

Are we talking about a five or a four?


         int h=FileOpen(aFileName,FILE_READ|FILE_WRITE|FILE_CSV|FILE_SHARE_READ|FILE_SHARE_WRITE);
         if(h!=INVALID_HANDLE)
            if(encode_text!=NULL && encode_text!="")
              {
               if(FileWrite(h,encode_text)>0)
                 {
                  FileClose(h);
                  return true;
                 }
              }

four

 
Vladimir Pastushak:

four

1. Closing the file is done by some condition, not in any case.

2. What does GetLastError return after file is deleted?

 
Slava:

1. The file is closed by some condition, not in any case.

2. What does GetLastError return after deleting a file?


Returns 5020.

Simplified the code, reproduced the wrong behavior, threw in the service dsk

repeat


int tim=(int)FileGetInteger(aFileName,FILE_MODIFY_DATE);

It works correctly

 
Vladimir Pastushak:

returns 5020.

Simplified the code, reproduced the wrong behaviour, threw in the service dsk

repeat


int tim=(int)FileGetInteger(aFileName,FILE_MODIFY_DATE);

Works correctly

More complete source code has been dealt with in servicedesk.

Here is a link explaining the problem https://support.microsoft.com/ru-ru/help/172190/windows-nt-contains-file-system-tunneling-capabilities

 
Slava:

A more complete source code has been dealt with in the servicedesk.

Here is a link explaining the problem https://support.microsoft.com/ru-ru/help/172190/windows-nt-contains-file-system-tunneling-capabilities


Thank you!

 
Anyone experiencing problems in MT5 with exporting from a function library with parameters-interfaces described in the header? It worked in MT4.
 
Stanislav Korotky:
Anyone experiencing problems in MT5 with exporting from function library with parameters-interfaces described in the header? It worked in MT4.

I would need an example to clarify.