|
Could be, that's one of the few things I didn't try
Meanwhile, I have included the .chm file as contents, since it fits this category as well...
Thanks,
mav
|
|
|
|
|
From various sources I believe the declaration should be...
Declare Function GetUserObjectInformation Lib "User32" Alias "GetUserObjectInformationA" (ByVal hObj As Integer, ByVal nIndex As Integer, ByRef pvInfo As Object, ByVal nLength As Integer, ByRef lpnLengthNeeded As Integer) As Integer
However, I keep getting 'Specified OLE variant is invalid' when I try to call the routine. I've found various samples for using this call from C and even one from VB but none from VB.net. Does anyone know how I should be picking up the pvInfo parameter?
Here's what I'm doing now...
Dim InputDesktopName(256) As Byte
Dim InputDesktopNameLength As Integer
Dim UOI_Name As Integer = 2
Dim x As Integer
...
x = OpenInputDesktop(0, False, 0)
GetUserObjectInformation(x, UOI_Name, InputDesktopName(0), 256, InputDesktopNameLength)
It's returning InputDeskTopLength OK so I'm pretty sure I've got the pvInfo parameter wrong.
Andy Henderson
|
|
|
|
|
Got it! the Declare statement should use "ByRef pvInfo As Byte" instead of "ByRef pvInfo As Object"
Andy
|
|
|
|
|
I need a favour from you. I am desperately hunting for a job and I have an interview for a post in .NET Software testing. I have knowledge of .NET. Now this testing is new to me. For the past two days I'm doing a lot of study on the same and now I have little knowledge of Black box/White box/Unit/Mock Testing and TDD etc. I have also downloaded NUnitASp testing tool, but unluckily it is'nt working on Web Matrix and I don't have VS.NET. Anyway I'm able to follow the coding.
Can u please give me more details on Testing on the .NET framework especially Smoke Testing, Integration testing, Component Testing etc. and also most importantly I want to know if this testing process is all automatic or do u need to do coding when it comes to large software development companies. Will it be difficult for me to follow things as I have only done three small projects on .NET on my own.
Do reply to rajupi@hotmail.com & do treat this as urgent
Regards,
Kavitha
|
|
|
|
|
Hello,
Does anyone have any idea how to (or if it's even possible) write a toolbar add in for internet explorer using C# or VB.NET?
I have found several examples / documentation in C++, which I don't know well enough to play with.
Any advice would be greatly appreciated.
Cheers,
padgett
Ps. Yes this is a cross post[^], but I didn't get much of a response so though I would ask in a different forum.
|
|
|
|
|
Padgett Rowell wrote:
Does anyone have any idea how to (or if it's even possible) write a toolbar add in for internet explorer using C# or VB.NET?
I would suggest you read the following: Command Prompt Explorer Bar[^]. There is quite a bit of COM Interop as well as P/Invoke that allows this to work but this should get you started.
- Nick Parker My Blog | My Articles
|
|
|
|
|
The article is light on documentaion but at least I now know it can be done and have a good starting point. Thanks for the pointer.
Padgett
|
|
|
|
|
Hi friends
Im in a great fix . Please help me out.
When i start my computer on booting it shows the message Box
'.NET Framework Initialization Error
C:\Windows\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll could not be loaded.'
and some of the programs on execution gives this error.
I have Windows XP Professional edition.
Initially in my system mscorwks.dll is present in
C:\Windows\Microsoft.NET\Framework\v1.0.3705\
but i copied it to the
C:\Windows\Microsoft.NET\Framework\v1.1.4322\
but then also it gives the same error
Please let me know how to fix this problem
Any pointers and help is appreciated.
Naveen
Naveen
|
|
|
|
|
Copying the wrong version of the dll (the one in \v1.0.3705\ is from the v1.0 release, not the current v1.1 Framework) won't work. Reinstall the .Net Framework 1.1 and you may find that the problem goes away.
"My kid was Inmate of the Month at Adobe Mountain Juvenile Corrections Center" - Bumper Sticker in Bullhead City
|
|
|
|
|
Hi Dear Roger
Thanx a lot for your suggestion
It really works
Thanx again
Naveen
Naveen
|
|
|
|
|
You're welcome.
"My kid was Inmate of the Month at Adobe Mountain Juvenile Corrections Center" - Bumper Sticker in Bullhead City
|
|
|
|
|
I'm getting these errors as I try to upgrade an visual studio 6.0 project to .NET.
1)"error C2628: 'wchar_t' followed by 'unsigned' is illegal (did you forget a ';'?)"
which points to this part of the code
typedef wchar_t WCHAR; // wc, 16-bit UNICODE character
in the "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h" file
2) "error C2371: 'BOOLEAN' : redefinition; different basic types."
which points to this part of the code
typedef BYTE BOOLEAN;
in the "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinNT.h file."
and last but NOT least,
3) "error C2371: 'BOOLEAN' : redefinition; different basic types."
which points to this part of the code
/* For backward compatibility */
typedef VARIANT_BOOL _VARIANT_BOOL;
#else
/* ANSI C/C++ reserve bool as keyword */
#define _VARIANT_BOOL /##/
#endif
typedef boolean BOOLEAN;
in the "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WTypes.h file."
Is there a way to NOT include these files when I compile?
|
|
|
|
|
There's an easy way to stop WTypes.h not being included and that is to
#define __wtypes_h__
at the beginning of your source file, or even just add __wtypes_h__ as a defined macro in your project settings.
This may well not solve your problems, however.
|
|
|
|
|
Ok I'll try that thanks...
|
|
|
|
|
That actually gave me more errors. Where would you suggest putting this macro in the project settings? Under which tab??
|
|
|
|
|
These are my settings in Project, Properties, C++, Command Line.
/Od /AI ".\..\Bin" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FD /EHsc /RTCs /MDd /GS /Yu"stdafx.h" /Fp".\Debug/AdoManRs.pch" /Fo".\Debug/" /Fd".\Debug/" /W3 /nologo /c /Zi /clr /TP
But I keep gettting the error that /RTC1 and /clr are incompatible.
cl : Command line error D2016 : '/RTC1' and '/clr' command-line options are incompatible
I don't see that those two options are being used. I've tried every combination of compiler options but I just get the same error.
|
|
|
|
|
/clr is activate via the "use managed extensions" option in the general page.
/RTCx is enabled via C++/Code Generation/Basic Runtime checks.
Looking up the Compiler error code will should give a better explaination too. (in this case it doesnt )
top secret xacc-ide 0.0.1
|
|
|
|
|
Thanks that worked!
|
|
|
|
|
Salutations mateys....
I was wondering about the new features in .net framework 2 beta.. Can anyone tell me or give me a list of the new features?
Thank you in advance
Morten Kristensen aka. Sir Erugor
|
|
|
|
|
|
In W2K and XP, when you resume after a suspend or hibernate the OS asks you to provide a user id and password. While this is happening, the suspended programs continue to run in the background.
Does anyone know how to detect this is happening from within the program? I'd like to suspend processing in my program until the user has logged on.
Andy
|
|
|
|
|
|
Thanks for the suggestion, but that is specific to services. For ordinary programs running on the desktop it always returns 'True'. I ran a test just to be sure.
Thanks anyway,
Andy
|
|
|
|
|
Andy Henderson wrote:
is specific to services.
Oops didnt know that Will add to my knowledge base! Another suggestion, you can perhaps look if a handle has been created, that failing query the size of the form, if size.empty normally the program is in a minimized state, but u could check for that, it mite be diffenrent in your case.
top secret xacc-ide 0.0.1
|
|
|
|
|
Thanks again for the suggestion, but no good either. The program runs in what it thinks is a normal environment - it even has a current user even though a log in screen is being displayed!
I guess there might be some kind of system message, but I don't know where to get a list of them from.
Andy
|
|
|
|