|
deeps_cute wrote: i tried to write the value of the variable "value".
Hint: Providing a code snippet of this would be helpful.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
yes here it is
variant_t v;
hr = pClass->Get(L"IPAddress", 0, &v, NULL, NULL);
if (VT_NULL != v.vt)
{
LONG lBound;
BSTR Value;
SafeArrayGetUBound(V_ARRAY(&v), 1, &lBound);
while (lBound >= 0) {
SafeArrayGetElement(V_ARRAY(&v), &lBound, &Value);
TRACE("IPAddress[%u] = %S\n", lBound, Value);
fprintf(fp,"%u", value); lBound--; } }
|
|
|
|
|
saisp wrote: fprintf(fp,"%u", value);
What is value ? If you meant Value instead, then you did exactly what I said not to and used %u instead of %S .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
deeps_cute wrote: no sir now also its printing the same value(150012).
Are you using the debugger to verify that the _variant_t and BSTR variables contain actual data?
deeps_cute wrote: i think i am irritating you
No, that is reserved for those that don't try.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
yes sir but its not returning the actual value. some address variables are there
|
|
|
|
|
|
sorry sir actually we r two members facing the same problem thats why such confusion. but till now we didnt get the solution. i am expectin mr.david or anyoe else for solving my problem. can you help me
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
It's a bit hard to follow the thread now that you have deleted the posts (
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
And how do you have those variables formatted (e.g., s or su) in the watch window?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello,
I want to do an application converting a DBF file to a XML file, but I don't know about XML file more, so I can't start it now.
Can you help me?
Thanks.
|
|
|
|
|
Hi all,
I am using Application Verifier to test my application (VC++ 2005) on Win XP.
I added my application to Application Verifier. But when i ran my application, either it gave first chance exception or it didn't run at all.
What may be the problem?
|
|
|
|
|
In my experience, the problem is that AppVerifier is a waste of disk space.
A better appoach IMHO (and it's what we did) is to install Vista in a virtual machine and test on that.
Jim
|
|
|
|
|
|
MaHeSG wrote: I don't have Vista.
get beta version.. it is free for now!
"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
All
I want to change font of Caption of Dialog Box and top menu. I write code in OnDraw() function. I use SetFont() method by passing *pFont but it reflects no effect in change in font.So plz send me some hint about this problem.
Thanks
Atul
|
|
|
|
|
i am getting ; error C2065: 'GN_CONTEXTMENU' : undeclared identifier while using context menu in list control. i declared as ON_NOTIFY_REFLECT(GN_CONTEXTMENU, OnContextMenu) in begin message. what i have to do?
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: i am getting ; error C2065: 'GN_CONTEXTMENU' : undeclared identifier
Where is GN_CONTEXTMENU declared at?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
i am not declared it anywhere. i dont know how to use it. i just declared ON_NOTIFY_REFLECT(GN_CONTEXTMENU, OnContextMenu)
in begin messsage map. if anything wrong pls let me
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: just declared ON_NOTIFY_REFLECT(GN_CONTEXTMENU, OnContextMenu)
in begin messsage map.
If you don't know what it's for, why do it then?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
i need right click events in list control. when i searched for this i came across the gn_contextmenu. hence i used it. but i dont know how to rectify the error. if you know pls let me know
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: when i searched for this i came across the gn_contextmenu. hence i used it.
Do you have a mobile/embedded device?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
didn't you forget to #include some header ?
|
|
|
|
|
headerfile? which one.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: headerfile? which one
the one where it's defined, hey !
|
|
|
|
|
GN_CONTEXTMENU seems to be a PocketPC/Mobile thing only. Are you developing on that platform?
|
|
|
|