Click here to Skip to main content
15,917,321 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 12:50
xuesyuan17-Jul-08 12:50 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 12:20
xuesyuan17-Jul-08 12:20 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
launchck22-Jul-08 18:24
launchck22-Jul-08 18:24 
AnswerRe: Windows Service (C++/CLI) and MFC Pin
led mike17-Jul-08 12:11
led mike17-Jul-08 12:11 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 12:44
xuesyuan17-Jul-08 12:44 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
led mike17-Jul-08 18:01
led mike17-Jul-08 18:01 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 23:41
xuesyuan17-Jul-08 23:41 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
Mark Salsbery18-Jul-08 5:46
Mark Salsbery18-Jul-08 5:46 
xuesyuan wrote:
I want my Windows Service to use a dll created in Visual C++ 6.0.


As led mike mentioned, that's not going to work, except under
extremely controlled circumstances.

You'll have two MFC libraries and two CRT libraries running at the same
time. You won't be able to share objects between them without knowing exactly
what you're doing.

MFC is NOT supported in services, so it's up to you to study the source
code for all MFC classes you use and make sure they work in a service.
That means only simple wrapper classes, like CDatabase/CRecordset are.

If you can't upgrade the DLL to your current MFC version, your best bet
is to implement the service using Win32 APIs instead of C++/CLI, using VC6.

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionColumn width change in List View control Pin
Xaria16-Jul-08 21:00
Xaria16-Jul-08 21:00 
AnswerRe: Column width change in List View control Pin
Mark Salsbery17-Jul-08 8:19
Mark Salsbery17-Jul-08 8:19 
QuestionWrite XL File from C++.Net Pin
mohant$.net16-Jul-08 20:17
mohant$.net16-Jul-08 20:17 
AnswerRe: Write XL File from C++.Net [modified] Pin
leonigah23-Jul-08 2:07
leonigah23-Jul-08 2:07 
QuestionHow do you restrict textBox entry? Pin
BuckBrown16-Jul-08 13:43
BuckBrown16-Jul-08 13:43 
AnswerRe: How do you restrict textBox entry? Pin
led mike17-Jul-08 6:23
led mike17-Jul-08 6:23 
GeneralRe: How do you restrict textBox entry? Pin
BuckBrown17-Jul-08 7:16
BuckBrown17-Jul-08 7:16 
GeneralRe: How do you restrict textBox entry? Pin
led mike17-Jul-08 7:35
led mike17-Jul-08 7:35 
GeneralRe: How do you restrict textBox entry? Pin
BuckBrown17-Jul-08 8:59
BuckBrown17-Jul-08 8:59 
GeneralRe: How do you restrict textBox entry? Pin
led mike17-Jul-08 10:50
led mike17-Jul-08 10:50 
GeneralRe: How do you restrict textBox entry? Pin
killabyte20-Jul-08 19:19
killabyte20-Jul-08 19:19 
GeneralRe: How do you restrict textBox entry? Pin
led mike21-Jul-08 6:15
led mike21-Jul-08 6:15 
GeneralRe: How do you restrict textBox entry? Pin
Mark Salsbery17-Jul-08 9:18
Mark Salsbery17-Jul-08 9:18 
QuestionAsyncCallback Instantiation - Why Did This Work? Pin
Oddball16-Jul-08 12:27
Oddball16-Jul-08 12:27 
AnswerRe: AsyncCallback Instantiation - Why Did This Work? Pin
Mark Salsbery16-Jul-08 13:26
Mark Salsbery16-Jul-08 13:26 
GeneralRe: AsyncCallback Instantiation - Why Did This Work? Pin
Oddball16-Jul-08 14:06
Oddball16-Jul-08 14:06 
GeneralRe: AsyncCallback Instantiation - Why Did This Work? Pin
Mark Salsbery16-Jul-08 14:16
Mark Salsbery16-Jul-08 14:16 

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.