Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
QuestionSimple path finding problem. Pin
f*** YOU19-Sep-06 16:11
f*** YOU19-Sep-06 16:11 
QuestionXPath expression problem... Pin
Kasic Slobodan19-Sep-06 15:35
Kasic Slobodan19-Sep-06 15:35 
AnswerRe: XPath expression problem... Pin
Stefan Troschuetz19-Sep-06 22:05
Stefan Troschuetz19-Sep-06 22:05 
GeneralRe: XPath expression problem... Pin
Kasic Slobodan20-Sep-06 0:31
Kasic Slobodan20-Sep-06 0:31 
QuestionDeveloping a voice chat application Pin
amor5019-Sep-06 15:02
amor5019-Sep-06 15:02 
AnswerRe: Developing a voice chat application Pin
Andrei Ungureanu19-Sep-06 19:40
Andrei Ungureanu19-Sep-06 19:40 
GeneralRe: Developing a voice chat application Pin
amor5020-Sep-06 14:30
amor5020-Sep-06 14:30 
Questionproblem using VC++ DLL in VC# Pin
saania khan19-Sep-06 13:42
saania khan19-Sep-06 13:42 
Hi,

I am trying to create and then use a VC++ DLL in C#. I created the DLL in Visual Studio 2005. I just built the dll without adding any function of mine to it. That is, it is a dll that exports symbols and has the following pre-defined export symbols/functions.


// This is an example of an exported variable

TEST_API int ntest=0;

// This is an example of an exported function.

TEST_API int fntest(void)

{

return 42;

}

where,

#define TEST_API __declspec(dllexport)

Then I created a simple VC# empty project ( in Visual Studio 2005) and added the class "test" to it. When I add the VC++ dll as a reference I get this error .... "A reference to "../test.dll" could not be added. Please make sure that the file is accessible, that it is a valid assembly or COM component".

Even though I dont think it needs a conversion from COM to COM+, I even tried doing "tlbimp". I went to the command prompt for Visual Studio 2005, followed the path to where my dll resides and used the tlbimp command. But I got the error that test.dll is not a valid type library.


Someone told me that I need to register the dll using regsrv32 and it would show in my COM list when I am adding it as a reference. But that didnt work either. When I run the regsrv32, I get the error message as "..\test.dll was loaded, but the DLLRegisterServer entry point was not found" ...


I just want to know that what is it that I am doing wrong? Is there something else that I should be doing ?



All I did for creating the test.dll was ...... I went to File->New->Project. Under Visual C++ I selected Win32 and then Win32 Project. In the Application settings I selected the DLL and then checked the export symbol box. I simply built the project and was trying to use it.



Thanks for your time.

Saania

AnswerRe: problem using VC++ DLL in VC# Pin
Christian Graus19-Sep-06 13:54
protectorChristian Graus19-Sep-06 13:54 
QuestionRe: problem using VC++ DLL in VC# Pin
saania khan21-Sep-06 19:44
saania khan21-Sep-06 19:44 
AnswerRe: problem using VC++ DLL in VC# Pin
Christian Graus21-Sep-06 19:51
protectorChristian Graus21-Sep-06 19:51 
GeneralRe: problem using VC++ DLL in VC# Pin
saania khan22-Sep-06 11:43
saania khan22-Sep-06 11:43 
QuestionWork with voice applications Pin
Charlesmaster19-Sep-06 11:57
Charlesmaster19-Sep-06 11:57 
QuestionHave anyone done this problem before Pin
tmn11419-Sep-06 11:42
tmn11419-Sep-06 11:42 
AnswerRe: Have anyone done this problem before Pin
Christian Graus19-Sep-06 11:45
protectorChristian Graus19-Sep-06 11:45 
GeneralRe: Have anyone done this problem before Pin
tmn11420-Sep-06 11:05
tmn11420-Sep-06 11:05 
Questiongetting an HTMLInputElement using mshtml.dll Pin
Green Fuze19-Sep-06 11:16
Green Fuze19-Sep-06 11:16 
AnswerRe: getting an HTMLInputElement using mshtml.dll Pin
Nick Parker19-Sep-06 11:46
protectorNick Parker19-Sep-06 11:46 
GeneralRe: getting an HTMLInputElement using mshtml.dll Pin
Green Fuze20-Sep-06 13:14
Green Fuze20-Sep-06 13:14 
Questionautocomplete inside a datagrid Pin
pcflasch19-Sep-06 9:59
pcflasch19-Sep-06 9:59 
AnswerRe: autocomplete inside a datagrid Pin
Nafiseh Salmani19-Sep-06 23:26
Nafiseh Salmani19-Sep-06 23:26 
GeneralRe: autocomplete inside a datagrid Pin
pcflasch20-Sep-06 3:31
pcflasch20-Sep-06 3:31 
GeneralRe: autocomplete inside a datagrid Pin
pcflasch20-Sep-06 3:33
pcflasch20-Sep-06 3:33 
QuestionBuilding unused methods in a class Pin
Nadia Monalisa19-Sep-06 9:04
Nadia Monalisa19-Sep-06 9:04 
AnswerRe: Building unused methods in a class Pin
Dave Kreskowiak19-Sep-06 9:29
mveDave Kreskowiak19-Sep-06 9:29 

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.