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/[^]
Jared Parsons
Posts
-
Laptop keeps losing its Power scheme... -
Open/Close Forms VB.NetWhat is Me in this case? What happens if you take out the Me.Hide() statement? Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]
-
Get User NameThe 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/[^]
-
Open/Close Forms VB.NetCan 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/[^]
-
@^@ how to handle a pointer returned by a COM interfaceTwo problems are jumping out at me.
- 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.
- 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/[^]
-
@^@ how to handle a pointer returned by a COM interfaceCan you post your C# code and the IDL? Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]
-
Toolbox BugTry right clicking on the toolbox and selecting "Reset Toolbox" or something along those lines Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]
-
@^@ how to handle a pointer returned by a COM interfacedragooooon 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/[^]
-
@^@ how to handle a pointer returned by a COM interfaceAlso, 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/[^]
-
@^@ how to handle a pointer returned by a COM interfaceIf 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/[^]
-
64 or 32 bitOr better yet IntPtr.Size. That looks like the right approach though. Thanks! Jared Parsons jaredp@beanseed.org http://jaredparsons.blogspot.com/[^]
-
64 or 32 bitDivyang 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/[^]
-
64 or 32 bitHow 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/[^]
-
'Ya know what I hate...?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/[^]
-
Bad DecisionsGraham 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/[^]
-
Bad DecisionsThis 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/[^]
-
Changing Project PropertiesNot 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/[^]
-
Another question about source control toolsLuis 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/[^]
-
severance packagesDavidCrow 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/[^]
-
Virtual MemorySaksida 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/[^]