Click here to Skip to main content
15,897,518 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: map erase issue Pin
f229-Jun-06 20:49
f229-Jun-06 20:49 
GeneralactiveX message handler Pin
Mr_Byte10-Oct-03 22:19
Mr_Byte10-Oct-03 22:19 
Generaltroubles with boost::regex and STLport Pin
Andreas Saurwein10-Oct-03 6:11
Andreas Saurwein10-Oct-03 6:11 
GeneralWTL trouble with Common Controls Manifest Pin
BubbleGum8-Oct-03 23:23
BubbleGum8-Oct-03 23:23 
GeneralRe: WTL trouble with Common Controls Manifest Pin
Steve S9-Oct-03 0:53
Steve S9-Oct-03 0:53 
GeneralRe: WTL trouble with Common Controls Manifest Pin
BubbleGum9-Oct-03 3:41
BubbleGum9-Oct-03 3:41 
GeneralRe: WTL trouble with Common Controls Manifest Pin
umeca7410-Oct-03 1:48
umeca7410-Oct-03 1:48 
QuestionATL Edit field validation? Pin
bryces8-Oct-03 21:32
bryces8-Oct-03 21:32 
Hi All,

I am writing an ATL/COM extension for a mapping application. All is fine except I am struggling to get field validation on Edit boxes to work.

I open up a Modal ATL dialog and the user does there thing, but when it comes to the OnOk button event my code bombs when I try to get the text from the edit boxes

<br />
BSTR field1;<br />
BSTR field2;<br />
<br />
//this is ======> class CImportWizardDlg1 : public CAxDialogImpl<CImportWizardDlg1><br />
this->GetDlgItemText(IDC_WIZEDIT1, field1); <br />
<br />
this->GetDlgItemText(IDC_WIZEDIT2, field2);<br />
EndDialog(wID);<br />
 <br />



The error when I try the above is:

Application Error-
The instruction at "0x0f074b68" referenced memory at "0x0f074b68". The memory could not be "read"


Which is not a very helpful message.

In short, is there a an easy way to validate resources on an ATL dialog?

thanks for your time in advance

cheers
Bryce
AnswerRe: ATL Edit field validation? Pin
Steve S8-Oct-03 21:54
Steve S8-Oct-03 21:54 
GeneralRe: ATL Edit field validation? Pin
Anonymous9-Oct-03 1:45
Anonymous9-Oct-03 1:45 
GeneralRe: ATL Edit field validation? Pin
bryces9-Oct-03 1:52
bryces9-Oct-03 1:52 
GeneralRe: ATL Edit field validation? Pin
Steve S9-Oct-03 2:13
Steve S9-Oct-03 2:13 
GeneralEvent notification from checkbox within TreeControl (from WTL) Pin
shivonkar8-Oct-03 2:20
shivonkar8-Oct-03 2:20 
GeneralRe: Event notification from checkbox within TreeControl (from WTL) Pin
algol14-Oct-03 21:15
algol14-Oct-03 21:15 
QuestionHow can my control download the file located on the remote server automatically? Pin
stanley guan8-Oct-03 0:22
stanley guan8-Oct-03 0:22 
Generalvectors. Pin
WREY7-Oct-03 14:32
WREY7-Oct-03 14:32 
GeneralRe: vectors. Pin
valikac8-Oct-03 5:55
valikac8-Oct-03 5:55 
GeneralRe: vectors. Pin
ZoogieZork8-Oct-03 8:00
ZoogieZork8-Oct-03 8:00 
GeneralRe: vectors. Pin
George L. Jackson3-Nov-03 1:47
George L. Jackson3-Nov-03 1:47 
GeneralRe: vectors. Pin
WREY3-Nov-03 5:39
WREY3-Nov-03 5:39 
GeneralLinker error when trying to use CStringT Pin
IGx896-Oct-03 14:06
IGx896-Oct-03 14:06 
GeneralWTL &quot;shared-source&quot; news update Pin
Mike.NET6-Oct-03 10:29
Mike.NET6-Oct-03 10:29 
GeneralAtl Server - CBlobCache Pin
rbeckett6-Oct-03 7:55
rbeckett6-Oct-03 7:55 
GeneralRe: Atl Server - CBlobCache Pin
rbeckett6-Oct-03 8:54
rbeckett6-Oct-03 8:54 
GeneralATL header file... Pin
byblostas5-Oct-03 12:25
byblostas5-Oct-03 12:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.