|
yes u can use the ellfringe barcode
go to site www. barcodingfonts.com
try it and reply
abhi
abhilash_mca@email.com
|
|
|
|
|
yes u can use the elfringe barcode
go to site www. barcodingfonts.com
try it and reply
abhi
abhilash_mca@email.com
|
|
|
|
|
I have an MFC based dialog application that contains a DHTML ActiveX control. I want to be able to pass an XML string to the control and have the XML displayed in the control.
Does anyone know if there is a way to do this? I have tried passing an XML string to the control using the CDHTMLEdit::SetDocumentHTML() method but it does not work. It will only correctly display HTML strings.
Due to my lack of success with the DHTML control I decided to replace the control with the Microsoft Web Browser ActiveX control to see if I could load XML strings into this control. I eventually got this to work ok but only after saving the XML to a file on the harddrive and then calling CWebBrowser2::Navigate(), passing the Navigate method the name of the file just saved.
Even though this works I would prefer to be able to pass the XML as a string straight into the control without having to save the xml to disk first. On the MSDN website there is some example code which shows how to load HTML content directly from a stream into the WebBrowser control. This does not work though with XML. Does anyone know why?
Martin Hinchy
|
|
|
|
|
Here's probably the easiest way assuming you are using IE5.
Load the XML string into an MSXML IXMLDOMDocument object using the load or loadXML depending on your use. Then load the default style sheet for XML from the msxml.dll into another IXMLDOMDocument object using the load method and specifiying the url of : "res://msxml.dll/DEFAULTSS.XSL" Then do a transformNode on your XML document using the stylesheet. Then put the resulting transformation into your SetDocumentHTML method.
If you don't think IE5 will be installed, then you can put the defaultss.XSL into your application as a resource and load it from your own component using the res prototcol.
look for "Using the Default XSL Style Sheet in Your Application" in msdn which will have a link to get the default stylesheet that IE5 uses.
-Erik
|
|
|
|
|
Hi
I wonder how should one create a parser for a defined language
with lets say 10 commands..?
i have a custom OLE-DB Provider and i want to be able to use simple
SQL against this provider
thanks
tomer
|
|
|
|
|
Like always: lexx & yacc, or any derivates thereof like ANTLR, Visual Parse (commerical)...
|
|
|
|
|
Hi all,
Can anyone tell me where I can get some example source code for barcoding. My email is rm23370@btinternet.com if you can help.
Refards, JT.
|
|
|
|
|
Hi All,
I am badly looking for how to create a frameless windows. If anybody would help it, I would appreciate it.
Cheerz all
|
|
|
|
|
I have code for a framework that does it, but you won't like the solution.
Try intercepting WM_NCCALCSIZE. Remove the caption area from the first rect, and return WVR_VALIDRECTS.
Told you, you wouldn't like it. But it works.
|
|
|
|
|
I am quite new to programming and trying to self learn what I need.
I am looking for a way to create the effect of a fully dockable toolbar
or dialogbar which can realign as needed for any edge. Either to rearrange the template of the dialog bar according to its dock position or to include a list box, simple combobox, and several standard (not bitmap) pushbuttons in a toolbar or similar setup.
Can anyone help with this?
Thanks
|
|
|
|
|
Study MFC. The code sucks, but the concepts probably holds.
|
|
|
|
|
I'm currently studying c programming and need to use a bubble
sort to put a list of videos in alphabethical order
if any one could send me the code please do
I'M Desperate!!!!
edgein@hotmail.com
peter
|
|
|
|
|
|
I am looking for a way to retrive files and check them back into source safe every day. In other words at night when everyone leaves I want to get all the files and then check them back into source safe.
Any Ideas.
I am trying to use a batch file for this.
|
|
|
|
|
Source Safe has an object model so you can use some functionality of it from within a script file (e.g. VBScript).
Grtx,
Berry
|
|
|
|
|
What would that be? The only thing I have been able to find is a few things about command lines and batch files. Nothing on VBS.
|
|
|
|
|
The help files document the command line interface for checking-in/out files.
If you have a batch process to check-in all checked-out files every night, I would suggest that it is far simpler and quicker to do a recursive check-in from $/ in a batch file, rather than to try to develop an application to do the same thing.
|
|
|
|
|
Could someone please make a code for mIRC-like splitters, and window bar, but make the window bar dackable, and non-resizing. If you don't know what mirc is, go here: www.mIRC.com
|
|
|
|
|
Hi all,
I am writing an application for generating arbitration trees (correct term ). Since now, I am using a tree view control for visualization, but it's nasty coding: because there may be recursion(1), I have to insert the items dynamically when receiving a TVN_ITEMEXPANDING, and if the users changes some item's properties, I have to parse all items for consistency, which is quite annoying.
Therefore, I want to implement a flow-chart view. That's not too difficult, except one point: The connection lines between the items. I do not want the lines go from one item to another crossing a third, but would like to see the lines only horizontal and vertical, not crossing items, and overlay each other as less as possible.
Does someone know a appropriate algorithm, or even has it already implemented or knows a ready-made library?
Thanks in advance ,
Thomas
(1) I really like Christian Graus' statement: To understand recursion, we must first understand recursion.
I am a signature virus!
Help me spread and copy me to your sig!
|
|
|
|
|
i've read that, in general, this is a mathematically "non-trivial" algorithm.
i was looking for code to do this a few months ago. i didn't find anything... again.
-c
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
Woh, that was a fast reply
i've read that, in general, this is a mathematically "non-trivial" algorithm.
Yes, that's right, but I hope there are some theoretical computer scientists hanging around at this forum, who have written their dissertation about this topic
Best regards,
Thomas
I am a signature virus!
Help me spread and copy me to your sig!
|
|
|
|
|
Hi Thomas,
This is an area of some interest to me as well. I have spent quite a bit of time looking for packages to do this with limited success.
See my post in the Lounge: "Flowchart/Diagram libraries" 25 Dec 00
I've found a few other packages since then. Let me know if you would like the details.
Please let me know if you find anything.
Neville Franks, Author of ED for Windows
www.getsoft.com
|
|
|
|
|
I am looking for any helpful source code on how to implement Docking windows, Splitter-windows and an Explorer-like tree view in plain C, not C++ and not MFC.
I think we can figure out how to display an Explorer-like view of a drive using plain C, but I don't have a clue where to even begin with Docking windows and Splitter windows.
Thank you.
Ted Green
ted@vedit.com
|
|
|
|
|
I don't have any code but I can tell you were to start.
Explorer's tree view uses the treeview common control which does not use MFC and can be used from C. Lookup the API function FindFirstFile for information on how to traverse directories.
Docking windows and splitter windows use the same type of system. The main window controls the child windows size and location. One of the child windows, the view, is where the data is drawn.
When docking windows are used the view window's size and location is changed by the main frame to allow other child windows to be positioned around it. When the docked window is clicked on and the cursor is dragged and released it tells its parent window that it needs space at its new position. The parent window resizes the view. (See Illus. 2.)
When a splitter window is used one parent window controls the position of two or more view windows. In Windows Explorer the parent window is the main frame. (See Illus. 3.) When the parent window detects when the cursor pass over it the parent window changes the cursor to the splitter cursor. When the button is pressed and the cursor moved the parent window resizes its child windows (views) based on the cursor's new location. A way to see this behavior is to use the spy tool on Windows Explorer.
Illustrations
1) Application window without toolbars.
+---------------------+ <-- Main frame
|Title |
+---------------------+
|File Edit Help |
|+-------------------+| <-- View window takes
|| || up the Main frame's
|| || GetClientRect().
|| ||
|| ||
|| ||
|+-------------------+|
+---------------------+
2) Notice how the view window size has been
decreased by the toolbar.
+---------------------+ <-- Main frame
|Title |
+---------------------+
|File Edit Help |
|+--------+ | <-- Docking window
|| | | (toolbar)
|+--------+ |
|+-------------------+| <-- View window
|| ||
|| ||
|+-------------------+|
+---------------------+
3) Like Windows Explorer, the main frame will
act as the splitter. For more complex
designs a child window can handle the
splitter logic.
+---------------------+ <-- Main frame
|Title |
+---------------------+
|File Edit Help |
|+----+ +------------+| <-- Two view windows
|| | | || Explorer uses a
|| | | || treeview and
|| | | || listview control.
|| | | ||
|| | | ||
|+----+ +------------+|
+---------------------+
^
|
The main frame detects mouse movement over
the space between the views.
Hope that helps.
|
|
|
|
|
Thank you for the prompt reply.
I understand the basics and have programmed windows such as toolbars (before the common control in Win32), rulers, MDI, etc. Its all the "details" that are so time consuming.
1. Explorer tree view - I'm sure that I am not the first person writing an "explorer" in plain C. Its all the details of determining which drives are available, etc. that take time. However, I don't see any stumbling blocks; just would be nice if I could find complete sample code. The "chicoapp" example on MSDN and the FileTree example on codeproject.com are very useful.
2. Docking Windows - Details include the subtle ways that the mainframe's window borders are drawn/shaded when there is a docked window, the algorithm for outlining where the window can be docked. The slider for resizing the docked window in non-trivial.
3. MDI splitter windows. This also looks very difficult. It appears that you may have to sub-class the drawing of the MDI border and scroll bars in order to display the scrollbar "splitter", etc. Perhaps no one has attempted this in plain C.
Any references to sample code will be appreciated.
Thank you.
Ted Green
ted@vedit.com
|
|
|
|