15,901,426 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 Javascript questions
View Visual Basic questions
View Python 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 Suryakant Turing (Top 27 by date)
Suryakant Turing
11-Apr-16 13:47pm
View
Deleted
Jochen is there any other way except this- main entry point, service entry point, and service control handler, if possible.
Suryakant Turing
11-Apr-16 13:18pm
View
Jochen is there any other way except this- main entry point, service entry point, and service control handler if possible.
Suryakant Turing
11-Apr-16 13:14pm
View
I do not know what is it. I want to create service of my .exe file without ->main entry point, service entry point, and service control handler. If possible.
Suryakant Turing
10-Apr-16 11:30am
View
Yes man I want the same thing as u said, the list view. Can I use this in my code (on my window to display )through the link, so that I can copy from the list too.
Suryakant Turing
9-Apr-16 11:28am
View
The code for creating a Edit control is here.
case WM_CREATE:
hWndEdit=CreateWindow(_T("EDIT"), // We are creating an Edit control
NULL,
WS_CHILD | WS_VISIBLE | WS_HSCROLL |
WS_VSCROLL | ES_LEFT | ES_MULTILINE |
ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE|ES_USER_PRESENT,
0, 0, 0, 0, // Let the WM_SIZE messge below take care of the size
hwnd,
0,
hInst,
NULL);
then to display on window I used
case WM_PAINT:
case WM_PAINT:
PAINTSTRUCT ps;
SendMessage(hwnd, WM_SETTEXT, 100, (LPARAM) e1[m].lpstring1);
TextOut (hDC,
10,
10,
// Text to print
(LPSTR)"hello coders",
10);
EndPaint (hwnd, &ps);
I think it is enough to answer.
I think there should be something change in the third argument in the create Window. Is it?
Suryakant Turing
28-Feb-16 10:26am
View
because I want to make something like that. Something which is not only a .exe but like a software (an actual software working on console).
Suryakant Turing
28-Feb-16 10:14am
View
Is there any step by step process if you can tell me. I am using Codeblocks IDE and not Visual Studio.
Suryakant Turing
26-Feb-16 14:37pm
View
I followed your link, found some important issues also but still I doesn't overcome my problem to display(not print) my text(from a variable TCHAR type) on the window I created, whenever a click on a specific menu item.
Give me some idea or content related to this only.
Suryakant Turing
26-Feb-16 9:05am
View
Thanks Richard. Now I got it.
But I have a function that prints the text using "_tprintf", and it doesn't print the text on the window when I call it. I implemented the Edit control on the client window.
Suryakant Turing
25-Feb-16 11:41am
View
I mean that when I print "Hello Window" on the windows then it can be - selected, copied by the mouse.
And this does not happen when I use WM_PAINT to print the text.
Suryakant Turing
25-Feb-16 2:47am
View
Richard that was my mistake. I was taking IDM term as predefined.
But I still have a problem, I want my data in detail form and not printed when I click a particular menu item.
Suryakant Turing
24-Feb-16 20:49pm
View
Richard they all use IDM and it want solution without IDM. At least how to respond to the menu items.
Suryakant Turing
21-Feb-16 4:49am
View
So, either u can use a function, and add a condition in it, i.e. whenever a character(that u want to replace) matches the condition then replace it with " , "
Suryakant Turing
20-Feb-16 9:36am
View
I already mentioned that if I close the console window, it must show the last computed data also.
Suryakant Turing
20-Feb-16 8:48am
View
I updated the question as you asked.
Suryakant Turing
20-Feb-16 6:15am
View
Thanks Richard.
But, can u elaborate, please, It will be great full to you. I mean how.
Suryakant Turing
14-Feb-16 13:30pm
View
OK Dave. But can u suggest me a way, how can I retrieve the start time of multiple "Folders"(I mean the folders with Yellow file icon) opened.
Suryakant Turing
14-Feb-16 13:24pm
View
functions I used are
GetProcessTimes();
FileTimeToSystemTime();
SystemTimeToTzSpecificLocalTime();
parameters accordingly.
Suryakant Turing
12-Jan-16 13:45pm
View
I agree but these can't give me the dynamic control as I want.
Suryakant Turing
12-Jan-16 13:40pm
View
Dave look what I have got,
#include<iostream>//iostream
#include<windows.h> //windows.h
#include<stdio.h> //stdio.h
#include<tchar.h> //tchar.h
#include<psapi.h> //psapi.h
using namespace std;
TCHAR lpstring[500];
HWND hwnd;
BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam);
int main()
{
EnumWindows(EnumWindowsProc, NULL);
return 0;
}
BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam)
{
char class_name[80];
char title[80];
DWORD lpdwProcessId;
int nmax;
if(IsWindowVisible(hwnd))
{
GetWindowText(hwnd, lpstring, nmax);
if(!_tcsstr(_T("Start""Program Manager"),lpstring))
_tprintf(TEXT("%s (PID: %u)\n\n"),lpstring,lParam);
}
return TRUE;
}
I minimized my code and got all the application as in Task manager. Every thing is working properly except:-
1. Windows Media Player(It is traced 4 times)
2. I want to make this program dynamic i.e. whenever I open an application it should be automatically shown on the console without run it again and again.
Tell me.
Thanks
Suryakant Turing
12-Jan-16 13:05pm
View
Deleted
Dave look what I have got,
#include <iostream> //iostream
#include <windows.h> //windows.h
#include <stdio.h> //stdio.h
#include <tchar.h> //tchar.h
#include <psapi.h> //psapi.h
using namespace std;
TCHAR lpstring[500];
HWND hwnd;
BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam);
int main()
{
EnumWindows(EnumWindowsProc, NULL);
return 0;
}
BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam)
{
char class_name[80];
char title[80];
DWORD lpdwProcessId;
int nmax;
if(IsWindowVisible(hwnd))
{
GetWindowText(hwnd, lpstring, nmax);
if(!_tcsstr(_T("Start""Program Manager"),lpstring))
_tprintf(TEXT("%s (PID: %u)\n\n"),lpstring,lParam);
}
return TRUE;
}
I minimized my code and got all the application as in Task manager. Every thing is working properly except:-
1. Windows Media Player(It is traced 4 times)
2. I want to make this program dynamic i.e. whenever I open an application it should be automatically shown on the console without run it again and again.
Tell me.
Thanks
Suryakant Turing
10-Jan-16 9:10am
View
Hello Pheonyx, can u please tell me that how to do the same program in c++,because it is very complicated in c++.
Suryakant Turing
10-Jan-16 9:00am
View
Deleted
Thanks Dave, but please can u tell me that what to do after I get all the running processes. Because I only need the "running applications(or-> a running application that has a window on my laptop screen)" like in application tab of Windows Task Manager and NOT the running Processes.
Suryakant Turing
10-Jan-16 9:00am
View
Thanks Dave, but please can u tell me that what to do after I get all the running processes. Because I only need the "running applications(or-> a running application that has a window on my laptop screen)" like in application tab of Windows Task Manager and NOT the running Processes.
Suryakant Turing
10-Jan-16 8:52am
View
Thanks Sergey, but as I already specified in my question that I only want the "current Running applications" as we see in "Application Tab of the Windows Task Manager" and "NOT the Processes".
Suryakant Turing
3-Nov-15 2:17am
View
I got your point but I still getting zero output while using FindWindow() and then IsWindowvisible().
I also have process Id and execution application name if it can help in another way.
Thank you
Suryakant Turing
13-Sep-15 13:15pm
View
Thanks, for your solution, it can take me to the next level of my programming.
Show More