NO

Recent Posts

Pages: [1] 2 3 ... 10
2
Tips & tricks / Re: ATL example
« Last post by bitcoin on Yesterday at 02:20:42 am »
Yes! I did it !!!
I take number of guid from https://www.magnumdb.com

Another code i take from Timo sources
Code: [Select]
DEFINE_GUID(IID_IWebBrowser2,0xd30c1661,0xcdaf,0x11d0,{0x8a,0x3e,0x00,0xc0,0x4f,0xc9,0xe2,0x6e});

HRESULT __declspec(dllimport) WINAPI AtlAxGetControl(HWND h,IUnknown** pp);

///skipped
case WM_CREATE:
hr = AtlAxWinInit();
hBrowser = CreateWindowEx(WS_EX_STATICEDGE, "AtlAxWin",
"https://yandex.ru",
WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL
, 0, 0, 0, 0, hWnd,
(HMENU)IDC_BROWSER, GetModuleHandle(NULL), NULL);
AtlAxGetControl(hBrowser, &unkn);
unkn->lpVtbl->QueryInterface(unkn, &IID_IWebBrowser2, (void **)&pBrowser2);
pBrowser2->lpVtbl->put_Silent(pBrowser2,TRUE);

All works! Thanks Timo, thanks to you, I understood COM a little (can to copy-paste it).
3
Tips & tricks / Re: ATL example
« Last post by bitcoin on Yesterday at 01:33:46 am »
I discovered, that need option Silent->true (in IWebBrowser2). But how to add it, if ATL hided all options?
4
Tips & tricks / Re: ATL example
« Last post by bitcoin on August 22, 2019, 05:52:48 pm »
TimoVJL, if I open some pages with ATL browser, I have javascript error. That annoying me from many messageboxes (script error, continue?)
Do you know, how to disable it? And why original Internet Explorer don't show this.
5
Add-ins / Re: AddInLoad, Add-In loader
« Last post by TimoVJL on August 21, 2019, 03:06:06 pm »
Sorry about that.

AddGuard Add-In insert guard lines to header file.
example for foo.h
Code: [Select]
#pragma once
#ifndef _FOO_H
#define _FOO_H
#endif // _FOO_H
That an Add-In is here with sources:
https://forum.pellesc.de/index.php?topic=4968.msg18765#msg18765

In github there is no documentations yet, but later there should be *.txt file for it, maybe in a doc folder.
6
Add-ins / Re: AddInLoad, Add-In loader
« Last post by bitcoin on August 21, 2019, 02:13:11 pm »
Where I can get some descriptions about add-ins? As example, what do AddGuard?
I mean, the description will be helpfull for all.
7
Add-ins / Re: CppFile Add-In, a modified version
« Last post by TimoVJL on August 21, 2019, 12:44:57 pm »
Just add correct WinDDK lib-folder to project lib-folders. Project -> Project options... -> Folders -> Libraries
8
Add-ins / Re: CppFile Add-In, a modified version
« Last post by bitcoin on August 21, 2019, 12:30:57 pm »
Quote
I rather use a WinDDK 7.10 files, as it have a support for msvcrt.dll
if I add WinDDK includes, i have error with LIBCMT.lib
Okay, I probably have path errors. The main thing is that clean  ะก++ code compiles well. thank!
9
Add-ins / Re: CppFile Add-In, a modified version
« Last post by TimoVJL on August 21, 2019, 11:42:45 am »
It's just a M$ header/lib hell.
Code: [Select]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt
Code: [Select]
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x86
Code: [Select]
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64I rather use a WinDDK 7.10 files, as it have a support for msvcrt.dll

Windows is not a Microsoft Visual C/C++ Run-Time delivery channel
10
Add-ins / Re: CppFile Add-In, a modified version
« Last post by bitcoin on August 21, 2019, 11:27:25 am »
I added includes from VC98 , and create new project.. So, I have new error

> polink.exe -machine:x86 -subsystem:console -safeseh kernel32.lib advapi32.lib delayimp.lib -out:"D:\oop1.exe" D:\output\oop1.obj
POLINK: warning: Section '.gfids$y' is not supported; ignored.
POLINK: fatal error: File not found: 'libucrt.lib'.

So, I delete #include <stdio.h> and add option NODEFAULTLIB (ignore standart places) , and it work! Thank!

But why can not I use the CRT? Is this normal for C++ or am I having an error?
Pages: [1] 2 3 ... 10