|
Hi,
I try to implement an ActiveX that creates a thread (through AfxBeginThread). This thread is calling a custom event. When I try to terminating the thread, it makes an uncaught exception. Even, when I try to communicate from the custom event with the activeX (by testing a property for example), I get a memory problem.
How can I solve these problems ?
thank you very much for your help.
|
|
|
|
|
Hi all,
I need to find a way to put scancodes in the keyboardbuffer. I need scancodes because serveral apps on the system only react to scancodes (most of them are accessibility tools like JAWS) On Win2K I'm using SendInput and that works fine but I can't find anything similar on Win9X.
Any thoughts ?
|
|
|
|
|
SendInput() works on 98. For 95 try keybd_event().
--Mike--
http://home.inreach.com/mdunn/
Ford: How would you react if I said that I'm not from Guildford after all, but from a small planet somewhere in the vicinity of Betelguese?
Arthur: I don't know. Why, do you think it's the sort of thing you're likely to say?
|
|
|
|
|
SendInput works on 98 for VK's but not with scancodes.( Unless I'm overlooking something)
|
|
|
|
|
I can create a link to a file programmatically, but I would like to create a link to a folder?
Thanks
|
|
|
|
|
Alright, first, a quick explaination of my problem.
I make a piece of software that the company i work for uses to control logons to a computer. It is a computer rental place, and upon timing out the login screen has to pop up to the top of ANYTHING that could be running and stay there.
I have it running in Windows 9X, and is quite secure. I hide it from Control Alt Del menu right off the bat, and on the login screen i press it to the front with a collection of APIs called many times a second.
But we are considering moving to windows XP. Its task manager can see (and end) my process at any time, regardless of any API i have seen so far. Task manager cant stay in front of the login screen, but when someone logs in (the login screen goes away) they can simply end the task for the software!
Not Good!
So, I've been reading up on how this all works, and I have a couple ideas on how to fix it but no idea how to approach any of them.
#1: Run the program under alternate credentials. This WORKS (access denied trying to end my task), but damit, have to enter the password every time (very bad, many computers). Anyone know how to start a task under alternate credentials and have it start automatically? this would solve the problem, and i think it would be best. Storing the password in a batch file in plain text is NOT an option. some of our users are fairly good with computers.
#2: Run a stub-service that that checks for status of my login program, and starts it again if it disapears. Since the users will be low-access and the service runs under ./SYSTEM, it can't be stoped. so if anyone kills the task they will be greeted with the login screen when it starts back up. This would also work, but i have no idea how services work.
#3: Find an API that lets me once again hide the task completely like 9x. I dont like this at all, but if its the only way it will have to do.
#4: Any other sugestions?
Can anyone reccommend anything that would help me on this problem? we can keep using 9x for a while, but it would be nice to have XP in order to start pimping it when it hits the streets. That means i have to start working on it now to have it on systems by the 25th of oct.
\\ Rock
|
|
|
|
|
I am attempting to create a control grid inside of a DLL file, to be called from another program. Has anyone done this? Is this possible? Any information is much appreciated???
Thank You!
TheDeveloper
|
|
|
|
|
Do you know where can I get a source code of any proxy server, working under Windows writen in C/C++??? I need it so!!! Thanks in advance.
|
|
|
|
|
Man u just gotta go see this link :
http://www.codeguru.com/internet/http_proxy.shtml
no prob.
Papa Charchabil.
|
|
|
|
|
Good evening,
I have been searching around a bit and there is one thing I am missing a little discussion (maybe some sample code as well) on; developing a GUI under DirectX.
Resently, I started experimenting with DirectX and I found that there is no methods for displaying simple things like Buttons, Static Text Controls, List Boxes, etc. So I started thinking, it must be possible to make a class (or classes) that handle these issues under DirectX. A class that would take care of loading graphics associated with a control, displaying text on a control, handling scrollbars and events (such as mouse over, mouse click events and many of the other events we find in MFC controls).
Right now, I am stuck with just manually drawing each control (code gets long and messy after a whole), and I just wonder if maybe someone out there already thought about this problem and can lead me in the right direction, maybe show me some sample source code or links to other pages where such information can be found.
Thank you very much,
Ken V. Nordberg
elevator@encasa.org
|
|
|
|
|
In DX SDK there was a GUI example that had controls but didn't look at it closely. Try checking that out.
-Matt Newman
|
|
|
|
|
I think that sample had the DirectX example in a frame on the left adn all of the controls on the right using normal MFC code. I know that is what I had done for some medical software. That works ok, but is not what you are asking for. I think that you could do a custom drawn control and then just do the drawing yourself. In this case it would be drawing using DirectX. There are samples of custom drawn controls in the articles section. It should not be too bad to do some of it using DirectX instead. Controls with scrollbars will be the hardest I bet.
Steve Maier, MCSD
|
|
|
|
|
I already tried subclassing some of the standard MFC controls, but I want to be able to customize the way they look as well as draw them using DirectDraw or Direct3D. I also want to use DirectInput for events. The event part I have pretty much nailed down, I can create any control (invisible since I haven't drawn it) and have it correctly respond to any event, so I am using that right now in my program while hardcoding buttons and the other controls I need. However, it does get very messy and hard to understand after a while, so wrapping everything into a bunch of classes would definetly help a lot.
I saw some postings here for the Crystal Space 3D engine and also the source for Allegro (although not DirectX) and they seem to have some interresting approaches.
Right now, I welcome any tips/code on how this can be done efficiently. Thank you both for your reply. I failed to find any GUI examples in my copy of the DirectX SDK (I have version 7 and 8). Please let me know if it's available in any earlier versions of the SDK.
Thanks again,
Ken Nordberg
elevator@encasa.org
|
|
|
|
|
Hi ,
Can some one send me an code for ActiveX , such that the
Active X can call JavaScript function .
Thanks
Sansky
|
|
|
|
|
Is this for use on a web page?
Look up CreateObject in JavaScript.
Michael
|
|
|
|
|
does anyone know how to add personalized buttons to the windows explorer tool bar??
|
|
|
|
|
see
http://www.codeproject.com/atl/ietoolbartutorial.asp
or
http://www.codeproject.com/useritems/toolband.asp
|
|
|
|
|
Hi, all!!!
Does anyone know how can I catch ALT+CTRL+DEL before the system (win 2000)?
10x.
Name: STR
BTW: for some of you that wished for CodeProject irc server
I create a channle on DalNet called "#CodeProject"
|
|
|
|
|
I'm not sure but I think you mean CTRL+ALT+DEL
-Matt Newman
|
|
|
|
|
lol, You can call SystemParametersInfo(SPI_SCREENSAVERRUNNING....
or something like this and you can no longer press CTRL-ALT-DEL or ALT-CTRL-DEL or... whatever you like.
|
|
|
|
|
The whole point of CTRL+ATL+DEL (as I once heard somewhere) is that you can't get it because it prevents anyone writing things that can popup and pretend to be windows and get user's passwords.
So it would be a serious security hole if there was a way to intercept it.
|
|
|
|
|
There are several alternatives in Win2k
1. Make another similar OS
2. Get the source code from Win2k, change it and rebuild
3. Hack the kernel
Well, CTRL-ALT-DEL is protected by the OS.
See the help instructions at "press CTRL-ALT-DEL to logon" screen. (Yes, there is a help there!)
It explains how to press CTRL-ALT-DEL (I´m not kidding) and why the OS is made this way.
Furor fit laesa saepius patientia
|
|
|
|
|
I need my COM object to fire an event or just have one -- i have only used c/c++ and never Visual Basic, so i'm not really sure how it all works, but if i get the code, i can figure out how it works from there...
SHABBA!!
|
|
|
|
|
|
Thanks man, it did help quite a bit~~!
SHABBA!!
|
|
|
|