|
thanks!!!
|
|
|
|
|
I use a <defines.h>
where I #define EVER (;;), so writing this:
for EVER {}
will loop for ever
neat!
|
|
|
|
|
thanks for the tip, Hugo! It's quite usefull and make so much sense
|
|
|
|
|
I want to create a project without the document support, only html view support. How can I change the default CWnd to a WebBrowser control? I've tried to use CWnd::CreateControl instead of regular create, but I recieve an error in the destructor of it.
|
|
|
|
|
Drop the MSIE ActiveX onto either dialog of your project. If you are using VC6, this will create a class wrapper. You can then use this class wrapper to create the control from anywhere you want.
Now, if you want to subscribe for MSIE events, you'll have to declare an event sink. See MFC\Src\viewhtml.cpp for more info (that's the actual CHtmlView implementation).
How low can you go ? (MS rant)
|
|
|
|
|
hi,
can you give me an exanple that show how to use the progress bar,
thank's
|
|
|
|
|
|
Hi,
I've previously only dealt with collections of BSTRs that really were just 1 layer.
I currently am working on a project where I need a Property of my Main Interface to return the Collection of Objects that are constructed.
IApplication(CApplication) (the main location of all the properties and processing information)
IProcess(CProcess) (1 individual process) (EXEName, ProcessID, Caption, memory etc)
IProcesses(Processes) (I want to have a all running processes(IProcess) returned inside this)
CProcessInfo (is a class only not an ATL object) to temporarily hold all the process information
I've looked at the ATL Collection wizard here on codeproject, and it's made it easy to construct the actual collection code, BUT how do I actually setup the collection to be returned.
I call ExecQuery, and this is currently populating a vector of all the process infomation (into CProcessInfo.
Then I want to call set xx = myObj.QueryResult from VB and have it return the Collection of Processes. and then
for each oProcess of myObj.QueryResult
debug.print oProcess.EXEPath
next
How do I do this... I feel really lame..
Links or examples greatly appreciated.
|
|
|
|
|
If you want to support the For Each syntax in VB your collection must implement _NewEnum. You might want to check out ATL's IEnumOnSTLImpl which can take care of almost all of it for you. You can also check out this link[^] that has another example that uses CComEnum which can also be helpful.
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Dear Everyone,
This is my first question in this message board.I am not sure
whether the title is suitable for my question or not but by reading
my message, I guess that you can understand my problems.
I have created a simple program which retrives data written in
an .ini file(actually any text file will do).The data retrieved from the file
will be displayed at the combo box.I have created this part.
The problem here is that I want to hide the information written in the .ini
file from the users(Sometimes, there are information which we don't want the users to know).The user can update the application by downloading a new .ini file from a web side.In short,the update of the software only deals with the .ini file.
I think that most people will encrypt the .ini file and decrypt it
before loading the data into the combo box.I would like to do it in this
way but I don't have enough knowledge.I want to decrypt the encrypted .ini file into a buffer because if I decrypt the encrypted .ini into a file,
the user might see it.
Is there any other ways to do this?I just want to
1)Hide the .ini file content from the user and at the same time, I need to retrieve data from the file and display it at the combo box.
2)I want to update the .ini file.
Helps are needed.
Thanks alot.
From Joji.
|
|
|
|
|
You can look into the windows crypto API (which is a bit complicated but very complete).
Also you should look up blowfish encryption, there are a few free implementations on the internet that will allow you to encrypt and decrypt buffers in memory.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
How can I add Toolbar button event handler in VC++ 7.0?
I can't find it.
|
|
|
|
|
Is there a quick and easy method to place an image into a dialog box? I just got a request from a client to add thier company logo (provided as a bmp) onto a dialog box the gets data from users at said company. I just want to display the logo on the dialog. Any suggestions?
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
|
|
|
|
|
Yes, use a static control with the bitmap style. In the VC 6 resource editor, it's called a "picture" but it's just a static under the hood.
--Mike--
"I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
okay... i did that... except I apparently missed just how to link the control to the bitmap I want... sorry to ask for a walk through, but its late and I'm not entirely clear headed at this point
Thanks and Thanks
-Mel
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
|
|
|
|
|
Mel Feik wrote:
I apparently missed just how to link the control to the bitmap I want
Add your bitmap as a resource to your project and give it an ID like IDB_LOGO or whatever you like. Then in the properties dialog for the static control that you added, you will be able to select the IDB_LOGO resource, and that will link your bitmap to the static control.
Good Luck
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
thanks
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
|
|
|
|
|
I'm somewhat embarrassed to ask this, but as I said I've not done this before. I goofed this up somehow and ended up with a hex file instead of my bitmap.
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
|
|
|
|
|
On the control's properties there is a Type combo (set it to Bitmap) and an Image combo (set it to the resource ID of the bitmap to show). You can also set the bitmap at runtime with the STM_SETIMAGE message.
--Mike--
"I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
thanks again
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
|
|
|
|
|
If the bitmap doesn't use the 16 standard colors, I'd recommend CWndImage[^] (if you use MFC)
deals with pixel-vs-dialog units size and palette issues.
Auch den Schatten will ich lieben weil ich manchmal lieber frier' Rosenstolz [sighist]
|
|
|
|
|
Thanks to all replies. I must have just been over tired last night. Didn't have any problems with it today and I appreciate the help.
-Mel
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
|
|
|
|
|
Are there any other good C++ forums that you know about. I mean the Forums like Sun has for java. This one is good but still there may be others........
|
|
|
|
|
I think that programmers heaven is decent (at times) so you might want to check that out.. has seperate forums for C/C++ w/ and w/o MFC.
http://programmersheaven.com/zone3/index.htm[^]
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
|
|
|
|
|
Programmer's heaven is ok but i could have been better. I was using the Java Forum hosted by Sun http://forum.java.sun.com/, it's real great
|
|
|
|