Click here to Skip to main content
15,906,329 members
Home / Discussions / COM
   

COM

 
GeneralRe: expression cannot be evaluated:0x0046d5b0 _com_error Pin
gtag18-Sep-09 0:12
gtag18-Sep-09 0:12 
GeneralRe: expression cannot be evaluated:0x0046d5b0 _com_error Pin
Stuart Dootson18-Sep-09 0:16
professionalStuart Dootson18-Sep-09 0:16 
GeneralRe: expression cannot be evaluated:0x0046d5b0 _com_error Pin
gtag18-Sep-09 0:54
gtag18-Sep-09 0:54 
GeneralRe: expression cannot be evaluated:0x0046d5b0 _com_error Pin
Stuart Dootson18-Sep-09 1:50
professionalStuart Dootson18-Sep-09 1:50 
GeneralRe: expression cannot be evaluated:0x0046d5b0 _com_error Pin
gtag18-Sep-09 1:55
gtag18-Sep-09 1:55 
QuestionMessage Removed Pin
20-Sep-09 22:57
gtag20-Sep-09 22:57 
AnswerRe: expression cannot be evaluated:0x0046d5b0 _com_error Pin
gtag30-Sep-09 1:19
gtag30-Sep-09 1:19 
QuestionUsing C# .dll in unmanaged C++ application Pin
mypicturefaded17-Sep-09 9:59
mypicturefaded17-Sep-09 9:59 
Here is my C# file.

using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;
using System.Runtime.InteropServices;

namespace AdobeDSL
{

    public class DSL
    {

        public DSL()
        {
        }

        public string GetID(string username)
        {
           //my code
        }

        public string Verify(string ID)
        {
               //my code
        }
    }
}



Then I have this C++ file.


#import "Path\AdobeDSL.tlb" named_guids raw_interfaces_only
#include <iostream> 
#include <string>

using namespace std;

int main()
{
	CoInitialize(NULL);
	AdobeDSL::_DSLPtr DSLTest;
	HRESULT Result1 = DSLTest.CreateInstance(AdobeDSL::CLSID_DSL);

	if (Result1 == S_OK)
	{
		cout << "Worked!" << endl;	
	}

	CoUninitialize ();
	cin.get();

	return 0;
}


This all works just fine. But I should be able to call DSLTest->GetID("value");
GetID and Verify do not show up in the members list. What do I have to do to get them to show up.
AnswerRe: Using C# .dll in unmanaged C++ application Pin
«_Superman_»18-Sep-09 0:00
professional«_Superman_»18-Sep-09 0:00 
GeneralRe: Using C# .dll in unmanaged C++ application Pin
mypicturefaded18-Sep-09 3:54
mypicturefaded18-Sep-09 3:54 
AnswerRe: Using C# .dll in unmanaged C++ application Pin
theCPkid25-Sep-09 22:18
theCPkid25-Sep-09 22:18 
GeneralRe: Using C# .dll in unmanaged C++ application Pin
mypicturefaded26-Sep-09 6:27
mypicturefaded26-Sep-09 6:27 
Questionloosing data in COM method Pin
shivako17-Sep-09 2:07
shivako17-Sep-09 2:07 
AnswerRe: loosing data in COM method Pin
Stuart Dootson17-Sep-09 2:48
professionalStuart Dootson17-Sep-09 2:48 
AnswerRe: loosing data in COM method Pin
Roger Stoltz17-Sep-09 2:57
Roger Stoltz17-Sep-09 2:57 
AnswerRe: loosing data in COM method Pin
CPallini17-Sep-09 11:14
mveCPallini17-Sep-09 11:14 
QuestionGetting link error Pin
gtag16-Sep-09 22:00
gtag16-Sep-09 22:00 
AnswerRe: Getting link error Pin
Stuart Dootson16-Sep-09 23:23
professionalStuart Dootson16-Sep-09 23:23 
GeneralRe: Getting link error Pin
gtag17-Sep-09 0:35
gtag17-Sep-09 0:35 
GeneralRe: Getting link error Pin
Stuart Dootson17-Sep-09 1:00
professionalStuart Dootson17-Sep-09 1:00 
GeneralRe: Getting link error Pin
gtag17-Sep-09 1:29
gtag17-Sep-09 1:29 
GeneralRe: Getting link error Pin
Stuart Dootson17-Sep-09 2:05
professionalStuart Dootson17-Sep-09 2:05 
GeneralRe: Getting link error Pin
gtag17-Sep-09 2:44
gtag17-Sep-09 2:44 
GeneralRe: Getting link error Pin
Stuart Dootson17-Sep-09 2:46
professionalStuart Dootson17-Sep-09 2:46 
GeneralRe: Getting link error Pin
gtag17-Sep-09 18:40
gtag17-Sep-09 18:40 

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.