|
I have already seen how to create an simple automation which could open known workbook and worksheet. But, after this step I would like to catch some cells.value, and after send those value as parameter to a function implement in c++.
If anybody know an article or have done this kind of exercise, I will appreciate his help.
Thanks
Gerald
|
|
|
|
|
|
Hi!
I need to get a notification message from my Doc/View RichEditCtrl. In order to use OnNotify, I need to know the ID of the control ( ON_NOTIFY( wNotifyCode, id, memberFxn ) ). I have been unable to find it.
Does anyone know how to solve this? Or get around it?
Thanks!!
Ilan Kleinberger
ilan25@hotmail.com
NOTE!!! my replay address is spam protected make sure you remove the extra junk, if you want to reply directly. Thanks
You're nobody, 'till you've been ignored by a cat.
|
|
|
|
|
The ID is AFX_IDW_PANE_FIRST if you don't use splitters. However, the best way to handle notifications is in CRichEditView-derived class itself. Just use ON_NOTIFY_REFLECT macro instead of ON_NOTIFY in the message map of your view:
ON_NOTIFY_REFLECT(EN_SELCHANGE, OnSelChange)
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
Hai
I want to put my structure containing two CPoint variables into VARIANT
array and assign to DISPPARAMS.I need variant array of this structure.
How can I do it?
Thanks
Pathi Gorantla
bhikshapathi_g@semanticspace.com
|
|
|
|
|
See http://msdn.microsoft.com/library/periodic/period96/activex0696.htm
Mh2!
|
|
|
|
|
mfc1.dll is a Visual-C++ extension mfc dll that contains 3 classes which use MFC and have a non-mfc external programming interface. mfc1.dll gave no errors during build.
winNoMfc.dll is a Visual-C++ WIN32 dll that does not support MFC code within it. It has a dependancy on mfc1.dll. But a function from winNoMfc.dll makes an API call to one of the classes in mfc1.dll.
The build of the winNoMfc.dll gives a compile time error "error C2629: unexpected 'class CSoundFile ('" and further such errors even though this class is defined in mfc1.dll.
Could you suggest a reason for this. Thanks.
Abhay Sarup
|
|
|
|
|
C2629 is a syntax error. Check the terminating semicolons in class declarations. I don't think it's a problem with dlls.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
how do i insert key,values in a map ?
typedef std::map<char*,int>myMap;
myMap.insert("abc",1);
this does not work,what is wrong here ?
parag
|
|
|
|
|
You can see the class CMap, that is the class base of CMapStringToOb and else. Then you should do:
CMapStringToOb mymap;
Declare a object;
mmymap.SetAt("abc", object);
Jane
|
|
|
|
|
no budy,
i want to use c++ map
want to return from a function,
how to insert key-values for C++ ?
parag
|
|
|
|
|
You can use myMap::value_type or std::pair. Also, you should consider replacing char* with std::string.
typedef std::map<char*,int> myMap;
myMap m;
m.insert(myMap::value_type("aa", 1));
m.insert(std::pair<char*,int>("bb", 2));
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
typedef std::map<std::string, int=""> MyMap;
MyMap map;
map["blah"] = 5;
int result = map["blah"];
// result = 5
|
|
|
|
|
Hi
I declared CTypedPtrList object in the document class like this
CTypedPtrList<cptrlist,cconnector*> m_strokeList;
and I want to pass this list to a function in a view by declaring reference
CTypedPtrList<cptrlist,cconnector*>& LineList = pDoc->m_strokeList;
writeFile(filepath, LineList );
I am getting error that
error C2664: 'writeFile' : cannot convert parameter 2 from 'class CTypedPtrList<class cptrlist,class="" cconnector="" *="">' to 'class CTypedPtrList<class cptrlist,class="" cconnector="" *="">'
No copy constructor available for class 'CTypedPtrList<class cptrlist,class="" cconnector="" *="">'
How can I solve this problem?
bhikshapathi_g@semanticspace.com
|
|
|
|
|
You're trying to pass CTypedPtrList by value. You should use const reference instead - passing arguments by value is usually much slower and resource consuming (unless you're passing stucts containing only simple types like int or double).
Change the declaration of writeFile function to this:
void writeFile(CString filepath, const CTypedPtrList & list);
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
I need to write an automatic plugin installer for browsers(Both IE and Netscape) plugin. I know for Internet Explorer, you can do it with ActiveX and cab files, but do not know how to do that... so anyinfo on how to proceed ..be of great help.
I realised, i need to do 2 things to be done by installer,
1. Detect browser's plugin directory
2. Copy plugin to that directory
3. Do I need a Certificate (cause i'm writing to clients machine not sure)
thanks in advance
regards
Kannan
|
|
|
|
|
I have an application with its doc, wiew, main classes and I added an ATL component (a dual interface). Now I want to call a Fire process in CProxy class from whichever this classes (doc, view..) or whatever I declare, how can I do it? Thanks
|
|
|
|
|
|
I've problem to enumerate local network shares when i'm not currently connected to LAN. I use standard Windows Networking functions - WNetOpenEnum to open enumeration from root -> enumerate whole current branch with WNetEnumResource & store container resources in list(no recursion) -> open remaining containers from list w/ WNetOpenEnum and repeat enumeration until list is empty or other error.
When my comp is connected to a network, all works perfectly. When not, none of shared resources is found although Windows Explorer or Windows Commander shows them. What i'm doing wrong ? Is there some source code that solves this problem or some good faq describing in depth windows networking ?
Thanks in advice for help
J. Forman
Config: Windows98, TCP/IP network protocol, client for MS Networks, MS family logon
|
|
|
|
|
My guess is that you should first detect whether or not you are actually connected to the LAN. Then if your not connected call WNetOpenEnum passing it RESOURCE_REMEMBERED as the scope.
Just a theory thought, I've never actually tried it.
-Ben
---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic"
|
|
|
|
|
Hi ,
i was just trying to use CArray template and ooops it gave hundreds of errors.When i get rid of it it compiles.an anybody help me to fix it
OK.
what i added :
I have a person class in another file.
and the code to create CArray is:
CArray<cperson,cperson&> m_PersonArray;
what is the wrog with it?should i include some header files,
just give this beginner a hint
with greetings
Özgür
Bachelor of Control&Computer Engineering from IStanbul Technical University
Worked with Delphi for 6 Months
Worked with Java for 3 Months
Now ,Working with MFC,VIsual C++6.0 and ADO
|
|
|
|
|
Hi,
You need to #include <afxtempl.h> probably in stdafx.h for ease.
Also you will need a copy constructor and operator= for your class
yourclass(const yourclass& c)
yourclasss& operator=(const yourclass& rhs)
HTH
Bob.
|
|
|
|
|
oops, the name of the header you need is <afxtempl.h>
|
|
|
|
|
darn this thing, it's... afxtempl.h
|
|
|
|
|
Assuming that the class is called person you can do two things:
One: This is how to create a CArray of 'person's
CArray<person, person> m_PersonArray
Two: you can ditch CArray for the dog it is and use STL
Oh, use an ampersand (shift 7) and lt or gt for the < or > signs, or otherwise all you'll do is lose everything inbetween them, as it's parsed as a HTML tag.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|