Waitrud Weber’s blog

things and reminders for memories

2020-01-01から1年間の記事一覧

Analyzer: get_char (STRUCT_FILE sf): ensured the type of character strings:

so, we could analyze one of movie formats mp4, we think sure. ---i: 19: |2avc1|i: 20 loop starts. struct_fp.fp |1991220328|get_char starts.struct_fp.fp |1991220328| struct_fp.index |20|struct_fp.fp |1991220328|get_char ends.i: 20: |avc1|i:…

3d: Retun vPoint* all from basic functions: and then free vPoint* automatically kept inside the function in C++.

Stop coding:Change it on the tactics. ---vPoint.h:5:7: note: candidate: constexpr vPoint& vPoint::operator=(const vPoint&) class vPoint { ^~~~~~vPoint.h:5:7: note: no known conversion for argument 1 from 'vPoint*' to 'const vPoint&'vPoint.…

3d: windows-make: Revisement: Support or not: the answer is not on the theory.

Support to "return (*vPoint)";Memorization must be global and should adinistrated so that it satisfys the below: vPoint vTriangle::getNormal() { vPoint nrml; vPoint ap, bp; vCalculation *cal = nullptr; cal = new vCalculation (); ap = cal->…

3d: windows-make: rebuild parabola

we sure, this program stopped on the Calculation of parabola.printed is the below, so that we think, that calculation is perspective-view. intersection_001 = p( 377.311493, 438.347473, -130.084869)result_001 = p( 190.358154, 319.058716, 50…

Analyzer: under thread functions are still living:

We ciould use stack and parameter copy once under mainthread.We ciould use stack and parameter copy once under mainthread.main_thread: wbuttoncontroller: Process WmChar: -> getchar_something_word_proc WmPaint void wButtonController::Proces…

3d : windows-make: copy or not under windows thread:

You should define all-Parameters under windows a main thread, And which should be copied or not befor dispatch the under functions, you created, we think copying is better.

3d: Step forward Visual Studio: Good System: WinUser.h

(20201212: Visual studio) In WinUser.h "DrawText" is defined like the below. If we use "DrawText" as normal, the function of "DrawTextW" is selected, which means not ascii but UNICODE selected. "WinUser.h" WINUSERAPI _Success_(return) int …

3d: Step back to Mingw:

We found error by use of compiler and copy the file from another project. And we compiled it, the file of vCaluculation.cpp not recognised by compiler. file error: https://github.com/WaitrudWeber/source_zip/blob/master/cg-mingw-20201212-00…

3d: Part of Solutions:

Part of Solutions: 1. Kill an InvalidateRect: in mainWindowProc.2. Kill any other InvalidateRect. When you Keyup in mainWindowProc only, we can refresh(*1) a screen. (*1)refresh = InvalidateRect Next of Solutions: 1. Call the simple drawin…

3d: Windows visual studio comunicator Error, we limited.

w001:From files, we think, one of IDE problems. https://github.com/WaitrudWeber/source_zip/blob/master/cg-20201209-001.zip https://github.com/WaitrudWeber/source_zip/blob/master/cg-20201210-001.zip https://github.com/WaitrudWeber/source_zi…

3d : Curve, first, we think:

Line( x, y, z, t ) = ( A2 - A1 ) * t + A1 a = | A2 - A1 | f(x) = x * ( x - a )~2; Curve1( x, y, z, t ) = Line( x, y, z, t ) + normal( CF1 - A1 ) * f( t ) Curve2( x, y, z, t ) = Line( x, y, z, t ) + normal( CB2 - A2 ) * f( t ) Curve = ( Cur…

Analyzer: char* get_string ( STRUCT_FILE structure_fp, int num ) ; : we ensured

We could check if get_string works or not. checked-function test-lootin v get_string found_enter_002 v get_char found_enter_001 // // // char* get_string ( STRUCT_FILE structure_fp, int num ) { long diff; char c; printf("get_char starts.\r…

Analyzer: get_char (STRUCT_FILE sf): ensured the type of character.

we ennsure the set and decrease of index. 1. increasing from 0 to 9. 2. decreasing from 100 to 91. // // // // // int found_enter_001 (char* filename) { FILE *fp; char b_dummy[256]; int i, j ; int file_end; STRUCT_FILE structure_fp; char c…

html: stylesheet: which position, you'd rather love: type4: the answer is from the before of the tag.

:source:<div style="height:500px; width:500px; background:#dddddd"></div> source2:<div style="height:500px; width:500px; background:#dddddd; position:relative; left:0px top:0px"> </div>

html: stylesheet: which position, you'd rather love: type4

source:<div style="height:500px; width:500px; background:#dddddd"></div> source2:<div style="height:500px; width:500px; background:#dddddd; position:relative; left:0px top:0px"><img src="300x300-001.png" "style="position:absolute; left:100px;" width="300" height="300"></div> <br>

html: stylesheet: which position, you'd rather love: type3

source:<div style="height:500px; width:500px; background:#dddddd"></div> source2:<div style="height:500px; width:500px; background:#dddddd; position:relative; left:0px top:0px"><img src="300x300-001.png" "style="position:absolute; left:100px;" width="300" height="300"></div> <br>

html: stylesheet: which position, you'd rather love: type2

typesource:<div style="height:500px; width:500px; background:#dddddd"></div> Position means:

html: stylesheet: which position, you'd rather love:

source:<div style="height:500px; width:500px; background:#dddddd"></div> Position means:

3d: parabola and memorization: we lost a pointer.

(20201114: )if t=0, the point is in the midle between p1 and p2, so, we add ( - the middle point ) And, middle_001 is a new pointer, and we do not control the pointer after the function add returns so that we could lose a pointer. middle_0…

3d: windows-make: parabola, anyway, displayed.

(20201113)Box is fixed, and the function of battlefield does nt effect any other functions, so, the problem is closed.s and dt are flipped, which is my mistaken.Anyway, the problem is closed, we ensured. // p1: Anchor // p2: setting contro…

3d: windows-make: parabola, which is one of considers as changed

We can not choose function-name at that time.And we modify this to the one of considers as function. 0 <= t <= 1 #include #include #include // ADD: 20191230 #include "array_counter.h" // ADD: 20191230 #include "sender.h" // ADD: 20191230 #…

3d: Return to basic: what is parabola?

3d: Return to basic: other side: one of considers 0 < t < 1s = t - 1 L1 and L2 are lines. t * L1 + s * L2 (formula1) the above doesn't have parabra.And, from L1 to L2 are lined if you display fomula1.The start always has been here.And, we'…

Analyzer: windows-make: A file pointer should inclement(++) or its specification:

A file pointer should inclement(++) if we find the character, we think, the below is a error. souce code: souce is the below. .\main.cpp Wed Nov 04 19:14:56 2020 380 :// 381 :// 382 :// 383 :// 384 :// 385 :int found_enter_001 (char* filen…

Analyzer: windows-make: On the Analyzer in the C language: we could scope which info we can see.

in this situation, 1. you could find index 0 to size.2. so, getchar must know about start of file point in C language.3. we use better a type of structures for analyzer. so, the function lootin is like the below. char getchar( FILE fp, int…

Analyzer: windows0-make: Simple or Not: On the Analyzer in the C language.

1. if we find the ';', which is the prototype. // return 02. if we find the '{', which is the code block. // return 1 so, the function lootin is like the below. int prototypeorcodeblock ( FILE *fp, int file_index, int file_end ); int proto…

Visual Studio Sounds program: should be defined simply as "on the windows thread problem".

20201027: The below should be defined simply as "on the windows thread problem". 1. the source code were compiled well.1-1. which means library "mmsystem.h" attached.2. the created execution-file doesn't work. on the windows thread problem…

Analyzer: windows-make: prototypeorcodeblock:

On the Analyzer in the C language,On the Analyzer in the C language,1. if we find the ';', which is the prototype. // return 0 2. if we find the '{', which is the code block. // return 1so, the function lootin is like the below. int protot…

sounds system: buffered mixing:

The most simple answer is mixing for sounds program. char 0 -> 255int 0 -> 256 ~ 4 (might be ) - 1 = 4294967296 - 1 #define BUFFER_MEMORYES 255 int buffered_memory_000[BUFFER_MEMORYES]; int buffered_memory_001[BUFFER_MEMORYES]; int buffere…

About mmsystem.h : touch or not:

We don't touch this problem, we found already in this program audio-files and could not read them by use of "MCI_OPEN_PARMS ".Binary atached and we could compile by use of this inclusion. int mm_initialization() { int result; LPSTR buf; ch…

Visual Studio Sounds program: They sound at the same time.

Inclusion of mmsystem and load of wave files for sounds different wav files at the same time were success on the code below.However, we can not find the sounds file. #include #include #pragma comment(lib,"winmm.lib") #define MSG(m) {\ Mess…