Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need help with key logger (?) Pin
abc8763-Jan-04 9:20
abc8763-Jan-04 9:20 
GeneralRe: Need help with key logger (?) Pin
Jörgen Sigvardsson4-Jan-04 4:21
Jörgen Sigvardsson4-Jan-04 4:21 
GeneralDialog based SDI Pin
TolTol3-Jan-04 7:22
TolTol3-Jan-04 7:22 
GeneralRe: Dialog based SDI Pin
abc8763-Jan-04 8:56
abc8763-Jan-04 8:56 
GeneralRe: Dialog based SDI Pin
TolTol3-Jan-04 9:41
TolTol3-Jan-04 9:41 
GeneralWindows system font size Pin
zwergerl3-Jan-04 6:18
zwergerl3-Jan-04 6:18 
GeneralProblems getting client area screen coordinates Pin
doomgaze3-Jan-04 6:08
doomgaze3-Jan-04 6:08 
GeneralVisual Studio 2003 - C++ Pin
Runka3-Jan-04 5:44
sussRunka3-Jan-04 5:44 
#pragma once

template<typename ty="">
class dzeta
{
Ty xval;
public:
dzeta(void);
virtual ~dzeta(void);
friend GetVal( const dzeta<ty>& );
friend GetVal2(const dzeta<ty>& DzA, const dzeta<ty>& DzB); //{return DzA.xval + DzB.xval;} /* works this way!! */
};

#include "StdAfx.h"
#include ".\dzeta.h"

template<typename ty="">
dzeta<ty>::dzeta(void)
{
}

template<typename ty="">
dzeta<ty>::~dzeta(void)
{
}

template<typename ty="">
GetVal( const dzeta<ty>& Dz)
{
return Dz.xval;
}

template<typename ty="">
GetVal2(const dzeta<ty>& DzA, const dzeta<ty>& DzB)
{
return DzA.xval + DzB.xval;
}
// USING THIS CLASS
dzeta<int> DzetaA, DzetaB;
int dzVals = GetVal2(DzetaA, DzetaB);
ERROR - LINKER - VC7.1 (Visual Studio 2003)
Compiling resources...
Linking...
GenPermut.obj : error LNK2019: unresolved external symbol "int __cdecl GetVal2(class dzeta<int> const &,class dzeta<int> const &)" (?GetVal2@@YAHABV?$dzeta@H@@0@Z) referenced in function _main
Debug/GenPermut.exe : fatal error LNK1120: 1 unresolved externals

It works ever using VC6 and VC 7.0 (Visual Studio 2002)
This message from LINKER is displayed in every case using template classes!
GeneralRe: Visual Studio 2003 - C++ Pin
valikac3-Jan-04 5:48
valikac3-Jan-04 5:48 
GeneralRe: Visual Studio 2003 - C++ Pin
runka5-Jan-04 2:05
sussrunka5-Jan-04 2:05 
Questionhow to start an application and wait for its end Pin
gaxxx3-Jan-04 4:26
gaxxx3-Jan-04 4:26 
AnswerRe: how to start an application and wait for its end Pin
John R. Shaw3-Jan-04 4:40
John R. Shaw3-Jan-04 4:40 
AnswerRe: how to start an application and wait for its end Pin
John R. Shaw3-Jan-04 4:50
John R. Shaw3-Jan-04 4:50 
GeneralRe: how to start an application and wait for its end Pin
gaxxx3-Jan-04 5:12
gaxxx3-Jan-04 5:12 
GeneralWebbrowser control unexpected behaviour Pin
blindcop3-Jan-04 1:59
blindcop3-Jan-04 1:59 
GeneralRe: Webbrowser control unexpected behaviour Pin
John R. Shaw3-Jan-04 2:36
John R. Shaw3-Jan-04 2:36 
GeneralRe: Webbrowser control unexpected behaviour Pin
blindcop3-Jan-04 2:52
blindcop3-Jan-04 2:52 
GeneralRe: Webbrowser control unexpected behaviour Pin
John R. Shaw3-Jan-04 3:20
John R. Shaw3-Jan-04 3:20 
QuestionHow to make apply different form designs to a dialog Pin
blindcop3-Jan-04 1:56
blindcop3-Jan-04 1:56 
AnswerRe: How to make apply different form designs to a dialog Pin
John R. Shaw3-Jan-04 2:27
John R. Shaw3-Jan-04 2:27 
GeneralRe: How to make apply different form designs to a dialog Pin
blindcop3-Jan-04 2:54
blindcop3-Jan-04 2:54 
GeneralRe: How to make apply different form designs to a dialog Pin
John R. Shaw3-Jan-04 3:33
John R. Shaw3-Jan-04 3:33 
GeneralAddress Bar Pin
Prakash Nadar3-Jan-04 0:57
Prakash Nadar3-Jan-04 0:57 
GeneralI need EasyCalulator code! Pin
shenziyang2-Jan-04 20:17
shenziyang2-Jan-04 20:17 
GeneralRe: I need EasyCalulator code! Pin
l a u r e n2-Jan-04 21:32
l a u r e n2-Jan-04 21:32 

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.