|
WhiteSky wrote: CDialog::Create(need to a resource); like this m_MyDialog->Create(IDD_MYDIALOG,this);
no whiteSky. IDD_MYDIALOG is not a resource, it is only a macro declared as a #define in the resource.h header of your project. but you could have created it by yourself...
anyway, Create() is the method to use to create a dialog, such as any controls on it also...
the point is, ,when creating the controls, to indicate their parent as being the dialog box.
|
|
|
|
|
With no resource template, you can create a dialog based on a DLGTEMPLATE structure by calling either CreateDialogIndirect (modeless dialog) or DialogBoxIndirect (modal dialog).
Ovidiu Cucu
Microsoft MVP - Visual C++
|
|
|
|
|
Dear Sir/Madam,
I working on project and i facing a problem to share database from one web site to another.So, How Can i share database in asp.net with c# and there database is create on MSSQL2000 server and i also using database MSSQL2000 Server.If you have solve this problem then send mail on below address....
manishgkumar@yahoo.co.in
manishgkumar@gmail.com
Manish
|
|
|
|
|
Hi,
I am using VC++ 6.0 version. If I try to have to attach a process from Build->debug->attach to process, the list of processes does not appear on the menu. Are there any setting that I need to do?
|
|
|
|
|
hi all i want to know that how to capture the data passed through the network and modify its contents,suppose i had client and server and they communicate each other through sockets, i want to get the messages passed between these clients and server by my app running on those computers, i mean when they pass each other "hello" i want to capture the full message and then modify that message and then pass something else like "how".i search on the internet and found packets sniffers but i think they will capture packets not full text.
in short i want to get data and modify data and then send again.
Tasleem Arif
|
|
|
|
|
Actually most packet sniffers that I've used (on Linux) also compiles the frames. Thus producing the packet content.
Try Ethereal. That should cover your needs.
Cheers,
TylerD75
|
|
|
|
|
Ehh... sorry, forgot that you needed to modify the frame content as well.
That might be a bit harder, even with ethereal...
TylerD75
|
|
|
|
|
Thanks for ur kind answer.
suppose my application monitors my all network activities on that computer,i.e suppose when anything is going out from computer then can i do the task of getting the contents and modifying that.
Tasleem Arif
|
|
|
|
|
Does anyone know a way to automate the changes necessary in the stub code for bidirectional RPC ? I would like this to happen during the buildprocess. Currently i have to do them all again each time i recompile the idl-File.
wbr Mr.Brainley
|
|
|
|
|
i want to read some amount of data starting from some base address of a device say, 0x3f2h. how to read 256 bytes of data from that location and what should i do in order to print the contents of that memory location??
vijay.
|
|
|
|
|
Are you sure 0x3f2h is a correct address, are you running a 16bit system? Reading from a specific memory loacation really depends on what data you want to read. Is it a string, a struct a stream.... I will presume you don't know. so best thing to do is copy the amount of memory you want into a byte array.
BYTE tmp[256];<br />
memcpy(&tmp,0x3f2h,256);
|
|
|
|
|
hello sir!! yes, i dont know the contents of that memory location. but yes, the memory address is correct i guess. Because, its the base address of a floppy drive. i am trying to read the data from these memory locations that provide the interface between operating system and I/O device. can u please tell me how to do it?? i am new to this and so i really need some guidance. and yes, i am writing the program for 16 bit machines. thank u.
vijay.
|
|
|
|
|
aroli vijay wrote: Because, its the base address of a floppy drive. i am trying to read the data from these memory locations...
Are you sure that the HAL will allow you to do this? Have you checked to see if there are any functions available to get the desired information?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
i am not sure about that sir. but can i use inp() and outp() functions. i am new to this so dont know whether they work or not. but i want to read data from a port using the base address of the device. can u suggest me about what to do and how to do?? thanks.
vijay.
|
|
|
|
|
See here[^] maybe it is some helpful to you
|
|
|
|
|
Hi
there is a system for common use.I want to protect the system from some operation,like fomatting drive and deleting partition from other user. Those i can do only,that means these functionality can not be done by other user.So is there any way to do this by programetticaly? if any one know this please
help me.
Thanks
nirmal
|
|
|
|
|
Windows already serving administrative tools for doing this. Then why you are going to write the same code again.
Check the stuffs on MSDN Security Home[^]
-Sarath.
The more you can dream the more you can do - Michael Korda"
|
|
|
|
|
Actually i want to protect a perticular drive from deleting and formatting.
And also i need programetically solution(in VC++).If you have any idea then just
write here.Any help will be greately appreciated.
Thanks
nirmal
|
|
|
|
|
I believe this can be done by modifying registry values (in Win2k, XP and vista).
I have no clue as to how to do this in VC++, other than running .reg files, or direct modification of registry (which will need correct access rights for the registry values involved).
I've seen some of these XP-fixes on the internet, which basically is a .reg file that will update these settings.
Can't say for sure I've seen how to do this on drive-rights, but you can disable certain Start Menu features, and a lot more.
Check out the "Security Policy Setup.mmc" to see what is available. Then search msdn or google it to find the actual registry value to modify...
Just some ideas, and maybe not what you're looking for, but thought I'd mention it
Cheers,
TylerD75
|
|
|
|
|
Do you remember DOS we could write protect hard disk
|
|
|
|
|
Thanks TylerD75 for your information
Can you tell me please how can i disable certain Start Menu features?
Best Regards
nirmal
|
|
|
|
|
This is the manual method, where you also will find a complete set of editable policies:
You might already have links in "Administrative Tools" on the start menu, but I don't (on XP x64 Edition).
1. Start->Run, enter mmc and press enter.
This will start an empty instance of Microsoft Management Console.
2. In the "File" menu you press "Add/Remove Snap-in..."
This will enable you to add management tasks.
3. Press the "Add..." button, and select "Group Policy Object Editor".
You will be presented with the possibility to setup Group Policy for you domain (if you have one, and is the admin of the domain) or the default: Local Policy.
Chose what you want, but I'm assuming you want the "Local Policy".
4. Hit "Finish", "Close" and "OK" to start your managing.
Now you've got all you need to modify Internet Explorer, the Start Menu, Windows Explorer (here you can disable viewing of specified drives Windows Explorer etc...).
Just have a look around in the "User Configuration" section.
A WARNING: Don't mess around with things you don't fully understand, as this could disable your users access to the MMC. (Which would render you powerless when trying to undo certain features!). If you're able, I also suggest you backup your registry before changing too much
If you want to enable or disable features with a VC++ program, you need to search MSDN or Google for individual settings you find in the Group policy manager.
This will produce the actual registry settings for the specified setting. Then make a VC++ program to modify those settings.
If your ultimate goal is to just set those settings for more than one computer (i.e. a Domain), you could accomplish this by setting group policy for the domains Active Directory. So there's no need to actually do this with C++. But if this is your goal, you should really read some active directory articles at MSDN or microsoft.
Hope this helps?
Cheers,
TylerD75
|
|
|
|
|
aaaan wrote: So is there any way to do this by programetticaly?
It will involve an access control list (ACL).
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
in MDI,you can get the mainFrm pointer like that CFrameWnd *fw = (CFrameWnd *)AfxGetMainWnd().
or you can get the childFrm pointer.
then,you can change the size of Frame like that fm->MoveWindow(CRect).
but when the width of Frame is enought small(like 123),i find that we can't change the width of Frame.
you can try like this,fm->MoveWindow(0,0,50,50);
when you execute the sentence, you can find that it no effect.
who can tell me why?
|
|
|
|
|
in MDI,you can get the mainFrm pointer like that CFrameWnd *fw = (CFrameWnd *)AfxGetMainWnd().
or you can get the childFrm pointer.
then,you can change the size of Frame like that fm->MoveWindow(CRect).
but when the width of Frame is enought small(like 123),i find that we can't change the width of Frame.
you can try like this,fm->MoveWindow(0,0,50,50);
when you execute the sentence, you can find that it no effect.
who can tell why?
|
|
|
|