Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Socket programming Pin
Member 46946273-Feb-09 18:41
Member 46946273-Feb-09 18:41 
GeneralRe: Socket programming Pin
«_Superman_»3-Feb-09 18:47
professional«_Superman_»3-Feb-09 18:47 
GeneralRe: Socket programming Pin
Member 46946273-Feb-09 20:46
Member 46946273-Feb-09 20:46 
GeneralRe: Socket programming Pin
Smith#3-Feb-09 20:49
Smith#3-Feb-09 20:49 
GeneralRe: Socket programming Pin
Member 46946273-Feb-09 21:16
Member 46946273-Feb-09 21:16 
GeneralRe: Socket programming Pin
Smith#3-Feb-09 21:59
Smith#3-Feb-09 21:59 
GeneralRe: Socket programming Pin
Member 46946273-Feb-09 22:42
Member 46946273-Feb-09 22:42 
QuestionProblem accessing C# dll in VC 6.0 Pin
raesa3-Feb-09 18:13
raesa3-Feb-09 18:13 
Hi, i have a small problem i have a csharp dll built in VS2005.I have to access the functions from this dll in my VC++ project done in VC 6.0.My VC project is not able to identify my C# namespace and class.I dont get what the problem is. Please do have a look at my c# code and VC Project code and do let me know if im making some mistake.I have also pasted the errors that i am getting. please do help me...i'm not able to understand the problem. Frown | :(

C# code:

using System;
using System.Collections.Generic;
using System.Text;
namespace TestDllCsharp
{
public class Class1
{
public void PrintMessage ()
{
System.Windows.Forms.MessageBox.Show("Test");
}
}
}

VC Project :
#import "TestDllCsharp.tlb"
using namespace TestDllCsharp;
#include <stdio.h>
void main()
{
HRESULT hresult;
CLSID clsid;
CoInitialize(NULL);
hresult=CLSIDFromProgID(OLESTR("TestDllCsharp.Class1"),&clsid);
if (hresult == 0)
{
_Class1 *t;
hresult=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,__uuidof(_Class1),(LPVOID *) &t);
t->PrintMessage ();
CoUninitialize();
}
}

I get errors like :
error C2065: '_Class1' : undeclared identifier
error C2065: 't' : undeclared identifier

Thnx in advance.
AnswerRe: Problem accessing C# dll in VC 6.0 Pin
«_Superman_»3-Feb-09 18:33
professional«_Superman_»3-Feb-09 18:33 
AnswerRe: Problem accessing C# dll in VC 6.0 Pin
Smith#3-Feb-09 20:47
Smith#3-Feb-09 20:47 
QuestionNeed patches For CString Memory Leaks in MFC Pin
Ramasani3-Feb-09 17:53
Ramasani3-Feb-09 17:53 
AnswerRe: Need patches For CString Memory Leaks in MFC Pin
Stuart Dootson3-Feb-09 21:17
professionalStuart Dootson3-Feb-09 21:17 
Questionhelp me please....(urgent).. Pin
rajesh_kumar3-Feb-09 17:41
rajesh_kumar3-Feb-09 17:41 
AnswerRe: help me please....(urgent).. Pin
_AnsHUMAN_ 3-Feb-09 17:54
_AnsHUMAN_ 3-Feb-09 17:54 
GeneralRe: help me please....(urgent).. Pin
rajesh_kumar3-Feb-09 18:32
rajesh_kumar3-Feb-09 18:32 
GeneralRe: help me please....(urgent).. Pin
Chandrasekharan P3-Feb-09 19:26
Chandrasekharan P3-Feb-09 19:26 
GeneralRe: help me please....(urgent).. Pin
rajesh_kumar4-Feb-09 2:54
rajesh_kumar4-Feb-09 2:54 
Questionhow to create dynamic controls in mdi using mfc and VC++ 2005 Pin
karthik11k3-Feb-09 17:36
karthik11k3-Feb-09 17:36 
AnswerRe: how to create dynamic controls in mdi using mfc and VC++ 2005 Pin
«_Superman_»3-Feb-09 17:51
professional«_Superman_»3-Feb-09 17:51 
AnswerRe: how to create dynamic controls in mdi using mfc and VC++ 2005 Pin
Nishad S3-Feb-09 17:53
Nishad S3-Feb-09 17:53 
GeneralRe: how to create dynamic controls in mdi using mfc and VC++ 2005 Pin
karthik11k3-Feb-09 19:08
karthik11k3-Feb-09 19:08 
GeneralRe: how to create dynamic controls in mdi using mfc and VC++ 2005 Pin
Nishad S3-Feb-09 19:21
Nishad S3-Feb-09 19:21 
GeneralRe: how to create dynamic controls in mdi using mfc and VC++ 2005 Pin
karthik11k3-Feb-09 19:49
karthik11k3-Feb-09 19:49 
GeneralRe: how to create dynamic controls in mdi using mfc and VC++ 2005 Pin
Nishad S3-Feb-09 19:55
Nishad S3-Feb-09 19:55 
Questionrefreshing the console screen Pin
hrishiS3-Feb-09 17:20
hrishiS3-Feb-09 17:20 

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.