|
Can you tell me how to create an arrary of buttons? I am assuming that the same way of creating this array of buttons will work for an array of Text Boxes and other ActiveX controls.
Thanks alot..
|
|
|
|
|
CButton arBtn[MAX_BUTTONS];
for(int i = 0 ; i < MAX_BUTTONS;i++)
{
arBtn[i].Create(....,this,...);
arBtn[i].MoveWindow(..);
arBtn[i].ShowWindow(...);
}
Hope this helps
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
Is anybody can tell me where i can get login password dialog and source code....
|
|
|
|
|
I assume your question relates to entry of undisclosed text (asterisks shown instead of plain characters): Just use a standard edit control. Set the password flag (style: ES_PASSWORD), and use CEdit::SetPasswordChar() if needed.
Bernd
|
|
|
|
|
Can u provide me simple source code for login password...Because i am beginner study the visual c++!!!
Thank You
|
|
|
|
|
Just right click on your edit control. You will see properties of edit control. Check the password in the properties. Thats it.
Cheers,
Salman
Live and Let live
|
|
|
|
|
But how can i key in the password then press the button "OK", it will go to the another dialog...
|
|
|
|
|
I did not understand what you want to ask. Will you please explain me eloberately.
Thanks,
Salman
Live and Let live
|
|
|
|
|
Hi All,
I need to make a program that uses one document but multiple views in the same way that an MDI app would do it, ie ChildFrame/View combination. Anyone have any ideas how I would attack this?
Cheers,
Clint
|
|
|
|
|
i suggest two probable ways:
First, you can put your saved data into CMainFrame. Then use afxgetMainWnd() to get them needed.
Two, you can mark every doc with a label. Then use cdoctemplate to enum every doc and pick up your needing one.
How do you feel?
Hello World!
|
|
|
|
|
Hi,
I think you can Create Document Template Dynamically. I tried for this but this is not working in Release build.
bbye
Salman
Live and Let live
|
|
|
|
|
I have an application that can be download and installed from various sites
The problem is how does my application can determine where it was downloaded from.
currently it is a single file (Setup.exe)
should i have multiple files and make the software installable via net (i.e u can't download setup.exe and install later , i'll hate to do that )
also is there any way to determine that the computer is in US ?
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
Come on guys even suggestions will do
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
if the Setup.exe is an archive or so, the server could modify a file inside the archive, when there was a request to this file
scio me nihil scire
My OpenSource(zlib/libpng License) Engine:
http://sourceforge.net/projects/rendertech
Its incurable, its a Pentium division failure.
|
|
|
|
|
mailMonty wrote:
...how does my application can determine where it was downloaded from.
Given your constraint of a single file, it can't. If, however, another application is involved, you could go the route that has been suggested and modify the EXE itself, or package a configuration file with the EXE that denotes where it was downloaded from. Having never tried any of this, these are only guesses on my part.
mailMonty wrote:
also is there any way to determine that the computer is in US ?
Which computer, the one that downloaded the file, or the one running it? The answer is probably 'yes' in either case, but the actual solution will differ.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Thank you for ur valuable input
DavidCrow wrote:
Which computer, the one that downloaded the file, or the one running it?
the one that downloaded the file
i think i'll have to keep more than one file for setup and modify some setup files as we download (no idea how i'll do that but you guys are here to help me )
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
You could also have more than one link on the download page. Take a look at www.sysinternals.com. They usually have three links per utility: one for 9x, one for NT, and one for Alpha or Linux boxes.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
I would like to understand how you can print the string from an edit box using dcPrint?
Example: dcPrint.TextOut(50,150,Editbox string here);
anyhelp greatly appreciated
ThankYou in advance.
Still no advice on how to achive this, does anyone have any sugestions that I might try?
|
|
|
|
|
Hello all.
I am wondering. I am now playing with VS .NET and when I build a normal "MFC Application" (w/out the .NET framework) I am getting an error saying the MFC70.DLL is not found on my computer. (I build the app and export it to a fresh W2K install machine for testing purposes). I realize it is looking for a newer version of the MFC DLL, but what I am wondering is there any way in VS .NET that I can tell the compiler that to use the older MFC .DLL files (such as 42 that is installed with W2k/WXP)?
thanks!
shultas
|
|
|
|
|
shultas wrote:
is there any way in VS .NET that I can tell the compiler that to use the older MFC .DLL files
Not that I'm aware of. To remove the DLL dependencies, set the build to link statically to MFC (I don't use VC 7 so I have no idea how to do that, it's in the project settings somewhere).
--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | 1ClickPicGrabber New v2.0! | RightClick-Encrypt
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
-- Buffy
|
|
|
|
|
Anyone know where I can find some good examples of software that uses context help? I'm trying to understand how to create help for a program I'm making, but MSDN doesn't really explain what needs to be done in a consise manner, and I have yet to find a place where a decent example exists.
Any help in the matter is greatly appreciated.
Thanks!
|
|
|
|
|
U can get this in Book called "VC++ programming" and author in Kruglinski.
bbye.
Salman
Live and Let live
|
|
|
|
|
|
I want a particular part of my coding to gain high priority during execution. Windows should not receive even the keyboard and mouse messages. Any body knows how to do this
|
|
|
|
|
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
|
|
|
|