Click here to Skip to main content
15,908,842 members
Home / Discussions / C#
   

C#

 
QuestionTranslate DLL (C++ 6.0 to C#.NET) Pin
gr196726-Aug-05 2:09
gr196726-Aug-05 2:09 
Hello,

I will try to translate next dll written with
MS Visual Studio C++ 6.0 to MS Visual Studio 2003 C#.NET
I need this (example) DLL to communicate with a industrial robot.

The steps for making this application in C++ 6.0
Step1:
Make new file and select "Win32 Dynamic Link Library"
Select "A simple DLL project"
Step2:
Make MyDll.cpp
// MyDll.cpp : Defines the entry point for the DLL application.<br />
//<br />
<br />
#include "stdafx.h"<br />
<br />
BOOL APIENTRY DllMain( HANDLE hModule, <br />
                       DWORD  ul_reason_for_call, <br />
                       LPVOID lpReserved<br />
		      )<br />
{<br />
    return TRUE;<br />
}<br />
<br />
//  Add Function<br />
long _stdcall MyDllAdd(long a, long b)<br />
{<br />
	return a + b;<br />
}

Step3:
Make DEF file: Select "File | New" and create "Text file" called MyDll.def
EXPORTS<br />
    MyDllAdd

Step4:
Build the DLL and place it in "C:\Winnt\system32"

Now I will make the same DLL with C#.NET and distribute to the robot PC
with Windows NT SP4
Can somebody help me...
AnswerRe: Translate DLL (C++ 6.0 to C#.NET) Pin
Daniel Turini26-Aug-05 2:17
Daniel Turini26-Aug-05 2:17 
AnswerRe: Translate DLL (C++ 6.0 to C#.NET) Pin
Andrew Kirillov26-Aug-05 2:28
Andrew Kirillov26-Aug-05 2:28 
QuestionControls Flicker(Please Help If You Have Solution) Pin
Navees Ahmed26-Aug-05 2:04
Navees Ahmed26-Aug-05 2:04 
AnswerRe: Controls Flicker(Please Help If You Have Solution) Pin
sreejith ss nair26-Aug-05 3:13
sreejith ss nair26-Aug-05 3:13 
QuestionHow to serialize a set of classes? Pin
bouli26-Aug-05 0:38
bouli26-Aug-05 0:38 
AnswerRe: How to serialize a set of classes? Pin
Daniel Turini26-Aug-05 2:09
Daniel Turini26-Aug-05 2:09 
GeneralRe: How to serialize a set of classes? Pin
bouli26-Aug-05 6:37
bouli26-Aug-05 6:37 
Question.NET Dependency Viewer Pin
MrEyes25-Aug-05 23:46
MrEyes25-Aug-05 23:46 
AnswerRe: .NET Dependency Viewer Pin
Duncan Edwards Jones26-Aug-05 0:11
professionalDuncan Edwards Jones26-Aug-05 0:11 
AnswerRe: .NET Dependency Viewer Pin
eggie526-Aug-05 7:06
eggie526-Aug-05 7:06 
Questionhow to send sms using c#.net Pin
Anonymous25-Aug-05 22:09
Anonymous25-Aug-05 22:09 
AnswerRe: how to send sms using c#.net Pin
Blashyrkh#25-Aug-05 22:33
Blashyrkh#25-Aug-05 22:33 
AnswerRe: how to send sms using c#.net Pin
Luis Alonso Ramos26-Aug-05 3:47
Luis Alonso Ramos26-Aug-05 3:47 
QuestionRe: how to send sms using c#.net Pin
eggie526-Aug-05 7:15
eggie526-Aug-05 7:15 
AnswerRe: how to send sms using c#.net Pin
Luis Alonso Ramos26-Aug-05 16:27
Luis Alonso Ramos26-Aug-05 16:27 
AnswerRe: how to send sms using c#.net Pin
eggie526-Aug-05 7:07
eggie526-Aug-05 7:07 
GeneralRe: how to send sms using c#.net Pin
surfman1926-Aug-05 13:21
surfman1926-Aug-05 13:21 
GeneralRe: how to send sms using c#.net Pin
eggie526-Aug-05 13:41
eggie526-Aug-05 13:41 
GeneralRe: how to send sms using c#.net Pin
sajikp28-Aug-05 20:24
sajikp28-Aug-05 20:24 
GeneralRe: how to send sms using c#.net Pin
sajikp28-Aug-05 22:12
sajikp28-Aug-05 22:12 
GeneralRe: how to send sms using c#.net Pin
eggie526-Aug-05 13:50
eggie526-Aug-05 13:50 
QuestionProblem with C# and Stored procedure Pin
kbalias25-Aug-05 21:34
kbalias25-Aug-05 21:34 
AnswerRe: Problem with C# and Stored procedure Pin
jdkulkarni26-Aug-05 0:13
jdkulkarni26-Aug-05 0:13 
GeneralRe: Problem with C# and Stored procedure Pin
Not Active26-Aug-05 3:15
mentorNot Active26-Aug-05 3:15 

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.