dllimport


Cannot create automation object - lotusscript


I have a dll which is registered in GAC and declared in my form. I am using Notes 9 and windows 7. The declaration -
Declare Function CreateAccount Lib
"c:\Program Files (x86)\PwC\SDCADInstall\SDCADLib.dll" (sADServer As
String , sUserID As String ,sPassword As String , sRoot As String,
sLocation As String , sLoS As String , sSBU As String , sFName As
String, sLName As String , sADId As String , sDescription As String
, sOffice As String ) As String
I am getting "Cannot create automation object" error while creating the object. The parameter values are collected by another function. Pl find the code below :
Dim obj As Variant
enter code here
Set obj = CreateObject("SDCADLib.Account")
retval = obj.CreateAccount(sADServer , sUserID ,sPassword , sRoot, sLocation , sLoS , sSBU , sFName, sLName , sADId , sDescription , sOffice )
CreateADAccount = retval
I am stuck here for ages. Please help.
I'm a bit confused because you include a Lib declaration, which is not necessary if you are using CreateObject to access your DLL from LotusScript via COM.
Since you mention the GAC, I presume you have written your DLL as a .NET assembly. Have you seen this IBM Technote about calling .NET classes from LotusScript and followed the instructions there? Specifically, have you followed the instruction that tells you that you have to run regasm in order to publish your DLL via COM. Without that, CreateObject won't find it.

Related Links

Cannot create automation object - lotusscript
DllImport is not found C++
Mangled member function name different during dllimport
how to use DllImport in metro-style app
Converting doc file to post script
How can I get a COM component which can be used on Windows phone 8 project with C#
Externs and DLL imports
Mixed native and managed code heap corruption
MarshalDirectiveException
call unmanaged C++ code from C# using pinvoke
Detecting DLL Code Splicing
WOW64 Redirection and LoadLibrary
Using C# dll in Windows phone 7
Python 2.5 Import dll AttributeError
Replacing the Import Table in PE file by standart LoadLibrary
Unresolved external symbol

Categories

HOME
beautifulsoup
toolbox
spring-data-redis
seo
tail
babeljs
x264
mvc5
boto3
32bit-64bit
pcl-crypto
reactive-programming
heap
line
zerobrane
symfony-2.8
null-pointer
intershop
android-7.0-nougat
google-data-studio
production
jmp
nim
breadth-first-search
inno-download-plugin
exit
scriptella
tosca
perlbrew
definitelytyped
android-things
errbot
comparable
twiml
autodesk-designautomation
python-2.6
zend-debugger
cognos-bi
card.io
android-gridview
hard-drive
github3.py
sendbird
carriage-return
installscript
html-encode
jwplayer6
browser-extension
lubridate
swagger-php
hivemq
google-knowledge-graph
ideascript
flatmap
loading
p4merge
angular-http
wc
httrack
textsum
mongotemplate
context-sensitive-grammar
er-diagram
google-photos
cd-burning
pocketsphinx-android
pure-css
stax
redistributable
qtplugin
flex4.6
scaffolding
refinerycms
shopping
freepbx
mediametadataretriever
spreadjs
html-to-pdf
cortex-m
realsense
libvlc
character-replacement
ess
morton-number
pax-exam
dulwich
sha512
apache-commons-daemon
nsurlsessiondatatask
snackbar
zxspectrum
procedural-programming
webmatrix-3
linkedin-jsapi
lnk
clickbank
qscrollarea
cocoalibspotify-2.0
printdialog
traceability
chart-director
pdfviewer
patricia-trie
qtconcurrent
vfs
web-farm
josql
apache-whirr
database-create
predicatebuilder
wiimote
multiplatform
quotation-marks
nhprof
hbm2java
echo3
lxr
linfu-dynamicproxy
int64
httpcookie
blind

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App