Click here to Skip to main content
15,899,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: picking random colors Pin
Nick Parker25-Jun-04 19:07
protectorNick Parker25-Jun-04 19:07 
GeneralRe: picking random colors Pin
Anonymous26-Jun-04 7:00
Anonymous26-Jun-04 7:00 
GeneralRe: picking random colors Pin
Heath Stewart26-Jun-04 14:05
protectorHeath Stewart26-Jun-04 14:05 
GeneralRe: picking random colors Pin
Karl 200027-Jun-04 7:31
Karl 200027-Jun-04 7:31 
GeneralGet domain name the machne has been logged into Pin
michalJ25-Jun-04 10:07
michalJ25-Jun-04 10:07 
GeneralRe: Get domain name the machne has been logged into Pin
Heath Stewart25-Jun-04 10:23
protectorHeath Stewart25-Jun-04 10:23 
GeneralC++ to C# - Dragging nightmare Pin
TylerBrinks25-Jun-04 8:07
TylerBrinks25-Jun-04 8:07 
GeneralRe: C++ to C# - Dragging nightmare Pin
Heath Stewart25-Jun-04 8:43
protectorHeath Stewart25-Jun-04 8:43 
Don't interop the VB6 project - that's a waste (requires two phases of marshaling for a one-way call and requires extra DLLs/OCXs that need to be registered). Declare the COM interfaces in C# (as I mentioned to you before) along with a skeleton implementation with the same GUID as the CLSID_DragDropHelper. You can then use Activator.CreateComInstanceFrom and instantiate the COM coclass but treat it as the skeleton type you created. Now your C# code is directly using the COM coclass provided by the shell.

If you need to pass HWNDs, then use Control.Handle (like your main Form's Handle property). That IntPtr (native-size integer) is your HWND for that Control.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: C++ to C# - Dragging nightmare Pin
TylerBrinks25-Jun-04 9:17
TylerBrinks25-Jun-04 9:17 
GeneralRe: C++ to C# - Dragging nightmare Pin
Heath Stewart25-Jun-04 9:50
protectorHeath Stewart25-Jun-04 9:50 
GeneralDll Merge Pin
Visionsoft25-Jun-04 8:05
Visionsoft25-Jun-04 8:05 
GeneralRe: Dll Merge Pin
Heath Stewart25-Jun-04 8:38
protectorHeath Stewart25-Jun-04 8:38 
GeneralRe: Dll Merge Pin
leppie25-Jun-04 9:37
leppie25-Jun-04 9:37 
GeneralRe: Dll Merge Pin
Heath Stewart25-Jun-04 10:19
protectorHeath Stewart25-Jun-04 10:19 
Questionie control and ASP.NET not behaving? Pin
LongRange.Shooter25-Jun-04 5:10
LongRange.Shooter25-Jun-04 5:10 
AnswerRe: ie control and ASP.NET not behaving? Pin
Heath Stewart25-Jun-04 6:20
protectorHeath Stewart25-Jun-04 6:20 
GeneralExtended Ascii Encoding Pin
zainu25-Jun-04 2:46
zainu25-Jun-04 2:46 
GeneralRe: Extended Ascii Encoding Pin
Heath Stewart25-Jun-04 5:42
protectorHeath Stewart25-Jun-04 5:42 
GeneralRe: Extended Ascii Encoding Pin
zainu25-Jun-04 19:50
zainu25-Jun-04 19:50 
GeneralRe: Extended Ascii Encoding Pin
Heath Stewart26-Jun-04 14:02
protectorHeath Stewart26-Jun-04 14:02 
GeneralRe: Extended Ascii Encoding Pin
yosr20-Jan-13 1:33
yosr20-Jan-13 1:33 
GeneralRe: Extended Ascii Encoding Pin
Hovik Melkomian7-Jul-04 22:56
Hovik Melkomian7-Jul-04 22:56 
GeneralRe: Extended Ascii Encoding Pin
Heath Stewart8-Jul-04 3:45
protectorHeath Stewart8-Jul-04 3:45 
Generaltext encoding Pin
amatyasik25-Jun-04 2:01
amatyasik25-Jun-04 2:01 
GeneralRe: text encoding Pin
zainu25-Jun-04 2:53
zainu25-Jun-04 2:53 

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.