-
Content Count
11 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Rick Malik
- Birthday 10/26/1960
Recent Profile Visitors
72 profile views
-
Capture as soon as file paste is selected
Rick Malik replied to Mustafa E. Korkmaz's topic in Windows API
so no to your second question...okay....you guys are long winded... no, but I read the question though somewhere in winuser.h there an undo move, maybe an undo paste... they have to keep track somehow. Where to look? Hey It was a comment. I figured, if you knew who owed it, you could send it back. -
Capture as soon as file paste is selected
Rick Malik replied to Mustafa E. Korkmaz's topic in Windows API
Isn't there a GetClipboardOwner(void) function you could hook, in there someplace? -
Rick Malik changed their profile photo
-
Gone are the days when people like Jon Jenkinson, Andy Hall, Kent and Charlie, and a bunch of us would use these forums to discuss platforms, share insight, and solve problems... without criticism. I'm just a hobby programmer. I spent my life laying carpet in your homes and offices, so forgive me if I don't conform to your idea of what a programmer should behave like. I was a beta tester for cppb1 and stopped upgrading at version 6. I still run Windows 7. My PC is 64 bit, but I'm not planning on upgrading the OS or C++ Builder. I'm retired now, and just wanna play with the cats and write cute little games and utilities that I find interesting. My current project is an LCD unit Controller (Crystalfontz and Matrix Orbital) and I'm having fun. If it bothers you, the way I code or ask questions... just ignore me. (or ban me ?? don't care). Just don't bully me. I don't like schoolyard behavior. I'll try not to ask anymore STUPID questions. Like my next problem - how do I move a frameless window. - which I can do, but the mouse jumps to top-left corner and if you're close to the right hand side... off screen. (I'm not asking yet). And I've always scoured the documentation, looked for examples I can find online, and tried many approaches to the problem, before giving in to asking someone else. <\rant>
-
Okay. So you're saying this place is a "Last resort" .... just wow
-
Please explain the difference ("StackOverflow is a Q&A site, not a help forum. ") Why would I ask a question if I didn't need help?. But if you wanna ask me about my cats (I have 19) please do... I got pics too. Most of the properties are set in the Object inspector- ie, dictionary, auto-change, etc. Their 'do while' is my while, right? And their 'select' is my switch, or am I using Russian to translate french. I said before, I have trouble basic and pascal. I couldn't figure out how to "if(), exit loop, endif".... && I didn't know what to do with that second 'loop' !? I thought exit meant we're done here. Isn't that what cancelled means? I also didn't know you could use 'break' outside the switch case statement....hmm, I'll look that up. And I purposely left out the ignore case. VSIR_IGNORE is probably another typo. Left it out. The good new is, my spell checker works as written. I'll try you statement and see if there's any marked difference and let you know. Thanks for the come back. Enjoy the rest of your evening .
-
Funny, I can't tell the difference (: They're both either German or Polish to me. When my dad would talk to his mom, they'd switch around and it all sounded the same.
-
Thank you. At least you didn't bash me around. I got up a 3am this morning, espresso, and the pascal language guide that came with c++ builder. and after a lot of back and forth, I did finally decipher your guyses language. I came up with this (in case one day someone else wants to know) ----------------------------pascal example I found Dim ResCode As Integer VSSpell1.EventOptions = 0 VSSpell1.AutoPopup = False VSSpell1.CheckText = TextBox.Text ResCode = VSSpell1.ResultCode Do While ResCode < 0 Select Case ResCode Case VSR_WORD_MISSPELLED, VSIR_IGNORE VSSpell1.PopupMisspelledWord = 1 ResCode = VSSpell1.ResultCode Case VSR_BREAK End Select If ResCode - VSR_CHECK_CANCELLED ' misspelled in the guide twice Exit Loop End If ResCode = VSSpell1.ResumeCheck Loop Memo.Text = VSSpell1.Text --------------------------- in c++ (from a button click) int i = Memo1->Lines->Count; int ResCode; SpellChk->CheckText = Memo1->Text; ResCode = SpellChk->ResultCode; while(SpellChk->ResultCode < 0) { switch(ResCode) { case VSR_WORD_MISSPELLED: SpellChk->PopupWordMisspelled = 1; ResCode = SpellChk->ResultCode; break; case VSR_BREAK: SpellChk->ReplaceRecheck; break; } if(ResCode == VSR_CHECK_CANCELED) {return;} ResCode = SpellChk->ResumeCheck; } Memo1->Text = SpellChk->Text; ) Thanks for listening.
-
Pretty funny how you react to this stuff.... BTW, your code wouldn't compile . Here are the errors from the compiler: Build [C++ Error] Unit1.cpp(28): E2268 Call to undefined function '_D' [C++ Error] Unit1.cpp(30): E2015 Ambiguity between '_fastcall System::operator +(int,const System::Variant &)' and '_fastcall System::operator +(int,const System::Currency &)' [C++ Error] Unit1.cpp(38): E2015 Ambiguity between '_fastcall System::operator +(int,const System::Variant &)' and '_fastcall System::operator +(int,const System::Currency &)' [C++ Warning] Unit1.cpp(55): W8070 Function should return a value So why num and nums are in the header is so they wouldn't fall out of scope, as I placed them under a second button. This time they both came out zeros(?) And I didn't try to rewrite his method, I simply removed the couts so I could just run the function(). But thanks for your input. It was more than enlightening. //---------------------------------------------------- void __fastcall TForm1::Button1Click(TObject *Sender) { int i, nums[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; for(i = 0; i < 10; i++) square(nums, 10); for(i = 0; i < 10; i++) return ; } //--------------------------------------------------- int __stdcall TForm1:: square(int *n, int num) { while(num) { *n = *n * *n; num--; n++; } return num; } //---------------------------------------------------- void __fastcall TForm1::Button2Click(TObject *Sender) { Label1->Caption = IntToStr(nums); Label2->Caption = IntToStr(num); }
-
Okay so I tried this I put this in the .h int nums,num; int __stdcall square(int *n, int num); and this in the .cpp void __fastcall TForm1::Button1Click(TObject *Sender) { int i, nums[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; for(i = 0; i < 10; i++) square(nums, 10); for(i = 0; i < 10; i++) Label1->Caption = IntToStr(nums); return ; } //--------------------------------------------------------------------------- int __stdcall TForm1:: square(int *n, int num) { while(num) { *n = *n * *n; num--; n++; } Label2->Caption = IntToStr(num); } Label1 says 1 Label2 says 0 am I doing this right?
-
Stack Overflow [closed] my question because they thought I was looking for books, software, or tutorials.... Maybe I am (looking for "show me how").... I just wanna know what to do with BadWordFound so I can replace the stupid thing in my TMemo when it finds it. There's plenty of VB and pascal examples, but I only speak c/c++. A simple line or two to follow my "VSSpell1->CheckText = MailMemo->Text;" would be useful.... Thanks
-
But aren't there 11 nums? 0 thru 10 = 11