dpstTestInfo[0]->asdfasdf = ...
처럼 쓰시면 되죠.
위방법 사용이 익숙하지 않으시면
(dpstTestInfo + 0)->asdfasdf = ...
더블포인터 님이 쓰신 글 :
:
: void main()
: {
: stTestInfo **dpstTestInfo;
: int nCount = 0;
:
: nCount++;
:
: if(!dpstTestInfo)
: {
: dpstTestInfo = new stTestInfo *[100];
: }
:
: dpstTestInfo[nCount] = new stTestInfo;
: dpstTestInfo[nCount]->strName = ........;
: ..........
: ..........
: //이런식으로 배열형 구조체를 만들어 값을 넣어두고
:
: SetText(&dpstTestInfo[nCount]);
: }
:
: void SetText(stTestInfo **i_dpstTestInfo)
: {
: i_dpstTestinfo->* // 이렇게 써도 저위에서 넘긴 구조체가 아닌거 같고
: i_dpstTestInfo-> // 이렇게 쓰면 에러나고
: //어떻게 써야 더블포인터 구조체를 함수로 넘겨 사용할 수가 있을까요???
: }
:
:
|