I have syntax color problem. Can i use two different color for user define data types. -------------------------------------------------- Say Whatever You Know. Helping other people is good for health. ========= Manish ========= ---------------------------------------------------
mProject
Posts
-
Syntax Color Problem. -
Exit When Enter Key is PressedThere is one another solution. You can override OnOK function. Simply add function: void CYourDialog::OnOK() { } And your problem disappearing...:-O :-O :rose: :rose: -------------------------------------------------- Say Whatever You Know. Helping other people is good for health. ========= Manish ========= ---------------------------------------------------
-
Dividing VC++ forumYa certainly nice one. I am also thinking about that... Please do something.... :confused: :confused: :confused: :confused: :rose: -------------------------------------------------- Say Whatever You Know. Helping other people is good for health. ========= Manish ========= ---------------------------------------------------
-
What's wrong with my code?After seeing code, I think you are not destroying dialog (delete dlg). This should be your problem. CTestDialog* dlg; dlg=new CTestDialog; dlg->DoModal(); ////add line... delete dlg; :-O :-O :-O :rose: :rose: :rose: -------------------------------------------------- Say Whatever You Know. Helping other people is good for health. ========= Manish ========= ---------------------------------------------------
-
MSComm HelpThere are two methods for reading... ---------------------- POLLING ======= ---------------------- Assuming the Mscomm control is on the form and has the name MyCom and that there is a form property named mybuffer, the following code illustrates how to poll for waiting characters ( this is in VB but same procedure you can use in VC) : Procedure myform.myproc IF Thisform.MyCom.InBufferCount > 0 Thisform.mybuffer = Thisform.mybuffer + Thisform.MyCom.Input ENDIF ENDPROC ---------------------- EVENT DRIVEN ( YOU SHOULD USE THIS BECAUSE THIS IS BETTER ) ===== ---------------------- For example, you can place the following code in the OnComm event to append received data to a property of a form called mybuffer: Procedure MyCom.OnComm IF This.CommEvent = 2 ThisForm.mybuffer = ThisForm.mybuffer + This.Input ENDIF ENDPROC ---------------------- Do this way and tell me if problem persist. Or You can read articles in msdn...(By searching in MSDN) one of good articles is : ****** INFO: Troubleshooting Tips for the MSComm Control ****** :-D :-D :-D :-D :-O :-O :-O :-O :-O :-O :-O :-O :) :-D :rose: :rose: :rose: :rose: -------------------------------------------------- Say Whatever You Know. Helping other people is good for health. ========= Manish ========= ---------------------------------------------------
-
keyboard hookingHi, I had problem of CTRL+ALT+DEL last few days. I searched discussion board for that but didnot found proper solution. I only found that use Gina Dll inplace of microsoft's MSGina.dll. That is not proper solution. Now i solved my purpose to disable CTRL+ALT+DEL in win2000. I don't know about WinNT but it will work for it also. So i want to contribute this part to all user. Steps are as follows : 1. Open Microsoft SDK Examples. In That Example, Open GinaStub example. 2. Find function int WINAPI WlxLoggedOnSAS( PVOID pWlxContext, DWORD dwSasType, PVOID pReserved ) 3. In this function remove all code written and only return like this return WLX_SAS_ACTION_NONE; 4. So it looks like this... int WINAPI WlxLoggedOnSAS( PVOID pWlxContext, DWORD dwSasType, PVOID pReserved ) { return WLX_SAS_ACTION_NONE; // Return code for doing nothing ... return to desktop } 5. Now Make dll. 6. Goto Registry by regedit. 7. goto \HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon (WindowsNT is also there. So dont confused it is | Windows(Space)NT | okay) 8. Make New string value and give data like this name : GinaDLL Type : REG_SZ Data : C:\WinNT\System32\mygina.dll (path of your gina dll(suppose mygina.dll)) 9. Reboot computer And your control+alter+delete not worked at all. ---------------------------------------------------------------------------------------- If You want this mygina.dll then contact me on my personal email address. manish_ld@rediffmail.com m_codeproject@rediffmail.com if still not contact me then and then try : pansiniya_manish@hotmail.com ---------------------------------------------------------------------------------------- Thanx in advance. :cool: :cool: :cool: :cool: :cool: :-O :rose: :rose: :rose: -------------------------------------------------- Say Whatever You Know. Helping other people is good for health. ========= Manish ========= ---------------------------------------------------
-
Before The SystemHi, I had problem of CTRL+ALT+DEL last few days. I searched discussion board for that but didnot found proper solution. I only found that use Gina Dll inplace of microsoft's MSGina.dll. That is not proper solution. Now i solved my purpose to disable CTRL+ALT+DEL in win2000. I don't know about WinNT but it will work for it also. So i want to contribute this part to all user. Steps are as follows : 1. Open Microsoft SDK Examples. In That Example, Open GinaStub example. 2. Find function int WINAPI WlxLoggedOnSAS( PVOID pWlxContext, DWORD dwSasType, PVOID pReserved ) 3. In this function remove all code written and only return like this return WLX_SAS_ACTION_NONE; 4. So it looks like this... int WINAPI WlxLoggedOnSAS( PVOID pWlxContext, DWORD dwSasType, PVOID pReserved ) { return WLX_SAS_ACTION_NONE; // Return code for doing nothing ... return to desktop } 5. Now Make dll. 6. Goto Registry by regedit. 7. goto \HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon (WindowsNT is also there. So dont confused it is | Windows(Space)NT | okay) 8. Make New string value and give data like this name : GinaDLL Type : REG_SZ Data : C:\WinNT\System32\mygina.dll (path of your gina dll(suppose mygina.dll)) 9. Reboot computer And your control+alter+delete not worked at all. ---------------------------------------------------------------------------------------- If You want this mygina.dll then contact me on my personal email address. manish_ld@rediffmail.com m_codeproject@rediffmail.com if still not contact me then and then try : pansiniya_manish@hotmail.com ---------------------------------------------------------------------------------------- Thanx in advance. :rolleyes: :laugh: :mad: :-O :rose: :rose: :rose: -------------------------------------------------- Say Whatever You Know. Helping other people is good for health. ========= Manish ========= ---------------------------------------------------
-
Don't Want To Run Any Application...Dear I want to write application which work in 98/2000. so your article is for 98 and it works fine in 98 but what about 2000.:(( :(( -------------------------------------------------- Say Whatever You Know. Helping other people is good for health. ========= Manish ========= ---------------------------------------------------