|
hii,
Can any one please find the relevant registry keys for the local security Settings( \controlpanel\administrative tools\local security settings\account policies ). I need to set the minimum password length for windows,and set the account threshold and duration.
I am using Visual Basic.If i could locate the relevant registry keys,then
I can modify these settings programmatically using registry.
Can any one suggest me how i can set these settings programmatically??
any links or information regarding their registry entries would be useful for me.
Thanx
|
|
|
|
|
I am developing a sourcefilter to decode 3gp songs. First, I built 3gp source code into dll, then, I loaded those dll in the filter. For example, I used
FileWrapper_Open(*char)
to open the 3gp file which is in the dll, but there is an error when running to this code. The error message is
'Unhandled exception at 0x100158dc (SourceFilter.ax) in graphedt.exe: 0xC0000005: Access violation writing location 0xbaadf069.'
I am not familiar with using dll. In developping the filter, I just included the header files of dll, and put dll in the same directory with the filter. Thanks for your help.
|
|
|
|
|
It's difficult to say. You try to write memory somewhere you shouldn't. Try to use your debugger (press F5 and F9 to set breakpoints) to locate the problem. If you want to debug your dll, you will need to associate a exe that will call the exported functions you want to test (this is done in the project settings).
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
Thanks for your help. I debugged the code (F5, and set breakpoints), and got the error message, no further information. I tested the dll before I added them into filter (built another program to test it), and it ran well. As you said to debug dll, how to set the project to test it? Thanks.
|
|
|
|
|
The value 0xbaadf00d is often used to fill memory to indicate that the data is bad or not initialised; note that is looks like the words, "bad food". If you do a search for this you get the following webpage[^]. It looks like you may be using uninitialised data. Note that 0xbaadf069-0xbaadf00d = 0x5c. This address could have been arrived at by using the value as a pointer and using it to access a member at offset 0x5c into a structure/class.
Steve
|
|
|
|
|
thanks. I solved the problem although it is not a good method. Actually, as I used those dll decoding 3gp songs, I wrapped them (variable, functions) in a class, and got the error message. Now I used them as globle variables (it is not a good way), no such error. Thanks for your information.
|
|
|
|
|
I want to be able to hide or password protect folders. How is it done?
|
|
|
|
|
nat2kus wrote: How is it done?
Access Control Lists (ACL).
"The largest fire starts with but the smallest spark." - David Crow
|
|
|
|
|
Our application needs to check if there's a CD inserted in the CD player.
Functions such as GetVolumeInformation() or GetFileAttributes() take too long.
Is there a faster way? I can see windows (XP) showing a "CD cursor", so there is somewhere inside windows a service that has detected a CD....
I hope someone knows where this information can be found.
Paul Visser
|
|
|
|
|
Have you tried something like mciSendString("status cdaudio media present", ...) ?
"The largest fire starts with but the smallest spark." - David Crow
|
|
|
|
|
Thanks for the advice. It does make testing faster, certainly in the "false" cases when no CD is present in the drive.
|
|
|
|
|
From my Win xP station where I have connected USB printer, I am not capable to print from my dos application. How can I Do to print to my USB Printer from DOS Application.
I learn my self
|
|
|
|
|
You will have to do a "Net Use LPT..." type command to establish a correlation between a DOS-accessible device and the printer device name. This needs to be done either as a shell command prior to startup of your app (IE: batch file startup) or as part of a custom DOS box with special autoexec.bat.
onwards and upwards...
|
|
|
|
|
I'm trying to find the best way to update my CView's when information in my CDocument changes. Right now I'm using the following method:
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;<br />
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();<br />
CAESView *pView = (CAESView *) pChild->GetActiveView();<br />
<br />
pView->SendMessage(UWM_UPDATE_VIEW, 0, 0);<br />
This works fine but it only updates the active view. How can I update all views that are related to the document, whether they are active or not?
Thanks.
|
|
|
|
|
|
Thanks Cedric. I didn't realize it was that simple. It was not mentioned in any book I have. I guess I need to buy some new books!
|
|
|
|
|
hi i'm currently making a small game,using SDL libraries for graphics(i know its old but its easy), but if i compile the program, with VC6 , and try to run it on other machines it needs some dll's. ("sdl.dll" "msvcp60.dll" "MSVCP60D.dll" ...) the list goes on, i understand why it would need the SDL.dll but the rest...
is there a way to compile it so it wouldn't need anyother files except the exe?
-- modified at 8:53 Monday 15th May, 2006
|
|
|
|
|
These dll's are needed (they contain for example the C run-time library, ...). In order to see which dll's are required for your executable, you can use the Dependency Walker[^] (it's also supplied with VC6, look for depends.exe).
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
And you try using the dependency walker after you move your application to Release mode. It'd further reduce the dependencies. for example those ending with "D" like MSVCP60D.dll .
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
Grimes wrote: "msvcp60.dll" "MSVCP60D.dll"
As others have said, this is part of the c runtime, you need them.
Grimes wrote: is there a way to compile it so it wouldn't need anyother files except the exe?
Yes, this is called 'statically linking'. What you're doing now is 'dynamically linking', that's why you need these Dynamic Link Libraries (.dll's). When you statically link, you're basically inserting the contents of the library into your .exe file. Your file will be bigger, but it won't need the DLL's. To statically link to the CRT in VC6:
- Select Project, Settings (or press Alt+F7)
- Select the C++ tab
- In the 'category' combo, select 'Code generation'
- In the 'use run-time library' combo, select any of the items that don't end with DLL.
- Say okay, save and build.
If you look at the exe file produced in depends.exe you will notice that the CRT libraries are not required. You will still see other dependencies, like kernal32.dll etc. - these are part of the Windows OS - they will be on your target machine.
Which run time option should you select from that last combo? For debug builds, select 'Debug multithreaded', for release builds select 'Multithreaded'. I suggest this as your working on a game - so I'm guessing your using threads.
Are you using MFC? If you are, then you must statically link to MFC if your going to statically link to the C runtime. To do this, bring up the Project settings dialog again, and on the general tab, select 'Use MFC in a static library' from the MFC combo.
Hope this helps. BTW: I'd recommend dynamic linking, it means you don't need to do any of the above - just distribute the required libraries with your EXE.
- Dy
|
|
|
|
|
Thanx you guys really helped alot, it seems to be working great!
|
|
|
|
|
Hi,
We have developed an application contains server and client.We connected this two with sockets in out network.
But we have to develop this in remote connection,i.e,through internet.So,pls can u help me?
Whats the procedure?
Any tutorial available?
|
|
|
|
|
|
Hi,
Thnks for your reply.
We developed the application in sockets.
I asked that how the server and client get connected through internet.
|
|
|
|
|