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
A

Ashman

@Ashman
About
Posts
52
Topics
39
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Z-order of parent
    A Ashman

    Hi, I am busting my brain trying to get my parent dialog to have topmost priority over a child dialog. I have a fullscreen child dialog that I want to sit behind the parent dlg but the parent is continuously behind it. I have used MSDN and tried SetWindowPos.... however, in MSDN library there are 7 parameters for this function.... When I use SetWindowPos, I only have 6? My SetWindowPos(); BOOL SetWindowPos(const *CWnd pWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags); MSDN SetWindowPos(); BOOL SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags); Its starting to really confuse me.... if anyone can help, it would be greatly appreciated. Thanks Ashman I'm normally not a praying man, but if you're up there, please save me Superman.

    C / C++ / MFC help question

  • Calander Control
    A Ashman

    Hi, I need to use the Calander control in my MFC dialog app. The user must be able to select multiple days and once selected, when a button is pressed, circle them and/or output the dates. How would I go about getting data out of the control? I cant seem to find much help with this topic. Thanks Ashley Rowe I'm normally not a praying man, but if you're up there, please save me Superman.

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

  • Crash after making text box blank.
    A Ashman

    Send me your project. I can't see anything wrong with that. djneried@homemail.com.au But I have a vauge idea of what is happening Ashman I'm normally not a praying man, but if you're up there, please save me Superman.

    C / C++ / MFC help

  • Crash after making text box blank.
    A Ashman

    That screenshot doesn't really help. Paste the code for that field and anything to do with that field.

    C / C++ / MFC help

  • PCH error
    A Ashman

    Hi, I have created a precompiled header in my Win32 App and when I compile I recieve an error: pchafx.cpp(1) : error C2850: 'PCH header file' : only allowed at file scope; may not be in a nested construct It points to #include "pchafx.h" in pchafx.cpp file (my precompiled header file) Can someone please advise? Thankyou

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

  • Browse for folder and display contents in list control
    A Ashman

    Hi, I asked earlier about some help with a problem I am having. I have a dialog based application in which has a Browse for directory call. Thats fine, I have that implemented, when the user selects the folder they want my program to scan it returns the folders path as szFolder. I have a list control, m_contentlist, which I want to display the contents of szFolder in (directory selected) Can someone please post code rather than links? That would be very helpful. Thankyou Ashman

    C / C++ / MFC help question

  • Showing a list of files ina ListControl
    A Ashman

    Hey, I have forgotten alot of MFC programming :~ I have a dialog based app with a browse for folder button which outputs the folder path as szFolder. All is good there :) but I want to then be able to view what is in that folder in a list control. Problem is I have forgotten how. Its a report style ListControl in which I also would like to get the file size of. That isn't really a priority right now but listing all the files of the directory in the ListControl m_mp3list is my main question. If anyone can help, I'd be very appreciative. Thanks Ashley

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

  • Multiple dialogs
    A Ashman

    Sorry ill rephrase that... how do I make it a modeless dialog?

    C / C++ / MFC question

  • Multiple dialogs
    A Ashman

    This sounds dumb....but how? hehe Thanks

    C / C++ / MFC question

  • Multiple dialogs
    A Ashman

    Hi, I was wondering how I might be able to have multiple child dialogs opening off of the main dialog? What I mean is, when I click a button in my main dialog to open another dialog using CDialog dlg; dlg.DoModal(); it will open the other dialog but I cannot access the main dialog unless I closed the newly opened one. How can I get around this so I can focus the main dialog when the opened dialog is open? Thanks Ash

    C / C++ / MFC question

  • Programmatically changing an image in a dialog app
    A Ashman

    Hi, I would like to know how I could programmatically change an image in a dialog. For example, by clicking on a button, it would change IDC_IMAGE1 to IDC_IMAGE2 for example. Code examples would be appreciated or reference to an article. Thanks Ashley

    C / C++ / MFC tutorial

  • CDatetimepicker ctl formatting
    A Ashman

    Hi, I have written a reminders program which allows the user to input something they need reminding about with a date time picker so they can select the date and the time in which the popup should come up.... I need to input into a string the current system time with the same formatting as the control so that the time and dates will match with the times and dates selected by the user. How do I get the System Time in the same format as the CDateTimePicker control? Code examples would be appreciated or reference to an article. Thankyou, Ashley

    C / C++ / MFC question regex

  • Programmatically copying a folder in MFC
    A Ashman

    Have I ever told you I love you? :) Thanks heaps

    C / C++ / MFC c++ help tutorial

  • AutoUpgrade Feature ?
    A Ashman

    What I did, which was kind of slow maybe to create an autoupdater was to get my program to connect to the server, navigate to updates folder and open a file which was similar to an ini file. Get the current version of the program the user is running, set a variable for each new version like; Version 1.10a = 1 and Version 1.10b = 2 etc. On the server say the new version is Version 1.10c which = 3, try like: Note this is using CIniEx as an example... CString strVersion; ini.Open("Version.ini"); strVersion=ini.GetValue("Program","Version"); if(strVersion == "3") //Just an example, or just get the string value from a file on the webserver { //You have the current version } else { //Open another file to get the location of the new updated program and then download it and execute it } Just a suggestion....bit hard to explain considering Im a complete knob. For some reason things just work themselves out for me programmatically :confused:. Hope that helped. :~ :eek: Ashman

    C / C++ / MFC c++ sysadmin question

  • Programmatically copying a folder in MFC
    A Ashman

    Thanks I searched for SHFileOperation() API calls and I don't understand how to implement it in my program. Do you have/know of an example that I can use. What I want to do is very basic; transfer 2 folders with all their files intact from location: D:\Programming\NeriedPOS\nbsSetup\nPOS & D:\Programming\NeriedPOS\nbsSetup\nManager to C:\Program Files\nPOS with ReadOnly(FALSE) Would you kindly be able to show me how to do that using SHFileOperation() or any other API? Please help...its kinda urgent considering I have almost run out of hair to pull :) Thanks Ashman

    C / C++ / MFC c++ help tutorial

  • Creating shortcuts in Start menu
    A Ashman

    Hi, I'd like to be able to create a shortcut in the start menu like office does. Instead of putting it in the Programs > section, it puts it in the main Start Menu window? How can I do this? Thank you, Ashman

    C / C++ / MFC question

  • Programmatically copying a folder in MFC
    A Ashman

    Hi, I need to know how to copy a folder and all the contents within to another location set by the user. Because the folders content is read only, I want to be able to make ReadOnly(FALSE); Is this possible, please help! Thanks in advance Ashman

    C / C++ / MFC c++ help tutorial

  • MFC: Continuosly looping problem?
    A Ashman

    Hi, I have the following code: CString itemcount2; SetDlgItemText(IDC_BUGGER, _T(itemcount)); GetDlgItemText(IDC_BUGGER,itemcount2); for (int i=1;i The idea is to get the String for itemcount out of an ini file. Then to loop the function to the value of itemcount. Lets say for example that itemcount = 4, in the list control it will add all the items etc, but it will continue adding rows until -43. I have worked out that if I didnt have the `int nItemCount = atoi(itemcount2) - 1; itemcount2.Format(_T("%d"),nItemCount);` in it, that it wouldn't create rows to -43, however it wouldn't show all the data I needed to add to the list control. Is there anyway to stop it from going below 0? I dont know if anyone can understand this, I barely do. itemcount is read from an ini file using CIniEx. Thanks in advance Ashman

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

  • Data from one dlg to another
    A Ashman

    Hi, I need help again :) I have one dialog which I will call InvoiceDlg. On this dialog I have some controls. Lets say I have a static control called IDC_INVOICENUMBER. I have a button, IDC_TENDER, and when this button is pressed it will open another dlg called TenderDlg. I want to be able to get the data from InvoiceDlg into TenderDlg. I've tried alot of things such as: void CInvoice::OnTender() { CString invoicenumber; GetDlgItemText(IDC_INVOICENUMBER,invoicenumber); CTender dlg; dlg.DoModal(); dlg.m_invoiceme.SetWindowText(invoicenumber); } and; void CInvoice::OnTender() { // TODO: Add your control notification handler code here CString invoicenumber; GetDlgItemText(IDC_INVOICENO,invoicenumber); CTender dlg; dlg.DoModal(); dlg.SetDlgItemText(IDC_INVOICE, _T(invoicenumber)); } Both these compile with no dramas, however when I try them in the app; they dont do anything, its like they aren't even passing on the data through CTender dlg; Can someone please help me?! Im tired, I want to goto bed :(( lol Thanks Ashman

    C / C++ / MFC help question

  • Transfer Files over Network
    A Ashman

    Buy SAMS MFC Programming with Visual C++ 6 UNLEASHED :eek: It's got a fair bit on communicating between networked computers....I think?! :zzz: I read only the bits that interest me. Ashman

    C / C++ / MFC sysadmin question
  • Login

  • Don't have an account? Register

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