|
That should be swprintf or wsprintfW
(or use TCHAR instead of WCHAR and let the compiler macros pick the right windows function.)
|
|
|
|
|
Joe Woodbury wrote: That should be swprintf or wsprintfW
I checked my spelling carefully before posting, and still got it wrong
Thanks for correcting it.
|
|
|
|
|
hello coder
Is it posile to define same name macro in c project
like folloing
<br />
test1.h<br />
#define process (a&4) <br />
test2.h<br />
#define process (a&4) <br />
<br />
|
|
|
|
|
What are you trying to achieve here, this makes no sense?
|
|
|
|
|
maybe, but the compiler/preprocessor will probably report duplicate something.
But you could do something like (not really test, but I've seen code like in out stuff):
in test1.h
#ifndef process
#define process (a&4)
#endif
and in test2.h
#ifdef process
#undef process
#define process (a&4)
#endif
This signature was proudly tested on animals.
|
|
|
|
|
I still have no idea what you are trying to achieve
|
|
|
|
|
I am having a class which is inheriting CEdit class ..........
But when I try to do ctrl c and ctrl v in the edit box of my dialog it does not perform copy paste.
but if I right click and then copy and paste then it is working fine.
|
|
|
|
|
MFC dialog some times blocks keyboard messages for its controls - really no good.
You can override key-down message of CEdit to see if CTRL-C is sent to CEdit, if not, use PreTranslateMessage(...) of dialog to send messages you need to the CEdit.
|
|
|
|
|
includeh10 wrote: MFC dialog some times blocks keyboard messages for its controls - really no good.
I thought there was someting in resource files for defining a connection between particular key combinations and commands; ACCELERATORS or similar?
|
|
|
|
|
How can we remove/rename a manifest entry programatically?
|
|
|
|
|
A manifest is simply a resource stored in the .rsrc resource section of the executable. You can modify/update or remove it with the UpdateResource Function[^]. You need to call it with lpType argument set as RT_MANIFEST. RT_MANIFEST is #defined as integer 24.
Best Wishes,
-David Delaune
|
|
|
|
|
I am having a class which is inheriting CEdit class ..........
But when I try to do ctrl c and ctrl v in the edit box of my dialog it does not perform copy paste.
but if I right click and then copy and paste then it is working fine.
|
|
|
|
|
Hi to All,
I am using a MS Flex Grid in my learning application. I have 3 columns in it.
Having a problem of selecting rows. Could anyone please help me out with the following problems
1.
..Whenever I select a row, the blue line appears only for the 2nd and 3rd columns in that row, not for the first one in that row.
2.
..I want to use the arrow key to select columns. Is there any inbuild method for that, or I need to program it.
3.
.. To delete a row by pressing the delete column.
Please help me
thanks in advance.
-----------------------------
I am a beginner
|
|
|
|
|
Dear Experts,
I want the exact code for the following
1.How to connect active directory using visual c++
2.How to get user properties of active directory using visual c++
|
|
|
|
|
raja 4 wrote: 1.How to connect active directory using visual c++
2.How to get user properties of active directory using visual c++
You should be able to find it here[^].
|
|
|
|
|
Hello
Can anybody recommed me about the good book of C++.I am not beginer but i often find difficulties
in classes and pointers ,means any book who will help to make big project ,project with more and 100 files .
Thanks in advance
|
|
|
|
|
A bit dated (as C++ ! ) list here [^].
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]
|
|
|
|
|
|
You may also suggest Chris to update is article with your titles.
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
First of all i would like to give thanks to everybody because always i got help from here .
Is existing any type of common pointer in c++ .If yes please tell me how it works and where we
have to create and define.What are the advantages of these type of pointer .
|
|
|
|
|
What is a 'common pointer'?
Are you talking about a global variable?
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]
|
|
|
|
|
johnjitu wrote: Is existing any type of common pointer in c++ .
What do you mean exactly by "common pointer" ?
Are you talking about an untyped pointer (void*) ?
|
|
|
|
|
Yes really guy i am confused ,but yes its like gobal pointer and any class can use it ,
like i have class called C_InterfazRadio and it does not has any pointer directly assigned to it and
but if i want to use its member funcion in other class whose didnot drived from it ,i will need a pointer to call its member function.
C_InterfazRadio *pIfzRadio = (C_InterfazRadio *) puntGen.pIfzRadio;
POINTEROS_GENERALES puntGen defined in other file.
POINTEROS_GENERALES is defined as typestruct in other file .
I hope i could explain my problem .
|
|
|
|
|
What do you want to do exactly (i.e. can you be more precise with your example)?
And: why do you want to do it?
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]
|
|
|
|
|
You mean something like a global variable, that would in turn be available for manipulation all over the source files?
*Shudder*
Take a look at your design again. It could be seriously flawed.
Or if you meant something like a macro, then put it in a header file and include it wherever needed.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|