|
Use dumpbin /EXPORTS if you want to do it from the command line . If you want to do it programmatically you will have to parse the PE file format ( Matt Pietrek has some articles in MSDN magazine about that).
|
|
|
|
|
I would like to create a software (running under windows 98/ME) that allows the synchronisation (of a file, adresse book, calendar) between windows 98/ME/2000/Xp and Windows CE or Palm OS.
I already found a development kit on PalmOS.com to synchronise with a Palm (Conduit development kit). I am looking now to find a development kit for te synchronisation with Windows CE, or even better one that will work for both (windows CE and Palm).
Anyone has an idea ? )
|
|
|
|
|
|
Thanks Michael for your answer =)
I am downloading the "eMbedded Visual Tools" right now. It seems i should find everything i need to do a synchronisation between a pc and a pocket pc.
I am still looking for one tool that would allow me to do a synchronisation between a pc and a pocket pc (under Windows ME and a Palm OS).
|
|
|
|
|
Hi !
I'm doing an Asynchronous Pluggable Protocol to display HTML pages stored in a database.
Everythings work ok (I have implemented the IInternetProtocol and IInternetProtocolRoot interfaces, and Start and Read methods are called properly), but I catch an "Access Denied" error while displaying the page. The MSDN help mention the IInternetProtocolInfo::ParseUrl method to resolve security problem, but I don't have any example of this use...
Any help will be appreciate.
Emmanuel Derriey
|
|
|
|
|
I have a dialog box and I want to have access to my document class.How can I do it?
Thanks
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Try this:
(CMainFrame*)(AfxGetMainWnd())->GetActiveDocument();
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
When I used that code,there was an error return,about "GetActiveDocument()"
but I change it to this"
CMainFrame * pWnd =dynamic_cast<CMainFrame *>(AfxGetApp()->m_pMainWnd);
ASSERT_VALID(pWnd);
CMyDoc * pDoc =dynamic_cast<CMyDoc *>(pWnd->GetActiveDocument());
ASSERT_VALID(pDoc);
and it work properly.
Anyway,thanks for your help
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Unless you have multiple inheritance somewhere in your class design, I don't see how dynamic_cast ing can make a difference (and even so I don't see it either). Would you mind elaborating a little more?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
This is my first try:
CMyDoc * pDoc=(CMainFrame*)(AfxGetMainWnd())->GetActiveDocument();
error C2039: 'GetActiveDocument' : is not a member of 'CWnd'
My second attempt:
CMainFrame * pWnd =dynamic_cast<CMainFrame *>(AfxGetApp()->m_pMainWnd);
ASSERT_VALID(pWnd);
CMyDoc * pDoc=(CMyDoc*)(pWnd->GetActiveDocument());
and work properly,it's not related to dynamic_cast .
My mistake was about convert CMainFrame to CDocument
I think you forgot one line in your answer,didn't you?;)
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
I see now... What I forgot was an extra pair of parentheses
<font color=#ff0000>(</font>(CMainFrame*)(AfxGetMainWnd())<font color=#ff0000>)</font>->GetActiveDocument(); On a side note, I'd suggest you do not use dynamic_cast when it is not strictly needed, because it incurs a run-time overhead. It is like killing flies with cannonballs, as a Spanish saying goes.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Joaquín M López Muñoz wrote:
What I forgot was an extra pair of parentheses
And also I forgot to type cast it to CMyDoc in my first try
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here."Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Is there any function that will return the current CPU speed?
If not I plan on using the number of clocks spent / Number of seconds since boot. The question then becomes, does anyone know of a function that will return the number of milli-seconds since boot???
I believe there this exact value resides in the CMOS somewheres, but I don't think in/out instructions are available in ring 3???
Any suggestions...?
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
HockeyDude wrote:
The question then becomes, does anyone know of a function that will return the number of milli-seconds since boot???
GetTickCount(). As for CPU info, check the System section here on CP.
--Mike--
Fetchez la vache!
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan and Jamie Salé.
|
|
|
|
|
I'm already using the RTDSC instruction to find the clocks gone by. From this number i'd like to be able to calculate CPU frequency.
CPU speed = Clocks / time in seconds
What am I missing....how can I use GetTickCount to calculate CPU frequncy if i already have the clocks since boot?
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
fCPU = clocks since boot / milliseconds since boot [kHz]
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Where do i get milliseconds if i already have clocks...?
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
GetTickCount , boy
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I use MSAccess,and I want to make connection string and it should be something like this:
(Provider=Microsoft.Jet.OLEDB.3.51;Data Source=c:vcdb.mdb;"
How can find out the last version of OLEDB provider that I have?
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
I met such an error message.What kind of error does it mean?
|
|
|
|
|
Means that pUserData does not point to a valid block of memory. That can be caused most likely by one of these reasons:pUserData has not been initialized and points to a random location.
- Your program has changed the value of
pUserData (by incrementing it, for instance), and the pointer does not refer to the proper original location.
- You ave freed the memory previously pointed to by
pUserData (with free(pUserData) , presumably) and yet you're trying to use the pointer.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Yes,I also think so.But usually I don't know where I change this value.For example,when I
insert a new resource and only compile(not rebuild all),sometimes I will get this error.
|
|
|
|
|
Another circumstance than can produce this kind of errors happens when you link several libraries compiled for different versions of the C run-time library.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
You must also be careful of precompiled headers. They are recompiled when you do a build all, as well as when the ide recognizes a change that effects the pch. It doesn't always get this right!
Hope this helps,
Bill
|
|
|
|
|
Does anybody know where can i get an IRC demo or a way to make an IRC project under VC++ .NET?
|
|
|
|