• Upgrade your Internet Experience
  • Sign in
  • Microsoft.com
  • United States (English)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
.NET Framework Developer Center
 
 
Home
 
 
Library
 
 
Learn
 
 
Downloads
 
 
Support
 
 
Community
 
 
Forums
 
 
 
.NET Framework Developer Center > .NET Development Forums > Common Language Runtime > Passing string data to vb6.0 desktop application
Ask a questionAsk a question
Search Forums:
  • Search Common Language Runtime Forum Search Common Language Runtime Forum
  • Search All .NET Development Forums Search All .NET Development Forums
  • Search All MSDN Forums Search All MSDN Forums
 

AnswerPassing string data to vb6.0 desktop application

  • Tuesday, October 09, 2007 6:20 AMSunilKumar111 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

     

    Hi everybody,

    I need to pass some data(string) from my C# desktop application to vb6.0 desktop application. what is the best way to do that.

    Its very urgent. Please help

     

    Thank you very much

    • ReplyReply
    • QuoteQuote
     

Answers

  • Wednesday, October 10, 2007 8:41 AMFeng ChenMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0

    Hi SunilKumar111,

    I suggest that you can use WM_COPYDATA to send data between the different processes. To achieve this, you can use SendMessage function in C# through P/Invoke. And there are several references on this issue:

    ·         Inter process communication using registered messages from Visual Basic

    ·         Use WM_COPYDATA to send data to/from C++ and C# Windows processes

    ·         Inter-Process Communication using WM_COPYDATA

    Hope this helps!

    Thanks!

    • ReplyReply
    • QuoteQuote
     

All Replies

  • Wednesday, October 10, 2007 7:13 AMFeng ChenMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    Hi SunilKumar111,

    Could you please cover your VB6.0 application in more details? Is it a control DLL and you want to use it in your C# application or it is a single application?

    Thanks!

     

    • ReplyReply
    • QuoteQuote
     
  • Wednesday, October 10, 2007 8:21 AMSunilKumar111 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    Hi, Feng Chen !

    Both C# and VB6.0 applications are standalone windows applicatios(no DLL). Both will be run separately on the same machine. I need to pass some string data to vb6.0 application.

    • ReplyReply
    • QuoteQuote
     
  • Thursday, October 11, 2007 5:54 AMSunilKumar111 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

     

    Thank you very much Sir. It was of great help.
    • ReplyReply
    • QuoteQuote
     
Need Help with Forums? (FAQ)
 
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement