|
Hi
How to create a dialog box with controls without using resource editor
thanx in advance
KK
|
|
|
|
|
Can you be more specific create dialog box with controls?
|
|
|
|
|
Hi
I like to create a dialog box using CDialog without resource identifier
KK
|
|
|
|
|
But CDialog::Create(need to a resource); like this m_MyDialog->Create(IDD_MYDIALOG,this);
|
|
|
|
|
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
|
|
|
|