Click here to Skip to main content
15,914,444 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: File Transfer Using Remoting Pin
SHaroz26-Jun-02 5:50
SHaroz26-Jun-02 5:50 
GeneralADO.NET newbie: Binding to comboBox & querying a dataset Pin
Andrew Connell19-Jun-02 2:44
Andrew Connell19-Jun-02 2:44 
GeneralRe: ADO.NET newbie: Binding to comboBox & querying a dataset Pin
Chris Rickard19-Jun-02 4:46
Chris Rickard19-Jun-02 4:46 
GeneralRe: ADO.NET newbie: Binding to comboBox & querying a dataset Pin
Andrew Connell19-Jun-02 5:36
Andrew Connell19-Jun-02 5:36 
GeneralRe: ADO.NET newbie: Binding to comboBox & querying a dataset Pin
Chris Rickard19-Jun-02 5:40
Chris Rickard19-Jun-02 5:40 
GeneralRemoting Architecture Pin
svsparks18-Jun-02 11:59
svsparks18-Jun-02 11:59 
GeneralRe: Remoting Architecture Pin
svsparks19-Jun-02 4:19
svsparks19-Jun-02 4:19 
GeneralInternet Explorer Interop Pin
Jared Bienz17-Jun-02 6:02
Jared Bienz17-Jun-02 6:02 
I am trying to use the Internet Explorer control in my C# project. I imported the control into the toolbar and dropped it onto my form. This, of coarse, imported SHDocVw.dll.

Now, I can navigate around with the control just fine, but I wanted to do something a bit more tricky. I have HTML resources embedded in my project and I want to display them using the DOM in the IE control. So, next, I went searching for the Document property. To my surprise, it was typed as Object. After a bit more research, I realized that the DOM was in a separate dll. MSHTML.DLL to be exact. I imported this only to find another problem.

VS.Net imported the all of the interfaces and classes. The one of interest is the HTMLDocumentClass class, which implements the IHTMLDocument2 interface. This interface has the writeln that I want to use. The problem is that VS.Net imported the method as:

writeln(params object[] psarray)

But the original C++ version is actually

HRESULT writeln(SAFEARRAY* psarray)

and the documentation states that psarray is actually a BSTR[]. When I try to pass a string or string[], the framework doesn't catch that it needs to convert it and Explorer just throws an exception.

Since this is method isn't imported using DllImport or anything, how can I make VS import this method to take a string instead? Confused | :confused:

Jared Bienz

jbienz@hotmail.com

QuestionASCII for keys? Pin
Brian Olej15-Jun-02 18:51
Brian Olej15-Jun-02 18:51 
AnswerRe: ASCII for keys? Pin
David Wengier15-Jun-02 20:55
David Wengier15-Jun-02 20:55 
GeneralMSO.dll change Pin
Jon Newman15-Jun-02 3:30
Jon Newman15-Jun-02 3:30 
GeneralDebugging Pin
14-Jun-02 13:42
suss14-Jun-02 13:42 
QuestionWhere Do I Start? Pin
SABmore13-Jun-02 10:49
SABmore13-Jun-02 10:49 
AnswerRe: Where Do I Start? Pin
James T. Johnson13-Jun-02 12:04
James T. Johnson13-Jun-02 12:04 
GeneralXP Home and .NET Pin
Jason Henderson13-Jun-02 5:59
Jason Henderson13-Jun-02 5:59 
GeneralRe: XP Home and .NET Pin
Brandon Parker13-Jun-02 7:18
Brandon Parker13-Jun-02 7:18 
GeneralRe: XP Home and .NET Pin
Jason Henderson13-Jun-02 8:38
Jason Henderson13-Jun-02 8:38 
GeneralRe: XP Home and .NET Pin
Brandon Parker13-Jun-02 10:06
Brandon Parker13-Jun-02 10:06 
GeneralIcon for Custom UserControl in .Net Pin
12-Jun-02 21:09
suss12-Jun-02 21:09 
GeneralRe: Icon for Custom UserControl in .Net Pin
James T. Johnson12-Jun-02 21:36
James T. Johnson12-Jun-02 21:36 
GeneralRe: Icon for Custom UserControl in .Net Pin
13-Jun-02 21:20
suss13-Jun-02 21:20 
GeneralMy own class & IntelliSense Pin
Maciej Pirog12-Jun-02 6:56
Maciej Pirog12-Jun-02 6:56 
GeneralRe: My own class & IntelliSense Pin
Rama Krishna Vavilala12-Jun-02 16:18
Rama Krishna Vavilala12-Jun-02 16:18 
GeneralRe: My own class & IntelliSense Pin
Maciej Pirog12-Jun-02 23:43
Maciej Pirog12-Jun-02 23:43 
GeneralRe: User Control & IntelliSense Pin
13-Jun-02 21:47
suss13-Jun-02 21:47 

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.