|
Dear Experts,
While running the visual c++ program for active directory querying an error occuring like activeds.h is not included.so my question is whether we have to create activeds.h or it is builtin header file.provide me a solution to run the program
|
|
|
|
|
raja 4 wrote: so my question is whether we have to create activeds.h or it is builtin header file.provide me a solution to run the program
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi All,
I am a beginner in Adobe Indesign CS4.When i build a plugin using dollyxs and running it i am getting the following error.
PRJ0019:A tool returned an error code from performing custom build set up.
Can anyone solve this problem??
I am using Microsoft visual studio 2008 and AdobeIndesign cs4
Regards
G.Narendra Babu
|
|
|
|
|
narendragrandhi wrote:
I am using Microsoft visual studio 2008...
But it's not a VS problem. See here for more.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi All,
I want to know that when & where does the storage for static data members of a class is defined and what is it's life time.
Since we don't need to create an object for assessing static members, does the storage is defined only by defining a class with static data members.
Please let me know about the same ASAP.
Thanks,
Akash
|
|
|
|
|
akashag wrote: Since we don't need to create an object for assessing static members, does the storage is defined only by defining a class with static data members.
You've to explicitely define the static members of a class, once you've declared them inside the class.
akashag wrote: Please let me know about the same ASAP.
Fast enough?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
akashag wrote: storage for static data members of a class
Since static members have to be available whether an object of the class exists or not, they are allocated in fixed program memory by the compiler. Thus they will be present during the lifetime of the program.
|
|
|
|
|
Hi,
Thanks for your answer.
Between, I assume that by 'fixed program memory', you mean heap. Isn't it?
Secondly, at what time storage for them is reserved?
Rgrds,
Akash
|
|
|
|
|
akashag wrote: etween, I assume that by 'fixed program memory', you mean heap
Why?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
akashag wrote: Between, I assume that by 'fixed program memory', you mean heap. Isn't it?
No, I mean fixed program memory.
akashag wrote: Secondly, at what time storage for them is reserved?
As I said before, at compile time.
Static data whether global or class is allocated by the compiler, it is not dynamic (i.e. run time allocated).
|
|
|
|
|
akashag wrote: I want to know that when & where does the storage for static data members of a class is defined and what is it's life time.
Hi Akash,
Static data members are having global scope comparing to local variables. The simple example for this is when ever you are trying to create a static variable inside a class it gives an error. That is the memory is allocated to class variables at run time. Where as memory allocation done at compile time in case of static variables. So when ever i am creating variable inside a class means I giving memory at run time, both the things are contradiction.
A variable for that memory allocation done at only once called static variable.
sampath-padamatinti
|
|
|
|
|
sampath-padamatinti wrote: The simple example for this is when ever you are trying to create a static variable inside a class it gives an error.
What does this mean? It is quite correct to have static variables in a class: they are known as class variables.
sampath-padamatinti wrote: That is the memory is allocated to class variables at run time.
No, class variables are allocated at compile time.
sampath-padamatinti wrote: both the things are contradiction.
|
|
|
|
|
I have slightly changed the query. Changed part is put in italics
i have a button in my dialog based application which calling a thread, This thread in-turn calls another function, this function is in a different class which actually does file manipulation (basically i am converting some text files to binary files). Now how do i display which file is getting converted in the main dialog where i am calling the thread?
modified on Wednesday, October 7, 2009 3:05 AM
|
|
|
|
|
One way to do it is to send user defined messages to your main dialog. Here[^] is a great article that you should read if you want to better understand threads and the interaction with the UI.
|
|
|
|
|
Chandru080 wrote: Now how do i display which file is getting converted in the main dialog where i am calling the thread?
PostMessage() .
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Good morning ,
quick question. How do I set the shell title for a c++ program?
Souldrift
|
|
|
|
|
|
God, I couldn´t find that anywhere. You are my hero today .
Thanks.
Souldrift
|
|
|
|
|
i am doing a project on customization of minix 3 to my native language if anyone has any contributing ideas i will be glad
|
|
|
|
|
Please post it in the Collaboration / Testing [^] forum.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hello everybody I have observed a strange behaviour in Win Vista and 7 when I call the GetProcAddress to resolve it self
GetProcAddress(GetModuleHandle("kernel32.dll"),"GetProcAddress") returns wrong value.
I compare the return value with the windbg and its way different (though in a valid 0x7000000-0x7ffffff range).
I 've seen some reports on the web about it but I dont know how to overcome this problem.
Any ideas?
Thanx
|
|
|
|
|
What addresses are you seeing?
In the VS debugger, I see my program enter the same address (0x76E81202) that both &GetProcAddress and GetProcAddress(GetModuleHandle(L"kernel32.dll"),"GetProcAddress") return - this is under Windows 7 x64.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Attach the Windbg and look for GetProcAddress it should be a different one.
In my case it points to GetProcAddressStub instead of GetProcAddress.
In some other examples I tried involving dll injection the address is far more out of
the kernel32.dll range
|
|
|
|
|
Ok I managed to narrow it down. You where right about .exe it works fine.
BUT in case of a dll run by rundll32.exe things change and GetProcAddress returns always wrong
|
|
|
|
|
How to deallocate from MFC GUI application the data that was allocated in MFC thread?
Upon a button click in MFC dialog application, the thread is started with AfxBeginThread, it allocates some float* array with malloc() then send to MFC application a windows message attaching that buffer.
It is not possible to deallocate it from MFC dialog message handler that float* array with free()??? It returns heap corruption, is it due to deallocation from another thread or some buffer overrun?
Чесноков
|
|
|
|