Results 1 to 18 of 18

Thread: [2005] Help with this dll???

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    [2005] Help with this dll???

    Hello i have downloaded a Windows Live Messanger SDK Client...

    It contains an example of a program which allows you to log in, go into the options of your msn etc...

    I quickly loocked through the code, it was in C++ which i dont know very well, i found that at the top of the C++ page it said 'using' and then a name. I then tried to do the following to explore the features.

    vb Code:
    1. Imports Microsoft.WindowsLive.Id 'C:\Program Files\Common Files\Microsoft Shared\WLIDClient\Microsoft.WindowsLive.Id.Client.dll
    2.  
    3. Public Class Form1
    4.     Friend Identity As Microsoft.WindowsLive.Id.Client.Identity
    5.     Friend IDManager As Microsoft.WindowsLive.Id.Client.IdentityManager
    6.     Friend LogOnExpection As Microsoft.WindowsLive.Id.Client.WLLogOnException
    7.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    8.  
    9.     End Sub
    10. End Class

    I wrote Identity then wrote a . to see the features. I was having trouble with them... I don't understand how to retrieve the users username. Does the user have to bo on to use this function?... I had a bit of trouble understanding...

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [2005] Help with this dll???

    I'm bookmarking this thread as it's interesting... I didn't know there was a Messenger SDK... this might be of some use.... I don't have an answer for you - at least not yet, but I'm willing to take a look at it and see what I can do.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Help with this dll???

    If all the code was C++ then I can only assume that the SDK contains unmanaged libraries. If that is so then you'll have to call the functions they contain like Windows API functions. If they are .NET assemblies then you need to reference them before you can make use of the namespaces and types they contain.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Help with this dll???

    I would also confirm you can even use VB.. everything I see points to C#.

    My initial guess would be you CAN use VB, but you will only find C# example codes, but sometimes certain APIs/Frameworks don't support VB (like XNA and Micro). I see less frameworks support VB than APIs though, so as long as you do reference managed libraries as John said, you should be fine.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Help with this dll???

    Ah, kleinma might be onto something there. Was the code you saw actually C++ or was it really C#?

    Also, looking more closely at what you were trying to do in the first post indicates that you don't know what Imports does. Like the 'using' statement in C#, Imports simply imports a namespace into your project or code file so that you can refer to its members unqualified in code. You import namespaces, not libraries. In order to be able to import a namespace you first have to reference a library in which a member of that namepspace is declared. You do that on the References tab of the project properties, where you can also add project-wide Imports.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: [2005] Help with this dll???

    Quote Originally Posted by kleinma
    ...but sometimes certain APIs/Frameworks don't support VB (like XNA and Micro).
    Really? I haven't had any trouble using XNA with VB.NET. Sure, all the examples are in C# though and it's a serious pain to install the package (install C#, install C# SP1, install XNA Game Studio, remove C#).

    I'm downloading the Messenger SDK as well to have a look.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  7. #7
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Help with this dll???

    Even though it is undocumented (or poorly documented). I found a cool trick (well a MS dev told me, I didnt really find it)

    You can alias project level imports like you can at module level..

    So you can do a project level imports like:

    SHORTNAME = REALLY.LONG.NAMESPACE.FOR.SOME.DLL

    And then SHORTNAME is mapped to REALLY.LONG.NAMESPACE.FOR.SOME.DLL on the project level.

    Sort of off topic, but I think its a cool feature...

  8. #8
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Help with this dll???

    Quote Originally Posted by Jenner
    Really? I haven't had any trouble using XNA with VB.NET. Sure, all the examples are in C# though.

    I'm downloading the Messenger SDK as well to have a look.
    While you can reference VB.NET code from XNA, or you can reference XNA libraries from VB, you can not create an actual XNA application without using C# to host the content pipeline for an XNA application. You need at least SOME C# from everything I have seen and done.

    If you have some way to do XNA in PURE VB, then please let me know, as MS has also told me it is not possible...

  9. #9
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: [2005] Help with this dll???

    I call the XNA libraries from VB.NET directly. I can then use pretty much everything XNA has to offer in VB.NET.

    Yea, the content pipeline is messy because VB.NET doesn't do the fancy schmancy auto-conversion of things like texture objects to assets (XNB files). MSBuild is what is doing the conversion, but it only understands .csproj files when it does it. So, you got two options... first is to just make an XNA project in C#, copy in all your textures, meshes, etc, compile it, and take all the resulting asset files and copy them into you VB.NET project.

    You're essentially using C# as a conversion program. The problem is, you gotta do it every time you want to add assets to your game. So, you take the clever way... you write a little VB.NET project that builds .csproj files with your texture files and pumps them through MSBuild. If it finds a new texture graphic in your graphics directory for example that it doesn't have an asset for, it pumps it through the routine, MSBuild happily provides you with the XNB file in it's proper place, and then you can compile your game and run it as normal.

    You're still cheating since you're using C# Project files, but hey, it works. In Pure VB.NET without any C# trickery? No, you're right, there's no way because the developers of XNA were shortsighted and went completely against the Microsoft philosophy that .NET would be universal and all of it's languages would be able to be used interchangeably.

    As a side note, that alias trick is pretty sweet.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  10. #10
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Help with this dll???

    Are you a member of the creators club? If so, have you tried to deploy such a created exe to the 360 to see if it works? It may only work on the PC using those work arounds. I would be interested to know. In better news, we may actually see XNA support with VB at some point.

  11. #11
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [2005] Help with this dll???

    Fyi, the Microsoft.WindowsLive SDK is an .Net 2.0 library and not unmanaged C++.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  12. #12
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Help with this dll???

    I don't think MS is really putting out any SDKs which don't contain managed code these days, save maybe the Windows SDK, which still does have managed code stuff in it, but also is highly geared towards native code still.

    I mean MS doesn't really want anyone developing applications in the unmanaged world anymore, they just also know its impossible at the moment.

  13. #13
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: [2005] Help with this dll???

    That's the other thing, the XNA trick won't work on the Xbox, but considering I don't have an Xbox, and don't have any plans ever to pick up one of the hunks of red-ringing junk, I personally could care less (perfectly content with my PS3 and making games for PCs).

    I believe the reason for this is when XNA is sent to an Xbox, it's compiled for Compact Framework 2.0 and there are certain specialty things the compiler does and only does to C# code with XNA when running on an Xbox.

    The only reason I even use XNA is because it's nicer than Managed DirectX and Microsoft obsoleted Managed DirectX in favor of XNA Game Studio; and both are 1000x better than GDI+ .
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  14. #14
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Help with this dll???

    If you keep the content pipeline in a C# project, but use VB for everything else, you can deploy to the 360 and it will work.

    As far as RROD, I have had my 360 for about a year now and not so much as a hiccup from it. All my friends that have had RROD issues seemed to always be keeping their 360 in some super tight space with no breating room where they would get super hot.. I keep mine in a nice open space with plenty of air around it.

    I guess this is all besided the point and a bit off topic though...

  15. #15

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: [2005] Help with this dll???

    I understand what Imports do. When i wrote my post it just came out wrong. I have referenced it already, and i imported the namespace as you can see.

    It was written in: C#

    Here is a link to the Microsoft Download Page.
    http://www.microsoft.com/downloads/d...displaylang=en

  16. #16
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Help with this dll???

    so do you have things resolved? Now reading your original question, and knowing you do have managed assmblies referenced, it sounds like you really just are looking for some help working with the SDK?

    Since that is sort of a specialized SDK, I doubt too many people on here have developed against it (at least to any real extent). You may just need to go through the examples even if they are in C#. Use an online code converter to convert them to VB.NET.

  17. #17

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: [2005] Help with this dll???

    Quote Originally Posted by kleinma
    so do you have things resolved? Now reading your original question, and knowing you do have managed assmblies referenced, it sounds like you really just are looking for some help working with the SDK?

    Since that is sort of a specialized SDK, I doubt too many people on here have developed against it (at least to any real extent). You may just need to go through the examples even if they are in C#. Use an online code converter to convert them to VB.NET.
    Yes i was basicly seeking help on the SDK. I will find examples then I will just use a C# conveter on the web.

  18. #18
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Help with this dll???

    Don't get the impression you won't get ANY help on here, just it is less likely you will find specific help on a specific SDK topic.

    Here is the code converter I use most of the time, it is pretty good.

    http://labs.developerfusion.co.uk/co...arp-to-vb.aspx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width