|
Hi all.
Need some help. I'm not long in MFC.
How to get size of dialog in template?
I'm deriving from CFormView and I need to know what is the size of dialog in template.
I can do this before or after window creation, but I don't know how in both times.
Thanks
|
|
|
|
|
progDes wrote: I need to know what is the size of dialog in template.
You can use CDialogTemplate member functions GetSizeInDialogUnits and GetSizeInPixels .
Here is a note from MS on this class' parent file (afxpriv.h)...
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
|
Hi all,
i m working on VC++ 2005, MFC-SDI type application. I m using .chm file as a help file.
when i click on Menu of application then help file is opened.
In help file 3 more category present like Contents,Index,Search,Favorite and more.
I want all these categories are shown in Menu bar and when i click on puricular menu item then help file should be opened according it.
For example: When i click on Contents menu item then help file should be opened on content tab of help file, same for other.
Please tell me how can i do this.
I m waiting for ur valuable suggestions.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
I've been working on MPI system where the compiler does not support vasprintf. Is there anyway i can get around this problem? Is there anyway that I can replace vasprintf with vsprintf or sprintf? Thanks
|
|
|
|
|
hi, i want to access all the notification items in the notification area(system tray)... i was searching in msdn and i couldn't find any...
what is the interface or functions to access the notification area... it is to see all the running programs there... and to hide some icons if needed... i am using win32 api's... and not mfc... .
|
|
|
|
|
Jach Mullan wrote: i want to access all the notification items in the notification area(system tray)... i was searching in msdn and i couldn't find any...
what is the interface or functions to access the notification area... it is to see all the running programs there... and to hide some icons if needed... i am using win32 api's... and not mfc... .
An article by Nishant on this topic -> http://www.codeproject.com/KB/applications/ShellTrayInfo.aspx[^]
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
in winxp, the directory name length limit is 244
in win98, the directory name length limit is 250
why isn't 255? why file name length limit is 255?
in FAT32 file system, FAT directory structure's DIR_Name cannot use 0x22, 0x2a, 0x2b,0x2c,0x2e,0x2f,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,0x5b,0x5c,0x5d,0x7c,
FAT Long directory Entries 's LDIR_Ord cannot use also???
How many long file name or long directory name can use FAT Long directory Entries structureS?
sorry my bad english.
Thanks.
|
|
|
|
|
can someone please show me what i need to add to my program to get visual styles to work in vista and using vs2008.
|
|
|
|
|
|
Hi..
Please have a look on Manifest concept...
All d best...
Jagdish Bhimbha
S/W Developer
|
|
|
|
|
i have tryed adding a manifest but in vs2008 something isnt the same because nothing happens.
|
|
|
|
|
Hi,I finished Audio Capture and Receive with directsound.There is a netmeeting, I use a thread to receive a client data and decompress separately .
Now I use G729a.lib(got it from codeproject) to decompress,but It can not decompress multiply channels at the same time.
Could you send me Audio Compress code and instruction?
Thanks a lot.
|
|
|
|
|
|
In my program I selected Context Help and MFC gladly included the help mecahnism, but I have found it easily to created my HTML Help Files using HTML Help Workshop; which I have done. But I can't fiquire out how to get my program to forget the Wizzard's Help file and accept mine instead. I've seached MSDN and they just tell you how to create it in HTML Workshop, and if you have VS 6.0 They show how to include it in your program. But nothing on VS2008. Anybody know How?
Help!
A C++ programming language novice, but striving to learn
|
|
|
|
|
I need to be able to copy a User's Electronic Serial Number of the CPU he is installing a program on. Does anyone know how to do this?
I'm programming in MFC VS2008.
Thanks for your help.
A C++ programming language novice, but striving to learn
|
|
|
|
|
What if the user disabled that feature in the BIOS?
|
|
|
|
|
I'm tring to prevent multiple system installations.
A C++ programming language novice, but striving to learn
|
|
|
|
|
Larry Mills Sr wrote: I'm tring to prevent multiple system installations.
Could you elaborate? Do you want to prevent multiple copies of the software on the same machine?
|
|
|
|
|
Larry Mills Sr wrote: I'm tring to prevent multiple system installations.
If you mean multiple installations in the same computer... why don't you use the registry?
If not... can you elaborate a bit more your scenario?
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
In the Oil Field business, it's a common practice for a company to take software and reproduce it(copy the CD) and then install it on one of their other office's computers. I want to prevent that! Or prevent it as much as possible.
I was thinking about having the Electronic "Signature" captured and written somewhere where the program knows of it and check for that "Signature" on startup/
A C++ programming language novice, but striving to learn
|
|
|
|
|
Ok, I undersand, but... I don't know if it is going to be possible without access to the computer where the software is going to be installed. I mean, if you have access to the computer, then yes. You should be able to get a parameter with a tiny app and then include the checking of that parameter in your software, if the software is not installed in the computer you allow then it won't install. But if you are giving your software to a client without having access to their computers... how are you going to know in which computer is going to be installed in order to put the restriction in your software?
Even Microsoft must go through the windows original advantage through internet. If they didn't get how to manage about illegal distribution/copying...
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
parameter is in place in the software and email certification is required for installation. Hence my need to certify that the computer they are trying to install the program on has been pre-authorized by the program. If I'm sent an email for activation then I may be able to capture enough information about their system to verify that when a totally different computer is asking for activation then it won't be allowed. My question is, will emailling me provide me with enough information about their system.? I guess I could log the email address and not accept any other. Of course if the same company uses the same email address accross the country(and world) then I wouldn't be able to recognise it.
A C++ programming language novice, but striving to learn
|
|
|
|
|
I don't know which parameters read or how to make it (I am not so skilled as other replying the post) but if I should have to do that I would make a little app to retrieve some data that are computer dependant (the others will help you better with that) in two different versions (only write and read-write capable), create a file and save the info you need in that file. You can then send them the "write-only" asking them to execute it in the target computer and to mail you back the report-file with the info you need before giving the unlocked version of the software.
To lock/unlock the software in a general way you can use an app-external file (like *.ini, *.dat or something like that) that you sent back with almost the same data asked before, but in other order of appearance (for more security). Then add a function at the start up of your application.
In Pseudo-Code it could be something like...
Open the Unlock file
Get saved ComputerInfo_1
Place it in Buffer_1
Get the computer local info in runtime
Save it in buffer_2
if Compare buffer_1 and buffer_2 is true
continue with the app // unlocked version
else
close app // locked version
I would make it like that, is the same principle as the MD5-encrypted password checking when you want to log in into a CISCO router. You first connect "locally" to the router and gives the admin pass and it is saved with MD5, then when you want to log in... you will be asked for pass another time, it will be encrypted as well and the router compares both encrypted results locally (the saved one and the one you are checking atm)
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hi All!
I have to write my own app to make a living.
I am not an IT pro, or anything close to it.
I do have a 32 bit app that is absoultely better than anyone else's.
So I want to port my 32 bit app to 64 to stay ahead of the competition.
So I go out and shell out big bucks for that 64 bit compiler.
So I hear all this stuff about C# being the "language of the future".
So I believe it.
So I re-write the entire thing in C#.
Now I have a 64 bit dog that runs 40% slower than my 32 bit app.
Now I am pissed.
So I go to the C# forums for some advice. No one helps. I get chastised.
Now I have come to the conclusion that Bill Gates and all C# touts need their faces slapped.
Rant Over
bigchump
edit: some expletives were "deleted".
modified on Thursday, June 12, 2008 5:20 PM
|
|
|
|