Click here to Skip to main content
15,902,854 members
Home / Discussions / C#
   

C#

 
Generalhelp me to get the RGB from panel Pin
romantic boy29-Jun-05 2:23
romantic boy29-Jun-05 2:23 
GeneralRe: help me to get the RGB from panel Pin
romantic boy29-Jun-05 4:22
romantic boy29-Jun-05 4:22 
GeneralRe: help me to get the RGB from panel Pin
Judah Gabriel Himango29-Jun-05 8:48
sponsorJudah Gabriel Himango29-Jun-05 8:48 
GeneralRe: help me to get the RGB from panel Pin
romantic boy29-Jun-05 11:12
romantic boy29-Jun-05 11:12 
GeneralRe: help me to get the RGB from panel Pin
Judah Gabriel Himango29-Jun-05 12:09
sponsorJudah Gabriel Himango29-Jun-05 12:09 
GeneralRe: help me to get the RGB from panel Pin
Dave Kreskowiak29-Jun-05 12:10
mveDave Kreskowiak29-Jun-05 12:10 
GeneralProblem with Selected Index in list box Changing when Updating a record Pin
trent2229-Jun-05 2:19
trent2229-Jun-05 2:19 
Generaladd reference to VS6 dll in c# application Pin
johniboy29-Jun-05 2:10
sussjohniboy29-Jun-05 2:10 
I created an C++ MFC Dll project and am trying to call a function in the dll from a C# Class Library project using DllImport.

I seem to remember that when using DllImport you have to also add a reference to the dll in the project you're using it in. When I go to add a refernce to my MFC.dll in the C# Class Library references I get this error:

"A reference to '[path to my dll]mfc.dll' could not be added. This is not a valid assembly or COM component. Only assemblies with extension 'dll' and COM components can be referenced. Please make sure that the file is accessible, and that it is a valid assembly or COM component."

I can clearly see that the dll I'm trying to reference is in fact a .dll so I'm wondering - is the problem that it is *not* a valid assembly or COM component? How would you tell if it is or is not? If anyone has any ideas about what may be causing the error, how to fix it i.e. how to add a reference to that dll, or why what I'm trying to do won't work it would be much appreciated.
GeneralRe: add reference to VS6 dll in c# application Pin
Michael P Butler29-Jun-05 3:51
Michael P Butler29-Jun-05 3:51 
GeneralRe: add reference to VS6 dll in c# application Pin
mav.northwind29-Jun-05 3:54
mav.northwind29-Jun-05 3:54 
GeneralRe: add reference to VS6 dll in c# application Pin
Dave Kreskowiak29-Jun-05 3:57
mveDave Kreskowiak29-Jun-05 3:57 
GeneralEnum matching Pin
ppp00129-Jun-05 0:59
ppp00129-Jun-05 0:59 
GeneralRe: Enum matching Pin
Roland Bär29-Jun-05 1:21
Roland Bär29-Jun-05 1:21 
GeneralSerializing a heterogenous objects Pin
Rassul Yunussov29-Jun-05 0:19
Rassul Yunussov29-Jun-05 0:19 
GeneralRe: Serializing a heterogenous objects Pin
S. Senthil Kumar29-Jun-05 3:06
S. Senthil Kumar29-Jun-05 3:06 
GeneralRe: Serializing a heterogenous objects Pin
Rassul Yunussov29-Jun-05 8:40
Rassul Yunussov29-Jun-05 8:40 
GeneralError In Accessing Excel Application Pin
Raj_deepak29-Jun-05 0:00
Raj_deepak29-Jun-05 0:00 
Generaltrying to add visual studio 6 dll in c# app Pin
johniboy28-Jun-05 23:11
sussjohniboy28-Jun-05 23:11 
Generalcel Sheet Excel Application Pin
Raj_deepak28-Jun-05 22:45
Raj_deepak28-Jun-05 22:45 
GeneralRe: cel Sheet Excel Application Pin
deldeep29-Jun-05 2:53
deldeep29-Jun-05 2:53 
GeneralClosing applications gracefully Pin
_Hacker28-Jun-05 22:03
suss_Hacker28-Jun-05 22:03 
GeneralRe: Closing applications gracefully Pin
S. Senthil Kumar28-Jun-05 22:28
S. Senthil Kumar28-Jun-05 22:28 
GeneralRe: Closing applications gracefully Pin
Dylan van Heerden28-Jun-05 23:27
Dylan van Heerden28-Jun-05 23:27 
GeneralCrying for help to develop componet Pin
soft_Brains28-Jun-05 21:26
soft_Brains28-Jun-05 21:26 
GeneralRe: Crying for help to develop componet Pin
J4amieC28-Jun-05 22:18
J4amieC28-Jun-05 22:18 

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.