.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 8th, 2013, 05:34 AM
crackerweb crackerweb is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Posts: 879 crackerweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 9 h 3 m 32 sec
Reputation Power: 11
Exclamation System.EntryPointNotFoundException

Hi

I need to reuse a script in VB6 that decrypts and encrypts to be able to use it in VB.NET projects. I made as an ActiveX DLL, I tried referencing it but .NET won't accept it. I tried DLLImport but i'm getting 'System.EntryPointNotFoundException' Error.

I tried adding a module in the dll then recompiling it again and had a startup of SubMain but still the same error exists.

Below is my code using VB.NET:
Imports System.Runtime.InteropServices

Public Class Form1
<DllImport("prj_MFEE_CRYPT_DECRYPT.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Private Shared Function Crypt(ByVal s_text As String) As String

End Function

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim c_str As String
c_str = Crypt("phoenix")
Debug.Print(c_str)
End Sub

Anyone knows what I'm missing?
Thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > System.EntryPointNotFoundException

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap