16,018,805 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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