16,004,529 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 .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 Gbenbam (Top 200 by date)
Gbenbam
4-Aug-24 6:18am
View
Does Microsoft cryptography offer authenticated encryption. I would prefer Microsoft cryptography. Its just that I do not think it offers authenticated enryption.
Gbenbam
4-Aug-24 6:11am
View
Do you mind explaining your proof? I did not quite understand it.
Gbenbam
4-Aug-24 6:09am
View
The point is,even if I am guilty of your accusation, which I am not, the population of programmers,world wide, who are guilty of the same accusation; is certainly astronomically large. StackOverflow, cplusplus forum and many many other similar forum where there is question and answer facility are testament to that fact. By the way, no AI is perfect. All of them state categorically that you should not expect perfection from them. And please, in my own opinion, stackoverflow is the best question and answer website on the web as at today. Programming AI use it as primary base for good reasons.
Gbenbam
3-Aug-24 18:15pm
View
Update2:
Why is www.stackoverflow.com the core of programming AI? Its because people asked questions whose answers were given in the simplest possible way with relevant codes. Copilot's primary reference is www.stackoverflow.com. You will definitely fall in love with the simplicity of many amswers on stackoverflow with relevant codes. If your accusations are indeed true, which I believe are not, I am actually setting up codeproject to be a major reference of copilot and other programming AI.
Gbenbam
3-Aug-24 18:06pm
View
Update:
Feel free to report or ignore my questions completely and encourage everyone to do so. Surely, If everyone does that, I will have no other choice than to move to another forum.
Gbenbam
3-Aug-24 17:59pm
View
O.K. You should be able to prove this allegation with recent questions. Give me proof. Perhaps, more importantly,tell me how exactly you believe that codeproject should be used.
Gbenbam
3-Aug-24 17:53pm
View
I am sorry this is coming a bit late. I will create a console program using the and make it available via google drive. I won't be able to make the actual project available,but the console project will fully mimic it.
Gbenbam
3-Aug-24 17:52pm
View
I am sorry this is coming a bit late. I will create a console program using the and make it available via google drive. I won't be able to make the actual project available,but the console project will fully mimic it.
Gbenbam
28-Jul-24 12:44pm
View
The names are the ones from the library. I did not coin them. I you read my question well,you will see when I took expected steps to include the crypto++ library in my project.Do kindly go through my answer and tell if the steps I took were not appropriate.
Gbenbam
28-Jul-24 12:39pm
View
OK. Noted.
Gbenbam
28-Jul-24 8:23am
View
A codeproject article references that site heavily and has several, several links in the article that links to pages on the site.While reading the article, I found out that any attempt to open a link or visit a referenced article lead to no result. The article is a very good article,so it ewas quite disappointing not being able to visit the mentioned pages which were supposed to help strengthen the understanding of the concepts taught in the article. So,this is very relevant to code project. Links on its article three up this question.
This is the article is the article in question:
https://www.codeproject.com/Articles/34380/Authenticated-Encryption.
By the way, I suggest you do one of two things to my questions after now:report them or ignore ignore them. Don't border to answer them or respond to them in anyway.That should solve the problem.
Gbenbam
28-Jul-24 8:18am
View
A codeproject article references that site heavily and has several, several links in the article that links to pages on the site.While reading the article, I found out that any attempt to open a link or visit a referenced article lead to no result. The article is a very good article,so it ewas quite disappointing not being able to visit the mentioned pages which were supposed to help strengthen the understanding of the concepts taught in the article. So,this is very relevant to code project. Links on its article three up this question.
This is the article is the article in question:
https://www.codeproject.com/Articles/34380/Authenticated-Encryption
Gbenbam
27-Jul-24 17:28pm
View
Ok.
Gbenbam
27-Jul-24 17:16pm
View
Try downloading a project associated with any article by yourself.
Gbenbam
27-Jul-24 15:43pm
View
You should realise that @OriginalGriff has an axe to grind with me. He has been trying hard to get at me, but I have simply ignored him. His latest antic is turning people against me. Don't be fooled. I ask questions and give answers.How does that make me a kmowledge vampire. Here are same codes I got from the net but my compiler did not recognise the base64Encoder and base64Decoder words , I am guessing that it is because of of header file unprovided. I am still trying to figure out the header file.
bool Base64Encode(std::string ciphertext, std::string &encoded)
{
CryptoPP::StringSource(ciphertext, true,
new CryptoPP::Base64Encoder(new CryptoPP::StringSink(encoded)));
}
bool Base64Decode(std::string encoded, std::string& ciphertext)
{
CryptoPP::StringSource(encoded, true,
new CryptoPP::Base64Decoder(new CryptoPP::StringSink(ciphertext)));
}
As for @OriginalGriff,this where he started having issues with me.
https://www.codeproject.com/Questions/5383852/What-will-happen-if-a-user-attempt-to-use-an-accel
He broke the following codeproject rule,rather than feeling any remorse,he is busy planning revenge:
"Let's work to help developers, not make them feel stupid."
He promised in a now deleted post, that I will soon not have an account. Well, he failed because I simply ignored him. Well, my suggestion to you is that you should feel free to ignore any of my questions, but don't do it because you were fooled into doing so. Its unfortunate that his unsavoury comments have been deleted.I would have shown them to you.
See him at work here.
https://www.codeproject.com/Questions/5384537/How-to-programatically-get-the-number-of-menus-in
Like I said,feel free to ignore my questions,but do so for the right reasons.
Gbenbam
27-Jul-24 15:17pm
View
I know what base64Encoding is used for.
Gbenbam
25-Jul-24 6:24am
View
I think is the path. I normally use
wstring wstPath(2048,L'\0');
to create a buffer for getting FilePath from API. My guess is that since the path is much more shorter than the buffer size,the extra null character interfered. Its not really about the desktop it about writing to path returned by GetSaveFileName. In this test in question, I used the desktop. I am yet to confirm my assumption on why my attempt to write to desktop failed. I will shortly though.
Gbenbam
23-Jul-24 16:19pm
View
I will do that.
Gbenbam
23-Jul-24 14:51pm
View
I believe the path is valid because it was returned by GetSaveFileName Function. I will modify the code to include that. I actually thought it may be a permission problem that I can be told how get around. Browsers write effortlessly to my desktop without any special permission.
Gbenbam
23-Jul-24 14:51pm
View
I believe the path is valid because it was returned by GetSaveFileName Function. I will modify the code to include that. I actually thought it may be a permission problem that I can be told how get around. Browsers write effortlessly to my desktop without any special permission.
Gbenbam
23-Jul-24 14:49pm
View
I believe the path is valid because it was returned by GetSaveFileName Function. I will modify the code to include that. I actually thought it may be a permission problem that I can be told how get around. Browsers write effortlessly to my desktop without any special permission.
Gbenbam
18-Jul-24 7:51am
View
On a second thought, I decided to post the owner drawn menu code as part of a question with the hope of fixing a minor bug in it. Kindly have a look at it, perhaps, you can help fix the minor bug.
You can find the question here:
https://www.codeproject.com/Questions/5385440/Why-are-the-sub-menus-and-menu-items-of-my-owner-d
Gbenbam
17-Jul-24 14:18pm
View
I will shortly share the owner drawn menu code with you here as a reply to your last comment. Right now I will shortly create a new question on painting or re-colouring the non-client area like you suggested.
Gbenbam
17-Jul-24 14:15pm
View
Can you possibly help with a sample code for skinning the non-vacant area of non client region. By non- vacant I mean the Icon, the Window Title, the maximize, minimize, restore button, the close buttons,the part o the menu bar that has a content and the scroll bars.
Gbenbam
16-Jul-24 21:03pm
View
I hope you know that owner drawn menus have nothing to do with WM_NCPAINT message. If I start a new question on WM_NCPAINT, I would have to exclude it.
Gbenbam
15-Jul-24 13:43pm
View
My actual intention is to change the colour of the non-client area to match the colour of my dialog boxes. I already have a funtioning owner drawn menu. What do you suggest?
Gbenbam
15-Jul-24 13:43pm
View
My actual intention is to change the colour of the non-client area to match the colour of my dialog boxes. I already have a funtioning owner drawn menu. What do you suggest?
Gbenbam
15-Jul-24 13:04pm
View
OK. Thanks. I'll try it out.
Gbenbam
14-Jul-24 18:32pm
View
I'll do exactly that. It makes it possible for my application to have a different colour. Or do you know any other way I can customize my application to have a different colour and possibly more customization?
Gbenbam
13-Jul-24 13:42pm
View
But the code below succeeded:
HDC hdc = GetWindowDC(hWnd);
HRGN hFillRgn = (HRGN)wParam;
HBRUSH hBrush = CreateSolidBrush((COLORREF(RGB(255,215,0)));
FillRgn(hdc,hFillRgn,hBrush);
DeleteObject(hBrush);
Not only did it succeed code-run-wise, I visually saw the sucess on the screen albeit with some inproper dispacing. So, yes wParam contains a vald region.
Gbenbam
13-Jul-24 13:10pm
View
I believe the reason why FillRgn failed when a dc was gotten with GetDCEx is because, according to documentation, even though the upate region is a recangle, the client area part of is s clipped to remain the window frame when a device context is gotten with GetDCEx. So, FillRgn failed because the device context was not valid for that operation. FillRgn does not fill an exterior part of a rectangle with a seeming rectangular hole, in short FillRgn is not the appropriate function for that operation if GetDCEx is used.
Gbenbam
13-Jul-24 12:43pm
View
I have updated the question kindly have another look at it.
Gbenbam
13-Jul-24 12:06pm
View
Ok. I will update with code and explanation of intent, expected outcome and actual outcome.
Gbenbam
13-Jul-24 11:15am
View
This brings us back to the original issue. GetWindowRect gave incorrect location, GetMenubarInfo gave incorrect location wParam of WM_NCPAINT gave incorrect region. Why? Why? Why?
Gbenbam
13-Jul-24 11:11am
View
Even though FillRect succeeded, the painted region is displaced. It does not fit to the expected location of the window frame.
Gbenbam
13-Jul-24 11:01am
View
For your information, the region is very much valid. When I used GetWindowDC to get a device concept. FillRegn succeeded.
Gbenbam
13-Jul-24 10:13am
View
Can you help to report it to Microsoft?
Gbenbam
13-Jul-24 10:03am
View
The documentation is dated 01/07/202101. It is reasonably up to date? Perhaps, your interpretation of the documentation is incorrect. My own interpretation is that the documentation was this: get a dc to the region to update and then draw whaterver you wish to draw in the region bearing in mind that drawing outside the region will be clipped. That is what the example code of WM_NCPAINT seem to suggest.
Gbenbam
13-Jul-24 9:14am
View
HBRUSH hBrush = CreateSolidBrush(COLORREF(RGB(255,215,0)));
HRGN hFillRgn = (HRGN)wParam;
FillRgn(hdc, hFillRgn, hBrush);
DeleteObject(hBrush);
I did the above and got absolutely no result. Why?
Gbenbam
13-Jul-24 8:35am
View
So, can you help with sample code on how to paint the menu bar? Is the menu bar part of the windows frame? I thought WM_NCPAINT is for repainting the non-client region. The term "window frame" is it the same as the non-client region?
Gbenbam
13-Jul-24 8:22am
View
Deleted
That example code in learn.microsoft.com was what I initially used,but saw no painting at all. So, I googled and found that GetWndowDC can also be used for the non-client area. I used t , saw painting but in the wrong location. What do you thnk about these?
Gbenbam
13-Jul-24 7:48am
View
In solution 4 below, an assert was used for the return value of GetMenuItemInfo which was not a pointer. Do you consider it an improper use? Except there is a clear understanding of when to use it, the number of asserts can be astronomically large. Perhaps the rule for use of assertions should be this: use it only in connection with non-user input or non-user interaction when there is absolutely no reason for the code to continue executing if the assertion fails.
Gbenbam
12-Jul-24 13:38pm
View
I was only speaking generally. I had resolved the problem by myself and even shared my solution with the forum. Its solution 2 above. By the way, you should avoid the use of TCHAR A. Read the article in the following sites for reasons: https://utf8everywhere.org/
Gbenbam
12-Jul-24 13:32pm
View
OK. Noted. So, when does one use an assertion? I know that if the assertion was caused by user input, the appropriate thing to do is to alert the user of the error and give them an opportunity to correct themselves. While that is not possible with assertions, it is possible with exceptions. My guess is that assertion should be used for programmer possibly generated errors. If we go by that assumption, the number of assertions in codes may be very large. Not withstanding, I will start using them. Thanks for your solution, I appreciate it greatly.
Gbenbam
11-Jul-24 2:48am
View
The problem with using TCHAR is that you waste memory because you don't know what the initial size should be and you can never resize it. Initially, I used std::unique_ptr with TCHAR that always involved a redundant variable of code. So, I started using std::wstring and use to use the std::wstring::resize() function. Finally, one day, I figured that I can use one of the constructors of std::wstring, so I don't ever use TCHAR again unless I need a persistent TCHAR * . Now that you have pointed out the std::wstring::data() member, I now have absolutely no reason to use TCHAR again. I wonder why std::wstring::data() didn't cross my mind earlier.
Gbenbam
11-Jul-24 2:35am
View
Thanks for your candid input. I plan to write my own c++ framework very soon it will use mfc class names so that the legions of mfc programmers, like you, can quickly migrate to it. However, the framework which will initIally consist of standalone c++ classes, must be used in a WIN32 C++ project. Later, I will write my own IDE.
Gbenbam
11-Jul-24 2:07am
View
The issue have with asserts is that they don't allow continuation of code. That's why I use exceptions. I actually have plans to introduce a small exception class to the code so that I can decide whether I want the code to terminate or not.
Gbenbam
9-Jul-24 19:12pm
View
Deleted
Can you possibly verify if the code of yours shown above can be used to retrieve menu string during WM_CREATE? The crux of my code's failure is its inability to retrieve menu string during WM_CREATE. I have not checked to see if it returned a menu id. The returning menu string is the most important thing to me in the code.
Gbenbam
9-Jul-24 18:45pm
View
Okay, just to clarify, visual studio did allow the use of STL, but will not allow you to use an STL data structure with an MFC data structure equivalent. I remember facing that issue multiple times until an author of a book I pointed it out. I just couldn't understand why vectors would not work back then? Maybe, my rejoicing is unnecessary, maybe things have remained so. Maybe you did not face the issue because you never really mixed stl with MFC data structures.
Gbenbam
9-Jul-24 18:39pm
View
A few checks online shows that it is now possible. Back in the days of VISUAL STUDIO 2008, it was not possible. I am returning to MFC. MFC, here I come!!! Okay now, I remember one more thing that motivated my departure from MFC. Someone on quora.com said nobody uses MFC for new projects again. He pointed out that MFC is being used for only legacy projects and that new projects are now done with QT. Considering the fact that Microsoft has made several attempts in the past to retire MFC, what he said seem believable. While downloading VS 2022, I noticed that by default MFC what not part of the C++ download.That also strengthened that belief. What is your take on that? Do you use MFC for new projects? Do you know developers that use MFC for new projects?
Gbenbam
9-Jul-24 18:25pm
View
Why ^p and not P ?
Gbenbam
9-Jul-24 7:51am
View
@RichardMacCutchan, I was able to add CTRL to P only when I specified it
as a VIRTUAL key. I have always believed that letters of the English alphabets should be stated as ASCII keys. Is that not the case?
Gbenbam
9-Jul-24 7:40am
View
Wndows 11, visual. studio 2022.
Gbenbam
9-Jul-24 7:15am
View
I have added the complete code, do you still think the problem is initialization failure?
Gbenbam
9-Jul-24 6:44am
View
What was show above is a snippet of a much more longer program, wID was reference in the lower part of the code. Okay, I will add code to see what was returned from GetMenuItemInfo. By the way, I coded in MFC for years, I abandoned it because it won't allow the use of standard C++ data structure. Now I think my next question should be how to get round that.
Gbenbam
9-Jul-24 6:35am
View
@RichardMacCutchan, I saw a mail that you commented on this question,but I can't see the comment here.
Gbenbam
30-Jun-24 9:14am
View
Thanks.I knew there must be something like that. I thought I had searched diligently enough. One again thanks. Of course, I know about GetMenu and GetSubMenu already.
Gbenbam
29-Jun-24 16:35pm
View
Ok.Thanks.
Gbenbam
29-Jun-24 15:29pm
View
Documentation seem to say the number of buttons is the default size of the toolbar section of the rebar. Kindly correct me if I am wrong. Is the rebar control guaranteed to be of a row length?
Gbenbam
16-Jun-24 15:46pm
View
Its sad and unfortunate that in spite of your insult and caustic comment, your solution is near no where correct. Th short, simple and correct answer is : Nothing will happen.
Your solution is not only incorrect. It is extremely incorrect. Why do like acting and talking as if you are superior to others? Stated verbosely, the correct answer is: There is no need to check anything or write any program because nothing will happen. How about apologising for passing insult when you actually didn't know the actual answer.
Gbenbam
16-Jun-24 15:21pm
View
Don't you think this you comment is insulting. It translates to saying, "Its really unfortunate, you still can't work something for yourself. Aren't you a failure?". Years back I used to feel displeased when my questions get deleted. I think I prefer having my question deleted than having anyone pass insult on me. Mod's, I consent to you deleting any question I post that you think are inappropriate without my consent.
@OriginalGriff if you area a mod, don't hesitate to delete any question I post that you think is inappropriate. That's better than passing insult. This is a public forum, everyone ought to be civil and tolerant and not throwing caustic words around.
I used MFC for years. Many of these things are done wffortlessly with MFC. But, then, this is WIN32.
Gbenbam
16-Jun-24 2:24am
View
This question has been superceeded by this question : https://www.codeproject.com/Questions/5383855/How-do-I-disable-an-accelerator-item-for-a-menu-it
Tha new question clearly shows the true intent, unfortunately it appears questions that already have answers cannot be modified.
Gbenbam
16-Jun-24 0:34am
View
How I used to go about it is to create an accelerator table in the resource and load accelerators table and ensure the message loop translates my accelerators. That all. I don't do any other thing. That's my understanding of handling accelerators. No extra programming. What will happen if an accelerator is activated for a menu item THAT I PROGRAMATICALLY DISABLED? I hope my question is clearer now. I am sorry, your solution is far from clear. I did not get the message or see the solution.
Gbenbam
11-Jun-24 11:12am
View
My question was on how to print from memory dc using stretchBlt because that handles differences in resolution issue. I know it is possible because I have done it before but only could not remember exactly how.
The above code perfectly does want I wanted to do. So, yes, this solves my issue.
Gbenbam
11-Jun-24 8:09am
View
I hae used it to do uncountable printing already.
Gbenbam
11-Jun-24 8:06am
View
It works like charm.
Gbenbam
9-Jun-24 20:16pm
View
I just shared my code.
Gbenbam
8-Jun-24 12:13pm
View
I thought I should give you feedback and thank you. The vs project had the information I sought and has helped me to effect printing with StretchBlt. Once again,thank you.
Gbenbam
8-Jun-24 12:09pm
View
Which device is its serial number being retrieved in the sample program?
Gbenbam
2-Jun-24 13:06pm
View
Deleted
Pray,tell. Which device is it retrieving iit's serial number in the example. here
Gbenbam
1-Jun-24 8:42am
View
I know that. I like a switch statement I am giving them several options including HDD, motherboard, CPU, casing and finally the Mac address which is available. The mac address option will only be present if all other are not available. Its like a default in a switch statement. Believe me,I have things pretty well covered an I am using an innovative approach.
Gbenbam
1-Jun-24 6:11am
View
Or are you saying that initialization should be dine at the time of launching help to view topics?
Gbenbam
1-Jun-24 6:08am
View
I created my own chm file with HelpNDoc. Are you saying it is not necessary to initialize help in WinMain function. Actually my code successfully opened the chm file and launched help from the help menu, so I simply left it at that even though it failed to launch the chm file for context help. Because I did not know the implication of this, I decided to come here.
Gbenbam
1-Jun-24 5:50am
View
It is unfortunate, I took a reasonably long time to write you a reply of why I think I should proceed with my present effort having read through your response. But , I lost it, I am unwilling to re-write such a lengthy post ON MY SMARTPHONE. Had you read my lost response, you would have whole heartedly agreed with me that my innovative approach to it is wise and is in the middle of road. I may still write it from my laptop though.
Gbenbam
1-Jun-24 5:12am
View
But, that's where I got this function from, there is absolutely no code example there and no specific, that i device was mentioned there that's why I came here. I need code example to help understanding.
Gbenbam
1-Jun-24 4:58am
View
Please, by pragmatic, I mean an approach that will guarantee that I make money and also not loose customers.
Gbenbam
1-Jun-24 4:55am
View
I apologize if I seem to be wasting your time, but , can you tell me in as few words as possible your pragmatic suggestion? I am so sorry , I did not get it your last reply.
Gbenbam
1-Jun-24 4:22am
View
Okay, can you explain it's usage to me using hard disk and motherboard respectively?
Gbenbam
1-Jun-24 4:20am
View
Okay what is your pragmatic suggestion?
Gbenbam
30-May-24 3:38am
View
You mean I should initialize it when I try to launch help? So, when do I uninitialize it?
Gbenbam
29-May-24 7:48am
View
I have added the relevant code. Perhaps you should take a look at it.
Gbenbam
29-May-24 7:48am
View
I have added the relevant code. Perhaps you should take a look at it.
Gbenbam
29-May-24 7:48am
View
I have added the relevant code. Perhaps you should take a look at it.
Gbenbam
26-May-24 8:45am
View
Thank you.
Gbenbam
25-May-24 13:02pm
View
I don't think that will work dump it this google drive location:
https://drive.google.com/drive/folders/1edgHHWJcknOlJnf7rXu3NmmtGtG0URKP?usp=sharing
Gbenbam
24-May-24 13:48pm
View
Thank you. I appreciate your assistance. I will do that right away.
Gbenbam
24-May-24 10:28am
View
I have searched again and again.I could not find an email link there. Can you give me some more guidance?
Gbenbam
23-May-24 21:35pm
View
Deleted
What about resolution? Of course my function wires successfully . to printer. The issue is that what was printed is not a replica of what was displayed on the screen because of differences in resolution.
For instance, I use the GDI- function drainage which draws the image as desired to windows without hassles but the exact same function drew something way way bigger on printer. I had to read documentation long enough to find out that GDI+ graphics function can be set to draw u device units like millimetre . Setting display unit of graphics class resolved the issue, but not completely. The position of the images were not a exact replica of what was displayed in that they were not drawn to perspective in terms of positioning. I had to add printer specific codes.
Gbenbam
23-May-24 21:35pm
View
What about resolution? Of course my function wires successfully . to printer. The issue is that what was printed is not a replica of what was displayed on the screen because of differences in resolution.
For instance, I use the GDI+- function which draws the images as desired to windows without hassles but the exact same function drew something way way bigger on printer. I had to read documentation long enough to find out that GDI+ graphics function can be set to draw u device units like millimetre . Setting display unit of graphics class resolved the issue, but not completely. The position of the images were not a exact replica of what was displayed in that they were not drawn to perspective in terms of positioning. I had to add printer specific codes.
Gbenbam
23-May-24 14:21pm
View
No it's winhtml help.
Gbenbam
23-May-24 14:20pm
View
I sure know about mapping modes. See my response to Rick York above.
Gbenbam
23-May-24 14:19pm
View
I currently write write to window dc using double buffering, but write direct to printer. But the printed version vision is not a replica of the window version. Users might be displeased. So, i am thinking to use double buffering for printing too, but I want to know how to handle difference in resolution issues. I felt using stretch but to write from a window compatible dc to printer using a scale factor that factors in resolution might work. What do you think?
Gbenbam
1-May-24 16:45pm
View
Nothing ventured, nothing gained. All one need do is think like the users who want to bypass ones protection. That's the secret to beating them all.
A licence is not a password. Hashing it may not be the best. You need to know when the licence has reached its expiry date. Encrypted data is not just data that identifies a system. It also contains information about the LICENCE itself. If one hashes the information about the LICENCE itself , how does one know if it is still valid, if it is date based.
Gbenbam
30-Apr-24 13:05pm
View
I'll encrypt it. Aes encryption. Programmatically I will decrypt and compare with existing hard hardware info.
Is there any commercially available protection that you know.
Gbenbam
29-Apr-24 11:37am
View
I checked their official site. They have a Google groups mail for reporting errors and asking for help.
Gbenbam
29-Apr-24 11:30am
View
This sounds like bad news to me. So, what do you suggest?
Gbenbam
29-Apr-24 11:24am
View
The tone of his reply was hash. There are a billion and one more pleasant way of saying the same thing. It is either that he was being deliberately hash or he is not the best in the use of language. You should be pleasant to strangers especially if the have not offended you or mean you no harm.
Gbenbam
29-Apr-24 8:29am
View
By the way, your suggestion of contacting the authors of the library on GIT hub is a good one. I will explore that option additionally, but, hey, you were too harsh! Do endeavour to always soften your tone as much as possible. We are not enemies. You can say the same thing in a billion way, it all a matter of approach. Always prefer a positive and friendly approach.
Gbenbam
29-Apr-24 8:22am
View
I have actually unplugged the compiled dll and commented out the encryption and decryption codes so as to be able to progress in my development work. I will plug them back in and share the error message shortly.
Gbenbam
29-Apr-24 8:16am
View
I remember that I tried to use this hard disk serial number anti-piracy scheme in the past and found out from multiple testing that while all branded computer system hard disk and all laptop hard disk have serial number, cloned or computers (or personally assembled computers) hard disk do not have serial numbers at all. So, I decided to use either processor or motherboard hard disk. Years back , I asked here on code project how to retrieve the motherboard serial number. I was told how to do so but was informed,also, that not all motherboards have serial number. I was advised to use Mac address because it is always there, but unfortunately it is hackable. The fellow in question went on to share with me a code on how to get mac address. That code is still here on code project. Although, I went on to use that MAC address-based anti-piracy scheme, I wanted to avoid the possibility of people by-passing my anti-piracy scheme by hacking the MAC address. This your response has made me to remember why I eventually decided against using a hard disk based anti-piracy scheme.
I may have to go back to that MAC address scheme and focus more on encryption.
Gbenbam
29-Apr-24 7:47am
View
By the way, isn't it possible one or more of the authors of the library is on code project. It seems you have a very low estimation of code project.
Gbenbam
29-Apr-24 7:41am
View
Do all motherboards and processors always have serial numbers?
Well in this particular case, the hard disk did have a serial number which I retrieved using WMI. The problem is that WMI some times have issues. One have to couinnitialize the main thread one and uninitialize it one at the end of the program. For that and other reasons I decided to use deviceiocontrol.
Gbenbam
29-Apr-24 6:46am
View
Come on man relax! Life is easy. Someone might know a rule of thumb for doing this. No mortal knows everything. That is why we interact and share. One may have learned something by experience over a long period of time or after a long period of time. This makes such candidates for helping others get out of the time quagmire. Don't be hash, we are not enemies. Surely, you understand use of language. I wish you a pleasant day.
Gbenbam
22-Apr-24 18:23pm
View
If use Direct2D API will I have to replace GDI functions like ellipse and rectangle with Direct2D versions. I am asking because my code uses GDI functions heavily.
Gbenbam
22-Apr-24 17:30pm
View
Your solution and link are quite revealing. I would like to know how to convert Device independent pixels
to millimeters. This is because the first thing my application does is to find the value of a millimeter in pixels ( by using GetDeviceCapps to get size of the screen in pixels then in millimetres and using the two values to calculate the value of a millimeter in pixels. All lengths are then given in terms of the calculated one-millimeter-pixels.)
Gbenbam
6-Apr-24 14:06pm
View
Thank you for your assistance. The code is now working properly.
Gbenbam
6-Apr-24 13:33pm
View
It turned that the failure is due to DOCINFO structure rejecting the string wstJobName. I replaced it with a literal and the code worked.
Gbenbam
5-Apr-24 12:36pm
View
Please, how can one do this: "Last but complicate: write all hdc to bitmaps with counter or timestamp". Do you mind expantiating?
Gbenbam
5-Apr-24 12:33pm
View
I'll give another thorough look though.
Gbenbam
5-Apr-24 12:31pm
View
Yes the function returns valid Unicode string.
Gbenbam
5-Apr-24 5:32am
View
All parameters in the he DOCINFO structure are valid. The code were I set their value is already posted above. If you wish, you may check it to see if their is something I did wrong but did not notice.
I check GetLastError to see what it will return.
Gbenbam
5-Apr-24 4:01am
View
It returns a value less than 1. It never accesses the missing codes.
Gbenbam
30-Mar-24 11:13am
View
Okay thanks. Using notepad++ has solved the problem already though.
Gbenbam
30-Mar-24 9:25am
View
Thanks for the encouragement
Gbenbam
30-Mar-24 9:02am
View
I have seen all the pages. None worked. No advanced save option on vs20220.
The addon listed will not download no matter how many times I tried.
Gbenbam
30-Mar-24 9:00am
View
Icould not find advace save option on visual studio 222
Gbenbam
30-Mar-24 8:56am
View
Yes,Iknow.How do I correct that?
Gbenbam
30-Mar-24 8:24am
View
I have seen that page already. How does it solve the problem.
Gbenbam
29-Mar-24 11:39am
View
This code worked like charm for this question.
Gbenbam
28-Mar-24 23:02pm
View
Okay, I understand completely now. Thanks so much.
Gbenbam
28-Mar-24 23:01pm
View
Thanks a billion times.
Gbenbam
28-Mar-24 11:43am
View
So, if I get you right, pVpstr is a global variable. I felt so because it was not referenced anywhere earlier in the code. Am I right?
Gbenbam
28-Mar-24 11:38am
View
Thank you. I appreciate your assistance.
Gbenbam
28-Mar-24 11:32am
View
Sorry, I don't understand this statement in the summary of your second code:
You still paint into
the full viewport of your Window. So the first line displays at Y-offset 0, and the first character at
X-offset 0.
If fist line displays at Y-Offset 0, and first character at X-Offset 0, what then is the relevance of nLine and nChar?
Gbenbam
28-Mar-24 11:26am
View
Although I already have an excellent answer below, I will appreciate other perspectives or solutions for deeper understanding. Others should not simply back off because of the excellent solution1 below. Besides, it uses a paradigm that is completely new to me .You own solution could have the same paradigm as mine present paradigm.
Gbenbam
28-Mar-24 11:15am
View
Wow! This is amazing! I am overwhelmed. This is a completely different approach to what I have always known. But I have two questions , one concern and two request.
1. Why is it your Onscroll program does not use ScrollWindow Function. Is it that it doesn't need it or it is an oversight on your part.
2 . I don't understand the line:
pVpstr->size())
I could not find where that variable was defined in the code .
My concern is this: my program does not really write characters. It renders graphics which can be positioned anywhere arbitrarily.
My first request is this: can you kindly help with the accompanying WM_SIZE and WM-SIZING codes.
My second request is this: could you be kind enough to show the corresponding WM_PAINT program. It will help me understand well enough how to adapt the code to my need. Besides, I finally came to term with your assertion that all primary device context message should be done within WM_PAINT. I am still trying to resolve the handling of WM_PAINT message for my application. I will appreciate it if you can illustrate your perspective with a code especially one that would represent the accompanying messages to code to this OnScroll program.
Do pardon me for being such a border
Gbenbam
28-Mar-24 8:14am
View
Can you expatiate on the this?
Gbenbam
27-Mar-24 14:00pm
View
You've been a sour
You've been a very great source of help to me.I value you so much. In fact, ,I owe you a great debit of gratitude for your various assistance in the past . But, in spite of the fact that this your solution educates one on the process of debugging, this your solution is completely irrelevant to my question.
I take it that you have never used GetOpenFilename before.
Gbenbam
25-Mar-24 13:11pm
View
Okay, I see you have given me a different string that allow selection of all files. Kindly ignore my last comment. I
Posted it without actually understanding your solution. I think I will delete it instead so as not to confuse others. Don't bother if you don't see it.
Gbenbam
25-Mar-24 13:07pm
View
Deleted
I did as you said and I was unable to get the text file name. Kindly read the comment I posted below solution 2 to understand what I was trying to do.
Can you help check why the string filter failed?
Gbenbam
25-Mar-24 13:07pm
View
Deleted
I did as you said and I was unable to get the text file name. Kindly read the comment I posted below solution 2 to understand what I was trying to do.
Can you help check why the string filter failed?
Gbenbam
25-Mar-24 13:02pm
View
This is the only relevant effort to this question. I tried to edit the question to introduce clarity on my smartphone but all my efforts were wasted when the initial question was reloaded on update.
As to your question. This is part of an application that ( among other things) renders images on Windows.
Users have to fill forms ( typical win32 controls forms). For users who have a large amount of data to submit, I have developed a format for presenting the data in a .txt file and submitting to the software administrator by either Whatsapp, Facebook Messenger or email. The file path will be gotten through this code. There is another program that parses the text file to check for conformity with spelled out format and reports errors on finding such non conformity. If the 'data-feeding-in' file content conforms to specified format. The program will harvest the data in it and populate data base with the data in it.
Getting the filename is the trivial part, parsing, error reporting to users or populating database with harvested data is the more important part. I wanted to debug and test the data-harvesting-program, but could not because I could not get the name of the file ( whose content I created for the purpose of testing and debugging the data harvesting program). It just happens that the code gets images path but would not get .txt file path.
All that the function DrawAppImage does is to render the image on the window via the device context.
I use the wrapper GetFilePath for all my filename getting task, then pass the filename to an appropriate program for further processing.
In the above example, further processing means rendering the image file on the window. In the case of the text file, it would mean parsing the file and populating database with harvested data if the parse is successful. Can you help look into while my specified file filter for text files failed?
Gbenbam
25-Mar-24 7:02am
View
What does their site mean by install. I wanted was codes to download.
Gbenbam
25-Mar-24 6:59am
View
Is there an already compiled library that I can use?
Gbenbam
25-Mar-24 6:57am
View
So, in short, I can't build it with visual studio. I would need both gcc and WSL2.
Is there an already compiled library that I can use?
Gbenbam
23-Mar-24 21:06pm
View
Okay, I saw the .Net Document class. What it is doing is exactly what I am doing now. I am writing one page per time to the device context. All is going on fine with that except that there is flickering. To eliminate the flickering I decided to write first to a memory dc. That's where the problem starts from.
Gbenbam
23-Mar-24 12:38pm
View
Deleted
I believe that successively drawing small portion as needed may be what I need. Could you possibly help a contrived example codes. Examples online are not too relevant. Should you decide to help with the contrived sample code. It might be good if you read my comment to the second solution below. It represents the challenge. I have tried in the past to draw content successively as needed, but no algorithm that I came up with has been able to do it
Gbenbam
23-Mar-24 12:38pm
View
I believe that successively drawing small portion as needed may be what I need. Could you possibly help a contrived example codes. Examples online are not too relevant. Should you decide to help with the contrived sample code. It might be good if you read my comment to the second solution below. It represents the challenge. I have tried in the past to draw content successively as needed, but no algorithm that I came up with has been able to do it
Gbenbam
23-Mar-24 12:30pm
View
Okay, say I have a sixty page document with images, lines . ellipses , text all drawn by my app. If I want to view page 60, I will have to scroll down. There is no way the memory dc bitmap can reasonably be as large as the sixty page document if each page is A4 paper size.
Do you mind giving me an example of calculating which data is visible?
Gbenbam
22-Jan-24 18:34pm
View
I tried your suggestion and their was flicker. How do you handle flicker? My application, like many others have to access database frequently, in fact, it does not access file at all. Sometimes, queries generate errors due to different kind of reasons. Some times there is break down of communication with database because it is in a remote server and there is temporal internet network connection breakdown. In many o f such situations users have to wait for response to the database and respond to errors and exceptions apprpriately. Will handling all such from WM_PAINT be suitable? For, for now, I connect with database from WM_COMMAND generate by menus and connect to database to fill up a buffer with required data. if the buffer was successfully filled, I write data to memory dc and call invalidaterect to generate WM_PAINT message which causes the written data to be copied to the window DC from the memory DC. If you can be generous an kind to guide me into unerstanding how all these can be achieved by doing all writing in WM_PAINT , I will greatly appreciate it. I do wish to be a better programmer. Your input will go a long way to ensure that.
Gbenbam
19-Jan-24 20:36pm
View
How do you handle flickering?
Gbenbam
19-Jan-24 20:33pm
View
It uses black pen and white brush.
Gbenbam
19-Jan-24 20:19pm
View
I am very fluent with MFC, but its better if you share the WIN32 version here.
Gbenbam
18-Jan-24 12:06pm
View
You said that the size value increases as the font increases. By that i you mean he fontHeight parameter use to create the font? If , yes, what happens if the fontHeight paramter decreases which is the obective in my own peculiar situation.
Gbenbam
18-Jan-24 11:28am
View
Sorry, I made a mistake in my post. The memory dc was created during WM_INITDIALOG and not during WM_CREATE as I previously wrote. Do have any other possible solution idea?
Gbenbam
18-Jan-24 11:12am
View
I was drawing on the dialogue box window not on a control.
Gbenbam
18-Jan-24 11:11am
View
Thanks for your input. The problem was using MAKEINTRESOURCE macro. IDC_WAIT was already deine in terms of MAKEINTrESOURCE as explained below. Using it again amounted to unneccessary repeatition.
Gbenbam
18-Jan-24 11:08am
View
The value returned by size regardless of how many times iFontSize was decremented was cx = 5988 and
cy = 479. What do you think?
Gbenbam
18-Jan-24 11:04am
View
There were so many uses of the load cursor function in the app, but the error messages were all identical, so i copied the first two. Yes, the problem is the MAKEINTRESOURCE. The issue was resolve afterI removed it. Thanks a lot.
Gbenbam
18-Jan-24 8:27am
View
The thing is that when I draw the image directly during WM_PAINT, it gets drawn but flickers. Problem arose when I drew to the memeory dc first. What do you think?
Gbenbam
18-Jan-24 8:22am
View
Thanks, I'll check it out.
Gbenbam
17-Jan-24 17:17pm
View
Iam sorry I just seeing this now. Want I want to ask is this: if the user selected pages 3,5,7,10 and 25. How does one use nFromPage and noPage to print such a selection since it is not a "coninuous range"?
Gbenbam
17-Jan-24 16:46pm
View
I have added the definition of CreateAppFont. Do you mind looking at it? Can, I see youre version of the code that worked?
Gbenbam
2-Jan-24 12:12pm
View
How does one know the pages to print? How does one Check if any of the values are true.
Gbenbam
27-Dec-23 8:47am
View
Sorry, but your sample pre-compiled header files does not specify where to put C++ runtime libraries. My project needs gdiplusheaders.h, where do you suppose that I put that. Finally, do you by chance know what namespace graphics and image GDI+ classes belong to? My experience is that one or the other needs gdiplus.h while the other needs gdiplusheaders.h.
Gbenbam
27-Dec-23 8:08am
View
Can you additionally tell me how to use warning level 4 and the pragma turns off warning 445 that usually results from the GDI+ headers?
Gbenbam
27-Dec-23 8:04am
View
How does one create a pre-compiled header with visual studio 2022?
Gbenbam
5-Nov-23 14:54pm
View
Thanks so much for your input. It eventually turned out that you are right. What was causing the problem was a combobox selection notification handling function that updates the list box content. In the said function, the item data was set incorrectly. Once again, thanks.
Gbenbam
5-Nov-23 12:05pm
View
I have added that information to the question.
Gbenbam
5-Nov-23 12:03pm
View
The code works, but it is not returning the assignd value.It is returning a differnt value.The assigned value is 25. It is returning 1. One(1) happn to be the value assignd to the first item listed int th list box. It seem to be returning the order in which each selected itme was selected in the listbox. For the first selected item, it returns 1.
Gbenbam
3-Nov-23 16:09pm
View
Thanks. This is so embarassing. I am sure I have read through that document several times already. The problem is something so way, way, way too simple for my liking. I had started to think that visual studio is too buggy for my liking.
Gbenbam
30-Oct-23 13:09pm
View
Thanks for the solutin.
Gbenbam
30-Oct-23 13:09pm
View
Thanks for the solution.
Gbenbam
24-Oct-23 12:08pm
View
I have added the content of framework.h above. Do check it out.
Gbenbam
24-Oct-23 6:32am
View
So, is there any assistance you can give with these revelation?
Gbenbam
24-Oct-23 6:31am
View
Deleted
This is the content of framework.h
// header.h : include file for standard system include files,
// or project specific include files
//
#pragma once
#include "targetver.h"
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files
#include <windows.h>
// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
Gbenbam
24-Oct-23 6:27am
View
Deleted
"framework.h" was generated by visul studio 2022.
Gbenbam
24-Oct-23 2:38am
View
The example codes in your link use stdafx.h. I don't know how to make visual studio add stdafx.h in visual studio 2022. If you knw ho it is done kindly tell me.
Gbenbam
24-Oct-23 2:35am
View
! have added code. I will really appreciate it if you can help.
Gbenbam
23-Oct-23 10:26am
View
By the way, how can I make visual studio add stdafx.h to my program. I selected the link option for using it, but it did not use it. I created an header file with that name and included it, but nothing came out of it.Instead it was asking for pc.h or something like that.
Gbenbam
23-Oct-23 10:26am
View
I had replied previouly without reading your solution very closely. I always put #include<gdiplus.h> after windows.h. Same goes for using namespace gdiplus and
#pragma comment(lib,"Gdiplus.lib"). Unless what you really meant was to put is before windows.h. That is, above it, in my program. I had experimented with putting gdiplus.h before windows.h to no effect.By the way, how can I make visual studio add stdafx.h to my program. I selected the link option for using it, but it did not use it. I created an header file with that name and included it, but nothing came out of it.Instead it was asking for pc.h or something like that.
Gbenbam
23-Oct-23 10:16am
View
Deleted
Do you mean I should put #include<gdiplus.h>, #pragma comment(lib,"Gdiplus.lib") and using namespace gdiplus in a precompiled file? I had placed #include<gdiplus.h> before windows.h to no effect previously.
Gbenbam
23-Oct-23 10:13am
View
Ok. I will give ita try and feed you back.
Gbenbam
23-Oct-23 10:11am
View
Deleted
Ok.I will give this a try and feed you back. By the way, I can I been able to comprehend error messages like you just did.
Gbenbam
22-Oct-23 17:01pm
View
Well, I eventually confirmed that you are right. The code that had <stringapiset.h> in it, and from which I eventually commented out MultiByteToWideChar and its sister function from, I decided to make a dll of the code since I still needed the conversion from utf8 to utf16. I beleived that making it a dll would solve the problem because it would be all alone. Well, to the greatest of surprise, the #error notification showed up as a compilation error again. This was so exasperating. I had no other option than to go and and attempt to set the target platform like you stated in your solution. First, I set it to x86. The compiler complained that x86 was not compartible with x64 .By that I guessed that it was referring to x64 that I had chosen on combobox of visual studio that is located on the toolbar. So, I changed the setting of the one on the toolbar to x86 too. I was plesantly surprised to discover that it worked.
So, I went back to my original project and uncommented everything I had commented out to exclude MultyBteToWideChar ant its sister from my project. Then, I went to the compiler settings and set the target platform to x64. I was quite happy to discover that the project compiled without any #error compilation error. Your solution is the correct solution. I noticed that my own solution has been accepted. Plese, moderators, this solution is the correct one.It is the best. Kindly delete mine and let people use this. Mine will cause people a lot of stress. I am accepting this your elegant solution right away. What you said proved to be true. My solution was a side-stepping. The problem occurred again in a situation where there ws no room for side-stepping. It was your solution that saved the day. By the way, I abandoned the dll that I created. It was no longer useful to me because of your solution.What anyone who faces this kind of error needs to do is to first flip the default target platform in the compiler setting and the chose his prefferd one. Once you choose apply, the problem is solved.
Please, moderators, this solution should be top rated and not mine. I am the one who came with the problem and I know the better solution because I have applied both.
Gbenbam
22-Oct-23 13:17pm
View
I am sorry, I don't think you are right.When I got to the complier setting location, I saw that it was already set to x64. Just as I had chosen in the combobox on the toolbar of visual studio where you can choose either x86 or x64.I went back and changed the option to x86 on visual studio's toolbar combox, then went back to see what the compiler option now is. It had changed to x86. So, whatever you choose at the toolbar combobox is your target machine , and I always have a choice on the tool bar which is either x86 or x64.
Gbenbam
22-Oct-23 12:59pm
View
OK. I will check it out.Thanks a lot.
Gbenbam
22-Oct-23 12:50pm
View
I checked out the link, that link is about showing people how to use GDI+ classes. The problem here for now is how to ensure the program is able to use GDI+ classes. How can a program, that did not even compilein the first place, use GDI+ classes. The hudle I am trying to scale at this stage it to get the program to initialize itself succeccessfully for GDI+ operation first. The program is yet to do that. GdiplusStartup will not compile, not to even talk using any class or structure.
Gbenbam
22-Oct-23 12:42pm
View
Do kindly help me understand what you are trying to tell me. I have not used any GDI+ class or function in my project. Not even a single tiny one. All though I would use them a lot much more later. This is a new project, I just wanted to ensure that it is ready for GDI+ operations. All I have done so far is to call GdiplusStartup in WinMain when the program starts and call GdiplusShutdown when it is about to exit. So, for now, I have not really carried out any GDI+ operation.Thanks for the link.I will check it out.
Gbenbam
22-Oct-23 4:57am
View
I think it is caused by header files class. When one or more files include the same header file. Modules only exposed exported component of the file. So, the don't create header file clash.
Gbenbam
22-Oct-23 4:13am
View
Are you really sure about that because seem to remember intstlling all there was to install.
Gbenbam
22-Oct-23 4:11am
View
That is the extension for module files in visual studio 2022
Gbenbam
20-Oct-23 19:52pm
View
I am not new to using Gdiplus. I stopped programming for years. I just resumed this month. I think the application does not compile becuase it did not link with neither gdiplus.lib or gdiplus.dll or both.
I don't remember how to do that in visual stidio. My guese is that part of it is what the #pragma comment is supposed to stop.
Gbenbam
20-Oct-23 19:50pm
View
I think the application does not compile becuase it did not link with neither gdiplus.lib or gdiplus.dll or both.
I don't remember how to do that in visual stidio. My guese is that part of it is what the #pragma comment is supposed to stop.
Gbenbam
20-Oct-23 19:46pm
View
Please, note that none of these errors have anything to do with my code. The are all from gdipus.
Gbenbam
20-Oct-23 19:46pm
View
Please, note that none of these errors have anything to do with my code. The are all from gdipus.
Gbenbam
20-Oct-23 19:24pm
View
Yes, I get compiltion errors:
Severity Code Description Project File Line Suppression State
Error (active) E0020 identifier "REAL" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbrush.h 270
Error (active) E0169 expected a declaration ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplus.h 82
Error (active) E0020 identifier "IStream" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 50
Error (active) E0020 identifier "IStream" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 85
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 124
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 137
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 150
Error (active) E0020 identifier "IStream" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 152
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 163
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 172
Error (active) E0020 identifier "ImageType" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 188
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 198
Error (active) E0020 identifier "SizeF" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 200
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 220
Error (active) E0020 identifier "RectF" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 222
Error (active) E0020 identifier "Unit" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 223
Error (active) E0020 identifier "REAL" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 250
Error (active) E0020 identifier "REAL" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 260
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 280
Error (active) E0020 identifier "PixelFormat" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 286
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 306
Error (active) E0020 identifier "ColorPalette" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 308
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 315
Error (active) E0020 identifier "ColorPalette" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 317
Error (active) E0020 identifier "GetThumbnailImageAbort" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 327
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.226
Gbenbam
20-Oct-23 19:23pm
View
By it won,t work? I meant it wont compile successfully.
Gbenbam
20-Oct-23 19:21pm
View
it would give the folowing error messages:
Severity Code Description Project File Line Suppression State
Error (active) E0020 identifier "REAL" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbrush.h 270
Error (active) E0169 expected a declaration ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplus.h 82
Error (active) E0020 identifier "IStream" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 50
Error (active) E0020 identifier "IStream" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 85
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 124
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 137
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 150
Error (active) E0020 identifier "IStream" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 152
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 163
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 172
Error (active) E0020 identifier "ImageType" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 188
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 198
Error (active) E0020 identifier "SizeF" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 200
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 220
Error (active) E0020 identifier "RectF" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 222
Error (active) E0020 identifier "Unit" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 223
Error (active) E0020 identifier "REAL" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 250
Error (active) E0020 identifier "REAL" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 260
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 280
Error (active) E0020 identifier "PixelFormat" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 286
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 306
Error (active) E0020 identifier "ColorPalette" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 308
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 315
Error (active) E0020 identifier "ColorPalette" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 317
Error (active) E0020 identifier "GetThumbnailImageAbort" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gdiplusbitmap.h 327
Error (active) E0020 identifier "Status" is undefined ResultSheets C:\Program Files (x86)\Windows Kits\10\Inc
Gbenbam
6-Aug-23 20:09pm
View
Deleted
Gbenbam 1 min ago
✎ Deleted
Thank you so much for your efforts. I just noticed that I did not change m_iCurrent to m_iCount in the iterator class.
Gbenbam
6-Aug-23 20:05pm
View
Deleted
Thank you so much for your efforts. I just noticed that I did not change m_iCurrent to m_iCount in the iterator class.
Gbenbam
6-Aug-23 19:59pm
View
#include<iostream>
int main()
{
vector<int> vList{6,10,8,2,9,1,7,4,3,5};
for(int i = 0; i < vList.size(); i++)
{
std::cout << vList[I] <<' ' ;
}
Gbenbam
5-Aug-23 8:36am
View
@OriginalGriff, how does one backtrack with vs 2020?
Gbenbam
5-Aug-23 7:47am
View
I did use a debugger. The debugger revealed that at some point in the recursion, iRemaining had no value even though iMiddle and i
helperLeft had values. I am referring to the statement: size_t iRemaining = iMiddle - iHelperLeft;
Gbenbam
5-Aug-23 7:40am
View
The condition that I set for throwing an exception is: if (Index <= -1 || Index >= m_iCount).
As revealed from debugging, the exception was thrown when Index = 0. You use zero to replace Index in the conditional statement and see if the result will satisfy the condition for throwing exeption.
Gbenbam
5-Aug-23 7:27am
View
The problem is that the program did not even compile. the first error is "Error C2061 syntax error: identifier 'iterator'". There are other errors they are so many and I believe they are all caused by the initial error stated above. If the initial error is corrected all of the remaining error messages will probably not show up again. So, I commented out every thing that had to do with the iterator class, the program then compiled but on running it, it kept throwing exceptions without any logical reason.
Gbenbam
23-Dec-21 9:04am
View
Thanks. I appreciate this
Gbenbam
23-Dec-21 9:02am
View
Thanks. I appreciate this.
Gbenbam
23-Dec-21 9:01am
View
Thanks. I appreciate this .
Gbenbam
23-Dec-21 9:01am
View
Thanks I appreciate this.
Show More