|
Hi,
I faced some problem when develop a small Internet reliant application, could you help me to solve them ?
How to use get/put_onsubmit method of interface IHTMLFormElement when hosting a WebBrowser control in an
application ?
How to hosting more than one WebBrowser control in an application, which use same session on the server ? Once the
session is authenticated by first created control, other controls can enlist in the same session.
Thank you.
|
|
|
|
|
Does anybody know how to display a bitmap from memory DC into the SS_BITMAP-style static control ? Where shuld be this memory DC derived from ?
Thanks for suggestion.
Petr Pivonka
|
|
|
|
|
Your memory DC would be a CDC and as a bitmap static gets set with a bitmap, I'd suggest using GetCurrentBitmap to get the bitmap out of the DC and pass into the static.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
I'm looking for a C(++) library which would enable me to work
with 32-bit CRC. I would also appreciate some reference to
any theory behind that. Will somebody help me? Thanks.
Marek Svantner
|
|
|
|
|
Take a look at the zlib, this compression library comes with a crc32 algorithm, the link for zlib is:
http://www.info-zip.org/pub/infozip/zlib/
Rui Lopes
|
|
|
|
|
Take a look at http://sourceforge.net/projects/yeasoft/ - In that class library you will find a class for calculating the CRC-32. The related files are yCrc32.h, yCrc32.inl and yCrc32.cpp and you can find them browsing the CVS repository.
|
|
|
|
|
I would like to know an API/APIS which can help me to catch the physical path of a file which is given for print along with reading the parameters from the print dailog box.
I'll be waiting for reply from anyone who can help me to solve this problem.
|
|
|
|
|
I have an MFC Dialog based application. Using other code samples I added a toolbar to my dialog and added support for the tooltips, etc. It works great. I have a couple instances where I need to disable some of the buttons on the toolbar. I figured out a way to do this with using CToolBar::GetToolBarCtrl function and using the SetState function with the indeterminate flag. However, all my reading suggests that the proper way to do this is to use ON_COMMAND_UI for the button I want to disable.
Well, ON_COMMAND_UI needs a CFrame to work correctly. For a dialog, the ON_COMMAND_UI handlers you set up for each button on the toolbar is never even called so I can't call the pCmdUI->Enable(false) to disable the item. If you are writing a dialog based app (as I am) your best bet currently appears to be to use WM_KICKIDLE instead. However, that doesn't give me the ON_COMMAND_UI handler I need (the CCmdUI pointer). I could use OnKickIdle and call the OnCommandIUI handlers myself creating and passing a pointer to a CCmdUI object I populate myself but I can't seem to get this to work.
Could someone tell me the proper way and demonstrate fully? I've tried so many different things without success and while my hack(?) appears to work, I'd like to do it the proper way.
Thanks.
Matt Philmon
|
|
|
|
|
Your OnKickIdle() handler should call UpdateDialogControls(this, FALSE); which will call the UPDATE_COMMAND_UI handlers for you.
--Mike--
http://home.inreach.com/mdunn/
The preferred snack of 4 out of 5 Lounge readers.
|
|
|
|
|
True enough... but not for Toolbar buttons. UpdateDialogControls will get UPDATE_COMMAND_UI working for standard controls(buttons, text boxes, whatever) but not for a toolbar button. I'm not EXACTLY sure for the reason. Maybe it's because toolbars aren't exactly intended to Dialog base apps.
|
|
|
|
|
Could someone tell me how can i know if a file or folder is shared in VC++? Is there any attribute to indicate that the file or folder is shared?
|
|
|
|
|
Can anyone point me to manual, where i can read about developing datasource?
I mean i need to implement my own datasource... where to read about?
|
|
|
|
|
Hi Dmitriy!
I guess, that the way you have to go is OLEDB Provider....so search for this on MSDN....and CodeProject too of course
Regards,
Attila Hajdrik
|
|
|
|
|
I am trying to change the hostname in win9x and NT and then alert the DHCP server that I have a
new name so he can update DNS. Ideally I want this to happen without rebooting, but I realize this may not be possible.
Currently, when I change the client hostname (Win9x - HKLM\SYSTEM\CURRENTCONTROLSET\SERVICES\VxD\MSTCP\HostName
& NT/2000 - HKLM\SYSTEM\CURRENTCONTROLSET\SERVICES\TCPIP\PARAMETERS\Hostname) and reboot the DHCP server
still uses the old name in DNS. Even if I release and renew the client's ip lease the DHCP server still uses the old name.
However, when the client's name is changed via the network applet and rebooted the DHCP server does change the name
in DNS. If anyone has any insight I would be grateful.
PS. I am using a CISCO dhcp server if it matters.
Paul
|
|
|
|
|
If you install the security update to Outlook 98/2000 the CMC mail functions are no longer available. Is there another simple way of sending a mail message with an attached file without knowing which program is being used for mail.
Thanks in advance
Steve
|
|
|
|
|
Ok, I've created a "full control" in atl object wizard.
Edit, radio, etc - ok, except listbox nd combo.
The subclassed listbox control window somehow becomes a little bit smaller, then dimensions i used in m_ctlZZZ.Create(...,rect,...)
why?
where to debug?
|
|
|
|
|
Use the listbox style LBS_NOINTEGRALHEIGHT to create the control. This disables the automatic resizing of the listbox ...
|
|
|
|
|
|
I'm having a somewhat difficult time interfacing my ATL COM object that uses connection points to an MFC application. It's really easy in Visual Basic or in an ATL exe, but seems a real bear in MFC. A tutorial on this would really be great.
Matt Philmon
|
|
|
|
|
Ah well. Maybe I'll just write the tutorial myself now. It sure isn't easy in MFC but I got it.
|
|
|
|
|
Hello,
I would like to access the information stored in the Appointments & Tasks databases residing in the object store of a Windows CE machine (I have a Palm-size MIPS PC with CE 2.11). So far, I've managed to access (read/write) the contacts database, but I can't do the same for the other two, because I do not know the application defined ID's (and their meaning) required to read/change database records.
I know this is possible, since I've seen other commercial and freeware applications for CE doing the same, without using POOM. The reason I do not want to use POOM (besides the fact that I'm to lazy to learn COM) is that it's so bloated! 260kB .DLL just for seeking a calendar entry? How's on earth Microsoft hopes to succeed in taking over Palm, if doing such simple tasks require so bloated code
Any ideas or help are much appreciated
|
|
|
|
|
Dear friend:
I see you message.I am very happy to read it and Thank your help.I know there is not very clear to my question.I describe it again.I am a chinese student,my English is not very good,so I try my best to let you know my mean.If you don’t understand ,I will write to you again. My Email: zx8@sina.com
We have the framegrabber but it’s not my focus,because I make the software of Pattern recognition,so the hardware is not my business J
My work is use VC++ to make a software to actualize the orientation of the car’s nember of a image.It’s find the location of the car’s nember tag in the image.It’s not distinguish the car’s nember,it’s been done by another one.My location is hard to distinguishL
There are about three functions,they are…
1. the location of the Gray scale space
In a Gray scale space,there are many different figure,because the most nember card has simile venation. In the Gray scale space they are simile show and change.so we can analyse the figure of Gray scale find the nember card’s location.It will use artificial intelligence network’s BP arithmetic.
2. Sharpening \Boundary detection and grads
3. Gray density and Boubdary density
4. Analysing the color distributing and hue space because the nember tag is pure color like black white and blue.
Now the biggest difficulty in my way is I can not find the VC++ code of these methods,if you can find some,plese let me know.
Thanks
Your zox
|
|
|
|
|
Can anyone point me to source code for an activex vb type scripting engine written in ATL. i know about the Forth script engine code.
|
|
|
|
|
I wanted to know whether it is possible to access individual pins of a serial port using the MSComm control in VB.I want to interface the Pc with an ADC card, and need to know whether it is possible to send Start _of_Conversion pulse to the ADC using the MSComm control.
I'm using this for real time data acquisition.So I wanted to know whether it is a good idea to use the serial port in the first place.
|
|
|
|
|
Is the ADC card external to the PC?
If the MSComm control has control of the DTR / DSR lines, then you can use one those to pulse the serial port.
As to the real-time aspect, that depends upon how fast you need the real-time acquisition to take place. A serial port is deterministic in that it can move data at a constant rate, but Windows is not a real-time operating system, so it may take time to receive that data.
If you only need a few conversions per second, then you should be fine, depending on how much data there is to move.
|
|
|
|