Click here to Skip to main content
15,886,026 members

Videos


Page 1 of 22
1 2 3 4 5 6 7 8 9 10


.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
1. How to build a gui program that locks an exe file with given password by user
To implement that you need to have the base program which performs an encryption your exe with the given password and create primary executable - let's call this application "Creator". In this application you specify the password and select an...
General Programming » File »
Maxim Kartavenkov Updated: 29 Feb 2024
Rating: 4.78/5 ( (2 votes))
2. Can I convert from LPCWSTR to LPCSTR
In additional to solution 2, I can say following. In some cases conversion can be done easy with the ATL helper conversion macros which can be used inline: W2A, A2W and their variations. To use that macro you can call once in the view scope - for...
Maxim Kartavenkov Updated: 27 Feb 2024
Rating: ( (No votes))
3. Is there a way to find which COM pointers are not released?
In practice to control releasing instances of the COM objects in the application you can use the helper template classes such as CComPtr CComQIPtr or CInterfaceList of the ATL. That allowing you to work with COM interfaces as with the regular C++...
Maxim Kartavenkov Updated: 27 Feb 2024
Rating: 5.00/5 ( (1 vote))
.

()
» »
Updated:
Rating: ()
4. How do I create a C++ console program that does not show a screen?
You can create regular windows application not the console application, just do not create any dialogs and proceed like you do as you had the console application. There will be just linker configuration change and the function WinMain instead of...
Programming Languages » C++17 »
Maxim Kartavenkov Updated: 24 Jan 2024
Rating: 5.00/5 ( (1 vote))
5. H264 Encoder DirectShow Filter in C# on AMD GPU
Make H.264 Video Encoder DirectShow Filter in C# using AMF SDK API from AMD
Multimedia » Video »
Maxim Kartavenkov Updated: 24 Jan 2024
Rating: 5.00/5 ( (3 votes))
6. MFC compilation errors due to windows platform #defines. Struggling to diagnose reason.
To figure out the first issue under compiler settings on C/C++ Advanced tab choose "show includes" and it display during build the includes sequence - this way you can find is the NTDDI_VERSION defined at all before the file you interested in, or...
Maxim Kartavenkov Updated: 24 Jan 2024
Rating: 5.00/5 ( (2 votes))
.

()
» »
Updated:
Rating: ()
7. C++20 constrained auto&& not a "universal reference"
In your code: template concept con = std::is_class_v && std::derived_from; I guess should be Base instead of base
Programming Languages » C++20 »
Maxim Kartavenkov Updated: 19 Jan 2024
Rating: ( (No votes))
8. Why does my code produce an entirely black window client area colour without any display on using double bufffering to prevent flicker.
From the first look: you des not specify the pen and brush colors for the drawing.
Maxim Kartavenkov Updated: 19 Jan 2024
Rating: 5.00/5 ( (1 vote))
9. Why does graphic class's draw image not draw an image on my dialogue box?
1. Be sure that you have initialize the GDI+ library by calling GdiplusStartup API. 2. Check whatever image successfully loaded by using GetLastStatus method of the Image class after loading the file. 3. Check last status of the Graphics...
Maxim Kartavenkov Updated: 18 Jan 2024
Rating: ( (No votes))
10. Why is address of array not convertible to ** in C?
Such warning means that you should explicitly set the resulted casting type this means that you understand that result of usage such variable in the code can cause crash or memory leaks. As an example the comments code from this discussion...
Maxim Kartavenkov Updated: 17 Jan 2024
Rating: 5.00/5 ( (2 votes))
11. COM LPC, RPC and secure communication
On application layer you can start to look from the topic: COM+ Security Concepts - Win32 apps | Microsoft Learn[^] It starts from the basic description and go down to the implementation. Next thing you can look is the COM+ events: COM+ Events...
RPC » »
Maxim Kartavenkov Updated: 9 Jan 2024
Rating: 5.00/5 ( (1 vote))
12. I am learning to develop WMI provider
You should specify on what language you want to implement it. In .NET it's more easy to make: you should declare class with fields which you planning to pass as an event arguments. The class should have fields only and have class attribute...
WMI » »
Maxim Kartavenkov Updated: 9 Jan 2024
Rating: ( (No votes))
13. How to use C# hide all visible windows in windows.
In additional to previous solution and notes of EnumWindows I want to point that if you running code as particular user and the application which is owning window you want to hide as admin then the function ShowWindow will fail. Also from the...
Maxim Kartavenkov Updated: 8 Jan 2024
Rating: ( (No votes))
14. Clearing opengl errors causes exception
You can see an answer from your error message text: Exception thrown at 0x00000000 in Application.exe: 0xC0000005: Access violation executing location 0x00000000. This means that your code call something at the address of 0x00000000. So...
Multimedia » OpenGL »
Maxim Kartavenkov Updated: 8 Jan 2024
Rating: ( (No votes))
15. C++/CLI interop: unexpected behaviour of variadic function
The varargs does not supported under clr. Yes you can use it without problem with unmanaged code but on managed it has the underlaying type as System::Double or System::Int32 which unable to properly transmit as variadic argument. You can create...
Maxim Kartavenkov Updated: 30 Nov 2023
Rating: 5.00/5 ( (3 votes))
16. Pass from cstring to system::string from C++ to C#
.NET string type constructor accepts the raw character array as an arguments. So, along with marshal_as you can do it next way: std::string std_string = "Some text"; String^ s = gcnew String(std_string.c_str()); Regards, Maxim
Maxim Kartavenkov Updated: 30 Nov 2023
Rating: 5.00/5 ( (1 vote))

Page 1 of 22
1 2 3 4 5 6 7 8 9 10