Click here to Skip to main content
15,910,130 members
Home / Discussions / C#
   

C#

 
QuestionDataGridView Pin
CodingYoshi3-Feb-09 18:32
CodingYoshi3-Feb-09 18:32 
AnswerRe: DataGridView Pin
Christian Graus3-Feb-09 19:23
protectorChristian Graus3-Feb-09 19:23 
GeneralRe: DataGridView Pin
CodingYoshi3-Feb-09 21:17
CodingYoshi3-Feb-09 21:17 
GeneralRe: DataGridView Pin
MadArtSoft3-Feb-09 23:49
MadArtSoft3-Feb-09 23:49 
QuestionHow to naming a namespace in custom project? Pin
calendarw3-Feb-09 18:24
calendarw3-Feb-09 18:24 
AnswerRe: How to naming a namespace in custom project? Pin
Christian Graus3-Feb-09 19:17
protectorChristian Graus3-Feb-09 19:17 
GeneralRe: How to naming a namespace in custom project? Pin
calendarw3-Feb-09 20:00
calendarw3-Feb-09 20:00 
QuestionProblem in accessing C# dll in VC 6.0 project Pin
raesa3-Feb-09 18:14
raesa3-Feb-09 18:14 
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"),&amp;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 in accessing C# dll in VC 6.0 project Pin
Christian Graus3-Feb-09 19:19
protectorChristian Graus3-Feb-09 19:19 
GeneralRe: Problem in accessing C# dll in VC 6.0 project Pin
raesa3-Feb-09 21:25
raesa3-Feb-09 21:25 
Question### Problem with referenced assembly ? [modified] Pin
bug_aonz3-Feb-09 17:55
bug_aonz3-Feb-09 17:55 
AnswerRe: ### Problem with referenced assembly ? Pin
Rob Philpott3-Feb-09 23:50
Rob Philpott3-Feb-09 23:50 
QuestionCalling Child Form through MDI form Pin
sjs4u3-Feb-09 17:52
sjs4u3-Feb-09 17:52 
AnswerRe: Calling Child Form through MDI form Pin
Dave Kreskowiak3-Feb-09 18:25
mveDave Kreskowiak3-Feb-09 18:25 
Questionhow to maintain the same order in a treeview control where the nodes comes from other treeview. [modified] Pin
Gonxh Aniket3-Feb-09 17:41
Gonxh Aniket3-Feb-09 17:41 
AnswerRe: how to maintain the same order in a treeview control where the nodes comes from other treeview. Pin
MartyExodus3-Feb-09 19:18
MartyExodus3-Feb-09 19:18 
QuestionAudio Input Class? Pin
MartyExodus3-Feb-09 17:03
MartyExodus3-Feb-09 17:03 
AnswerRe: Audio Input Class? Pin
Christian Graus3-Feb-09 17:44
protectorChristian Graus3-Feb-09 17:44 
GeneralRe: Audio Input Class? Pin
MartyExodus3-Feb-09 17:52
MartyExodus3-Feb-09 17:52 
GeneralRe: Audio Input Class? Pin
Christian Graus3-Feb-09 19:21
protectorChristian Graus3-Feb-09 19:21 
GeneralRe: Audio Input Class? Pin
MartyExodus6-Feb-09 13:42
MartyExodus6-Feb-09 13:42 
QuestionThreading? Pin
benjamin yap3-Feb-09 15:50
benjamin yap3-Feb-09 15:50 
AnswerRe: Threading? Pin
Ennis Ray Lynch, Jr.3-Feb-09 15:58
Ennis Ray Lynch, Jr.3-Feb-09 15:58 
GeneralRe: Threading? Pin
benjamin yap3-Feb-09 16:16
benjamin yap3-Feb-09 16:16 
GeneralRe: Threading? Pin
Ennis Ray Lynch, Jr.3-Feb-09 16:21
Ennis Ray Lynch, Jr.3-Feb-09 16:21 

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.