Click here to Skip to main content
15,896,730 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralNeed help with MDI Pin
Snyp28-Apr-04 16:14
Snyp28-Apr-04 16:14 
GeneralRe: Need help with MDI Pin
Ryan Binns28-Apr-04 17:58
Ryan Binns28-Apr-04 17:58 
GeneralRe: Need help with MDI Pin
britonleap26-Jun-04 9:29
britonleap26-Jun-04 9:29 
Questionstl's list.. how to delete an item of the list? Pin
kfaday28-Apr-04 14:19
kfaday28-Apr-04 14:19 
AnswerRe: stl's list.. how to delete an item of the list? Pin
f6428-Apr-04 14:43
f6428-Apr-04 14:43 
GeneralChanging source files location Pin
luddet28-Apr-04 14:08
luddet28-Apr-04 14:08 
GeneralRe: Changing source files location Pin
luddet29-Apr-04 11:47
luddet29-Apr-04 11:47 
GeneralPlease help Pin
Stefan Troschuetz28-Apr-04 10:10
Stefan Troschuetz28-Apr-04 10:10 
Hi!

Recently i downloaded an article from this page. This project was programmed in C++ with managed extensions and serves as a .NET Wrapper around a existing C++ implementation of random generators and distributions.
I added this project to my solution that consist of a C# windows application. Under VS.NET 2003 everything worked well and i could use the wrapped random generators and distributions.
Unfortunately, i had to move my solution back to VS.NET 2002. My C# windows application still works well, but the downloaded project doesn't get compiled. I receive the following errors, which i noted besides the lines that generate them:
<br />
template<class T><br />
struct ptr_helper<br />
{<br />
typedef T value_type;<br />
typedef T& reference_type;                     //error C2529: 'reference_type' : reference to reference is illegal<br />
typedef const T& rvalue_type;                  //error C2529: 'reference_type' : reference to reference is illegal<br />
static reference_type ref(T& r) { return r; }  //error C2529: 'reference_type' : reference to reference is illegal<br />
static const T& ref(const T& r) { return r; }  //error C2529: 'reference_type' : reference to reference is illegal<br />
};<br />

This struct is declared in a header-file of the existing C++ implementation that gets wrapped by the downloaded project.
Why can i compile this under VS.NET 2003 but not in VS.NET2002? What i can i do?

THX in advance
GeneralRe: Please help Pin
Christian Graus28-Apr-04 10:57
protectorChristian Graus28-Apr-04 10:57 
GeneralUsing ifstream to read huge binary files Pin
Ron Hinthorn28-Apr-04 9:51
Ron Hinthorn28-Apr-04 9:51 
GeneralHi,MFC and big data files Pin
Jamie Kenyon28-Apr-04 8:58
Jamie Kenyon28-Apr-04 8:58 
GeneralRe: Hi,MFC and big data files Pin
David Crow28-Apr-04 9:02
David Crow28-Apr-04 9:02 
GeneralRe: Hi,MFC and big data files Pin
Jamie Kenyon28-Apr-04 12:21
Jamie Kenyon28-Apr-04 12:21 
GeneralRe: Hi,MFC and big data files Pin
l a u r e n28-Apr-04 14:29
l a u r e n28-Apr-04 14:29 
GeneralRe: Hi,MFC and big data files Pin
Jamie Kenyon28-Apr-04 23:01
Jamie Kenyon28-Apr-04 23:01 
GeneralRe: Hi,MFC and big data files Pin
David Crow29-Apr-04 2:40
David Crow29-Apr-04 2:40 
GeneralPut the suo and ncb files in another directory Pin
Anonymous28-Apr-04 8:03
Anonymous28-Apr-04 8:03 
GeneralRe: Put the suo and ncb files in another directory Pin
Anonymous28-Apr-04 8:18
Anonymous28-Apr-04 8:18 
GeneralRe: Put the suo and ncb files in another directory Pin
David Crow28-Apr-04 8:55
David Crow28-Apr-04 8:55 
GeneralRe: Put the suo and ncb files in another directory Pin
Anonymous28-Apr-04 9:15
Anonymous28-Apr-04 9:15 
QuestionThread and UpdateData?? Pin
bryanbryan28-Apr-04 7:12
bryanbryan28-Apr-04 7:12 
AnswerRe: Thread and UpdateData?? Pin
David Crow28-Apr-04 7:25
David Crow28-Apr-04 7:25 
GeneralToolbox and VC++.NET Pin
pmdanger28-Apr-04 7:03
pmdanger28-Apr-04 7:03 
GeneralPassing classes into threads Pin
roadragedave28-Apr-04 6:58
roadragedave28-Apr-04 6:58 
GeneralRe: Passing classes into threads Pin
David Crow28-Apr-04 7:19
David Crow28-Apr-04 7:19 

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.