Hi, I a making an MFC app that needs to save the user's password and username to the registry. How do I go about "encrypting" it before I save it to the registry so no sneaks will look in the registry to see the user's password (for example, a brother or sister or whoever..). Thanks!
mcguile257
Posts
-
Saving password to registry? -
I want a programming job badHi, I currently have a web design job, but I have been programming in C/C++, MFC, etc for about 3-4 years and want to get a programming job eventually. I also have a degree in Computer Science which will probably help. I have a pretty good resume, a few MFC projects to show for demos, but is that enough to actually get a programming job? I was thinking about making another project to wow employers, but I am having trouble coming up with a project to work on. I've done a fully-featured HTML Editor, an FTP client, several game projects, etc. but I want to make a "killer-app" to show potetional hiring managers, programmers etc so I can get a job. Any advice?
-
Using EasySizeI am using Marc's EasySize.h for easy resizing of controls within a dialog-based application. I need help with getting the message map right for the following controls: 1) I have two list controls side-by-side that I want to resize proportionately to the resize. How do I code the message map for the easy size? EASYSIZE( control, left, top, right, bottom, options ) 2) Also in the dialog I have 5 buttons that are lined up on the bottom of the dialog centered horizontally. Can someone help me get the message map right for these controls as well? THANKS!
-
SetWordCharFormat can be undone??I know of that, but what if before I call SetWordCharFormat the user has an operation that is undoable. If I called EmptyUndoBuffer, they would be unable to undo that operation they had "done" before I called SetWordCharFormat. There's got to be a solution :)
-
SetWordCharFormat can be undone??In my MFC MDI app, when I call GetRichEditCtrl().SetWordCharFormat or GetRichEditCtrl().SetSelectionCharFormat to color a piece of text, and then press Ctrl+Z (or Edit->Undo), the formatting gets undone! Is there any way to tell the rich edit control not to allow this character formatting to be able to be undoable?
-
HTML syntax highlighting conceptsI am writing an HTML syntax highlighter for my MFC MDI app and I wrote a ParseAllLines function and it works perfectly for coloring the entire document. But I was wondering how to go about parsing/coloring as the user types into the rich edit control or pastes something into the document. Can anyone generally tell me what I need to do? Do I overwrite OnChange for the rich edit control? If so, what lines do I parse? I appreciate any advice, thank you!
-
CRichEditCtrl -- current column?In my MDI MFC app, I have a status bar pane that shows the current line number and column number. I know that to get the current line number, I simply do: int lineNumber = LineFromChar( -1 ). But I am having trouble getting the current column, anyone know how to do this? It shouldn't be too bad.
-
adding gutters to rich edit controls?In my main rich edit view, I want to add a gutter to display line numbers. I am doing an MDI MFC app and have NOT found any way to do this. If anyone knows of any solutions to draw line numbers or add gutters to rich edit view/control, please reply! Thanks!
-
Save Changes to... screwing up in WinXPIn my MFC application, when the user makes changes to a document, and they try to close it, a dialog box pops up saying, "Save changes to BLAH.txt?". That's what happens in Win98. But when I run my app in XP, it comes up saying something crazy like: "blah.txt ??????????????????" or something. Note I am not implementing this dialog box, MFC is doing it behind the scenes. Also the buttons in Print Preview seem to be screwed up as well in XP apposed to the correct button text in Win98. What the hell?
-
vertical scroll bar not working in MFC?I am working on an MDI MFC app and have been making great progress on it, but all of sudden, when I try to use my vertical scroll bar to scroll the rich edit view, it doesn't respond. Mind you, I can still use the mouse wheel to scroll up and down, but not directly by using the vertical scroll bar. It was working fine up until yesterday (been working on this project for roughly 2 months) when I must have changed something or adding something to the code that screwed it up, but for the life of me, can't figure out what. Please help! Any suggestions as to what to change or edit I would appreciate!
-
what files to distribute with my MFC app?OK I figured it out, thanks for all the help guys. The problem was part of my code, namely GetProfileBinary. I fixed it, so it's all good. I finally understand all this stuff. Thanks.
-
what files to distribute with my MFC app?I used dependency walker. I copied the files: mfc42.dll and msvcrt.dll from my visual C++ CD and put those in my target machine's system folder. I also copied the release version of my app onto the target machine and it still doens't work. The target machine is WinXP and when I run my app it comes up with some dialog box that really doesn't explain the error. **EDIT** I looked up in MSDN about this and they said I had to register my DLLs on the target machine. How do I do this? Any more help is appreciated. Thanks.
-
what files to distribute with my MFC app?I am wondering what files to distribute with my MFC app to get it to work on various different machines. In my project settings, it says I am using MFC in a shared DLL. When I go to run my app on my XP (versus my 98 where I developed it), it doesn't work. So, obviously I need to distribute some files, but which ones? Thanks.
-
lag when selecting/dragging text in rich edit view?In my CRichEditView derived class, CEditorView, when I select text and scroll vertically, the view lags for a second before scrolling. When you usually do this in other programs, there is no lag time. Does anyone have any suggestions for me? Thanks kindly.
-
OnDraw not getting calledOK, where is CCtrlView? Do I have to call Default to avoid this problem? I appreciate your responses, but I am a little confused about how to fix this with your current reply.
-
OnDraw not getting calledThe definition for CEditorView::OnDraw is: virtual void OnDraw( CDC *pDC );
-
OnDraw not getting calledI have my CEditorView class, which is derived from CRichEditView. I put a breakpoint in my CEditorView::OnDraw function and it was never getting called. Why is OnDraw not getting called? Reason is, I want to be able to draw the line numbers and a margin, but I can't now that OnDraw is not getting called? Any help is appreciated!!
-
CColorDialog::SetCurrentColor crashingI customized CColorDialog into MyColorDialog and added a hex edit box. When the user edits the hex box, I need to call CColorDialog::SetCurrentColor, but it seems to crash everytime I do so. Anyone else have any problems with SetCurrentColor? Thanks.
-
drawing line numbers in MFCHow does one go about drawing line numbers to an MFC application? Would I simply use a pen in my derived CView OnDraw function and draw the current lines or is there a different way? Thanks.
-
adding a color list box in a dialog MFCHow do I add one of those cool list boxes that allow you to pick a color in the dialog box. I know how to add a list box to a dialog, but not how to add the color part to it. PS -- I'm not talking about CColorDialog, I want to know how to be able to pick a color inside the dialog list box.