[Admin] tierrilopes Posted September 16, 2017 Share Posted September 16, 2017 Este tópico serve como complemento a Ao contrário do tópico anterior em que o argumento está definido estaticamente, podendo assim ser descoberto e ultrapassado, desta forma o patcher faz download de um argumento gerado remotamente e atualiza-o, tanto no patcher como no binário. Patcher: Abrir o ficheiro Design.cs Procurar por: private void Form1_Load(object sender, EventArgs e) { Hidden Content Give reaction to this post to see the hidden content. Adicionar acima: Hidden Content Give reaction to this post to see the hidden content. Procurar por: Hidden Content Give reaction to this post to see the hidden content. Adicionar debaixo: Hidden Content Give reaction to this post to see the hidden content. Binário: Procurar por: Hidden Content Give reaction to this post to see the hidden content. Adicionar acima: Hidden Content Give reaction to this post to see the hidden content. Explicação: Faz download do ficheiro disponível em: Hidden Content Give reaction to this post to see the hidden content. Guarda na localização: Hidden Content Give reaction to this post to see the hidden content. arg2.txt é propositado e não arg.txt, para nome ser diferente do ficheiro utilizado pelo patcher, para prevenir algum erro de acesso ao mesmo. Desta maneira cada um trabalha com ficheiros separados, mas fazem download do mesmo ficheiro. Link to comment Share on other sites More sharing options...
Mhyper Posted September 2, 2018 Share Posted September 2, 2018 Verifica se não há algo de errado sff.. Ao tentar compilar o binário dá alguns erros, um deles é relativamente ao close() "has no member close" Cumprimentos Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted September 2, 2018 Author Share Posted September 2, 2018 Sim esta, verifica se tens este include : <fstream> Link to comment Share on other sites More sharing options...
Mhyper Posted September 2, 2018 Share Posted September 2, 2018 (edited) 11 hours ago, Tierri Lopes said: Sim esta, verifica se tens este include : <fstream> Agora aparece este erro: Hidden Content Give reaction to this post to see the hidden content. Edited September 2, 2018 by Mhyper Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted September 2, 2018 Author Share Posted September 2, 2018 Manda o teu ficheiro todo do tutorial, o locale.cpp Link to comment Share on other sites More sharing options...
Mhyper Posted September 2, 2018 Share Posted September 2, 2018 6 hours ago, Tierri Lopes said: Manda o teu ficheiro todo do tutorial, o locale.cpp Aqui.. Pastebin: Hidden Content Give reaction to this post to see the hidden content. Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted September 2, 2018 Author Share Posted September 2, 2018 Hidden Content Give reaction to this post to see the hidden content. Abre a localização C:\ProgramData e vê se tens um ficheiro chamado "arg2.txt" com o texto "teste". Se sim, então podes prosseguir e descomentar a linha: Hidden Content Give reaction to this post to see the hidden content. Link to comment Share on other sites More sharing options...
Mhyper Posted September 3, 2018 Share Posted September 3, 2018 56 minutes ago, Tierri Lopes said: Hidden Content Give reaction to this post to see the hidden content. Abre a localização C:\ProgramData e vê se tens um ficheiro chamado "arg2.txt" com o texto "teste". Se sim, então podes prosseguir e descomentar a linha: Hidden Content Give reaction to this post to see the hidden content. Continua com o mesmo erro.. Weird Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted September 3, 2018 Author Share Posted September 3, 2018 UserInterface/StdAfx.h Adiciona: Hidden Content Give reaction to this post to see the hidden content. Link to comment Share on other sites More sharing options...
Mhyper Posted September 3, 2018 Share Posted September 3, 2018 (edited) 1 hour ago, Tierri Lopes said: UserInterface/StdAfx.h Adiciona: Hidden Content Give reaction to this post to see the hidden content. Agora funciona.. Tenho outra questão, queria colocar esta função num ficheiro php, de modo a tornar isto mais útil e gerar o argumento automaticamente de x em x minutos, no entanto não consigo fazer com que seja feito o download do php e que o output seja colocado no txt.. Hidden Content Give reaction to this post to see the hidden content. Cumprimentos Edited September 3, 2018 by Mhyper Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted September 3, 2018 Author Share Posted September 3, 2018 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now