Click here to Skip to main content
15,900,906 members
Home / Discussions / C#
   

C#

 
GeneralRe: form object's constructor Pin
Heath Stewart27-Oct-03 6:39
protectorHeath Stewart27-Oct-03 6:39 
GeneralHelp richtextbox Pin
Wyetela27-Oct-03 6:08
Wyetela27-Oct-03 6:08 
GeneralActive X objct into web project Pin
@LX27-Oct-03 6:00
@LX27-Oct-03 6:00 
GeneralRe: Active X objct into web project Pin
Heath Stewart27-Oct-03 6:29
protectorHeath Stewart27-Oct-03 6:29 
QuestionThreading using the ref statement? Wha Happen? Pin
jremignanti27-Oct-03 5:23
jremignanti27-Oct-03 5:23 
AnswerRe: Threading using the ref statement? Wha Happen? Pin
Heath Stewart27-Oct-03 6:35
protectorHeath Stewart27-Oct-03 6:35 
GeneralRe: Threading using the ref statement? Wha Happen? Pin
jremignanti27-Oct-03 8:00
jremignanti27-Oct-03 8:00 
GeneralRe: Threading using the ref statement? Wha Happen? Pin
Heath Stewart27-Oct-03 8:05
protectorHeath Stewart27-Oct-03 8:05 
Instead of importing the typelib automatically, you may have to define your own interface in .NET (that which reflects the class interface of your OCX), putting the appropriate marshaling attributes (MarshalAsAttribute). See that class (and the System.Runtime.InteropServices namespace for more details (and it'd be good to take a quick glance before proceding).

Question, though. Are you trying to pass the first byte array element as a reference, or do you want to pass the entire array. The way you're doing it means that you're passing the address of the first element and this will definitely requiring marshaling. If you want to pass the whole array as a ref, use ref myByteArray as a parameter instead. .NET will take care of a lot of things for you, including stuff like this.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Threading using the ref statement? Wha Happen? Pin
jremignanti27-Oct-03 8:28
jremignanti27-Oct-03 8:28 
GeneralRe: Threading using the ref statement? Wha Happen? Pin
Heath Stewart27-Oct-03 8:34
protectorHeath Stewart27-Oct-03 8:34 
GeneralRe: Threading using the ref statement? Wha Happen? Pin
jremignanti27-Oct-03 9:02
jremignanti27-Oct-03 9:02 
GeneralRe: Threading using the ref statement? Wha Happen? Pin
Heath Stewart27-Oct-03 10:08
protectorHeath Stewart27-Oct-03 10:08 
GeneralRe: Threading using the ref statement? Wha Happen? Pin
jremignanti27-Oct-03 10:36
jremignanti27-Oct-03 10:36 
GeneralRe: Threading using the ref statement? Wha Happen? Pin
Heath Stewart27-Oct-03 10:43
protectorHeath Stewart27-Oct-03 10:43 
GeneralRe: Threading using the ref statement? Wha Happen? Pin
jremignanti27-Oct-03 10:54
jremignanti27-Oct-03 10:54 
GeneralRe: Threading using the ref statement? Wha Happen? Pin
Heath Stewart27-Oct-03 10:55
protectorHeath Stewart27-Oct-03 10:55 
GeneralRe: Threading using the ref statement? Wha Happen? Pin
jremignanti27-Oct-03 11:17
jremignanti27-Oct-03 11:17 
GeneralAllowDrop Property Problem Pin
Volker Jacobsen27-Oct-03 3:14
Volker Jacobsen27-Oct-03 3:14 
GeneralRe: AllowDrop Property Problem Pin
Heath Stewart27-Oct-03 8:44
protectorHeath Stewart27-Oct-03 8:44 
GeneralRe: AllowDrop Property Problem Pin
Volker Jacobsen27-Oct-03 20:46
Volker Jacobsen27-Oct-03 20:46 
GeneralTwo ImageList and two ImageIndex (and maybe... useful source code for you) Pin
god4k27-Oct-03 1:36
god4k27-Oct-03 1:36 
GeneralRe: Two ImageList and two ImageIndex (and maybe... useful source code for you) Pin
Heath Stewart27-Oct-03 2:37
protectorHeath Stewart27-Oct-03 2:37 
QuestionHow do I catch Windows messages in c#?? Pin
IrishSonic27-Oct-03 0:03
IrishSonic27-Oct-03 0:03 
AnswerRe: How do I catch Windows messages in c#?? Pin
Heath Stewart27-Oct-03 2:13
protectorHeath Stewart27-Oct-03 2:13 
AnswerRe: How do I catch Windows messages in c#?? Pin
oOomen27-Oct-03 4:58
oOomen27-Oct-03 4:58 

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.