Microsoft MVP성태의 닷넷 이야기
HTML SELECT 요소에 OPTION 요소를 채우는 C/C++ 예제 [링크 복사], [링크+제목 복사],
조회: 12215
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일

처음에 저는 단순히 다음과 같은 식으로 접근을 했습니다.

CComPtr<IHTMLDocument2> pDoc;
CComQIPtr<IHTMLOptionElement> pOption;
CComPtr<IHTMLElement> pElem;

pDoc->createElement( L"OPTION", &pElem );

pOption = pElem;

그런데.... pElem으로부터 IHTMLOptionElement가 QI 되지 못하는 현상이 발생합니다. 이것 때문에 고생을 좀 했는데요. 결국 웹을 검색해서 방법을 찾아냈습니다.
C/C++에서는 별도의 인터페이스를 통해서 구현을 하도록 되어 있더군요.

원본 출처는
http://www.codeproject.com/com/htmldocument.asp?df=100&forumid=13945&select=675083
이고, 해당 페이지를 MHTML로 보관한 내용을 첨부합니다.








[최초 등록일: ]
[최종 수정일: 3/20/2023]


비밀번호

댓글 작성자
 




... 31  32  33  34  35  36  37  38  [39]  40  41  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
213정성태4/13/200611943Introduction to the MSN Messenger Activity SDK
212정성태4/13/200613943FIN_WAIT_2 상태에 대하여
211정성태4/13/200612528Override CLR Assembly Probing Logic
210정성태4/13/200612960Web.config의 기본 <appSettings /> Handler 교체
209정성태3/25/200612797Win32 FileID API Library
208정성태4/13/200612288(거의)모든 DB 에 대한 ADO.NET Data Provider (유료)목록
205정성태4/13/200612459Static Code Analyzer
206정성태4/13/200612098    답변글 Visual C++ Express를 사용한 보안 응용 프로그램 빌드
203정성태4/13/200611868WGF (Windows Graphic Foundation) [1]
202정성태4/13/200611892사용자 컴퓨터 환경 조사 결과(외국 사례)
201정성태4/13/200617218MySQLDirect .NET Data Provider
207정성태4/13/200611388    답변글 무료: Download Connector/Net 1.0 (MySQL) [1]
200정성태4/13/200611857Understanding Classic COM Interoperability With .NET Applications파일 다운로드1
199정성태4/13/200612240How to get a V2.0 ICorDebug object
198정성태4/13/200612252Whidbey breaking change --- Caching binding failures [1]
197정성태4/13/200611660The JIT does dead-code elimination in Debuggable code
195정성태4/13/200611548910442 - Working with Web Resources in ASP.NET 2.0
194정성태4/13/200612151ASP.NET 2.0 WebPart - SQL Server Error 26: Error Locating Server/Instance Specified
193정성태4/13/200612203WCF - Breaking Changes between Jan CTP and Feb CTP파일 다운로드1
192정성태4/13/200611617Cassini Update
191정성태4/13/200612716LeechBlocker ISAPI Filter
189정성태4/13/200611893The New Anonymous Types Feature in C# 3.0 [1]
188정성태3/8/200612044Microsoft Anti-Cross Site Scripting Library V1.0
196정성태4/13/200611453    답변글 왜 사용해야 하는가?
187정성태4/13/200611414제 1회 INETA 세미나
186정성태4/13/200611922Internet Information Services (IIS) 6.0 Manager for Windows XP
... 31  32  33  34  35  36  37  38  [39]  40  41  42  43  44  45  ...