Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
| Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 24th, 2005, 02:34 PM
Registered User
 
Join Date: Jan 2005
Location: singapore, singapore, Singapore.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Lookie
Default How to read C# IntPtr struct in Win32 API

Hi Guys, I do not know if this is the right place to ask this but here goes,

In C# when i declare to use the freelibrary method i would do this:

[DllImport("kernel32.dll")]
public static extern bool FreeLibrary(IntPtr module);

in vb6 this:

Public Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long

Now my question is whether the IntPtr struct is the same as the Long data type?

  #2 (permalink)  
Old February 24th, 2005, 07:29 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

basically yes, they are both int32
Marco


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between win32 API and FCL adie BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 0 July 26th, 2007 05:56 PM
Win32 API Programming visit_anand_it Visual C++ 2 September 7th, 2004 11:46 PM
how to use win32 API? csc820203 C# 1 June 23rd, 2004 02:12 AM
Fonts going crazy (win32 API GUI) afradley C++ Programming 0 April 10th, 2004 09:09 AM
Need help in writing a C program using win32 API rameshbabumv C++ Programming 0 March 10th, 2004 05:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.