Click here to Skip to main content
15,903,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Create Structure Dynamically Pin
Luc Pattyn14-Feb-09 2:43
sitebuilderLuc Pattyn14-Feb-09 2:43 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim14-Feb-09 3:14
Samir Ibrahim14-Feb-09 3:14 
GeneralRe: Create Structure Dynamically Pin
Luc Pattyn14-Feb-09 4:58
sitebuilderLuc Pattyn14-Feb-09 4:58 
GeneralRe: Create Structure Dynamically Pin
Dave Kreskowiak15-Feb-09 3:50
mveDave Kreskowiak15-Feb-09 3:50 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim15-Feb-09 19:41
Samir Ibrahim15-Feb-09 19:41 
GeneralRe: Create Structure Dynamically Pin
Dave Kreskowiak16-Feb-09 2:11
mveDave Kreskowiak16-Feb-09 2:11 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim16-Feb-09 3:48
Samir Ibrahim16-Feb-09 3:48 
GeneralRe: Create Structure Dynamically Pin
Dave Kreskowiak16-Feb-09 13:59
mveDave Kreskowiak16-Feb-09 13:59 
First, the FLAT dll you're talking about is really a Library DLL. There are two types - normal and .NET. A .NET library DLL is not usable by Win32 functions as is because the managed code compilers in .NET don't support the proper exports required by Win32.


Samir Ibrahim wrote:
I can solve my problem by simple declare all the TYPES I want in a single module and return the TYPE I need by sending the TYPE name as parameter.


Bad idea. You normally organize the data model in individual classes or groups of classes that deal with specific parts of your data model. The concept is called encapsulation. You don't put everything in a single module and then tell some creator which type you want. Though that has its uses, it's called the Factory pattern, the way you describe it, you're violating OOP rules.

Samir Ibrahim wrote:
The Second reason, is the ability to create DLL(FLAT or COM) created by vb.net and use it in VFP if possible.


It's possible, but not as a library DLL. VB.NET and C# don't support the old Win32 exports you're inferring. You have to attribute the classes you want to expose properly so they're exposed through COM.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim17-Feb-09 5:51
Samir Ibrahim17-Feb-09 5:51 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim14-Feb-09 3:25
Samir Ibrahim14-Feb-09 3:25 
GeneralRe: Create Structure Dynamically Pin
Luc Pattyn14-Feb-09 4:54
sitebuilderLuc Pattyn14-Feb-09 4:54 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim15-Feb-09 19:46
Samir Ibrahim15-Feb-09 19:46 
GeneralRe: Create Structure Dynamically Pin
Luc Pattyn16-Feb-09 0:06
sitebuilderLuc Pattyn16-Feb-09 0:06 
QuestionSkipping Some queries and conditions Pin
jishbalan13-Feb-09 19:09
jishbalan13-Feb-09 19:09 
AnswerRe: Skipping Some queries and conditions Pin
Dave Kreskowiak14-Feb-09 1:04
mveDave Kreskowiak14-Feb-09 1:04 
GeneralRe: Skipping Some queries and conditions Pin
jishbalan14-Feb-09 5:07
jishbalan14-Feb-09 5:07 
GeneralRe: Skipping Some queries and conditions Pin
Dave Kreskowiak15-Feb-09 3:53
mveDave Kreskowiak15-Feb-09 3:53 
Question"Send and Receive message" -Threading Problem Pin
scothyhut13-Feb-09 19:03
scothyhut13-Feb-09 19:03 
AnswerRe: "Send and Receive message" -Threading Problem Pin
Dave Kreskowiak14-Feb-09 1:02
mveDave Kreskowiak14-Feb-09 1:02 
GeneralRe: "Send and Receive message" -Threading Problem Pin
scothyhut14-Feb-09 1:37
scothyhut14-Feb-09 1:37 
GeneralRe: "Send and Receive message" -Threading Problem Pin
Dave Kreskowiak15-Feb-09 3:48
mveDave Kreskowiak15-Feb-09 3:48 
QuestionThreading Pin
Cory Kimble13-Feb-09 7:11
Cory Kimble13-Feb-09 7:11 
GeneralRe: Threading Pin
Luc Pattyn13-Feb-09 7:45
sitebuilderLuc Pattyn13-Feb-09 7:45 
QuestionWhy can't I see one of the reference (dll) file name within imports? Pin
JUNEYT13-Feb-09 6:23
JUNEYT13-Feb-09 6:23 
AnswerRe: Why can't I see one of the reference (dll) file name within imports? Pin
vaghelabhavesh13-Feb-09 6:30
vaghelabhavesh13-Feb-09 6:30 

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.