Click here to Skip to main content
15,914,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: program c++ Pin
Sauce!10-Dec-09 19:27
Sauce!10-Dec-09 19:27 
AnswerRe: program c++ Pin
Rajesh R Subramanian10-Dec-09 21:08
professionalRajesh R Subramanian10-Dec-09 21:08 
Questionwhy the function GetMethodID in JNI always return 0? Pin
heavensquare10-Dec-09 14:41
heavensquare10-Dec-09 14:41 
AnswerRe: why the function GetMethodID in JNI always return 0? Pin
Richard MacCutchan11-Dec-09 6:19
mveRichard MacCutchan11-Dec-09 6:19 
QuestionDrawing in a PDF file with HPDF Pin
softwaremonkey10-Dec-09 11:20
softwaremonkey10-Dec-09 11:20 
AnswerRe: Drawing in a PDF file with HPDF Pin
Adam Roderick J10-Dec-09 17:11
Adam Roderick J10-Dec-09 17:11 
GeneralRe: Drawing in a PDF file with HPDF Pin
softwaremonkey11-Dec-09 3:39
softwaremonkey11-Dec-09 3:39 
QuestionCalling third party dll Canadidate function not accessible Pin
shivels10-Dec-09 10:30
shivels10-Dec-09 10:30 
Hi,

This is my first post on these fourms, so I'll probably screw up something!
Anyway, I'm trying to write a program which interfaces with a third party dll. All I have is the dll. The dll contains a typelib. To start with, I created a Win Console32 app and am compiling using the /CLR trigger. I added the dll as a reference and placed it in the same folder. I can use intelisense to see all of the classes and interfaces. Here is my code:

// COM Test for C++ for real.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "objbase.h"

using namespace xTInstrument;

int _tmain(int argc, _TCHAR* argv[])
{

	//This code complies, but fails at runtime due to an object reference
        //not set to an instance of   an object
	//xTInstrument::IonBeamClass^ ibeam;
	//ibeam->HV->Value = 4;


	//This will generates a compile error "candidate Function(s) not accessible"
	xTInstrument::GisClass^ Gis = gcnew xTInstrument::GisClass(); 
	//Gis->InsertRetractedGISPorts(true); 
	

	return 0;
}


I know for a fact the functions are declared as "Friend" in the orginal dll. The dll I am using is the Interop created by Visual Studio. Can anybody help me?

Cheers,
Shivels
AnswerRe: Calling third party dll Canadidate function not accessible Pin
Nemanja Trifunovic10-Dec-09 11:34
Nemanja Trifunovic10-Dec-09 11:34 
AnswerRe: Calling third party dll Canadidate function not accessible Pin
KarstenK10-Dec-09 21:57
mveKarstenK10-Dec-09 21:57 
GeneralRe: Calling third party dll Canadidate function not accessible Pin
shivels11-Dec-09 2:54
shivels11-Dec-09 2:54 
GeneralRe: Calling third party dll Canadidate function not accessible Pin
KarstenK11-Dec-09 3:17
mveKarstenK11-Dec-09 3:17 
GeneralRe: Calling third party dll Canadidate function not accessible Pin
shivels11-Dec-09 9:22
shivels11-Dec-09 9:22 
GeneralRe: Calling third party dll Canadidate function not accessible Pin
KarstenK13-Dec-09 21:13
mveKarstenK13-Dec-09 21:13 
GeneralRe: Calling third party dll Canadidate function not accessible Pin
shivels14-Dec-09 5:26
shivels14-Dec-09 5:26 
QuestionPreventing Windows messages from popping up Pin
dipuks10-Dec-09 9:07
dipuks10-Dec-09 9:07 
AnswerRe: Preventing Windows messages from popping up Pin
Cedric Moonen10-Dec-09 9:29
Cedric Moonen10-Dec-09 9:29 
GeneralRe: Preventing Windows messages from popping up Pin
dipuks10-Dec-09 10:06
dipuks10-Dec-09 10:06 
GeneralRe: Preventing Windows messages from popping up Pin
22491710-Dec-09 16:22
22491710-Dec-09 16:22 
QuestionWhat am I Doing? class < class > ??? Pin
Joschwenk66610-Dec-09 7:40
Joschwenk66610-Dec-09 7:40 
AnswerRe: What am I Doing? class < class > ??? Pin
«_Superman_»10-Dec-09 7:48
professional«_Superman_»10-Dec-09 7:48 
AnswerRe: What am I Doing? class < class > ??? Pin
Cedric Moonen10-Dec-09 7:50
Cedric Moonen10-Dec-09 7:50 
QuestionDoxygen Command Help Required Pin
Steve Thresher10-Dec-09 4:34
Steve Thresher10-Dec-09 4:34 
AnswerRe: Doxygen Command Help Required Pin
Richard MacCutchan10-Dec-09 4:42
mveRichard MacCutchan10-Dec-09 4:42 
GeneralRe: Doxygen Command Help Required Pin
Steve Thresher10-Dec-09 4:55
Steve Thresher10-Dec-09 4:55 

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.