MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Unmanaged C++ dlls

This is a discussion on Unmanaged C++ dlls within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am tyring to create a dll which is accessable to the outside world using VC++, I've already attempted to ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2004
Junior Member
White Belt
 
Join Date: Jul 2004
Posts: 1
Unmanaged C++ dlls

I am tyring to create a dll which is accessable to the outside world using VC++, I've already attempted to do this with vb, and the problem was that the dlls could not be seen form outside i.e from rundll32. I have now resorted to VC++ as I know it is possible to expose the methods in the dlls. But Ive come accross other problems! I have already looked at the following site and it was helpful:

http://www.mp2kmag.com/a106--c++.wit....mappoint.html

However, when trying to use a win32 console project (or any other project which enables me to create a dll), I get problems.

Code:
// First we create a MapPoint _Application object and display it
		_ApplicationPtr myMapPointPtr;
		myMapPointPtr.CreateInstance( "MapPoint.Application" );

		// Get a pointer to the internal _Application object
		_Application* myMapPoint = (_Application*)myMapPointPtr;
		assert( myMapPoint!=NULL );
The assertion on the last line of the code does not hold, and the rest of the code will not run. The exact same code runs when creating an exe file.

Does anybody know how to do this, and is it at all possible? Because I'm yet to find anything useful on the net for my particular problem.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
dlls, unmanaged


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 12:22 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54