hey all,
i'm trying to compile a sample program i read from an article and i'm
getting 2 errors that i have no clue because it doesn't point to any source
code? please look at the following video (ie6 or earlier).

http://www25.brinkster.com/rodchar/medtest.htm

thanks,
rodchar

Re: any clues please by Guido

Guido
Thu Jul 26 10:46:10 CDT 2007

Describe the errors! I don't like videos. Nevertheless I tried to use the
link, does not find anything.



Re: any clues please by Guido

Guido
Thu Jul 26 11:00:22 CDT 2007

Ok, you could have described the errors. These are:
2 unresolved externals:
- InitCommonControls
- VerQueryValue in GetVersionInfo

Look in MSDN:
-> InitCommonControls: import library comctl32.lib (see linker settings)
-> GetVersionInfo: import library version.lib

HTH Guido



Re: any clues please by rodchar

rodchar
Thu Jul 26 13:22:04 CDT 2007

thanks everyone for your time and efforts. this helped a lot.
rod.

"Guido Franzke" wrote:

> Ok, you could have described the errors. These are:
> 2 unresolved externals:
> - InitCommonControls
> - VerQueryValue in GetVersionInfo
>
> Look in MSDN:
> -> InitCommonControls: import library comctl32.lib (see linker settings)
> -> GetVersionInfo: import library version.lib
>
> HTH Guido
>
>
>

Re: any clues please by rodchar

rodchar
Thu Jul 26 14:16:09 CDT 2007

it compiled but now i'm getting an error when running the application:

http://www25.brinkster.com/rodchar/error200707260308.png

can someone, by any chance, just by looking at the image tell what might be
going on. what i was doing is there's 2 buttons in a dialog box and when i
press 1 button a message box shows the button was clicked. but when i click
the 2nd button i get the error.

i understand this is probably not enough information but i'm so new i don't
know what else to do until i finish reading petzold (i'm on chap3 of the
tome).



"Guido Franzke" wrote:

> Ok, you could have described the errors. These are:
> 2 unresolved externals:
> - InitCommonControls
> - VerQueryValue in GetVersionInfo
>
> Look in MSDN:
> -> InitCommonControls: import library comctl32.lib (see linker settings)
> -> GetVersionInfo: import library version.lib
>
> HTH Guido
>
>
>

Re: any clues please by SvenC

SvenC
Fri Jul 27 01:22:03 CDT 2007

Hi,

> it compiled but now i'm getting an error when running the application:
>
> http://www25.brinkster.com/rodchar/error200707260308.png

Please stop this video and image posting when a simple textual
representation would work: line of code and error description.

> can someone, by any chance, just by looking at the image tell what might
> be going on. what i was doing is there's 2 buttons in a dialog box and
> when i press 1 button a message box shows the button was clicked. but
> when i click the 2nd button i get the error.

Are you sure that m_lptc was initialized correctly? Check the code which
changes its value.

> i understand this is probably not enough information but i'm so new i
> don't know what else to do until i finish reading petzold (i'm on chap3
> of the tome).

--
SvenC


Re: any clues please by Alex

Alex
Fri Jul 27 05:31:33 CDT 2007

"rodchar" wrote:
> it compiled but now i'm getting an error when running the
> application:
>
> http://www25.brinkster.com/rodchar/error200707260308.png
>
> can someone, by any chance, just by looking at the image
> tell what might be
> going on. what i was doing is there's 2 buttons in a
> dialog box and when i
> press 1 button a message box shows the button was clicked.
> but when i click
> the 2nd button i get the error.

Apparently `m_lptc->ParentProc' is garbage. Check whether
`m_lptc' is initialized properly.

> i understand this is probably not enough information but
> i'm so new i don't
> know what else to do until i finish reading petzold (i'm
> on chap3 of the
> tome).

Instead of posting images or videos, just press Ctrl+C when
a message box is in focus. Then paste the text in a
message's body. Don't forget to post the line of code, which
caused an exception, as well.

Alex


RE: any clues please by rodchar

rodchar
Fri Jul 27 08:40:06 CDT 2007

thanks everyone for the help. sorry bout the multimedia, i'm just so new at
debugging in vc++ that i'm not sure how to pinpoint stuff for a forum
question that I take the lazy route. thanks so much for your time and effort.

"rodchar" wrote:

> hey all,
> i'm trying to compile a sample program i read from an article and i'm
> getting 2 errors that i have no clue because it doesn't point to any source
> code? please look at the following video (ie6 or earlier).
>
> http://www25.brinkster.com/rodchar/medtest.htm
>
> thanks,
> rodchar

Re: any clues please by rodchar

rodchar
Mon Jul 30 07:50:04 CDT 2007

is that what all those question marks mean?


"SvenC" wrote:

> Hi,
>
> > it compiled but now i'm getting an error when running the application:
> >
> > http://www25.brinkster.com/rodchar/error200707260308.png
>
> Please stop this video and image posting when a simple textual
> representation would work: line of code and error description.
>
> > can someone, by any chance, just by looking at the image tell what might
> > be going on. what i was doing is there's 2 buttons in a dialog box and
> > when i press 1 button a message box shows the button was clicked. but
> > when i click the 2nd button i get the error.
>
> Are you sure that m_lptc was initialized correctly? Check the code which
> changes its value.
>
> > i understand this is probably not enough information but i'm so new i
> > don't know what else to do until i finish reading petzold (i'm on chap3
> > of the tome).
>
> --
> SvenC
>