Waitrud Weber’s blog

things and reminders for memories

2019-03-01から1ヶ月間の記事一覧

WindowsAPI: about LPFILETIME

LPFILETIME is even a pointer. I used GetFileTime which returned 3 bytes as maybe FILETIME to LPFILETIME. > .\copy_001.execreationtime: 14749440lp_creationtime: 0lp_creationtime_256: 14750232n 0: cn: 40n 1: cn: 113n 2: cn: -31n 0: cn: 40n 1…

WinAPI: print file list on the screen.

Choose "Ctl" and Press 'p', so that you could see file list on the screen. I'm pleasure if you download the below. https://github.com/WaitrudWeber/source_zip/blob/master/winmain-20190329.zip Please reffer to the below for compilation.https…

WindowsAPI: FileControler::get_files

get_files does not use std but char string. I'm pleasure if you download the below. https://github.com/WaitrudWeber/source_zip/blob/master/directory_20190327.zip Please reffer to the below for compilation. https://waitrudweber.hatenablog.c…

WindowsAPI: aliment: convert every strings to char string(char*)

1 :#ifndef _FILE_CONTROLER_H_ 2 : 3 :#define _FILE_CONTROLER_H_ 4 : 5 ://using namespace std; 6 : 7 :class FileControler 8 :{ 9 : public: 10 : // void List_Files () ; 11 : //void List_Files(std::string strPath); 12 : void List_Files_001(ch…

Hatena: The reason we have to think about copy right in software.

In copy right, we copied source codes illegally or not, which is only thing.We can refer to source codes which someone produced.For sale we used someones's source code which is open and created the part of codes ourselves.We saled software…

GNU License に関して(雑記)

The Foundations of the GPL Nobody should be restricted by the software they use. There are four freedoms that every user should have: the freedom to use the software for any purpose, the freedom to change the software to suit your needs, t…

GNUに関して(雑記)

GNUの抜粋 http://www.gnu.org/licenses/licenses.en.html Proprietary software developers use copyright to take away the users' freedom; we use copyright to guarantee their freedom. That's why we reverse the name, changing “copyright” into “c…

GNU License に関して(雑記)

GNUの著作権は、独立した宣言で、各国の著作権法の範囲外の話とは? 独立した宣言とは?例1)アメリカ独立宣言とは、国という考え方が世界にあって、そこから、自治をすると宣言する事と広く理解される。 国の考え方は、統治で、簡単な話、 1.税務 2.運…

Code Analyzer : JPEG loader from xv : whole of it from GPL.

I just show people one of lootines that gives us nspiration and we must care about copyleft of GPL for customizing and delivering. XV has GPL inside its codes. The loader opens file and use jpeg library like bold lines below: === Copyright…

Code Analyzer : RANLIB.csh from xv : we need to convert it to bash shell.

We need to convert RANLIB.csh to bash shell. RANLIB.csh 1 :#!/bin/csh -f 2 :# 3 :# tests to see if the program 'ranlib' exists. If it does, runs ranlib on 4 :# the first argument (a library name). Otherwise, does nothing, and returns 5 :# …

Comments Rule 002 : Write "subroutine" as subject

// it refers all to // https://stackoverflow.com/questions/11362771/list-files-in-directory-c // https://bituse.info/winapi/31 // // Parameters // // lpcstr_path // // Directory name which is going to be found files. // // Return Value // …

Comments Rule 001 : we could use "we" as process

In the function. the function might return value, but the process would still continued inside the function depending on situations. Elder comments indicates "If we're still here, ..." Rule 001: We could use "we" as cooment as program. xcu…

WindowsAPI: System Lootin : get_files :001

Good thing or not. I felt something. 21 :// 22 :// it refers all to 23 :// https://stackoverflow.com/questions/11362771/list-files-in-directory-c 24 :// https://bituse.info/winapi/31 25 :// 26 :// Parameters 27 :// 28 :// lpcstr_path 29 :/…

Difference Between CVS and SVN : 20190310

www.differencebetween.net Probably the biggest improvement to SVN is the addition of ...Read more: Difference Between CVS and SVN | Difference Between | CVS vs SVN http://www.differencebetween.net/technology/difference-between-cvs-and-svn/…

Code Analyzer: Ho do we use string function in C++ in application

The rule of Not dropping application in C++ is only the below: 1. Use allocation like new. so, we must pass Instance to other function as pointer. // aToken *iToken; <- do not use like this. aToken *iToken = nullptr; // <- use like this. c…

Code Analyzer: String function 005

566 :int m_contains ( char* c_str, char* c_ref ) { 567 : 568 : int unmatch = 0; 569 : int ref_length = array_count( c_ref ); 570 : int length = array_count( c_str ); 571 : for ( int i=length -1; i >= 0; i-- ) { 572 : for ( int j=ref_length…

Code Analyzer: String function 004

460 :char* copyof ( char* str ) { 461 : int ac = array_count(str); 462 : char* mem = (char*)malloc( sizeof(char) * (ac + 1) ); 463 : put_memories( mem ); 464 : 465 : for ( int i=0; i

Code Analyzer: String function 003: Sub: put_memories

148 :char** put_memories ( char* str ) { 149 : 150 : if ( dummy_ary_index == 0 ) { 151 : dummy_ary = (char **) malloc( sizeof(char*) ); 152 : dummy_ary_index = 1; 153 : dummy_ary[ 0 ] = str; 154 : } else { 155 : dummy_ary_index++; 156 : du…

Code Analyzer: String function 003: m_replace

104 :char* m_replace ( char* char_string, 105 : char* from_string, char* to_string ) { 106 : char c1, c2; 107 : int count = array_count( char_string ); 108 : int a_f = array_count( from_string ); 109 : int a_t = array_count( to_string ); 1…

Code Analyzer: String function 002

99 :// 100 :// 101 :// 102 :// 103 :// 104 :char* m_replace ( char* char_string, 105 : char* from_string, char* to_string ) { 106 : char c1, c2; 107 : int count = array_count( char_string ); 108 : int a_f = array_count( from_string ); 109 …

Code Analyzer: String function

String function should be necesarily for analyzer. The point of creation of it are: 1: use malloc. 2: put '\0' to the last of char string. 3: do not use std other, otherwise you would have fixed code for inclusion. 4: use garbage collectio…

Hatena: Reallocation needs cast that you do not forget to put.

57 : result_001 = err_msg_001 ( "check of slide_to_back: |%s| ", msg_2 ); 58 : int cnt = array_count( msg_2 ); 59 : cnt++; 60 : msg_2 = (char *) realloc ( msg_2, sizeof(char*) * cnt ); // Do not forget to place cast (char *) 61 : // slide_…

Hatenna: dictionaries

I've forgiven security errors. But, now I can hardly see doctopmaru so blurred when I see it. dictionaries -> doctopmaru

Hatenna: obvious

doesn't -> doesn'T console -> consol obvious->obivious and I must modify them. Before I try to write obvious I misunderstood and not sure obvious is "obious" or "ovious". I've forgiven that If I was. But this time... People do not believe …

Hatena: Console and File : File doesn'T accept a keyword but console it.

===== colsole log ===== Wed Mar 06 17:42:53 201 change_line_end: msg:i 0 count 155 :a: Wed Mar 06 17:44:28 201 change_line_end: msg:2{ :a: Wed Mar 06 17:46:17 201 change_line_end: msg:{ :a: Wed Mar 06 17:48:47 201 change_line_end: msg:{ :a…

Hatena : memory calculatior

char memories doe'nt print by use of memory calculatior like *(msg + i ) in sub lootin. 123 : 124 :void print_memories ( char *msg ) { 125 : int count = array_count(msg); 126 : 127 : printf("msg:|%s|\r\n", msg); // the left works well. 128…

Hatena: Do not initialize with extern.

Do not initialize with extern in header file. >mingw32-g++ -Wall -O3 -o array_counter.o -c array_counter.cpp In file included from array_counter.cpp:5:0: array_counter.h:14:14: warning: 'char_line_end' initialized and declared 'extern' ext…