|
OK. I think I understand what your trying to do now.
I found the constants in WinUser.h in the VC98\Include folder. Here is the copy/paste:
#define UIS_SET 1
#define UIS_CLEAR 2
#define UIS_INITIALIZE 3
#define UISF_HIDEFOCUS 0x1
#define UISF_HIDEACCEL 0x2
#if(_WIN32_WINNT >= 0x0501)
#define UISF_ACTIVE 0x4
#endif /* _WIN32_WINNT >= 0x0501 */
#endif /* _WIN32_WINNT >= 0x0500 */
#endif
RageInTheMachine9532
|
|
|
|
|
Rage,
Thanks a bunch. That is exactly what I was looking for. Unfortunately, my winuser.h file does NOT include these constants and frankly I don't know why (VB6 Enterprise).
I'll track that issue down next.
|
|
|
|
|
Puchinello wrote:
Unfortunately, my winuser.h file does NOT include these constants and frankly I don't know why
Download the latest Platform SDK.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Good gumba gumba! The whole SDK will take over 10 hours to download on my 56K! I'll spring 10 bucks for the CD by mail.
Thanks for the insight!
|
|
|
|
|
Anyone know how to grant a user account "Logon As Service" rights through VB/VBScript?
I'm trying to pre-install a couple of services, and although I have managed to get the WMI scripts working to create and run the services as the account in question, I cannot figure out how to grant the account logon rights without having to revert to using the old NTRIGHTS util.
Target OS are XP/2K, they are running both Stand-alone, on NT Domain or an Active Directory.
Meanwhile ... i will have to wsshell ntrights :-<
Cheers
Alun Boyd
|
|
|
|
|
I don't know how to do it off the top of my head, but the first question I have is: Is the .MSI being elevated to Admin level when it's run? Without this, you can't modify any use to Logon As Service.
RageInTheMachine9532
|
|
|
|
|
My mistake, I should of mentioned that this is a straight VBS task (to be VBE'd later), and will be run from an Local Admin account.
Being a bit of a newbie to VB, I don't particually want to start fiddling with MSI just yet, it seems to be a bit OTT for the current purpose.
I have sort of found 2 ways around this. The first is to use NTRIGHTS.EXE but this means ensuring it's avaliable and that it can lookup the SID of the account that will require the rights. Unfotunatly this is not always possiable as it's a domian account that needs rights, and the service may need installing off-network (and NTRIGHTS won't take a SID as an argument).
The other method is to create on-the-fly a simplified Security Template then run "secedit /config /areas USER_RIGHTS ....." to apply the template. The only problem is if other user's have been given rights, the template wipes them out :-<
|
|
|
|
|
I haven't been able to find any scripting that will modify the Rights of a User Account. But, I can tell you that it is possible to do and it WILL require WMI to do it. Lucky for you W2K and XP both come with it native. 95/98/NT4 doesn't support WMI without first installing it seperately.
I'm still looking for a scripting solution...
RageInTheMachine9532
|
|
|
|
|
Thanks for looking Rage, I can only assume you too are flummoxed!
I'm probably going to have to fall back on the security template method, assuming i can get 'secedit /export' to work so that I incorporate any previous security rights in the newly modified ones.
|
|
|
|
|
how will i optimize the use of methods Finalize and Dispose? when to use Finalize instead of Dispose or vice versa? when to use both of them?
... i have read my references bout this but im not sure with my 'interpretation' of the lecture.
. tnx guys.
.. here we go again.
|
|
|
|
|
Im a newbie when it comes to .Net technologies. Right now I am developing an MDI application using VB.Net. So this is my first .NEt project.
first question:
... why is that when the child form is being closed using the control menu (control box), the next time i click the menu item that should make the child form show up again, it won't show anymore?....
here's the code behind the menu item:
Private Sub mnuRR_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuRR.Click
If RRChild Is Nothing Then
RRChild = New frmReceivingOrders(Me)
End If
RRChild.Show()
End Sub
* RRChild is the child form
* mnuRR is the menu item of the parent form
... tnx
.. here we go again.
|
|
|
|
|
This is how I've opened my MDI child forms.
Dim RRChild as New frmReceivingOrders
RRChild.MdiParent=Me
RRChild.Show()
Hope this helps
Cheers
PL
|
|
|
|
|
We have a project that we recently split from one very large exe into 5 DLL projects. We have a greate deal of classes in each of the projects and we find that when we compile the program on a dev box there is a period shortly after the compile is completed where the app hangs for about 10-15 seconds.
Another of our guys had the same problem when at another site, where, once they had a large number of classes, VB was doing the same thing?
We have T30 and T40 IBM notebooks, so the processors and memory are fine, has anyone else experienced this and can anyone suggest anything?
Cheers,
Andy
|
|
|
|
|
My guess, if this is a .NET project, is that it is the initial JIT compilation that you are seeing.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
Another possibility is that the IDE is re-registering the .DLLs. (REGSVR32)
RageInTheMachine9532
|
|
|
|
|
I'm sorry to ask you this question .. but I have to now
in c++ after you declare the array and when you want to get the content of hte array item 2 then you do
char k[10]={'k','m','g'...};
cout<< k[1]<<" ";
how to do it in VB.Net?? I wrote something like below and got error.. why is that???
Dim sArray() As String
Dim i As Integer
i=0
sArray(i) = "a string"
|
|
|
|
|
Dim sArray(8) As String
sovle the problem.. need to initialize the size of the array..
|
|
|
|
|
I'm trying to consume a C# Web Service using VB6 and Soap Toolkit 3.
Everything works fine when I'm passing/returning simple data types such as strings and integers but I'm having trouble using complex data types.
The class I'm trying to pass is defined in my C# WS as
public class AlertMessage
{
public string AlertMessage;
public string AlertComment;
}
How do I treat this in VB and how do I pass it?
Currently, I have created an ActiveX DLL with a class AlertMessage as follows:
Private mAlertText As String
Private mAlertComment As String
Public Property Get AlertText() As String
AlertText = mAlertText
End Property
Public Property Let AlertText(ByVal Value As String)
mAlertText = Value
End Property
Public Property Get AlertComment() As String
AlertText = mAlertComment
End Property
Public Property Let AlertComment(ByVal Value As String)
mAlertComment = Value
End Property
When trying to pass an AlertMessage to the WS I get the following error:
SoapMapper: Saving SoapMapper alertMessage failed. No such interface supported.
When trying to return an AlertMessage from the WS I get a type mismatch error. My Soap response looks as follows:
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetAlertMessageResponse xmlns="http://star-navigation.com/webservices/">
<GetAlertMessageResult>
<AlertText>Hello There</AlertText>
<AlertComment>My Comment</AlertComment>
</GetAlertMessageResult>
</GetAlertMessageResponse>
</soap:Body>
</soap:Envelope>
Can anyone help?
Thanks,
Cory
|
|
|
|
|
Am learning VB. I have not had the need until recently to install one of my apps on a machine that doesn't have VBruntime installed. Is there a way to include vbruntime in the install application so that it installs on the users machine at the same time as the application I have created?
Thanks,
Jim
|
|
|
|
|
hi all,
I am having a string with CSS code which contains class names and their properties. Here there may be some repitition of class with different properties. Now I need to get the repeteated class name and add the property to the existing class name. How do I do that in windows forms. I am using vb.net. Please advice. Thanks in advance.
regards
Venkat
|
|
|
|
|
Every time i open my visual studio.net and try to start a new project it give me an error message telling me the automation server is unable to open the console and then it doesnt give me a new form but i can still edit projects.
I have already tried to reinstall the program and i have aquired a new version of it but it keep the old settings and gives the same error message.
if you know how to correct this problem please let me know...
|
|
|
|
|
Hi!
I have a problem with the center of the form in relating to the changing of the screen resolution and I would like to have aide. Please help!
In my application, I change the screen resolution to 800x600 when the app is started and will restore to the original state when quit. About the code of changing the screen resolution, it like the code in the sample of the www.AllAPI.net: http://www.mentalis.org/apilist/ChangeDisplaySettings.shtml
My problem is that if I change the screen resolution and then in my app, I use a procedure to center the form like this:
Sub centerForm(ByRef theForm As Form)
theForm.Left = (Screen.Width - theForm.ScaleWidth) / 2
theForm.Top = (Screen.Height - theForm.ScaleHeight) / 2
End Sub
but I always have a problem that the form nerver be centered correctly
I case I don't change the screen resolution, I don't have this problem
This is the thing that I would like to need you help
Thanks in advanced!
Chua
|
|
|
|
|
anyone know how to add shockwave flash to vb.net form??
plz teach me...i need know it urgently...please..thanks..
MJ
|
|
|
|
|
I want to use ms word as a doc viewer,and incapacitate it's most function,such as "save as","copy","paste".
I have not idea about this.Is that a comparative easy method can achieve my goal??
lost my way
|
|
|
|
|
i have made a cursor.. with the extension *.cur
i have an application with VB6 ..
how can i add this cursor to my application ????
ahmed elmahdy
|
|
|
|