Click here to Skip to main content
16,018,805 members

Comments by Member 12054494 (Top 3 by date)

Member 12054494 2-Nov-17 8:38am View    
A basic Windows service in C++ (CppWindowsService) sample in C++ for Visual Studio 2008[^] from this link I got something now it is more clear now but there are other things to be achieved(oracle and plc connection )
Member 12054494 2-Nov-17 7:37am View    
I wrote wincodws service in C# before but I have open source of a service written in C++ and I try to understand how it is working
Member 12054494 23-Mar-17 7:08am View    
#include<iostream>
#include <windows.h>
#include <string>
#include <ctime>
using namespace std;
using std::string;
HWND hToolTipWnd = FindWindow("Notepad", NULL);
std::string GetWindowText( HWND wnd )
{
std::string text;
WPARAM length = SendMessage( wnd, WM_GETTEXTLENGTH, 0, 0 );
if( length > 0 )
{
char *buffy = new char [length+1];

LRESULT got = SendMessage( wnd, WM_GETTEXT, length+1, (LPARAM)buffy );
if( (LRESULT)length == got )
text = buffy;

delete [] buffy;
}
return text;
}
int main()
{
cout << GetWindowText( hToolTipWnd ) ;
getchar();
return 0;
}

I tried a lot of thing.in c# tried to read from memory using 3rd software but no result