|
You can use ShellExecute() function with the site address as argument.
|
|
|
|
|
I use MFC to program. I wan't to make an application that can become an icon on taskbar after click on a button.
Thank you!!!
|
|
|
|
|
Call ShowWindow( SW_MINIMIZE ) on your main frame.
Dave
|
|
|
|
|
Hi,
I am using VC++ 6.0 for multile PC's that using the same MS Access database table (DAO). I am encountered with one problem as the following:
- The first user comes in a table looking for a specific record then AddNew() then Update() record on it (if it has been emptied)!
- The next user comes in later (almost at the same time) looking the same one, but instead see it is NOT EMPTY ... it see it still EMPTY then do the same as the first user
- Then I had two different records instead of only one!
*) I tried different approaches to avoid this problem but not success very well (failed every three times)! Here what I did:
1) After AddNew() & Update() ---> I Edit() that record then Update() for the next user using Requiry() for fast ReFresh ... in hopping it now can see that record is done & doing NOTHING!
2) Using another table (only one data) and let the first user set a flag to it ... until it finish Addnew() & Update() record ... delay 1 second then remove that flag. The second user only can get in the same table when that flag is not set!
3) Low approach: Using Token methode (almost same as #2), instaed wrie to a table, the first user writes a simple character to a text file with Exclusive Open, after finish AddNew() & Update() then delay one second ... it will close that file! The second user will wait untill that Token is released in order to do the same and now can use the same table which the first user already complete its task!
I hope someone knowing better ways to let the next user knowing that record is NOT EMPTY (was set by the first user) by some way very fast, or block or any thing else!
It is a desperate request, I appreciate a lot any helps or suggestion here!
Many thanks
|
|
|
|
|
This is a hard question in general. Have you tried specifing any of the options in CDaoRecordset.Open (like dbDenyRead or dbSeeChanges)?
Joel Lucsy
|
|
|
|
|
I am going to draw some polygons with borders and filled with a color. From time to time I have to draw a border around two adjacent polygons.
Any suggestions to algoritms.
I have tried making two regions and combining these but when I draw the frame it makes a frame around the polygons I like to have the border in the edge of the polygons.
thanks a lot
|
|
|
|
|
Maybe I don't understant what you mean, but have you looed at PolyPolygon() ?
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
I have tried, but this funktion draws the lines they have in common, i want to draw a border around the new polygon combined polygon.
Thanks anyway
Jørgeen Granbog
|
|
|
|
|
The other way to work is to consider building your polygon in reverse, by clipping out the areas that are not wanted anymore.
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
I'm guessing the concept of a 2 hour movie showing two guys eating a meal and talking struck them as 'foreign'
Rob Manderson wrote:
|
|
|
|
|
Thanks that might be a good suggestion - I looked for an algorithm. Else I will try to handle it this way.
Thanks for your interest
Jørgen Granborg
|
|
|
|
|
You mean you have two polygons with non 0 intersection
and you'd like the union of those?
Did you use CombineRgn with RGN_OR and then FrameRgn?
Or do you want the smallest single polygon cover? (i.e. no holes)
|
|
|
|
|
Yes 2 polygons with one or 2 adjacent sides.
The problem with Regions is that when I use FrameRgn, I get a Frame around the region, and just want to display the edge.
The problem is that I have som schematic teeths, divided into 5 polygons one center, with four surrounding polygons. You can have a defect in two adjacent polygons og just in one polygon.
When you have it in one polygon you have a frame around the polygon surrounding this polygon with a color inside indication the material the defect is filled with. When the defect extend into two polygons the I want to have a frame around both polygons filled with a color.
I might extend it to the hole teeth.
Thanks for your interest
|
|
|
|
|
is there a public dictionary HTTP service/XML web service?
thanks in advance
Roman Nurik
|
|
|
|
|
i mean word dictionary... e.g. Merriam-Webster
Roman Nurik
|
|
|
|
|
http://dictionary.reference.com/
|
|
|
|
|
sorry, i meant a service that would return raw results, not a formatted HTML document
for example, there is a Yahoo server that returns a comma-delimited text file for stock quotes based on a given format
is that possible for a dictionary-type service?
an XML web service would be better and cleaner, but i'd settle for a simple service
Roman Nurik
|
|
|
|
|
How could I retrieve hardware I/O address in Windows NT, 2000, XP?
|
|
|
|
|
Okay, i know how to change the actual program's icon... I was just wondeing if it would be possible to chage/remove the MFC logo in the top lefthand corner of my program... It doesn't really matter if I can't I just would like to know if its possible. I should mention that I made an SDI program instead of a dialog/MDI program.
Thanks for any help/enlightenment,
orcblood
|
|
|
|
|
By default for an MFC application, the icon in the top left hand corner is the 16x16 icon - not the 32x32 icon, in the icon resource IDR_MAINFRAME.
Dave
|
|
|
|
|
Add a new icon to your application and give its ID same as the icon having mfc bitmap after deleting that default icon.
C.R.Naik
|
|
|
|
|
I am using CComboBox::SetDropDownWidth to make my strings fit into the dropdown listbox. Works fine! However, when I place my combo near the right edge of a screen, it extends beyond the edge, and so the vertical scrollbar is not accessible. I would like to right align the dropdown listbox with the combo, so that the vertical scrollbar would be placed directly under the dropdown arrow and the listbox stretched to the left if any string was wider than it.
How could it be achieved?
Regards,
BB
|
|
|
|
|
What EXtended Styles have you tried ?
WS_EX_RTLREADING |WS_EX_RIGHT | WS_EX_LEFTSCROLLBAR
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
I'm guessing the concept of a 2 hour movie showing two guys eating a meal and talking struck them as 'foreign'
Rob Manderson wrote:
|
|
|
|
|
Well, I can see/use the scrollbar this way, but what I need is to move the whole listbox to the left to make the strings fully visible.
Regards,
BB
|
|
|
|
|
Hi there,
I try to make a plug-in system for a multiple SDI application : this application should loads FormViews from separate DLLs. Formviews are rightly showed but the problem stopping me is that I don't have any controls on my view, only a small white and unwanted dialog whose class is "Shell Embedding" (according to SpyXX) !
Furthermore, if I try to bind controls to member variables, my application crash with the following message : "Error: no data exchange control with ID 0x????"
Obviously, I missed something, does anybody could give my some hints about these errors ?
Technically : the application browse a folder hoping to found .dll. Each DLL have an exported function called Init (based on "Using a Doc/View exported from a dynamically loaded DLL (SDI)" By Dave Loeser) who fill up a CRuntimeClass pointer with the RUNTIME_CLASS(CMyFormView) contained in the DLL.
Those pointers are used to register the view through the following code :
pDocTemplate = new CSDIDocTemplate
(
IDR_MAINFRAME,
RUNTIME_CLASS(CSdiMultiDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
lpFormView
);
AddDocTemplate(pDocTemplate);
Thank you, it's very important for me
|
|
|
|
|