This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:multiasm:papc:chapter_6_9 [2026/02/27 01:52] – [Merging of the High-Level Languages and Assembler Code] jtokarz | en:multiasm:papc:chapter_6_9 [2026/02/27 02:50] (current) – [Merging of the High-Level Languages and Assembler Code] jtokarz | ||
|---|---|---|---|
| Line 135: | Line 135: | ||
| if (!dllHandle) | if (!dllHandle) | ||
| { | { | ||
| - | std::cerr << " | + | |
| - | return 1; | + | return 1; |
| } | } | ||
| MyProc myAsmProcedure = (MyProc)GetProcAddress(dllHandle, | MyProc myAsmProcedure = (MyProc)GetProcAddress(dllHandle, | ||
| if (!myAsmProcedure) | if (!myAsmProcedure) | ||
| { | { | ||
| - | std::cerr << " | + | |
| - | FreeLibrary(dllHandle); | + | FreeLibrary(dllHandle); |
| - | return 2; | + | return 2; |
| } | } | ||
| std::cout << myAsmProcedure(); | std::cout << myAsmProcedure(); | ||
| Line 274: | Line 274: | ||
| std::cout << " | std::cout << " | ||
| returnValue = addInAsm(a, | returnValue = addInAsm(a, | ||
| - | std::cout << "Sum of " << a << " and " << b << " is " << returnValue << std::endl; | + | std::cout << "Sum of " << a << " and " << b << " is " << returnValue |
| + | | ||
| return 0; | return 0; | ||
| } | } | ||
| </ | </ | ||