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

Managed C++/CLI

 
Generalcode for controling web came Pin
Randil28-Apr-05 20:09
Randil28-Apr-05 20:09 
QuestionUsing PlaySound() in VC++ .net managed? Pin
ScottLeff26-Apr-05 12:23
ScottLeff26-Apr-05 12:23 
AnswerReally Dumb Suggestion Pin
ursus zeta28-Apr-05 11:11
ursus zeta28-Apr-05 11:11 
GeneralRe: Really Dumb Suggestion Pin
ScottLeff28-Apr-05 16:35
ScottLeff28-Apr-05 16:35 
GeneralSo Damn Easy Pin
ursus zeta30-Apr-05 9:19
ursus zeta30-Apr-05 9:19 
GeneralRe: So Damn Easy Pin
ScottLeff1-May-05 12:00
ScottLeff1-May-05 12:00 
Generalsorry Pin
ursus zeta4-May-05 9:22
ursus zeta4-May-05 9:22 
GeneralPointer to managed object <undefined> off timer thread Pin
Anonymous26-Apr-05 10:23
Anonymous26-Apr-05 10:23 
I have an application in MFC that I have added some ADO.NET code to.

My DatabaseAccess class is unmanaged and has pointers to OleDbConnection which is used in the class member functions to manipulate the database.

I also have an unmanaged CFormView class that includes the DatabaseAccess class as a member.

I declared a pointer to the CFormView class so that other places in the code have access. CFormView * theDialog;

When I call the member functions in the DatabaseAccess classs, the OleDbConnection is checked for NULL to make sure the connection is there. All calls to the DatabaseAccess member functions work from the CFormView class.

When in CMainFrame on a timer I call theDialog->UpdateRecord() which in turn calls an OpenDatabase member of my DataAccess class, the check if(m_OleDb_connection != 0) causes an NullReferenceException to be thrown and the debugger shows that no instance of the connection has been assigned to the variable holding the OleDbConnection.

I thought this might have something to do with pinning or Threads. Any suggestions?

GeneralRe: Pointer to managed object <undefined> off timer thread Pin
Anonymous26-Apr-05 16:59
Anonymous26-Apr-05 16:59 
Questiongarbage collection fails? Pin
cchere23-Apr-05 13:04
cchere23-Apr-05 13:04 
GeneralBaseClass Interaction Problem Pin
classsystem23-Apr-05 5:21
sussclasssystem23-Apr-05 5:21 
GeneralRe: BaseClass Interaction Problem Pin
toxcct26-Apr-05 0:40
toxcct26-Apr-05 0:40 
GeneralRe: BaseClass Interaction Problem Pin
classsystem1-May-05 5:29
sussclasssystem1-May-05 5:29 
GeneralRe: BaseClass Interaction Problem Pin
toxcct1-May-05 19:59
toxcct1-May-05 19:59 
GeneralRe: BaseClass Interaction Problem Pin
classsystem2-May-05 15:56
sussclasssystem2-May-05 15:56 
GeneralRadioButtons and Groups Pin
Yaron Abershitz19-Apr-05 2:45
Yaron Abershitz19-Apr-05 2:45 
Generalsearching a map Pin
{cellardoor}16-Apr-05 13:03
{cellardoor}16-Apr-05 13:03 
GeneralRe: searching a map Pin
Christian Graus17-Apr-05 17:43
protectorChristian Graus17-Apr-05 17:43 
General_MM_SHUFFLE question Pin
swati2415-Apr-05 23:09
swati2415-Apr-05 23:09 
GeneralClear the screen Pin
Larsson14-Apr-05 21:10
Larsson14-Apr-05 21:10 
GeneralRe: Clear the screen Pin
IdUnknown15-Apr-05 15:23
IdUnknown15-Apr-05 15:23 
General2005 Beta-1 C++/CLI Pin
TFB14-Apr-05 7:30
TFB14-Apr-05 7:30 
GeneralRe: 2005 Beta-1 C++/CLI Pin
Sheng Jiang 蒋晟20-Apr-05 12:33
Sheng Jiang 蒋晟20-Apr-05 12:33 
GeneralRe: 2005 Beta-1 C++/CLI Pin
TFB21-Apr-05 6:58
TFB21-Apr-05 6:58 
GeneralMicrosoft Word - Read Only and DisplayAlerts Ignored (important) Pin
User 172888413-Apr-05 23:43
User 172888413-Apr-05 23:43 

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.