Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

Jared Parsons

@Jared Parsons
About
Posts
137
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Laptop keeps losing its Power scheme...
    J Jared Parsons

    Are you running as a limited user (i.e. Non-administrator). If so that's your issue. Do a search for LUA and laptop and it should take you to the correct sites. Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    The Lounge help question

  • Open/Close Forms VB.Net
    J Jared Parsons

    What is Me in this case? What happens if you take out the Me.Hide() statement? Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    Visual Basic csharp question

  • Get User Name
    J Jared Parsons

    The code snippet that was posted will give you the name of the user running the process. It is usually but not always the person who is logged in. Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    Visual Basic

  • Open/Close Forms VB.Net
    J Jared Parsons

    Can you post some sample code? Just the body where you open up the child forms should do the trick Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    Visual Basic csharp question

  • @^@ how to handle a pointer returned by a COM interface
    J Jared Parsons

    Two problems are jumping out at me.

    1. I don't think that it's legal for a COM method to return void* without a specification of a custom marshaller. Otherwise it's impossible for COM to figure out how to Marshal the data between processes and/or apartments. Then again I'm not a COM expert so one of them might want to chirp in here.
    2. Shouldn't the COM method be returning an HRESULT? Otherwise how do you detect failure?

    Also, can you post the implementation of the COM interface or at least the Print method? And how did you aquire the rptsource variable (please post that code as well). Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    C# csharp com tutorial question

  • @^@ how to handle a pointer returned by a COM interface
    J Jared Parsons

    Can you post your C# code and the IDL? Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    C# csharp com tutorial question

  • Toolbox Bug
    J Jared Parsons

    Try right clicking on the toolbox and selecting "Reset Toolbox" or something along those lines Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    C# help tutorial question

  • @^@ how to handle a pointer returned by a COM interface
    J Jared Parsons

    dragooooon lee wrote:

    my COM was built in pure unmanaged code.I can't use AllocCoTaskMem,can I?

    You can use Marashal.AllocCoTaskMem(). But I don't think that applies in this case since this is purely managed. I assumed your example was in C++. I believe that since it's all managed the CLR marshaller will do the dirty work. I haven't every written a purely managed COM interface implemenation though so I would check some documenation. Can you post the IDL file for the COM interface? That would help out a bit. Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    C# csharp com tutorial question

  • @^@ how to handle a pointer returned by a COM interface
    J Jared Parsons

    Also, is it legal for void* to be an [out] parameter to a COM interface? IIRC this is not legal since COM would be unable to marshal the underlying data. Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    C# csharp com tutorial question

  • @^@ how to handle a pointer returned by a COM interface
    J Jared Parsons

    If this is COM you can't pass back memory allocated by new. You need to allocate the char array with AllocCoTaskMem(). After that you should just be able to to a Marshal.PtrToStringAnsi() call on the value. Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    C# csharp com tutorial question

  • 64 or 32 bit
    J Jared Parsons

    Or better yet IntPtr.Size. That looks like the right approach though. Thanks! Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    C# csharp com

  • 64 or 32 bit
    J Jared Parsons

    Divyang Mithaiwala wrote:

    if it is 4 byte then 32 bit machine & if 8 byte then 64 bit machine. For my 32 bit machine it is 4.

    That doesn't work in C# because int is guaranteed to be 4 bytes regardless of the architecture. Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    C# csharp com

  • 64 or 32 bit
    J Jared Parsons

    How can you determine at run time in C# if you're running on a 32 or 64 bit machine Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    C# csharp com

  • 'Ya know what I hate...?
    J Jared Parsons

    It took a lot of frustration but now I just walk into their office and shut the phone off for them. You'd be suprised at how effectively that teaches them to take their phone with them or shut the thing off Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    The Lounge com question announcement

  • Bad Decisions
    J Jared Parsons

    Graham Bradshaw wrote:

    Did you move house today, too?

    Nah. On Fridays I take a longer route home because I can take the Burt Gilman/Lake River Sammamish trail almost all the way home. It's 4 miles longer than my normal route but much more enjoyable. Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    The Lounge com

  • Bad Decisions
    J Jared Parsons

    This falls under the category of "Well that should have been blatantly obvious" but I did it anyways. Ingredients: - 10 mile bike in the morning to work - 14 mile bike ride home in the evening - Walked in the door ate half a bag of chips and washed it down with a couple of beers and no water Result: - Some painful headache time on the couch with my wife rightfully laughing at me Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    The Lounge com

  • Changing Project Properties
    J Jared Parsons

    Not easily. The best bet would be to create a SmartDevices project and copy over the files that you need Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    C# csharp question learning

  • Another question about source control tools
    J Jared Parsons

    Luis Alonso Ramos wrote:

    Everyone always talks about Subversion here (and TortoiseSVN)... is it really that good?

    That depends :) For those of us who are quite enthusiastic about source code control so much that we use it at home it's great. It's free and it does almost everything you could want a source control system to do. Part of the reason a lot of us feel that it's great is that we've been stuck using CVS up until Subversion. The major downfall of subversion IMHO is the hosting solutions. If you want to host Subversion yourself you must either 1) Host it through Apache 2) Host it via SSH However it's also great to just get someone else to host it for you. I prefer www.wush.net. Cheap, efficient and great uptime. Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    The Lounge tools question html database com

  • severance packages
    J Jared Parsons

    DavidCrow wrote:

    These are usually referred to as "golden parachutes."

    That term is expanding a bit. It now includes pretty much any situation where the company gives an employee a significant amount of money to mitigate them leaving the company. Executives just get it guaranteed Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    The Lounge question career

  • Virtual Memory
    J Jared Parsons

    Saksida Bojan wrote:

    I have made a little mistake. When i looked i can set up to 4096MB maximum on each partition,

    My guess is that you can only use 4096 MB since that is all that is addressable with your processor (32Bit ~= 4 Gig). I bet you can make it quite a bit higher on a 64 Bit machine Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]

    System Admin question performance lounge
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups