CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Jun 2006
    Posts
    645

    Simple tutorial .NET interop problem

    Hi,
    I am following one of the MSDN tutorial videos at:
    The video builds in a simple C# assembly from a class library project in C# express edition and holding a form with a date time picker control. Another console application developed using Visual C++ express edition, makes use of #import and tries to call the form. The only difference in my case is, I am using Visual Studio instead of 2 different express versions, I am using VS 2008 professional edition. I have typed in the entire code. I am also able to build both the projects successfully and run the console application. However, I cannot get to show the form for the date picker control and an exception occurs. I removed the exception by registering the .tlb again and then following all the remedial steps from the video. But, the problem I faced was weird. The console window just shows a cursor without doing anything further. On stopping the execution, the console window did not close. I tried to stop debugging and close it but it did not close. Even after I tried to close it from the task manager, nothing happened and it remained open. Finally I had to restart the computer to get rid of the open console window.
    I am attaching the project with this post. Please let me know what would be the issue...at least please some one download my code and run on their machine and let me know if it works.
    Thanks,
    Bhushan
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured