Click here to Skip to main content
15,885,876 members
Home / Discussions / C#
   

C#

 
GeneralHiding a Fullscreen App (game) Pin
Kir Birger18-Feb-04 6:27
Kir Birger18-Feb-04 6:27 
GeneralRe: Hiding a Fullscreen App (game) Pin
Heath Stewart18-Feb-04 10:45
protectorHeath Stewart18-Feb-04 10:45 
GeneralAutomation Pin
yyf18-Feb-04 5:46
yyf18-Feb-04 5:46 
GeneralRe: Automation Pin
Mazdak18-Feb-04 6:03
Mazdak18-Feb-04 6:03 
GeneralRe: Automation Pin
Heath Stewart18-Feb-04 10:30
protectorHeath Stewart18-Feb-04 10:30 
GeneralRe: Automation Pin
yyf19-Feb-04 3:13
yyf19-Feb-04 3:13 
GeneralRe: Automation Pin
Heath Stewart19-Feb-04 3:20
protectorHeath Stewart19-Feb-04 3:20 
GeneralRe: Automation Pin
yyf19-Feb-04 8:13
yyf19-Feb-04 8:13 
Thanks again! I work it out with your help. It's a late-binding COM.

However another thing is I found late-binding in VS.Net is a bit more complicated than in VB6.

In VB6:
if com_obj.State.Result = com_obj.SUCCESS<br />
then<br />
.....


But In C#.Net, I have to do this:

object success = t.InvokeMember("SUCCESS", <br />
	BindingFlags.Public |BindingFlags.GetProperty | BindingFlags.GetField, <br />
	null, com_obj, null);<br />
<br />
object state = t.InvokeMember("State", <br />
	BindingFlags.Public |BindingFlags.GetProperty | BindingFlags.GetField, <br />
	null, com_obj, null);<br />
object result = result.GetType().InvokeMember("Result", <br />
	BindingFlags.Public |BindingFlags.GetProperty | BindingFlags.GetField, <br />
	null, state, null);<br />
if ( state.Equals(success) )<br />
....


Is it there any more convenient way in VS.Net to do the same thing?

Thanks in advance!
GeneralRe: Automation Pin
Heath Stewart19-Feb-04 8:44
protectorHeath Stewart19-Feb-04 8:44 
Generalopen shared folder Pin
elite2k18-Feb-04 5:35
elite2k18-Feb-04 5:35 
GeneralRe: open shared folder Pin
CWIZO18-Feb-04 6:56
CWIZO18-Feb-04 6:56 
GeneralRe: open shared folder Pin
Heath Stewart18-Feb-04 10:20
protectorHeath Stewart18-Feb-04 10:20 
GeneralRe: open shared folder Pin
Heath Stewart18-Feb-04 10:24
protectorHeath Stewart18-Feb-04 10:24 
GeneralRe: open shared folder Pin
elite2k18-Feb-04 21:49
elite2k18-Feb-04 21:49 
GeneralRe: open shared folder Pin
Heath Stewart19-Feb-04 3:48
protectorHeath Stewart19-Feb-04 3:48 
GeneralProgressBar into StatusBar Pin
Weiye Chen18-Feb-04 4:29
Weiye Chen18-Feb-04 4:29 
GeneralRe: ProgressBar into StatusBar Pin
Heath Stewart18-Feb-04 4:51
protectorHeath Stewart18-Feb-04 4:51 
GeneralRe: ProgressBar into StatusBar Pin
Weiye Chen27-Feb-04 17:53
Weiye Chen27-Feb-04 17:53 
GeneralRe: ProgressBar into StatusBar Pin
Heath Stewart28-Feb-04 3:30
protectorHeath Stewart28-Feb-04 3:30 
GeneralRe: ProgressBar into StatusBar Pin
Weiye Chen28-Feb-04 3:58
Weiye Chen28-Feb-04 3:58 
GeneralAsyncronous Remoting... Pin
Blue_Aqua18-Feb-04 0:53
Blue_Aqua18-Feb-04 0:53 
GeneralRe: Asyncronous Remoting... Pin
Heath Stewart18-Feb-04 4:40
protectorHeath Stewart18-Feb-04 4:40 
GeneralRe: Asyncronous Remoting... Pin
Blue_Aqua18-Feb-04 17:48
Blue_Aqua18-Feb-04 17:48 
GeneralRe: Asyncronous Remoting... Pin
Guillermo Rivero18-Feb-04 7:53
Guillermo Rivero18-Feb-04 7:53 
GeneralRe: Asyncronous Remoting... Pin
Blue_Aqua18-Feb-04 18:43
Blue_Aqua18-Feb-04 18:43 

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.