|
no no .. I am working in a company in kerala itself(NeST). Answering in CP is just a hobby...
nave
|
|
|
|
|
Naveen, Thanks a lot for helping.
You always answered nicely, regularly and promptly.
Are you working for CodeProject ?
I am from Vadodara (Gujarat-India)
Thanks again.
Anand
|
|
|
|
|
Hi,
I used the following function to display HtmlHelp files.it is working fine in non-unicode but it is not working in unicode.i don't no why?anybody can help me.
HtmlHelp(m_hWnd,_T("C:\Working\projects\application.chm"),HH_DISPLAY_TOC,NULL);
E-Ramu
|
|
|
|
|
Ramu.e wrote: it is working fine in non-unicode but it is not working in unicode
What is it doing / not doing in the Unicode build?
Ramu.e wrote: C:\Working\projects\application.chm
I assume you typed this from memory? As the directory paths should be seperated with '\\'
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
I guess your _T macro doesnt do the right things in Unicode. Make the path in an own string.
Greetings from Germany
|
|
|
|
|
I have fired a query on to a webservice using the GET method. Now the GET method has some limitations relating to the size of the query and the data that could be passed with it. So I thought about shifting to the use of POST method. But the POST method fails when trying to connect to the webservice returning an error : 500 Internal Server Error. Any ideas how can I resolve the problem of using the POST method with the Kerberos authentication enabled.
PS: I tried googling for a solution and found this link[^] which says to disable the authentication and this is what I don't want to do as this would create a security hole. (I use MSXML2)
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Dear All,
I need to find number of device drives (harddisk partitions) in a host ?
Is there any API to get this information ?
How can i do this ?
Kindly help me.
Thanks.
|
|
|
|
|
Sakthiu wrote: I need to find number of device drives (harddisk partitions) in a host ?
Look up GetLogicalDriveStrings , GetLogicalDrives .
|
|
|
|
|
Sakthiu wrote:
Is there any API to get this information ?
CNMPDriveClass[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
hi
i am facing memory & handle problem when my application invoke IXMLDOMDocument::load(), even i have used IXMLDOMDocument::Release() each time when i load new xml file, but its continuously increasing the memory and handle usage,
your help will be greatly appreciated
Thanks & Regards
neeraj
neeraj
neeraj
|
|
|
|
|
You got to live with "that". Try do create/delete the whole object.
Greetings from Germany
|
|
|
|
|
I have a simple, but yet important question. I'm trying to determine what the coordinate 0,0 would be on a system with three or more monitors.
I know that for dual displays, 0, 0 is still the top left of the primary (ie, the one with the taskbar). I assume it would be this way for three or more as well, but well we all know how assumptions go.
So, can someone with 3 or more monitors tell me if say -100, -100 is considered off screen or on screen? TIA
|
|
|
|
|
|
Well, I assume when it's three or more the resulting functionality would be the same as if it was eight or whatever. I'm not positive if there's no longer a concept of primary and secondary at that point. And seeing that I only have two monitors, kinda hard to test it out.
|
|
|
|
|
Jeremy Falcon wrote: And seeing that I only have two monitors, kinda hard to test it out.
Likewise.
I thought it was a trick question since you could use different coordinate systems.
My assumption is, by default, the upper left corner of the monitor configured as monitor 1 on
windows.
Good ? though
|
|
|
|
|
|
Gracias for the link! Saved that to my favs - i want 3 monitors
|
|
|
|
|
Mark Salsbery wrote: i want 3 monitors
Same here.
|
|
|
|
|
I recently posted an article about using multiple monitors Jeremy. The answer was there for you.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I just posted an article about using multiple monitors Jeremy. The answer was there for you.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
func1(int a,int b)
func2(int c, int d )
func3(aa,bb,(*fun)())
{
...
fun(aa,bb);
...
}
func4
{
...
if i=1
func3(a,b,func1);
else
func3(a,b,func2);
...
}
all functions are defined in class MyDoc.
When the program is compiled,there are two error in func4. They are in "func3(a,b,func1)" line and "func3(a,b,func2);" line.
The error is the following:
error C2440: '=' : cannot convert from 'int (__thiscall MyDoc::* )(int,int)' to 'int (__cdecl *)(int,int)'
what is the reason?how can i fix them?
thanks!
|
|
|
|
|
I'm going to guess func1 and func2 are members of a class (MyDoc) so they need to be declared
static or called through a MyDoc object.
Mark
.
|
|
|
|
|
thank Mark Salsbery for replying. But all functions are memebers of class CMyDoc, So i don't think they need to be called through a MyDoc object.
i have added the __cdecl to the functions following someone's suggestion.
now the code is following:
in MyDoc.h
typedef int (__cdecl CMyDoc::*pFunc)(CString ,CString ,CString ,CString ,BOOL);
int __cdecl func1(int,int);
int __cdecl func2(int,int);
in MyDoc.cpp
int __cdecl func1(int,int){...};
int __cdecl func2(int,int){...};
func3(int aa,int bb,pFunc fun )
{
...
fun(aa,bb);
...
}
func4 ()
{
...
if i=0
func3(a,b,func1);
else
func3(a,b,func2);
}
But now new erros appear in func3.
error C2064: term does not evaluate to a function taking 2 arguments.
it seems that the fun have not the pointer to func1 or func2.
Please help me! thanks!
-- modified at 9:32 Tuesday 5th December, 2006
|
|
|
|
|
tuqu wrote: But all functions are memebers of class CMyDoc, So i don't think they need to be called through a MyDoc object.
If they are not declared static then they HAVE to be called on an object. That's how C++ works
cdecl has nothing to do with this. That would be helpful if you are perhaps calling the functions
from another language (VB, etc.) or a library built with a different calling convention.
Anyway, since they are all in the same class you should have no problem calling a class member
function pointer from within the functions class.
tuqu wrote: error C2064: term does not evaluate to a function taking 2 arguments.
You've declared pFunc like this:
typedef int (__cdecl CMyDoc::*pFunc)(CString ,CString ,CString ,CString ,BOOL);
but you are calling a pFunc function like this:
fun(aa,bb);
The compiler is expecting you to pass 3 CStrings and a BOOL.
|
|
|
|
|
Mark Salsbery wrote: typedef int (__cdecl CMyDoc::*pFunc)(CString ,CString ,CString ,CString ,BOOL);
i'm sorry for my making a mistake. actualy my function have 5 parameters. in order to make it concise ,i reduced the function to having 2 parameters in the message.
can you give me a example that the function called on an object?
|
|
|
|