This the code i found in Stack Overflow but in Delphi not C++:
uses
SysUtils,
ActiveX,
ComObj,
Variants;
procedure AddExceptionToFirewall(Const Caption, Executable: String;Port : Word);
const
NET_FW_PROFILE2_DOMAIN = 1;
NET_FW_PROFILE2_PRIVATE = 2;
NET_FW_PROFILE2_PUBLIC = 4...
Hello,
I'm using the code below to capture desktop screen, but the problem is that the screenshot is taken from the MainForm, and i want to take it from the Secondary TForm instead:
TBitmap* __fastcall TCaptureContainer::CaptureImage()
{
HDC hdcDesk;
try
{
this->bitbmp->Width =...
I created a thread for continuously reading from the TIdTCPServer, but it blocks all my client form, after a moment will go not responsive.
Maybe the problem with the way i created the thread, anyway here is my code for the thread...
hello,
i'm using c++ builder for a quite some time now, i'm having problems including files in order to use some apis like "PcapPlusPlus" for network sniffing,
the problem is when i successfully put my files in the project directory and include them, it always show me 100 thousands of errors...
hello i want to get the base address of my application, so that i can write to it's memory, here is my code below:
DWORD dwGetModuleBaseAddress(TCHAR *lpszModuleName, DWORD ProcessID) {
DWORD dwModuleBaseAddress = 0;
MODULEENTRY32 ModuleEntry32 = {0};
HANDLE hSnapshot =...
Hello,
Does anyone know how to use SQLSERVER database without Microsoft SQL SERVER Management Studio?
because i saw tons of applications don't use the database client.
can any one help me?
hello,
i'm trying to store application Code in the Registry HKLM, but i cannot write, the weird thing is that i can read anything in this Registry Root which is HKLM, but problem is in writing o it:
this is my code:
var KISReg : TRegistry;
KISKey : string;
RandNum1,RandNum2,RandNum3 ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.