Thread: Here is my code -- please help

  1. #1
    Registered User
    Join Date
    Aug 2002

    Here is my code -- please help

    I get an access violation when I try and update the data in the spread sheet.

    It looks ugly because I have been stripping and copying and adding new stuff to debug.

    To reproduce the problem:

    1) Run the program (duh)
    2) Click Input
    3) Click Input Game Data
    4) Double click the list control (excell type grid)
    5) click OK (the data is being forced at the moment)

    This should cause the access violation.

    I don't like to post my source, but I'm really stuck. I have written 2 other apps today just to test this and it worked both times!

    Any help is appreciated.
    Last edited by bonkey; 11-20-2003 at 10:32 AM.
    Best Regards,


  2. #2
    Master of the Universe! velius's Avatar
    Join Date
    Sep 2003
    Which compiler are you using? I compiled error free with MSVC++ 6.0 Pro and the program exits as fast as it loads.
    While you're breakin' down my back n'
    I been rackin' out my brain
    It don't matter how we make it
    'Cause it always ends the same
    You can push it for more mileage
    But your flaps r' wearin' thin
    And I could sleep on it 'til mornin'
    But this nightmare never ends
    Don't forget to call my lawyers
    With ridiculous demands
    An you can take the pity so far
    But it's more than I can stand
    'Cause this couchtrip's gettin' older
    Tell me how long has it been
    'Cause 5 years is forever
    An you haven't grown up yet
    -- You Could Be Mine - Guns N' Roses

  3. #3
    Registered User
    Join Date
    Aug 2002
    Thats because of the ActiveX controls need to be registered. I will post the regestration info.

    You can just go in and rip out the counter and Text to Speech contol off of the mail dialog, but oyu may have to rip out some other code with it.

    Sorry I forgot about the ActiveX controls. I'm just too focused on my other problem.
    Best Regards,


  4. #4
    Registered User
    Join Date
    Aug 2002
    Use this to register the activeX timer. Then it should run.
    Best Regards,


  5. #5
    Normal vector Carlos's Avatar
    Join Date
    Sep 2001
    I found the problem:
    In CLevelDlg::OnOK()
    m_pParent (CPayoutDlg) was used instead of m_pParentWnd. Just replace and everything is OK!

    Besides m_pParent was also uninitialized at this point (the value 0xcdcdcdcd means always "Red alert!" )
    Last edited by Carlos; 11-20-2003 at 09:43 AM.

  6. #6
    Registered User
    Join Date
    Aug 2002

    Thumbs up

    Your a life saver!

    I didn't know there was such a thing as m_pParentWnd.
    Thank you Thank you!
    Best Regards,


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extended ASCII Characters in an RTF Control
    By JustMax in forum C Programming
    Replies: 18
    Last Post: 04-03-2009, 08:20 PM
  2. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 07:34 AM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Replies: 0
    Last Post: 02-21-2002, 06:05 PM