|
they can dis-assemble it (tough)
or they can use a hex editor (very tough)
but not impossible
"there is no spoon" biz stuff about me
|
|
|
|
|
Hey.
Any of you know the easiest way to do this ?
Right now, I have a dialog box, and buttons (skinned) on the side and these are the major categories. Now the thing is, my app is getting really really crowded and I don't know what to do.
I read about property sheets and this seems like the right answer except getting the sidebar buttons to link up accordingly looks to be quite time consuming.
thoughts ?
|
|
|
|
|
AllocConsole fails in release mode.
Hi,guys:
I have an ActiveX which includes a Library file (foo.lib). In this foo.lib, a console is created with AllocConsole() function. Everything is OK in the Debug mode. But in the releasemindependency mode, the AllocConsole function fails to create a new console window.
The related code is as below:
/////////////////////////////
FreeConsole();
AllocConsole();
/////////////////////////////
Any ideas ?
TIA
-gusd
|
|
|
|
|
Hi
I am the student of masters of computer science. I am now in the last semester and i have to complete a final year project. I has not been getting any good ideas regarding the project since three months. Please suggest me some ideas regarding the final project. The tool most probably will be Visual C++ and the language will be C++.
I have five months to complete the project.
I am interested in the following areas.
Network Programming.
System Programming.
Data Mining.
Network Protocols.
Looking Forward for kind responses.
Muhammad Irfan Azam
Common Man
|
|
|
|
|
Muhammad Irfan Azam wrote:
I am the student of masters of computer science.
From where?
I believe I can suggest you some nice ideas .
mE
---------------------
A gasp of breath,
A sudden death:
The tale begun.
A rustled page
Passes an age:
The tale is done.
|
|
|
|
|
Muhammad Irfan Azam wrote:
Please suggest me some ideas regarding the final project.
Your thesis advisor is a good resource for such ideas. At least mine was.
|
|
|
|
|
Dear All,
I am developing an application in MFC VC++ Version 6.0 for Windows 2000.
I need to copy ntuser.dat , but this file is always in use. Is there any way out to copy this file. Any Shell Level API's ?
Regards,
Rohit
|
|
|
|
|
Use MoveFileEx with MOVEFILE_DELAY_UNTIL_REBOOT flag. And then restart computer.
Magnus
|
|
|
|
|
So what becomes of ntuser.dat after it has been moved?
|
|
|
|
|
Well, nothing good probably... which I think you dont want to happen
Try this one SetupQueueCopy, I have never used it my self so I can be of no help there.
Or write a small program and run it under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce
Magnus
|
|
|
|
|
Magnus Westin wrote:
Well, nothing good probably... which I think you dont want to happen
My point exactly.
Magnus Westin wrote:
Or write a small program and run it under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce
This may or may not work, depending on which ntuser.dat file is to be copied, and what user is currently logged in to the machine. The best approach would be to log in as a user other than the user whose ntuser.dat is to be copied. Then locate the ntuser.dat file in the C:\Documents and Settings\username folder and copy accordingly. This will keep the OS from complaining about a locked file.
|
|
|
|
|
Question would be what becomes of a system after it has been moved?
Answer to original question is simple
HANDLE hFile = CreateFile("ntuser.dat", GENERIC_READ,
FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
while()
{
ReadFile(hFile);
WriteFile();
}
I tried this few minutes ago and it worked like a charm....
|
|
|
|
|
Brian Shifrin wrote:
I tried this few minutes ago and it worked like a charm....
Was this your ntuser.dat, or that of another user account?
|
|
|
|
|
Good point it was local vs domain.
|
|
|
|
|
Hi. Does anyone know how can I include exe files as resource as that I can use them later?
|
|
|
|
|
You could load it as a binary resource but you will probably have to expand it to disk when you need to run it...
John
|
|
|
|
|
How can I do that (cause I am not that good with binary resource)?
|
|
|
|
|
Are you using vc6??
Go to the resource view. Right click on the folder at the top. Select import. A file dialog appears. Change the file type to all files(*.*). Select yout executable. And enter EXE as the resource type. Now the executable resource is included in your project as a binary resource.
John
|
|
|
|
|
ok thanks for your help. By the way, I have some more questions to ask. Can you help me? Below is the description:
I have an exe file that shows a dialog. The user need to type in a product id, a vendor id and need to select a file to do the locking. When the user have have completed these tasks and clicked on the OK button, a dialog box (created by CFileDialog) will appear and ask the user where he/she want to save the second exe file to. After that, the first exe file will create the second exe file which will hold all the information that the user has typed and also the file that the user has selected previously.
When the user open the second exe, it will need the user to type his/her username and password before he/she can open up the file which is attached to it.
Can you give mi some ideas on the following:
1) How can I create an exe file using another exe file?
2) How can I attach a file to the second exe file?
3) How to pass in the values from the first exe file to the second exe file?
|
|
|
|
|
|
I've been searching forever on this one! Does anyone know how to change text formatting for text in a loaded HTML page using CHTMLView? I'm trying to add a strikethrough to links that I have identified as invalid based on prior surfing. Any ideas?
|
|
|
|
|
Is anyone familar with MSBNx Bayesian Networks, created at Microsoft Research. I have correctly imported the Activex but I get an error here which are arguements into the api function.
<br />
<br />
#include "stdafx.h"<br />
#include "bn.h"<br />
#include "bnDlg.h"<br />
#include "models.h"<br />
.....<br />
void CBnDlg::OnButton1() <br />
{<br />
CModels model1;<br />
model1.Add("jps", "C:\\belief.xbn", "C:\\error.log", ine_Default, recommendtype_Default);<br />
<br />
}
C:\Backup2\projects\bn\bnDlg.cpp(178) : error C2065: 'ine_Default' : undeclared identifier
C:\Backup2\projects\bn\bnDlg.cpp(178) : error C2065: 'recommendtype_Default' : undeclared identifier
I
Add (Models)
http://www.research.microsoft.com/adapt/MSBNx/msbn3/Methods/Add-Models.htm[^]
http://www.research.microsoft.com/adapt/MSBNx/faqs.aspx[^]
all of the example code from MS is in VB
"obe wan, your my only hope"
Later, JoeSox www.humanaiproject.org
my friend's Hawaiian Art :
http://www.cafeshops.com/coolroxart
|
|
|
|
|
Hi all,
I implemented CToolTipCtrl in a custom control. It work fined in debug mode but the tooltip doesn't come out after I compile to exe.
Anyone encounter the problem before and I would be very grateful if you share your opinions. Thanks. ^_^
|
|
|
|
|
Could anyone help me figure out how to use the SAPI 4 PhraseParse function? I can't find any helpful info in MS's documentation and other that I don't know where else to look. Thanks!
|
|
|
|
|
Hi,
In my MFC app I need to read and write to a file. Write now I am working on the writing part of it all. I can write to a file that doesn't exist, but when the file does exists it always overwrites the contents of the file.
I am using the following code:
CStdioFile f;
f.Open("test.txt",CFile::modeCreate | CFile::modeReadWrite | CFile::shareDenyWrite, NULL);
f.WriteString(temp);
f.Close();
temp is just some string that the user enters.
Can anyone tell me what I am doing wrong, and tell me how would i get it to append to the end when the file exists already? Is there a better way to do this?
|
|
|
|