Waitrud Weber’s blog

things and reminders for memories

WindwosAPI

3d: windows-make: Parameter we can get by the use of character array.

I choosed that way on the title, which is going to be values and TCHAR. int record_well () { WAVEINCAPS wave_in_caps_value; LPWAVEINCAPS param; char apram[255]; // // // apram[0] = '\0'; err_msg_001("INI:LPWAVEINCAPS=|%s|.\r\n", (LPWAVEINC…

3d: windows-make: Reading the device of Microphone.

Recognision of Microphone is well.We can use the windows-api by use of mingw. --- Tue Jan 04 14:50:10 202 INI:LPWAVEINCAPS=||. Tue Jan 04 14:50:10 202 waveInGetNumDevs() return 0. Tue Jan 04 14:50:10 202 waveInGetDevCaps( 0, (LPWAVEINCAPS)…

3d: windows-make: Parameters were effected so that memorization were well.

1. Cursol 8.2. Press "u" -> "v". Parameters were changed well.---WM_MESSG 003-02-01: 257 *(p_evt->uMsg):257WM_MESSG 003-03-01: 257 *(p_evt->uMsg):257wCanvasController::WM_KEYUP: 257void wCanvasController::ProcessWmKeyup () starts.wCanvasCo…

3d: windows-make: memorization error occurs in C++.

Error: memorization and their work. 1. https://github.com/WaitrudWeber/source_zip/blob/master/display-20211222-001-02.zip 2. https://github.com/WaitrudWeber/source_zip/blob/master/display-20211223-001.zip 3. We are supposed to memorize in …

3d: windows-make: Move Operation.

1. Press "l" as an arbitary operation.2. Press "a" to select the point which you'd rather love to move like by use of cursol.3. Press "n" to run "MoveSelectedPoint" for the move operation. is centered is centered. ---int vDisplayController…

3d: windows-make: What does the windows thread in C call.

On the windows thread. We carry on( ride on and execute ) the functions in C and in C++.In C++, we usually use the class object like the following.1. Set parameters.2. Execute.3. Get the result.So, the program example is like the following…

3d: windows-make: Display some Objects with Cursol.

Cusrol Controls: First Step: 1. Choose Cursol 8 with Arrows Up and Down.2, And, You can recognize the Ellipses on the canvas. Their process was very fast. Ellipses Cursol Contorols: 2nd Step: 3. You press the key "TAB" and can choose one o…

3d: windows-make: Calculation is mistaken in 3D before converting it in 2D.

lines in 3D is wrong, at least, I could print it. --- execution 001 ---int vCalculation::subtract starts p1|007BA648| p2|007BA630| p3|0028FB50|p1->x 442.474457vCalculation::subtract:111 starts.|0028FB00|0028FB04|0028FB08||442.474457|310.71…

3d: windows-make: WindowsAPI: we can check axex on the 3D as coordinates.

function Approach_vAxex_2D doesn't change when their movement is small.And, we put CheckAxex() after the calculation of axex.But axex is not printed well at any time.So, we think, after converting the axex on the screen, is their calculati…

3d: windows-make:Which function belongs to the place where we have to clear.

We are going to settle the functions on the table like the below. Table1. Thread work architecture 1 thread type function type file 2 keyup a = spin_screen(); 3d Calculation display_threeD.cpp 3 keyup int b = convert_model_lines_002( (vLin…

3d: sound: windows-make: with mmcompilation we can test by use uf debug_console.

It doesn't work well. And we'd rather love to use more "printf" without mmcompilation only for the sound.url: https://waitrudweber.hatenablog.com/entry/2021/08/13/220225download: https://github.com/WaitrudWeber/source_zip/blob/master/displ…

3d: windows-make: WindowsAPI: memorization well and display of 3 axes.

Buffer indexes are wrong, I'm sorry for that.Anyway, I also change the axes buffer array to the fixed one. 3 axes is displayed well. int nDisplayControls_wmpaint_display_threeD_proc ( HWND hWnd, HDC hDC, PAINTSTRUCT* ps, UINT uMsg, WPARAM …

3d: windows-make: WindowsAPI: memorization well and display of 3 axes.

Memorization is solved if we use the fixed memories array of classes.And something wrong happened as calculation of axes for their display. an axes is wrong displayed. *axex -> axes

3d: windows-make: WindowsAPI: We give up caring of allocation.

On the code:1. if lines[i] is null.*i equals index.And, we are going to use another buffer fixed because we can care of if we know the line after.We put the m_thread_sleep after new allocation and would give it up that allocation.m_thread_…

music: windows-make: we can have more sounds effects amd affections.

Situation: There is a sound in the room. 1. Power1 = b * sine ( a* 2 * PI + t ); If we can have the system of growing parameters which are a, b, t. And for what is your feeling and body. And, If we have two sounds model, we can define the …

music: windows-make: WindowsAPI: buffer is already created.

Situation:1. If we have the other frequent, we can have the tone wave which we set as number(A->B->C->D->E->F->G).2. We'd rather love to create a sine curve or mixing buffer because we've already known and created that base buffer in 1. *1…

3d: windows-make: Compilation with Keyword "new".

Typical pattern, we cannot allocate memories. as a typical pattern, we cannot allocate memories. One of the answers is using "new".The thread doesn't wait for the next line as a process well even in for-loop.--- Execution 001 starts. ---- …

3d: windows-make: WindowsAPI: Bubbling:

We create the bubbling which affects us cool and smooth.(image)

3d: music: WindowsAPI: windows-make: it sounds wave files well.

We can put the sound-lootin in cg_schema.We can sound the wave file in this interface. download: (image) if you press "b", it sounds well. Debug console is necessary for this compilation with wimm.dll. (20210727)Creating a system wave is v…

3d: WindowsAPI: windows-make: initialization is changed.

We modified and created new lootin : iDisplayControls_wmpaint_display_threeD_proc ( HWND hWnd, HDC hDC, PAINTSTRUCT* ps, UINT uMsg, WPARAM wParam, LPARAM lParam )and booked it as case 14 cg_schema. download: https://github.com/WaitrudWeber…

3d: WinAPI: windows-make: memorization error is true or not and we can skip it.

We can skip this problem.lines memories address|00828020| is always allocated. Scanning the pointer in the for-loop failed. |00828350| is still hold on the memories, but at the lines[0] it doesn't exist. ---WM_MESSG 000: hWnd 721456: uMsg …

3d: WinAPI: windows-make: memories are allocated well.

We ensured that axes were memorized well on the below. --- execution 000 ---baselootin_025: starts.dummy_vLine[0] = |003A8350| / 8L|003A8350| p|003A1108|( 0.000000, 0.000000, 0.000000)p|003A10F0|( 500.000000, 0.000000, 0.000000)dummy_vLine…

WindowsAPI: windows-make: Define Four Code Blocks.

The code in windows-thread is becoming long but we do not care of that length. It should be long. We prepare code blocks from 1 to 4. 1 - switch(uMsg) { case WM_KEUP: break; case WM_Pant: break; } 2 - Curosol Work: switch(Cursol_Number) { …

WindowsAPI: windows-make: which controler is right or not.

1. Which does ButtonController depend on.1-1) Create Cursol Controller if you press a Key, switch ( key ) { case 50: btc1.Work_flg = 0; btc2.Work_flg = 1; break; case 51: btc1.Work_flg = 1; btc2.Work_flg = 0; break; } So, they can work wel…

WindowsAPI: windows-make: Creation and Display and Control: Windows Initialization: thinking of all any other without any cases.

There was a problem and Parameter printed. Initialization Cursol_Number2 = 2 switch ( p_evt->Type ){ case WM_PAINT: printf("WM_PAINT 005: %d *(p_evt->uMsg):%d uMsg: %d \r\n", uMsg, *(p_evt->uMsg), uMsg ); EndPaint(hWnd, &ps); printf("WM_PA…

3d: windows-make: windows-make is very good as considered.

In windows-api, the program can have a lot of user messages in one windows-thread, which is very good for us.Considered: Command Assembling, which is very good on Windows thread.Cursol + EnterCursol + Key "p"Key "p" table 1. Command interf…

3d: windows-make: We also have the check of 3D lootin as traditional not modern.

1. Spin can initialize all displayed parameters. 2. If we push "right arrow", all lines are displayed. 3. So, first, we stop calling modeling lines and recognize spinning axes. 4. We are going to check if 1) Model doesn't change in the 3D …

3d: WindowsAPI: windows-make: cursol doesn't work only on the 3rd menu.

Cursol on the 3rd menu from top as p_evt->main_mode, we wrote on a windows thread and doesn't change that cursol if we push UP=38.baselooti_002 ends safely, sp, we think in the wBuuttonController.And, we modified the wButtonController and …

WindowsAPI: 1.Set uMsg as Type for all processes as copying.

cg_schema.hextern wEvent *p_evt; cg_schema.cppwEvent *p_evt = nullptr; winmain_001.cpp#include "cg_schema.h" winmain_001.cpp Thu Jul 08 14:01:05 2021... 621 :// 622 :static LRESULT CALLBACK mainWindowProc ( HWND hWnd, UINT uMsg, WPARAM wPa…

WindowsAPI: user message is changed after call the WM_PAINT.

We can not consider that lootin if we write the code block of case in WM_PAINT. We have the Controler wButtonControler and wCanvas and after we call them we relased all painted work resources and uMsg is changed and Consider code blocks. W…