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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

a3gupta

@a3gupta
About
Posts
22
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Checkbox groups? MFC VC++ 6.0
    A a3gupta

    Thanks to both of you for your responses. I am using radio buttons and that Tab ordering tip was very helpful. It is working now! :-) Gupta.

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

  • Checkbox groups? MFC VC++ 6.0
    A a3gupta

    Hello, I am writing a dialog based application in VC++ 6.0. In one of my dialog box, The check boxes aren't grouped right. I have four checkboxes and they need to be in groups of two. So If I check one box in one of the group the other one from the same group should be unchecked. But, as of now, you can check all 4 together at the same time, or with sometimes, the wrong button gets unchecked etc. This may be a basic question, but I will will appreciate if you could help me with this problem. Thanks! Sincerely, Anjum Gupta.

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

  • Saving/Copying a file.
    A a3gupta

    Joan, Thanks, your reply helps. Just one quick follow up question. What is the best way to get the Destination path from the user? .. Thanks! Anjum.

    C / C++ / MFC c++ database help

  • Saving/Copying a file.
    A a3gupta

    Thanks for your quick reply. I couldn't really find the information on CopyFile()/""CopyFileEx(). Also Could you please tell me what SHBrowseForFolder is? .. I tried to search for both of these things that you suggested in the MSN VStudio Help but did't find anything . :-( Thanks ! Anjum.

    C / C++ / MFC c++ database help

  • Saving/Copying a file.
    A a3gupta

    Hello, I have dialog based application in VC++ 6.0. I need to copy a file to a user specified location. So I am making a button, when clicked by user, would just ask for the path that they want copy the file to. They don't need to specify the name of them file. It is a default database file. After they specify the path I need to copy the database file to that location. I don't know how exactly I should implement it. I couldn't really find any function that will make a copy of a file to a specified location. What control and functions do I need to use. Thanks for helping me with this basic problem.!! I really appreciate it. Sincerey, Anjum.

    C / C++ / MFC c++ database help

  • Executing DOS program from VC++
    A a3gupta

    Hello, I am writing a dialog based application in VC++ 6.0. I need to execute a dos program at one point in the program and use the file generated by the DOS program. Please tell me if you know how to execute a DOS program from my VC++ code. Thanks !! I really appreciate your input on this. Thanks you! Sincerely, Anjum.

    C / C++ / MFC c++ tutorial

  • Colored Controls
    A a3gupta

    Hello, I am writing a dialog based application using VC++ 6.0. It is almost complete. Now I need to change the color of all the dialog boxes and all the buttons on it from normal Grey to Some other color. I am using the funtion SetDialogBkColor() in my initInstance to change the background color .. but all the buttons etc. remain grey. Pleas suggest a way that I can change the color of all the buttons to something other color other than grey. I really appreciate your effor in solving this problem. Thanks! Sincerely, anjum.

    C / C++ / MFC c++ help

  • Large Icon Display setting in windows.
    A a3gupta

    Hello, I am writing a dialog based application in VC++ 6.0 I was wondering if there is a way to detect if a user has chosen to display Large Icons or Large font on his computer using the desktop properties. I will appreciate any input on this. Thanks !! Sincerely, Anjum.

    C / C++ / MFC c++

  • How to Add Start menu shortcut in Setup program
    A a3gupta

    Mani, Thanks for your response. Yes, I am using a relative path, but I was doing it thinking that since the user may choose to install the my program under any folder, I should give a relative so that it will be able to open the my .dat file as long as they are together in one folder regardless of the folder chosen by the user during installation. When I manually create a short cut of my EXE file and put it on the desktop or in the start menu .. it reads the .dat file fine. I was thinking that an icon created by the setup program should work the same way. I am attaching my code. Thanks for looking into it. //open config file to read institute name information; char *pszFileName="config.dat"; char pszIName[256]; CFile myFile; CFileException fileException; if ( !myFile.Open( pszFileName, CFile::modeRead, &fileException )) { ::MessageBox(NULL, "File doesnt exist ","Warning",MB_OK); } Also I have a trivial question. Why do I have to put :: before Messagebox function sometimes to make it work. Sometimes it is works without the dots. As you can probably see that I do lack some of basic knowledge of MFC. :-) Thanks for your help! Sincerely, Anjum.

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

  • How to Add Start menu shortcut in Setup program
    A a3gupta

    Hello, I am using Installshield for VC++ 6.0 to build a setup program for my program. I was wondering how can I add a shortcut in the startmenu for my programs exe file in the start menu. Right now .. I am using the follwing code to make the icon in the startmenu svPath = TARGETDIR ^ "TDMS2000.exe"; LongPathToQuote ( svPath , TRUE ); AddFolderIcon (FOLDER_PROGRAMS^SHELL_OBJECT_FOLDER , "TDMS2000" , svPath , "" , "" , 0 , "" , REPLACE ); But there is a problem with this code. My program needs a .dat file to start that resides in the same directory as the exe file. So when I follow the link created in my start meny using the code above .. the program fails to see that .dat file. When I create a shortcut manually and place it in the start menu .. the program works file. I will really appreciate any solution to this problem. Thanks! Sincerely, Anjum.

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

  • not reading the file when executed from start menu
    A a3gupta

    Hello, I am reading a file in my program that resides in the same directory as my program EXE file. When I execute the file by double clicking the file .. it works fine .. but when I execute it through the start menu icon that was created using installshield, using the follwing installshield code, svPath = TARGETDIR ^ "TDMS2000.exe"; LongPathToQuote ( svPath , TRUE ); AddFolderIcon (FOLDER_PROGRAMS^SHELL_OBJECT_FOLDER , "TDMS2000" , svPath , "" , "" , 0 , "" , REPLACE ); It says that it could not find the text file. Please tell me what I need for it to see the file. Thanks! sincerely, Anjum.

    C / C++ / MFC linux

  • Registering an .OCX file manually and through setup program
    A a3gupta

    Thanks for all the wonderful responses .. This is all the information I needed!

    C / C++ / MFC c++ css com windows-admin tutorial

  • Registering an .OCX file manually and through setup program
    A a3gupta

    Hello, I am using MS Flex Grid, an ActiveX control in one of my dialog boxes in my dialog based application. The OCX file for the ActiveX control is MSFLXGRD.OCX. The program works fine on my computer but doesn't work on other computers and terminates right before it gets to the dialog box with flex grid on it. Please guide me as to how I should include the OCX file in the program so that it would work on any machine. From the earlier posts it was mentioned that I could update the registry manually .. or include it in the setup file for the .ocx file. Unfortunately I don't have much experience with win registry. Could anyone please tell me how do I register the OCX file manually in registry ... and how do I go about including it in my setup program. I am making a setup program using Installshield for VC++ 6.0. If you know I will also appreciate if you could direct me to some website where I can find info about adding OCX files into the registry manually and using the setup program and doing it automatically. Thanks! Sincerely, Anjum.

    C / C++ / MFC c++ css com windows-admin tutorial

  • .OCX file, activeX control question
    A a3gupta

    Hello, Thanks for all the useful responses. I had one more question about .OCX files. You mentioned that I could update the registry manually .. or include it in the setup file. Unfortunately I don't have much experience with win registry. Could anyone please tell me how do I register the OCX file manually in registry ... and how do I go about including it in my setup program. I am making a setup program using Installshield for VC++ 6.0. If you know I will also appreciate if you could direct me to some website where I can find info about adding OCX files into the registry manually and using the setup program and doing it automatically. Thanks! Anjum.

    C / C++ / MFC css com tutorial question

  • .OCX file, activeX control question
    A a3gupta

    Hello, I am using MS Flex Grid, an ActiveX control in one of my dialog boxes in my dialog based application. The OCX file for the ActiveX control is MSFLXGRD.OCX. The program works fine on my computer but doesn't work on other computers and terminates right before it gets to the dialog box with flex grid on it. Please guide me as to how I should include the OCX file in the program so that it would work on any machine. Thank you very much! Sincerely, Anjum Gupta.

    C / C++ / MFC css com tutorial question

  • Application just terminates on pressing Enter
    A a3gupta

    Hey Mike, I feel a little ebarassed .. but more glad that you could really help me with this problem. I looked into it .. but completely missed the capitalization of "K" !!! Thanks once again! Anjum.

    C / C++ / MFC help c++

  • Lib. conflicts. Link Warnings! .. please advise
    A a3gupta

    Hello, I am getting two linker warnings when I compile my dialog based program written in VStudio 6.0. I am using DAO connectivity in my program. The warnings that I am getting are -- LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF In my project settings under Link Tab, I have following information -- kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ddao35.lib ddao35D.lib ddao35U.lib ddao35UD.lib /nologo /subsystem:windows /incremental:no /pdb:"Release/TDMS2000.pdb" /machine:I386 /out:"Release/TDMS2000.exe" Please advise how and if I need to change my project settings. Thanks ! Anjum.

    C / C++ / MFC announcement

  • Application just terminates on pressing Enter
    A a3gupta

    Hello, I am getting the strangest error. I have a VC++ Dialog-based application using VC++ 6.0. At one point in my application, if I press "Enter" the application just quits. If I press anything else of click the button to go on a next screen etc. .. it works fine. IF I press the "X" on top corner to quit, it asks me if I want to quit and quits normally. But if I press Enter on that screen it just suddenly terminates, completely blimps out!! I doesn't happen if I press space. If I press Esc then a messagebox comes and and asks me if I want to quit the application. ... I do have OnOk() function over ridden. and when I press Enter, the application quits before it even enters the over ridden OnOk() function. I have changed the declaration of OnOk in my .h file in many different ways. I do not have an event handler explicitly declared for OnOk function. It doesn't happen if the focus is on one of the buttons. Then that buttons click event gets executed. It doesn't happen if I set one of the buttons to be Default Ok .. then by pressing Enter that button gets executed. But if I have focus on any text or combo box .. and press Enter .. it just terminates the application with no warning or message. Please help. I will really appreciate any insight into this. Thanks Sincerely, anjum Gupta.

    C / C++ / MFC help c++

  • The Application Just Quits ! .. Very Strange. Please Help.
    A a3gupta

    Thank you for your quick response. but .. i do have OnOk() function over ridden.

    C / C++ / MFC c++ help debugging

  • The Application Just Quits ! .. Very Strange. Please Help.
    A a3gupta

    Hello, I am getting the strangest error. I have a VC++ application using VC++ 6.0. At one point in my application, if I press "Enter" the application just quits. If I press anything else of click the button to go on a next screen etc. .. it works fine. IF I press the "X" on top corner to quit, it asks me if I want to quit and quits normally. But if I press Enter on that screen it just suddenly terminates, completely blimps out!! In Debugger, It goes into Wincore.cpp. For some reason ContinueModal() ends up returning "0" at the last minute. Until the point it calls it .. when I look at it in the Watch ContinueModal() is NonZero. But inside ContinueModal() looks like one of the pointers (WF_CONTINUEMODAL) is null. I will really appreciate any help on insight into this. Thank you very much ! Sincerely, Anjum Gupta.

    C / C++ / MFC c++ help debugging
  • Login

  • Don't have an account? Register

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