Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

rohit dhamija 0

@rohit dhamija 0
About
Posts
139
Topics
84
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • opening default mail client
    R rohit dhamija 0

    Hi, I am invoking my mail client using following piece of code. The code opens the mail client having a subject and a file attached with it. Note: Following piece of code is written in java, i hope the same follows for vc also. String strLicensePath = "c:\\rohit.txt"; try { Runtime.getRuntime().exec( new String[] {"rundll32", "url.dll,FileProtocolHandler", "mailto:" + "&subject=" + "TEST_STRING" + "&attachment=" + "\""+ strLicensePath + "\""} ); } catch (Exception ex) { ex.printStackTrace(); } The above code works fine on my machine having "Microsoft Outlook 2000 SP-3" installed. But gives following error on machine having Microsoft Outlook 2002 installed: "The command line argument is not valid. Verify the switch you are using." Also, the problem is coming in some of other machines also. Am I using wrong switches, i.e. arguments?? Or is there any alternative way to achieve the same. Please comment.

    C / C++ / MFC help java sharepoint question

  • Question on prefix and post fix
    R rohit dhamija 0

    yes i did the same and it complied successfully on borland delphi 5 compiler, rohit

    C / C++ / MFC delphi database help question

  • Question on prefix and post fix
    R rohit dhamija 0

    Dear All, I have a query on following case.Can some body tell the solution for the following: y = 5++++6*3; The answer turns out to be -12 when checked with a C compiler Also, i tried the same on borland delphi 5 and got the answer as 24 How is the processing going on in the above case. Thanks, Regards, Rohit

    C / C++ / MFC delphi database help question

  • sizeof operator
    R rohit dhamija 0

    Dear All, The sizeof keyword gives the amount of storage, in bytes, associated with a variable or a type. Can any body suggest how to make our own function that operates like sizeof and gives the amount of storage in bytes. Regards, Rohit

    ATL / WTL / STL tutorial

  • Tab pages ,, communication problem!!
    R rohit dhamija 0

    Dear All, I am developing a dialog based application using MFC VC++ Version 6.0 for Windows 2000. The application consists of a TabControl derived from CTabCtrl Class having three tab pages in it. Also, the tabControl has Apply, Cancel , Ok button. My query is how to communicate between the tabpages data and OK,Apply button ?? Similiar case, like "Display properties" dialog box which appears upon right clicking on the desktop. When we select a background and click on apply or ok button to make the changes, the background color gets changed. Following is the code to create the tab pages. I have radio buttons in first CGeneralSettings page and I want to do various operation after user selects one of the radio button and clicks OK or APPLY button /////////////////////////////////// The CMyTabCtrl has following datamember::::::: class CMyTabCtrl : public CTabCtrl { public: CMyTabCtrl(); CDialog *m_tabPages[3]; int m_tabCurrent; int m_nNumberOfPages; ... ..}; CMyTabCtrl::CMyTabCtrl() { m_tabPages[0]=new CGeneralSettings; m_tabPages[1]=new CAuthorization; m_tabPages[2]=new CUnInstallation; m_nNumberOfPages=3; } CMyTabCtrl::~CMyTabCtrl() { for(int nCount=0; nCount < m_nNumberOfPages; nCount++){ delete m_tabPages[nCount]; } } /////////////////////////// Please feel free to ask further clarifications in this regards, Regards, Rohit

    C / C++ / MFC c++ database help tutorial question

  • Query Service , Help required!!!!
    R rohit dhamija 0

    Dear All, I am developing an application for Windows 2000 NTFS file systems using VC++ MFC version 6.0. I need to query whether "Norton antiviral" is installed on a system or not. We know that Norton Antivirus runs as a service. So to find its existence I suppose, I should query whether the service for Norton exists of not in the system. So my query is that "Is there any API provided to know existence of a service given its name. (In this case, navapscv is the name of the service, also we know its rest of parameters like display nameless)" Or, is there any alternate way to accomplish the same task? Please let me know if you need further clarification in this regards, Regards, Rohit

    C / C++ / MFC c++ json database help question

  • Tracking net send command!!
    R rohit dhamija 0

    Dear All, I need to capture/track the messages sent accross network via "net send command" available in Windows 2000. Is there any utility provided for this ? Can anybody please send the utility for this ? Thanks in advance. Regards, Rohit

    System Admin sysadmin tools question

  • detecting logoff vs shutdown. WM_Endsession ??
    R rohit dhamija 0

    :confused:Dear All, I am developing an dialog based application using MFC VC++ Version 6.0 for Windows 2000. The application needs to perform certain tasks immediately before logging off /shutdown of the system respectively. For detecting logoff/shutdown i have handled WM_ENDSESSION event. OnEndSession call informs the CWnd object whether the session is actually ending and this event is fired for both logoff as well as for shutdown. I need to detect the difference between log off event and shutdown event because I need to perform seperate functions on logoff and shutdown. Am I capturing the right event for handling this issue ? Also if possible please suggest any alternate way to perform the same. Waiting for your reply. Regards, Rohit

    C / C++ / MFC c++ visual-studio help question announcement

  • Focus problem!
    R rohit dhamija 0

    Dear All, I am developing an applicaton in windows2000 using MFC VC++6.0 Can you suggest a way out in the following matter: I have a dialog application A which calls another dialog application B on click of the button. Once the dialog window of B is created the application b is activated ,but I want to bring back the focus on the previous application window.(i want to activate the app a once the b is created) i.e MFC App A ----> Click of button --CALLS---> Another MFC App B (Both are in running state, but the focus gets shifted to application B) Do let me know if you need futher clarification of the question. Regards, Rohit

    C / C++ / MFC c++ help question

  • recycle bin info2 path ??plz help
    R rohit dhamija 0

    Dear All, I am developing an application for Windows2000 NTFS filesystem specifically in VC++ MFC version 6.0. I want to get exact path of Info2 located in the recycle bin folder of the specified drive (e.g on my computer it is d:\RECYCLER\S-1-5-21-725345543-1708537768-1957994488-500\Info2) Can anybody please suggest a way out to get the path of info2 ? Regards, Rohit

    C / C++ / MFC c++ help question announcement

  • Setting attributes of a file/folder
    R rohit dhamija 0

    Dear All, I am developing an application for Windows 2000 in MFC VC++ Version 6.0. I need to set attributes (read only, hide, etc...) on a given file/folderd.Is there any Win32 API provided ? Thanks a lot and Happy Christmas!! Rohit

    C / C++ / MFC c++ json question announcement

  • Hide Installing Inf showing display progress bar popup window
    R rohit dhamija 0

    Dear All, I am developing an application using MFC VC++ Version 6.0 for Windows 2000 OS in which I am running an inf file using ShellExecute api to install my driver. Following is the small piece of code used to install the driver: //////////////////////////////////////////////// void InstallSys() { char EZinf[1048]; strcpy(EZinf,"c:\\mydriver.inf"); //path of my driver char EZlpParameters[uSize]= "setupapi,InstallHinfSection DefaultInstall 132 "; strcat(EZlpParameters,EZinf); ShellExecute(NULL, "open", "rundll32.exe",EZlpParameters, NULL, SW_HIDE); } //////////////////////////////////////////////// The code is working fine and installing the driver. When I run the application, the application ,it calls Installsys() to install the driver and this displays a progress bar window titled "copying file" window and installs the driver. I donot want this popup window to be displayed during my installation due to some reason. I have used SW_HIDE option in ShellExecute function but still the popup window is still being displayed. Do I need to make some changes in the inf file?? Or I need to use the Inf SetUp File APIs (ie. SetupInstallFile or InstallHinfSection API) Please suggest some way to hide the dialog box and at same time installing the driver. The installation part of mydirverinf is as: ///////////////////////////////// ;; ;; Default install sections ;; [DefaultInstall] OptionDesc = %FileSpyServiceDesc% CopyFiles = FileSpy.DriverFiles, FileSpy.UserFiles [SourceDisksNames] 1 = %Disk1% [SourceDisksFiles] filespy.exe = 1 EZOn.sys = 1 [DefaultInstall.Services] AddService = %FileSpyServiceName%,,FileSpy.Service //////////////////////////////// Please do let me know if you need further information in this regard. Thanks a lot! Regards, Rohit Dhamija

    C / C++ / MFC c++ json question announcement workspace

  • Hide console window of Win32 console application
    R rohit dhamija 0

    Thanks Dear, I am developing my application only for Windows2000 (no Win9x systems) So I there any simpler way out for my doubt ?? Thanks a lot. Regards, Rohit Dhamija

    C / C++ / MFC c++ career tutorial question announcement

  • Hide console window of Win32 console application
    R rohit dhamija 0

    Dear All, Code project people has helped me a lot during my initial career by flooding me with useful solutions & valuable comments to my doubts. Thanks a lot for that. I have another small question. I am developing an application in which I am running an executable (the job of this exe is to move some files from one location to the other, etc.). This exe is built using "Win32 Console application" provided in Visual C++ Version 6.0 When I run the application, it calls my exe, and this running exe shows its console window and performs its required operation successfully and close downs decently. BUT I DONOT WANT THAT CONSOLE WINDOW TO BE DISPLAYED DURING MY APPLICATION. I cannot change the application since I don’t have the code for that, but I can easily do the same for my exe. So can any body please tell me how to hide the console window or console should not be displayed. Regards, Rohit Dhamija

    C / C++ / MFC c++ career tutorial question announcement

  • Run application in Safe Mode
    R rohit dhamija 0

    Dear All, I am developing an application in MFC VC++ Version 6.0 for Windows 2000. I start my application as soon as the system logs on, by giving the path of my exe in Run field i.e. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run I want to run my program in safe mode also. But unfortunately my program doesnot starts in the safe mode automatically because Run entry in registy doesnot work in this case. Please suggest any way to run my application in safe mode also. Feel free to ask any further queries in this regards, Thanks Rohit Dhamija

    System Admin c++ announcement

  • How to run a application in safe mode also?
    R rohit dhamija 0

    Dear All, I am developing an application in MFC VC++ Version 6.0 for Windows 2000. I start my application as soon as the system logs on, by giving the path of my exe in Run field i.e. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run I want to run my program in safe mode also. But unfortunately my program doesnot starts in the safe mode automatically because Run entry in registy doesnot work in this case. Please suggest any way to run my application in safe mode also. Feel free to ask any further queries in this regards, Thanks Rohit Dhamija

    C / C++ / MFC c++ tutorial question announcement

  • Disable safe mode option or F8 key
    R rohit dhamija 0

    No dear:cool:, i am developing a anti-hacking/security s.w.... I have seen this option in an application provided by http://www.stormcoast-fortress.net/ but donot know how it works ! Rohit

    System Admin c++ announcement

  • Disable safe mode option or F8 key
    R rohit dhamija 0

    hi, Q) :-DSafe Mode is critical to the reliable operation (and recovery) of the system.... Ans) I know this very well, but our s.w required this feature (it's a security s.w) so i wanted to enquire that is there any way out to disable F8 by some means... Anyways thanks for your reply Roger, Rohit

    System Admin c++ announcement

  • Disable safe mode option or F8 key
    R rohit dhamija 0

    Dear All, I am developing an application for Windows 2000 using VC++ Version 6.0. I need to disable the F8 option so that user may not be able to boot the system in safe mode. Is there any way out to disable safe mode option, i.e disable F8 key. Thanks in advance. Regards, Rohit Dhamija

    System Admin c++ announcement

  • Refresh API
    R rohit dhamija 0

    Dear AORD. Thanks AORD, I thought that my question was not clear. Rohit

    C / C++ / MFC c++ windows-admin json question announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups