Hi,

1. How do I share memory(using #pramga data_seg) between VB & VC++
applications and both are in different processes. Is it possible?

2. How do I stop console window? (for ex: I have created console app. with
MFC support. The o/p of this application is Dialog box only. But, console
window also there. I want to stop console window only. How?).

3.How can I convert win32 console app. to win32 sdk app.?

Thanks & Regards,
--
Reesh

Re: 3 doubts by David

David
Mon Apr 10 11:15:20 CDT 2006

>1. How do I share memory(using #pramga data_seg) between VB & VC++
>applications and both are in different processes. Is it possible?

I don't know but I'd doubt VB has any such support directly provided.

>2. How do I stop console window? (for ex: I have created console app. with
>MFC support. The o/p of this application is Dialog box only. But, console
>window also there. I want to stop console window only. How?).

Why did you create a console application if you didn't want a console?
Start the project again as an MFC dialog application if that's what
you really want.

>3.How can I convert win32 console app. to win32 sdk app.?

Same recommendation as before really - start from a new Win32 project
and paste in the pieces of your code where you can.

Dave

Re: 3 doubts by William

William
Mon Apr 10 11:23:47 CDT 2006

"Reesh" <Reesh@discussions.microsoft.com> wrote in message
news:5185DD4C-0A48-4138-9305-D92DB06B773D@microsoft.com...
> 1. How do I share memory(using #pramga data_seg) between VB & VC++
> applications and both are in different processes. Is it possible?

I should tell you that I am quite happy to remain completely ignorant about
how VB works.

That said, if you want to share memory between a VB application and a C++
application you have at least two choices.

1) Have them both load a DLL which uses #pragma data_seg to create and name
a data segment in the DLL AND use a module definition file or a linker
option to mark that data section as shared. Details are here:

http://support.microsoft.com/?id=100634

2) Create a shared memory segment with CreateFileMapping() and
MapViewOfFile().

> 2. How do I stop console window? (for ex: I have created console app. with
> MFC support. The o/p of this application is Dialog box only. But, console
> window also there. I want to stop console window only. How?).

If you don't want a console, the easiest thing to do is to create a windowed
application and simply choose to create no windows. You application would
then begin to execute application code at WinMain() rather than main().

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/winmain.asp

> 3.How can I convert win32 console app. to win32 sdk app.?

Create a new Win32 application, add the sources you have and deal with the
fallout.

Regards,
Will