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

Managed C++/CLI

 
GeneralRe: c++ auto exit Pin
igor19601-Oct-03 8:40
igor19601-Oct-03 8:40 
GeneralIntellisense Pin
carpet the walls28-Sep-03 22:46
carpet the walls28-Sep-03 22:46 
GeneralRead and Write to Com1 Pin
Member 60799126-Sep-03 11:28
Member 60799126-Sep-03 11:28 
GeneralRe: Read and Write to Com1 Pin
Nish Nishant26-Sep-03 16:33
sitebuilderNish Nishant26-Sep-03 16:33 
General.Net Remoting with Visual C++ .NET Pin
Moisés Lima Dutra25-Sep-03 6:58
Moisés Lima Dutra25-Sep-03 6:58 
GeneralRe: .Net Remoting with Visual C++ .NET Pin
Nish Nishant26-Sep-03 16:31
sitebuilderNish Nishant26-Sep-03 16:31 
GeneralRe: .Net Remoting with Visual C++ .NET Pin
Tom Archer4-Oct-03 3:17
Tom Archer4-Oct-03 3:17 
GeneralGlobal variables Pin
Jose Vicente25-Sep-03 5:34
Jose Vicente25-Sep-03 5:34 
Hello.

I'm writing a managed C++ application, and I have created a __gc class that acts as a Cache between the Database and my application.

I want that this caché can be accesed from anywhere in the application.

So I tried to do this.

In stdafx.h
extern CCache* g_pCache;

In stdafx.cpp
CCache* g_pCache = new CCache ();

and I have the following error message:
error C3145: 'g_pCache' : cannot declare a global or static managed type object or a __gc pointer

Its possible to define a variable of a managed type that its global ? How ?

Thanks.
Confused | :confused:
GeneralRe: Global variables Pin
Nish Nishant26-Sep-03 16:35
sitebuilderNish Nishant26-Sep-03 16:35 
General.NET KeyPreview Pin
carpet the walls24-Sep-03 23:30
carpet the walls24-Sep-03 23:30 
QuestionHow through VC++ .NET to sound a file (.mp3)? Pin
Dr. Zharkov24-Sep-03 18:54
Dr. Zharkov24-Sep-03 18:54 
QuestionHow to use unicode string in MC++ Pin
David Gao23-Sep-03 16:12
David Gao23-Sep-03 16:12 
AnswerRe: How to use unicode string in MC++ Pin
Anthony_Yio24-Sep-03 16:53
Anthony_Yio24-Sep-03 16:53 
GeneralRe: How to use unicode string in MC++ Pin
David Gao26-Sep-03 15:00
David Gao26-Sep-03 15:00 
AnswerRe: How to use unicode string in MC++ Pin
Tim Smith29-Sep-03 12:34
Tim Smith29-Sep-03 12:34 
GeneralString conversion... Pin
raitz23-Sep-03 9:11
raitz23-Sep-03 9:11 
GeneralRe: String conversion... Pin
Anthony_Yio24-Sep-03 16:55
Anthony_Yio24-Sep-03 16:55 
GeneralRe: String conversion... Pin
raitz25-Sep-03 6:19
raitz25-Sep-03 6:19 
QuestionHow to use c dlls in managed c++ Pin
Shailaja23-Sep-03 0:55
Shailaja23-Sep-03 0:55 
AnswerRe: How to use c dlls in managed c++ Pin
Heath Stewart23-Sep-03 3:01
protectorHeath Stewart23-Sep-03 3:01 
GeneralInterface between classes Pin
LordVador22-Sep-03 23:31
LordVador22-Sep-03 23:31 
GeneralRe: Interface between classes Pin
Heath Stewart23-Sep-03 2:44
protectorHeath Stewart23-Sep-03 2:44 
QuestionC++ Lib -> Dll (Wrapper) - How? Pin
Chua Wen Ching21-Sep-03 2:03
Chua Wen Ching21-Sep-03 2:03 
AnswerRe: C++ Lib -> Dll (Wrapper) - How? Pin
Nemanja Trifunovic22-Sep-03 10:20
Nemanja Trifunovic22-Sep-03 10:20 
GeneralRe: C++ Lib -> Dll (Wrapper) - How? Pin
Chua Wen Ching23-Sep-03 22:58
Chua Wen Ching23-Sep-03 22:58 

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.