Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
QuestionPhysicalMedia instead of LogicalDisk Pin
simplicitylabs10-May-07 10:32
simplicitylabs10-May-07 10:32 
AnswerRe: PhysicalMedia instead of LogicalDisk Pin
Dave Kreskowiak10-May-07 10:40
mveDave Kreskowiak10-May-07 10:40 
GeneralRe: PhysicalMedia instead of LogicalDisk Pin
simplicitylabs10-May-07 10:59
simplicitylabs10-May-07 10:59 
GeneralRe: PhysicalMedia instead of LogicalDisk Pin
Dave Kreskowiak10-May-07 12:41
mveDave Kreskowiak10-May-07 12:41 
GeneralRe: PhysicalMedia instead of LogicalDisk Pin
simplicitylabs10-May-07 14:00
simplicitylabs10-May-07 14:00 
Questionreference c++ dll from c# Pin
donovan.solms10-May-07 10:31
donovan.solms10-May-07 10:31 
AnswerRe: reference c++ dll from c# Pin
donovan.solms10-May-07 12:20
donovan.solms10-May-07 12:20 
GeneralRe: reference c++ dll from c# Pin
donovan.solms10-May-07 12:59
donovan.solms10-May-07 12:59 
got it working with dllimport but cannot get it to call a c++ method

c#code :
<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using System.Runtime.InteropServices;<br />
<br />
<br />
namespace ConsoleApplication2<br />
{<br />
    class Program<br />
    {<br />
        static void Main(string[] args)<br />
        {<br />
            int mine = tester();<br />
            Console.WriteLine(mine);<br />
            <br />
        }<br />
<br />
        [DllImport("touchlib.dll", EntryPoint = "tester",<br />
        ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)]<br />
        static extern int tester();<br />
    }<br />
<br />
<br />
}<br />


c++ code
<br />
int Touchable::tester()<br />
{<br />
	return 5;<br />
}


rather have something you don't need, than need something you don't have

GeneralRe: reference c++ dll from c# Pin
Luc Pattyn10-May-07 13:43
sitebuilderLuc Pattyn10-May-07 13:43 
GeneralRe: reference c++ dll from c# Pin
donovan.solms10-May-07 14:06
donovan.solms10-May-07 14:06 
GeneralRe: reference c++ dll from c# Pin
Luc Pattyn10-May-07 15:06
sitebuilderLuc Pattyn10-May-07 15:06 
GeneralRe: reference c++ dll from c# Pin
donovan.solms11-May-07 10:26
donovan.solms11-May-07 10:26 
GeneralRe: reference c++ dll from c# Pin
Luc Pattyn11-May-07 11:01
sitebuilderLuc Pattyn11-May-07 11:01 
GeneralRe: reference c++ dll from c# Pin
donovan.solms11-May-07 11:11
donovan.solms11-May-07 11:11 
QuestionAn algorithm Pin
mehrdadc4810-May-07 10:02
mehrdadc4810-May-07 10:02 
AnswerRe: An algorithm Pin
Giorgi Dalakishvili10-May-07 10:17
mentorGiorgi Dalakishvili10-May-07 10:17 
AnswerRe: An algorithm Pin
LongRange.Shooter10-May-07 10:27
LongRange.Shooter10-May-07 10:27 
QuestionWindows Form Table Pin
Anka_Ame10-May-07 8:44
Anka_Ame10-May-07 8:44 
AnswerRe: Windows Form Table Pin
SimulationofSai10-May-07 8:54
SimulationofSai10-May-07 8:54 
AnswerRe: Windows Form Table Pin
Drew McGhie10-May-07 9:53
Drew McGhie10-May-07 9:53 
QuestionReturn a string to a literal Pin
snorkie10-May-07 8:38
professionalsnorkie10-May-07 8:38 
AnswerRe: Return a string to a literal Pin
SimulationofSai10-May-07 8:53
SimulationofSai10-May-07 8:53 
QuestionRe: Return a string to a literal Pin
snorkie10-May-07 10:21
professionalsnorkie10-May-07 10:21 
AnswerRe: Return a string to a literal Pin
Guffa10-May-07 11:57
Guffa10-May-07 11:57 
QuestionClickOnce deploy Pin
alex.almeida10-May-07 8:05
alex.almeida10-May-07 8:05 

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.