15,881,248 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 Gbenbam (Top 200 by date)
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.
Gbenbam
23-Oct-21 16:58pm
View
Thanks. I wish I can get an answer from an expert on hash function writing.
Gbenbam
22-Oct-21 4:28am
View
Can you kindly give some details as to how the function internals can be? What do you mean by useful HASH? What I really need is some guide on how to hash interger, how to hash double, how to hash strings, how to hash objects, etc. Using the approach HASH(k) = k% buckets is too trivial. It will not work for strings, neither for doubles, neither for objects etc
Gbenbam
22-Oct-21 4:23am
View
I need the hash function for a hash table.
Gbenbam
23-Oct-17 3:53am
View
Json::Value is a JsonCpp Value type it will be familiar to people ho use JsonCpp.
std::string MakeString(long long llValue)
{ char Buffer[100];
sprintf(buffer,"%lld",llValue);
return std::string(Buffer);
}
Gbenbam
22-Oct-17 9:59am
View
Its the numeric indexing that is the problem not the string.
It says there three possible matches: namely, int, long , long long.
Gbenbam
19-May-17 2:40am
View
See my solution below.
Gbenbam
22-Mar-17 11:27am
View
It is not I but users of a client/server desktop application that will need to periodically come to the application's website t periodically create a certificate for themselves. Do you think OpenSSL command line tool will be suitable for this?
Gbenbam
21-Mar-17 13:24pm
View
I eventually found one.See below.
Gbenbam
21-Mar-17 13:14pm
View
Okay, what I meant was link to sample code. Or perhaps, google search key word.
Gbenbam
21-Mar-17 9:13am
View
Thanks. I found the problem. See my solution below.
Gbenbam
28-Feb-17 8:25am
View
I am working on this same thing. How does one locate the registry entry?
Gbenbam
28-Feb-17 8:25am
View
I am working on this same thing. How does one locate the registry entry?
Gbenbam
16-Sep-16 10:27am
View
If I understand you well, in my own peculiar case, do you advise I should first go and learn about hacking and security, test my function before asking my question?
What do you suppose I should do so as not to look like a help vampire?
If you are to advise on my not being a help vampire , what would you advice.
I only typed that to fill that space so that the question will submit.
Do kindly give your advice on what I should do so as not to be a help vampire, in this case?
Gbenbam
16-Sep-16 10:22am
View
http://www.codeproject.com/script/Answers/MemberPosts.aspx?tab=answers&showall=True
Thats a link to my answers page. Now if you have had the experience I had, what will you do.
If I tell you what I do for a living, you will have a paradigm shift and apologise rather than criticize, me.
So you think because I have been here for 7 years I am very knowledgeable right?
I have had a fair share of ridicule, verbal attack, verbal harassment in this forum. Why would I want to open myself to ridicule when I am not sure of my answer.
If a give ridiculous answer, you might be the first to ridcule me or put -10.
When I am sure of an answer I will give it. When I am not sure of it, I will hold my peace. I am only following the advice of Segay, an expert who has berated me severally in this forum.
Gbenbam
16-Sep-16 10:04am
View
Ok. I will edit. The post and put something else.
Gbenbam
16-Sep-16 10:02am
View
Please check my last comment.
Gbenbam
16-Sep-16 10:00am
View
I am not a vampire. My programming knowledge is just too elementary for this forum. If you go through the list of my questions will see where people berated me severally for asking elementary questions. In fact someone once said my question don't belong here. So if my questions are too elementary( by CP standard ) how do you expect my to solve other people's questions. Sergay Alexandra will have one or too thing to say about me. He has once advised me to keep my answers to myself unless I am sure of my solution. I am not the kind of person who lies and I don't see any reason why I should lie. I just needed to fill the space.
Well, in case you care to know. I am a member of some other programming forum where I am considered a guru and I offer help regularly. The truth is this: until I become a much more experienced and knowledgeable programmer, I will remain largely a asker rather than a giver as far as code project is concerned. Sergay, one of the experts here, advised me to keep my answers to myself. Nonetheless, I once answered my own question in the solution section when I was sere of the answer.( you can check my username to verify.
Gbenbam
16-Sep-16 9:47am
View
Pleas see my reply to last comment.
Gbenbam
16-Sep-16 9:47am
View
I was only being honest in my opinion. I don't know how to hack. The only way I could possibly do something was to attempt to hack my app to see if it was secure. If I live the field blank, the question will not submit. If I say I don't know what to do. I would be lying. Come on friends, you don't expect me to lie do you. I know what to do, but I do not have the requisite knowledge to do it.
Gbenbam
16-Sep-16 8:41am
View
But I am not using http Server API 2.0. I am using 1.0
I tried using 2.0 it did bot work. Maybe this is the reason. I do not really know, but I remember that it did not work. I will rewrite the code again and use version 2.0 and use HttpAddUrlToUrlGroup and see what will happen.
Gbenbam
9-Jul-16 7:50am
View
This is quite illuminating.
Gbenbam
9-Jul-16 3:46am
View
Thanks a lot. The second zero and the slash before the port number were actually typos. I will give it another try.
Gbenbam
9-Jul-16 3:43am
View
Wow. These links given above are way way helpful. Thanks.
Gbenbam
9-Jul-16 3:24am
View
Oh! Never thought of that. The program expect fully qualified URI. Do you by chance know what a fully qualified URI is? isn't the same as a url? The only parameter passed to the program is a url, so perhaps there is a particular way it must be written to make it a fully qualfies uriBy the way, I used http:\\127.0.0.0.1\:80\The Script's Folder Name.
Gbenbam
9-Jul-16 1:52am
View
Thanks now I have loads of articles, and codes from googling with your suggested key, even one from the founder of Code Project.
It seem you have an idea on how to stop the app remotely. Do you mind sharing it with me?
Gbenbam
8-Jul-16 13:16pm
View
The administrator will need to interact locally with the server application. So he may need to stop it locally.
Gbenbam
19-May-16 8:05am
View
Thanks once again for this ur comment.It really did point me in the right direction.Googling the keyword cookie made your your suggestion clearer.I think I am getting close to hitting a 'home run’. Cheers.
Gbenbam
19-May-16 2:57am
View
I know all that.I mean if I create my own custom cookie as advised, with php associate it will all sessions it creates and all session variable it creates just as if the cooker was sent by a web browser?
Any way.Thanks a lot. The hint, it appears is, developing a policy for system/application recognition by the web service. I can always do without php kind of session and session variables.I just hope that is wise.
Gbenbam
18-May-16 11:54am
View
Pls I think I need more info. How do I create globally unique cookie?How would I make the sent back cookie work with php start session function and more importantly with session variables? Is there a function for creating cookies?What is the syntax of a cookie
Gbenbam
3-May-16 10:00am
View
Yes, I am referring to more to your comment in the other ellipse question.
Gbenbam
3-May-16 8:27am
View
Thanks for your solution. But I.believe you will agree with me that that not all questions require codes. How does one write code on anti-aliasing if he doesn't know what it is in the first place.Often times,all one needs is someone to point him in the right direction. Anyone who has used msdn for some time will know that documentation doesn't always have all the information. It it does there will be no need for googling, in fact there will be no need to join this forum. Besides, I think you need to be more patient with people on here. You can correct without sounding hash and critical. All you need do is soften the tone of your responses.
I remember one of my encounters with you.I had just joined code project and that was the first time I will join a forum. I used to use yahoo answers until some from yahoo answers gave me a link in CP that was how I discovered CP. Since I did not know how to use the forum I erroneously posted a reply to an answer as solution, and what did I get, a lambasting from you. Ironiously , it was another old member who guessed that I did not know the correct thing to do that instructed me on the right thing to do.Rather than lambast me that, in my opinion is what you should have done.I think you really should endeavour to be more patient and tolerant. In spite of it all , you remain the most helpful and resourcefull member of CP to me. Stay blessed.
Gbenbam
3-May-16 3:05am
View
By rough boundary I mean boundaries that have a degree of zig-zagging. By smooth edges (or boudaries) , I mean edges/boundaries that have no iota of zig-zaging.
Gbenbam
3-May-16 2:58am
View
I don't want to distort the image.I want to cut out all parts outside the ellipse.
Gbenbam
8-Feb-16 21:53pm
View
I take that as a joke. if my question is not clear to please let me know so that I can r-word it.
Gbenbam
8-Feb-16 20:55pm
View
Can you show me a snippet of the code with which you did it?
Gbenbam
19-Jan-16 16:42pm
View
Not done deliberately. Will delete one now.
Gbenbam
10-Jan-16 8:56am
View
Thanks. I have fixed it.
Gbenbam
10-Jan-16 8:55am
View
Thanks. I fixed it. Everything is fine now.
Gbenbam
29-Dec-15 8:55am
View
Please how is that so? I still can see it.
Gbenbam
29-Dec-15 8:55am
View
That was a typo.
Gbenbam
26-Dec-15 15:29pm
View
ok. Will try it thanks.
Gbenbam
7-Nov-15 16:46pm
View
Ok. I'll rewrite it and without any goto statement.
Gbenbam
7-Nov-15 16:42pm
View
The only thing I gathered from that link is that certificates are used by web servers and web browsers only.
I still couldn't find an answer to my question there. Is it only web servers and clients that can use them? Does it mean my own written server and client cannot?
Gbenbam
7-Nov-15 16:32pm
View
OK. I remember now. I added severe got statement of my own to for agreement with the former version.
So, can you suggest a better way to write the code without goto and still do clean up.
But, I think the code is still very readable even with that large number of goto. Or don't you think so?
Gbenbam
7-Nov-15 16:25pm
View
Funny. I got somewhere on the web and modified it. I am not the cuprit.
Gbenbam
30-Oct-15 3:21am
View
I am sorry for ds belated comment. just seing it now. how come u seem to know so much anout mfc? Don't u have concerns about d long time it takes to complete project using win32 API?
Gbenbam
29-Oct-15 13:56pm
View
Thanks a lot. I appreciate this.
Gbenbam
3-Sep-15 12:01pm
View
Ok. Thanks. I'll try it.
Gbenbam
18-Aug-15 3:22am
View
Thanks. I appreciate this.
Gbenbam
4-Aug-15 14:04pm
View
I have seen that via google search. It is an article on Static Splitter and not dynamic splitter? By the way, what are you using now? Asked because I am thinking of dumping MFC for Qt.
Gbenbam
4-Aug-15 6:12am
View
I know I have to create the views, but that function is used to create views for static splitters. This is a dynamic splitter. Is there an equivalent function for dynamic splitters? It appears the frame work creates the views of the same view type in dynamic splitting. How do I intercept the view creation in dynamic splitters so as to decide which view type each pane is?
Gbenbam
3-Aug-15 10:33am
View
I used this code on VS2010 but id did not seem to work.
I added an MFC button from the resource editor and wrote.
CMFCButton *pButton = (CMFCButton *)GetDlgItem(IDC_MFCBUTTON1);
pButton->StFaceColor(RGB(255,0,0),true);
pButton->SetTextColor(RGB(0,0,255));
I wonder why the code doesn't seem to work.
Gbenbam
1-Aug-15 6:31am
View
Clearly my question is not clear. Its title which was meant to give people the idea that its a painting problem is not really apt.I will edit it.
Well. I actually wrote the repaintg code on receipt of WM_PAINT message. This means that every time my prigram receives the said message the rendering is done.At least that is what i expect of code that responds to the WM_PAINT message. The strange thing is that the black bacground is shown subsequent to each WM_PAINT repainting.
I suspect that what is happening is that MFC displays a default view with.black bacground when all the child windows have been closed.
Gbenbam
31-Jul-15 22:33pm
View
Perhaps you should have a look at my solution below.
Gbenbam
31-Jul-15 22:33pm
View
Perhaps you should have a look at my solution below.
Gbenbam
31-Jul-15 22:33pm
View
Perhaps you should have a look at my solution below.
Gbenbam
31-Jul-15 22:09pm
View
Funny enough, I did not notice this your last comment before now.Thanks for it.
I was able solve the mystery myself. I found many of the common menu function wont work. MS has made every item on the toolbar objects. The number of objects associated with a popup menu alone is shocking.
Gbenbam
28-Jul-15 3:23am
View
None of the proferred solution has worked. Very strange.
Gbenbam
28-Jul-15 3:22am
View
No. The original question is not solved. I am still searching for a solution. Its all in a bid to find a solution.
Gbenbam
24-Jul-15 4:26am
View
I have corrected the typo.
Gbenbam
24-Jul-15 4:13am
View
Ok. Closer look revealled that it was just a codeproject typo. Thanks for the observation.
Gbenbam
24-Jul-15 4:10am
View
Oh no! It appears I had carried out wrong diagnosis.
That aside,kindly check my updated question. Thank you.
Gbenbam
24-Jul-15 4:07am
View
Kindly check my updated question. Thank you.
Gbenbam
24-Jul-15 3:58am
View
I don't quite understand this. I was of the opinion that I am already checking pMainMenu or am I really not? Kindly expansiate.
Gbenbam
23-Jul-15 7:09am
View
Dubbuging has shown that is is GetMenu() that failed please see the new revalation as see if you can help provide a solution to the modified question. Thank you.
Gbenbam
23-Jul-15 7:08am
View
Dubbuging has shown that is is GetMenu() that failed please see the new revalation as see if you can help provide a solution to the modified question. Thank you.
Gbenbam
23-Jul-15 6:27am
View
The example code shown there is more or less identical to my code above. The menu location zero was used to get a pointer to the FILE menu.This is exactly why I find the fact that my code is not working mysterious.Or can you see any special differnce between my code and that on MSDN apart from use of AfxGetMainWnd() ?
Gbenbam
23-Jul-15 6:08am
View
Please, what position is the FILE menu of a windows application? And, please is it a popup menu?
Can you kindly show me how to get a pointer to the FILE menu of a windows application which usually the first menu in a windows application.
Gbenbam
22-Jul-15 22:53pm
View
I have not been able to resolve the "GetMenu() not working" problem. Please refer to the edited version of my question.
Gbenbam
5-Jul-15 5:01am
View
That is quite straight forward. what about about keys used for file encryption and password used for connection string.
Gbenbam
5-Jul-15 1:53am
View
i code in both languages and it concerns my coding in both languages.But i expect answers given probably independent of d other language.
Gbenbam
5-Jul-15 0:50am
View
How do u mean?
Gbenbam
24-Jun-15 13:46pm
View
Noted. Thanks.
Gbenbam
22-Jun-15 11:49am
View
Thanks a million times.
Gbenbam
22-Jun-15 11:09am
View
OK. They must be on the propertypage then. Wherever they are , I do not wish to disable them. I wish to hide them.
Gbenbam
22-Jun-15 10:51am
View
ok.Thanks.
Gbenbam
22-Jun-15 7:00am
View
ok. how do i get a pointer to a menu item on my main menu for ,instance, the FILE menu?
Gbenbam
22-Jun-15 6:11am
View
Thanks. I very grateful. Its been quite a while. How has your day been?
It seems this is even better:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb773831%28v=vs.85%29.aspx
Gbenbam
22-Jun-15 5:30am
View
I give up.
Do you think think the above added new code make sense? You said the source of the data does not matter.
Gbenbam
22-Jun-15 4:58am
View
If you mean this:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms535410%28v=vs.85%29.aspx
That would mean that IStream objects are alway created from files and not from memeory located bytes.
The intention is to read from memory bytes as opposed to file data.
Gbenbam
22-Jun-15 4:30am
View
Ok. I almost missed it. You said "an IStream can be constructed and a stream byte written to it." . Wow! That is the solution! But how does one write a stream of bytes to it. I will immediately statrt to check that up now , but if you know how to, kindly share the knowledge with me. That might save me a lot of time.
Gbenbam
22-Jun-15 4:26am
View
Actually, the emphasis is : rendering from memory. I don't have to use the above code. If need be I can use another code. I just wanted to load from database and render from memory. But like your suggestion of using an encrypted file. I might prefer to load the file into memory and decrypt it from memory and and render using an approach similar to the one above or something completely different.
Gbenbam
22-Jun-15 4:17am
View
How does one create an IStream? Is it possible to create an IStream from a BLOB?
Gbenbam
22-Jun-15 4:04am
View
Here you are:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms536051%28v=vs.85%29.aspx
Gbenbam
22-Jun-15 4:00am
View
Image is a c++ class. I found the example in MSDN. I don't know if it is an MFC class. I'll locate the link to that MSDN page and post it here. Just a minute,please.
Gbenbam
22-Jun-15 3:43am
View
Problem is that I only know how to render image from file using :
Graphics graphics(dc);
Image image(pszFilename);
graphics.DrawImage(e.t.c) .
I know Image has a constructor that accepts streams but inspection shows that the stream in question is not ios::ifstream.
Perhaps the question could be:
How can one convert a file into a stream in memory and the render it.( I don't know if this makes sense. Do you think it does?)
Gbenbam
22-Jun-15 2:20am
View
How does one do that?
Gbenbam
30-Mar-15 1:34am
View
Done.
Gbenbam
29-Mar-15 20:30pm
View
I succesfully implemeented it. Thanks for your assistance.
Gbenbam
29-Mar-15 1:17am
View
Actually, I had seen seen all of the above google search result. I thought there may be a simpler way to do it. So much code for somthing so small? Wow! I guess I,ll got no choice?
Gbenbam
29-Mar-15 0:51am
View
Thanks.The misspelling can't be the problem. The editor would naturally point it out for correction.
Gbenbam
6-Mar-15 13:14pm
View
That is exactly what I am doing now, but people can still access my databases and see the tables and colunms but cannot decipher the encrypted string content.
For instance, I am still able to access my database using SQLite Analyzer.
Perhaps the right question is, how can I encrypt my database such that it cannot be accessed at all.
Gbenbam
16-Jan-15 9:42am
View
How does it work? The program is quite understandable and straight forward. Since it is suppose to make my program auto-start where, when or how do I include it in my code to ensure this?
This code looks like some code that ought to be in the program itself. If it is in the program itself, how does it make the program auto start?
I am just wondering and trying to understand how it works.
Gbenbam
5-Jan-15 19:36pm
View
I already did that and got no response.
Gbenbam
5-Jan-15 10:04am
View
I have fixed it.
Gbenbam
4-Jan-15 22:16pm
View
It turned out that that was the case, I use the CPropertyPage::Contruct member function on each property page before call AddPage for each property page in the propertysheet's constructor. I actually saw this approach somewhere. It turns out that using CPropertyPage::Construct efor AddPage did bot allow the ProperyPages to get properly created.
It occured to me to remove it since that is the only new thing in property sheet programming that I have include in the program that was not in the program for other property sheet programs I wrote.
On removing them ( the CONSTRUCT lines) , every thing started working fine.
Thanks a lot.
Gbenbam
2-Jan-15 21:06pm
View
Each time the exception is thrown, visual studio brings out a page of Afxwin2.inl and pints ay this line of code:
AFXWIN_INLINE int CComboBox::AddString(LPCTSTR lpszString)
{ ASSERT(::IsWindow(m_hWnd)); return (int)::SendMessage(m_hWnd, CB_ADDSTRING, 0, (LPARAM)lpszString); }
Gbenbam
2-Jan-15 20:58pm
View
I guess this is what you mean.
m_Combo1.m_hWnd = ::GetDlgItem(m_hWnd,IDC_COMBO1);
m_Combo2.m_hWnd = ::GetDlgItem(m_hWnd,IDC_COMBO4);
m_Combo3.m_hWnd = ::GetDlgItem(m_hWnd,IDC_COMBO5);
If that's it. I did exactly that, but got the same exception.
Gbenbam
2-Jan-15 20:44pm
View
How do I detach the controls during OnDestroy? Pls help me with code snippets?
Gbenbam
2-Jan-15 20:41pm
View
Yes, I have done that, the m_hWnd member variable of pCombo2 was not valid, but I see no reason why it should be so.
Gbenbam
2-Jan-15 20:39pm
View
This could be the way out. Can you kindly explain things a little bit more? I don't seem to picture what you mean. Can you give me code snippets? Thanks.
Gbenbam
29-Dec-14 18:33pm
View
Just what I needed.Thanks.
Gbenbam
18-Dec-14 17:34pm
View
I was finally able to fix it.The garbage that was previously produced was due to the fact that iClassTypeID was of type INT_PTR and i used llu for it.
Once again, thanks a lot.
Gbenbam
18-Dec-14 17:17pm
View
I tried it.It successfully formatted the first three variable, but the remaining variable were rendered as a long unending string of numbers.
It is not compulsory that I make it unsigned. It is somehow compulsory that I make it 64 bit.
Please what is the format code for 64 bit integer? It is because I dont't really know it that I used that.
Previous to posting this question, I had tried, "%d" but got the same result.
Gbenbam
18-Dec-14 11:20am
View
Thanks. It worked.
Show More