Forgot your password?
Sign in with
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Python questions
View PHP questions
All Message Boards...
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Design and Architecture
Internet of Things
C / C++ / MFC
ATL / WTL / STL
Objective-C and Swift
Hardware & Devices
Hosting and Servers
.NET (Core and Framework)
Site Bugs / Suggestions
Spam and Abuse Watch
The Insider Newsletter
The Daily Build Newsletter
Most Valuable Professionals
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
What is 'CodeProject'?
Ask a Question
Bugs and Suggestions
Article Help Forum
Comments by steveb (Top 29 by date)
Did you rebuilt the executable?
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
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
Ooops. I think I built that in VS 2022 with the C++20 standard enabled. The coolest feature ever I must admit
auto specifier is c++11 standard.
Stock bid ask recorded data easily goes to 1 TB per day file just for one security
This is not C++. Looks like jscript code to me.
to Register(). register is a reserved C/C++ keyword and as such cannot be used as function or variable names
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.
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
Yes. You can just return this pointer
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
To decrypt you need to know what algorithm they use SHA256, SHA128, etc. And you need to know the "public key".
Tell him/her that it is too easy and you wand to do it on a punch card computer UNIVAC-1 1951 edition. LMAO
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
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.
Yes, you right my bad. I think some older compilers required forward decl
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 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
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.
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
.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
Can you check the source code?
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
how smaller? Please put exact numbers
keyDown in MFC is CWnd::OnKeyDown() of WM_KEYDOWN message handler. Put your SetEvent call into that message handler
Are you connecting to that PC remotely from WAN or from LAN?
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
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));
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.
Last Updated 1 Jan 1900
All Rights Reserved.