|
Hello, the codegurus around the world.;)
We can derive CMyFileDialog from CFileDialog class, and
put the some code to create icon in CMyFileDialog::OnInitDialog().
Good luck.
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
hi all,
I am using VS-FlexGridPro Version 7 (A product from VideoSoft & Bunka Orient Corp.) in my project. This is an ActiveX Control similar to MSFlexGrid but it provides more facilities than MSFlexGrid.
i have a problem in this, i have to add check boxes in first column of the Grid Control. but there is no property to set for check boxes.
if anyone know aboout it then please reply asap.
Thanks
Nitin
|
|
|
|
|
I think you must define the column type as boolean.
VsflexGrid will display check boxes.
|
|
|
|
|
Hello Erik,
To continue on the topic of dynamic toolbands and XML:
As I told you, I'm writing a similar app. The problem is with parsing the XML. I tried to use Ben Bryant's CMarkup class, but it says that XML is not well formed no matter what I do.+ I'm a COM programmer and would like to use MSXML parser to parse the XML. I do have a XML parsing class, taken much after Stingray's OTL toolkits XML class. The problem is in searching the XML tags. It can only find the first matching tag but not beyond it. Look, I know you must be very busy writing a gadzillion of articles for guys like me, but I would like you to lookover my XML class and suggest improvements. Of course I can't post it to you right away, but well, I give you fair warning!
Anyway, for the toolband the general idea is to create a toolband and embed a toolbar(rebar)in it. On OnCreate of toolband, I create my buttons with relevant icons and text. This occupies half of the toolband's area. In the other half I would like to dynamically create buttons based on XML data. After the toolband's created it retrieves an XML file from the web server and parses it. Then in accordance with the data it creates buttons(links really). on clicking buttons I just call Navigate()on the interface I get from SetSite() to navigate to the appropriate url. I'm using a stl class to store URLs.
Is this what you are doing too?
Also, if you have seen Yahoo companion, you'd know the kind of dropdown buttons I'm talking about. basically dropdown with tracks states too. Is there already any class like this here at CP? I really don't wanna code the button class from scratch,unless I have to. What's the easy way out?;P
TIA.
|
|
|
|
|
Since you're doing just simple parsing, you can use MSXML 1.0+ which ships with IE5+ (Maybe even IE4,IE4.01). To check to make sure you have valid XML just open the file in IE and see if it loads properly. Dynamic and static buttons are both obtainable. You can simplify it with 2 toolbars or fanagle it with 1 toolbar making sure not to overlap button ID's. How you are planning to do it is the way I have already done it.
As for the yahoo companion question about menu states, I don't have any information on that.
-Erik
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
For your XML parsing problem, have you checked out the IXMLDOMNode::selectNodes() method?
|
|
|
|
|
How can I tell from an add-in to code to save the active docments and/or to save all the documets in Visual C++?
Thanks,
Vitalu Belman
|
|
|
|
|
To Save ALL :
Call the get_Documents method on IApplication which returns IDocuments, then call Item(nIndex) on IDocuments to get IGenericDocument and then call the Save method on the IGenericDocument ptr.
To Save Active Document:
Call get_ActiveDocument on IApplication ptr which returns IGenericDocument and then call Save with appropriate methods.
HTH
Jignesh
|
|
|
|
|
I search for a method in MFC to define a toolbar button will have a drop-down arrow, but not as a separate section.
There is a feature like this in "Core Draw".
Thank you
dana
|
|
|
|
|
Give the toolbar the TBSTYLE_EX_DRAWDDARROWS extended style, and button the BTNS_WHOLEDROPDOWN style. Note that this only works with version 5.80+ (IE 5+) of the common controls.
--Mike--
http://home.inreach.com/mdunn/
The Signature, back by popular demand: Buffy. Pajamas.
|
|
|
|
|
Thank You!
I have in my computer the IE-5 but the name BTNS_WHOLEDROPDOWN style is not recognized by my Visual C++ compiler. How I can update my Visual C++ include files for this version ?
Thank you
Dana
|
|
|
|
|
You'll need to download the latest header files from MS, they're in the Platform SDK.
--Mike--
http://home.inreach.com/mdunn/
The Signature, back by popular demand: Buffy. Pajamas.
|
|
|
|
|
doe sanyone know how to implement a function such that it changes a number (which can be in any of the 3 formats: hex, bin or dec) to its equivalent in one of the 3 formats.
pls help...
|
|
|
|
|
i'm sure there are functions available somewhere but using a lookup table is very easy
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Hello, the codegurus around the world.;)
Are you looking for
setiosflags(ios::hex), setiosflags(ios::oct), and setiosflags(ios::dec)?
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
i think he mentioned binary too so i figured it was easier to build the 3 look-up functions in one go rather than splitting the functionality across 2 different methods
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
greetings,
i am working on a dll hook project
in this function
LRESULT CALLBACK MyProc(int nCode, WPARAM wParam, LPARAM lParam)
wParam gets the virtual key code
whats the best way to convert the virtual key code to ascii?
thanks for your time
|
|
|
|
|
The virtual key codes for 0-9 and A-Z are, conveniently enough, '0' to '9' and 'A' to 'Z'. If you need more info on the key codes, see winuser.h, and there's a list of the codes in MSDN.
--Mike--
http://home.inreach.com/mdunn/
The Signature, back by popular demand: Buffy. Pajamas.
|
|
|
|
|
Here we have a Custom OLEDB provider. We have problems
dealing with the null values. The OLEDB provider is in
VC. Here we get the records as an variant array and
then moving it to a stream object and then assigning
it to a BSTR pointer. We are reading that as an ADO
recordset from VB. All the values are ok in VB. But
when we come across null values, we are not able to
process it properly. When we write NULL to the stream
object (which is bytes), we are reading it as 0 in the
VB recordset.(since in vc NULL has a value 0). So i need to read that value as null in
the VB.
In VC i tried writing VT_NULL and VT_EMPTY. But i
could not read that as null in VB.
if i use the isnull(fieldname) , i need to get the
result as true if the value is null. I dont know how
the null value is treated internally.
We use this OLEDB provider not only from VB, we use
even from Crystal reports for reports.
So can anybody please let me know how do it or let me
know any source where i can get the help from. Or is there any sample available for the Custom OLEDB provider. I have looked on to the sample from Microsoft . But nothing worked out
|
|
|
|
|
Here we have a Custom OLEDB provider. We have problems
dealing with the null values. The OLEDB provider is in
VC. Here we get the records as an variant array and
then moving it to a stream object and then assigning
it to a BSTR pointer. We are reading that as an ADO
recordset from VB. All the values are ok in VB. But
when we come across null values, we are not able to
process it properly. When we write NULL to the stream
object (which is bytes), we are reading it as 0 in the
VB recordset.(since in vc NULL has a value 0). So i need to read that value as null in
the VB.
In VC i tried writing VT_NULL and VT_EMPTY. But i
could not read that as null in VB.
if i use the isnull(fieldname) , i need to get the
result as true if the value is null. I dont know how
the null value is treated internally.
We use this OLEDB provider not only from VB, we use
even from Crystal reports for reports.
So can anybody please let me know how do it or let me
know any source where i can get the help from. Or is there any sample available for the Custom OLEDB provider. I have looked on to the sample from Microsoft . But nothing worked out
|
|
|
|
|
hello, does anybody know how to find out if server supports random read through wininet?
thank you
|
|
|
|
|
One of the developers I work with has a problem on Win9x platforms.
He has created an MFC extension DLL which is intended to be used to
access resources. In this case the DLL has something like 948 bitmaps
in it. The DLL is 1.6Mb in size.
The problem is the DLL won't load on Win9x boxes, but will load on
NT/2000. We've also tried LoadLibraryEx() with the LOAD_DLL_AS_RESOURCES
flag but that didn't work.
I know there is a 2MB limit on resources for Win9x, but that is GDI
resources, and these bitmaps have not yet turned into resources
as they haven't been loaded yet (doesn't get to DllMain()).
Any ideas?
Stephen Kellett
|
|
|
|
|
I have created a very basic Internet browser SDI. In the app I have a Address bar which is a edit box.. When I enter a string/internet address into the box and push enter I get an error it states: "The instruction at "0x5f50bf59" referenced memroy at "0x0000007c".The memory could not be "read".
This error only happens about 90% of the time. Yesterday the app worked fine for about 15 minutes or so. Any ideas?
Thanks,
Rob Jones
|
|
|
|
|
Rob,
It sounds like you are accessing memory via a pointer that holds
an incorrect address. Most probably an uninitialised pointer.
Without a stack trace and a snippet of code its very hard to say for
sure.
Stephen Kellett
|
|
|
|