15,792,115 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 Python questions
View PHP 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 steveb (Top 29 by date)
steveb
21-Sep-23 20:02pm
View
Did you rebuilt the executable?
steveb
12-Oct-22 11:25am
View
Deleted
You can also use the std::any as a parameter (probably c++20 also but boost library have it) and declare it as void printValues(std::any val1, std::any val2);
But I think the resulting exe image will be slightly bigger than with auto keyword
steveb
12-Oct-22 9:49am
View
There also new type std::any (from boost now made it into the STL). It is also feasible to declare that function as void printValues(std::any val1, std::any val2). But I think the resulting assembly will be much bigger if you care about the exe size
steveb
11-Oct-22 8:52am
View
Ooops. I think I built that in VS 2022 with the C++20 standard enabled. The coolest feature ever I must admit
steveb
9-Oct-22 13:57pm
View
auto specifier is c++11 standard.
steveb
16-Jul-22 12:22pm
View
Stock bid ask recorded data easily goes to 1 TB per day file just for one security
steveb
30-Mar-22 23:46pm
View
This is not C++. Looks like jscript code to me.
steveb
15-Jan-22 7:43am
View
Change
register()
to Register(). register is a reserved C/C++ keyword and as such cannot be used as function or variable names
steveb
7-Jan-22 9:03am
View
You need to use CreateProcessAsUser API. The code that listed in the StackOverflow is not C or C++. I have no idea what language it is.
Also. If you use that call, it will be listed in the exe and the virus softwre can flag it as a virus or malware. If you are trying to administer user machine remotely there are much better tools provided by the Windows OS. Any OS can be administered remotely without implementing intrusive software. But I am no network admin. You need advice of the knowlegable network admin for that.
steveb
15-Sep-21 8:41am
View
Category of "Viruses". There is no need for a Windows app to run stealthily if it is not a service. And it is determined via link table in the executable
steveb
30-Aug-21 0:35am
View
Yes. You can just return this pointer
steveb
20-Jul-21 7:19am
View
It is not declared in your code. Also if it is char[] then you cannot use assignment operator. U need to use memcpy on param3
steveb
28-Nov-20 9:18am
View
To decrypt you need to know what algorithm they use SHA256, SHA128, etc. And you need to know the "public key".
steveb
13-Jun-20 16:47pm
View
Tell him/her that it is too easy and you wand to do it on a punch card computer UNIVAC-1 1951 edition. LMAO
steveb
17-Apr-20 12:38pm
View
Spend a few weeks reading beginners c++ book to get an idea about strict syntax rules. At current junction you are obviously in over your head
steveb
16-Apr-20 11:08am
View
Most of the gaming GUI are 2D sprites drawn on top of the game (last draw calls). These are not standard windows, but sprites and textures designed within the game itself. Same goes for the Nvidia overlays - those are 2D sprites.
steveb
14-Apr-20 13:42pm
View
Yes, you right my bad. I think some older compilers required forward decl
steveb
14-Apr-20 13:36pm
View
Ok. I am not an Admin on my machine. I just created dialog based app and used exactly your code (I called TestFunc1() from OnInitDialog). And it works fine whether I ran is as Admin or a regular user. There something else is missing in your code. I cannot tell what.
BTW since you using MFC you can use CString instead of WCHAR[128] and DDX_ bind it to the control. Call UpdateData(FALSE) after you change CString value. If you build UNICODE CString becomes CStringW.
Also I noticed this: Your control ID is IDS_USER_PROMPT. This maybe nothing. But MSVC app wizard uses prefix IDS_ for resource strings and prefix IDC_ for controls. Double check that your IDS_USER_PROMPT is not a "String Table Resource" but an actual control ID
steveb
14-Apr-20 13:30pm
View
Deleted
Ok. I am not an Admin on my machine. I just created dialog based app and used exactly your code. And it works fine. There something else is missing in your code. I cannot tell what.
steveb
14-Apr-20 11:52am
View
Usually it would just display garbage characters if you place en(us) codes onto cyrillic or japanese langs. Also since you put the string, by what it looks like, the static text control, make sure it is wide enough. As far as I remember when static text does not fit the box it will remain blank. Unlike edit text box.
And most important: call UpdateData(FALSE) after if your m_UserPrompt bound to DDX_ routines updates
steveb
31-Mar-20 11:49am
View
.LIB is the file that the 3rd party library provides to you, unless you are expected to build it yourself (most likely the case, because they can't exactly predict what compiler you are using). So probably you need to build the library and include it into your linker
steveb
30-Mar-20 10:26am
View
Can you check the source code?
steveb
30-Mar-20 10:02am
View
Double check you CreateWindow() functions. Windows has a tree-like composition, i.e. it is possible to create nested windows within parent window by calling CreateWindow() with the parent window handle. If this is the case your Spy may have focus on a different window. Examine the Tree in your Spy app
steveb
30-Mar-20 9:54am
View
Deleted
how smaller? Please put exact numbers
steveb
5-Feb-20 12:14pm
View
keyDown in MFC is CWnd::OnKeyDown() of WM_KEYDOWN message handler. Put your SetEvent call into that message handler
steveb
12-Mar-19 14:18pm
View
Are you connecting to that PC remotely from WAN or from LAN?
steveb
27-Feb-19 9:01am
View
I think what he was doing is calling HeapAlloc and HeapFree 100 times, which will fragment the heap. What I suggested that he does not need to allocate and free memory 100 times. Instead allocate memory only once large enough fit the largest file and then use that same memory to process all 100 files. HeapAlloc is notorious for fragmentation
steveb
29-Jan-19 8:35am
View
When you copying character array into struct you do it to the struct's pointer, assuming your char array contains entire structure i.e.
struct blah b;
memcpy(&b, buffer, sizeof(blah));
steveb
23-Mar-18 15:24pm
View
The answer was not for him but for the others who stumbles upon this question. Especially if it is on the top of the list of other related question today.
Show More