Forum

C++ builder da DLL ...
 
Bildirimler
Hepsini Temizle

C++ builder da DLL yapma.....

2 Yazılar
2 Üyeler
0 Likes
452 Görüntüleme
(@Emin1)
Gönderiler: 3
Active Member
Konu başlatıcı
 

Merhaba arkadaslar, elimde C++ 5 builderda yazilmis bir kod var. Bu kodu DLL e cevirip labview denen bir programdan cagirmam lazim.....


Bir siteden gordugum stepleri takip ederek DLL e cevirdim. Ancak labview DLL i gordugu ve run ettigi halde sadece yazilacak olan text file i veriyor. Icinde hic bir hesaplama yok text file in.....


Bu konu hakkinda bana kim yardimci olabilir. Tecrubesi olan veya bana yardimci olabilecek olan varmi? Cunku cok az bir surem kaldi.....


 


Benim DLL e cevirmek uzereyken kodun hali soyle...Burda  ki extern functionuyla galiba export ediliyor.


 

#include <vcl.h>
#include <windows.h>
#include <conio.h>
#include <stdio.h>
#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>
#include <math.h>
#pragma hdrstop
//---------------------------------------------------------------------------
// Important note about DLL memory management when your DLL uses the
// static version of the RunTime Library:

// If your DLL uses the dynamic version of the RTL, you do not need to
// explicitly add MEMMGR.LIB as this will be done implicitly for you
//---------------------------------------------------------------------------

#pragma argsused
extern "C" __declspec(dllexport)void mainProgram(double finalDepth, double casingSettingDepth, double casingID, double casingOD,
double holeSize, double drillPipeID, double drillPipeOD , double drillCollarID,
double drillCollarOD, double drillCollarLength, double pipeThermalConductivity,
double bitDiameter, double numberOfNozzles, double nozzleSize, int fluidType,
double waterDensity, double plasticViscosityWater, double yieldPointWater,
double jouleThompsonCoefficientWater, double waterThermalConductivity, double waterSpecificHeat,
double flowRateFluid, double flowRateWater, double massRateAbrasives, double densityAbrasives,
double fluidInletTemperature, double backPressure, double surfaceTemperature,
double temperatureGradient, double formationThermalConductivity, double formationSpecificHeat,
double formationDensity, double cuttingsSize, double ROP, double influxDepth,
double formationPressureGradient, double prIndex, double influxDensity);

int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved)
{
return 1;

} 


 


Saygilar..... 


 

 
Gönderildi : 17/05/2011 00:37

(@tayfundeger)
Gönderiler: 1935
VMware Guru
 

Sorununuzu çözdüyseniz, çözümüde bizimle paylaşırmısınız.

Tayfun DEĞER
Cisco Champions, vExpert, VCP4/5/6, VCP5-DT, VCP-Cloud
https://www.tayfundeger.com
Mail: [email protected]

 
Gönderildi : 03/06/2011 18:20

Paylaş: