|
You beat me with about 10 seconds.
|
|
|
|
|
Nuri Ismail wrote: You beat me with about 10 seconds.
Thank you man for remembering my article
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]
|
|
|
|
|
thx for reply but i dont have any idea abt dll file.
|
|
|
|
|
LoveneetSingh wrote: thx for reply but i dont have any idea abt dll file.
See (as software developer you need to know about DLL s...), for instance [^].
My DLL comes with a sample application and, of course, source code is provided as well.
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 absolutely don't need any dll (!)
Just use basic gdi or gdi+
|
|
|
|
|
kilt wrote: Just use basic gdi or gdi+
Which requires one or more DLLs.
Your posting style is deplorable. Since you never have anything positive or useful to say, why bother? Go play someplace else.
"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
|
|
|
|
|
What is Basic GDI or GDI +
|
|
|
|
|
The Windows system for displaying graphical information. GDI(Graphic Device Interface) provides basic functions, and GDI+ some advanced features. Take a look at the documentation on MSDN for full details.
|
|
|
|
|
Windows programming without DLL s? you're joking, Mr.Kilt...
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]
|
|
|
|
|
Hi
how to showing the images in the dialog box ...??
~~~~~~~~~~~~~Raju~~~~~~~~~~~~~
|
|
|
|
|
There can be several ways, use a picture control, handle WM_ERASEBKGND or WM_PAINT and blit the image yourself, write your own picture-control-like control...if this is not enough for you to get started with it, give more details about what you want because it is hard to guess your specific needs.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
What about documentation [^]?
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 everyone,
This is a kind of strange question but it just got stuck to me this morning while writing my MFC application. Every time we define a message macro in MESSAGE MAP, we use default prototype for handling that message, i.e. for handling WM_CHAR() message we have OnChar() handler, what i want to know is whether there's a way change this default handler and provide our own message handler, with our defined name..........
I know we can work around this by calling our defined function in the default message handler but what i want is i don't want to mention the default handler in my application code.
your help is highly awaited........ thanks in advance
Regards
|
|
|
|
|
Yes you can add your own message handler for that.
Firstly remove OnChar() function from MESSAGE MAP and remove all entries related to it.
then
just add the ON_MESSAGE for WM_CHAR in .cpp file
BEGIN_MESSAGE_MAP(CMDI_CharView, CEditView)
//{{AFX_MSG_MAP(CMDI_CharView)
//}}AFX_MSG_MAP
ON_MESSAGE( WM_CHAR, MyOnCharMessageHandlerFunction )
END_MESSAGE_MAP()
and in .h file add your message handler function.
protected:
//{{AFX_MSG(CMDI_CharView)
//}}AFX_MSG
afx_msg void MyOnCharMessageHandlerFunction (UINT nChar, UINT nRepCnt, UINT nFlags);
DECLARE_MESSAGE_MAP()
Величие не Бога может быть недооценена.
|
|
|
|
|
ARJ 09 wrote: afx_msg void MyOnCharMessageHandlerFunction (UINT nChar, UINT nRepCnt, UINT nFlags);
Just a correction...
The handler of the ON_MESSAGE should be in the format
LRESULT MyOnCharMessageHandlerFunction(WPARAM wParam, LPARAM lParam);
|
|
|
|
|
Yes exactly, thanks naveen for correcting me
Величие не Бога может быть недооценена.
|
|
|
|
|
|
I think I answered your query earlier when it was the other way round i.e you wanted to convert mdb into text. You can use the same method of using CFile to read from the text file and then use DAO to write the values in the mdb file.
If you are unable to find anything on google, search for DAO MFC which you might have missed as the search string.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
I got board with c++ basic stdlib. I want to write some headers.
I believe I understand Defines are functions and that Ifndef Runs the Defines and Operates them for example. I have some basic questions.
If i use
#ifndef TEXT
#define TEXT
#define BINARY
#define OUTPUT
#define RETURN
#endif
Could TEXT; Ruturn a string? and does it really function that way using the defines? How would i go about using the #ifndef and #defines in the actual c++ int main(){}
for example i see the header iostream.h and cout is available in main(). Can I write anything like cout in there? can someone please guide me in the right direction?
Ive seen something like this...
#ifndef COMPILER
#define NUMERIC
#define COMPILER
#define BIT 8
#define OUTPUT
#endif
using compile;
but im not sure on the using one and where it goes what i need else etc.... thnx for your time.
modified on Monday, September 14, 2009 4:39 PM
|
|
|
|
|
#define creates a macro, not a function. the macro can look like a function:
#define min(a,b) (a < b ? a : b)
or it can look like a constant:
#define BLOCKSIZE 1024
or it can be just a flag:
#define THIS_FLAG_IS_SET
#ifndef/#ifdef tests to see if a macro with that name has been #defined.
in any case, all of the #**** directives are handled before actual compilation. the preprocessor does something only slightly more complicated than search/replace with #define'd macros, and then hands the result to the compiler.
http://en.wikipedia.org/wiki/C_preprocessor[^]
|
|
|
|
|
howabout this
#define RUNSITSELF
#define TEXT ("TEXT")TEXT
#define DEFINE
#define TEXTSOFTWARE
That there will run defines. if in that order.
thats what im saying. it does run there at text to the processor... like when i use.. "TEXT"+1234;
that runs...
#ifndef is like a if statement if(a==b){ RUNDEFINE; }
thats what i think. the question maybee what can run such a thing.. hmm...
|
|
|
|
|
I don't really understand your question. Could you please rephrase it so it is a bit more understandable ?
Anyway, as Chris already pointed out, a #define is simply a macro. It means that before compilation occurs, all occurrences of the string TEXT in your source file will be replaced by what you specified.
For instance this define:
#define TEXT "Test"
Whenever you have a TEXT somewhere in your code, it will be replaced by "Test". So, it is really something basic, there's nothing which is run or anything like that.
|
|
|
|
|
I have trouble buying that. I know what a library is but all it is bunch of defines and ifndefs and process. you can do the exact same thing in a header except something has to be there to run the header.
What your saying is that they do not run. and that it only replaces. There is more to it than that..
Youve got to realize a small group of people developed the things we have here and are near dead and have fogotten and we have nothing more than a few million developers without header knowlege of function development.
I cant even find information out about headers at all. Yeah how some can use them in general c++ compilers. but what if i wanted to upgrade my compiler to allow that.. is what im saying. Your saying theres no way to make it run regardless of what you type..
but keep in mind this does run...
"STRING"+1234;
runs by the processor and returns int. can be couted as a binary in some cases. that is function. linking those functions to code is difficult that what im trying to find out. like if i typed
#define TEXT "Alphabet"+12345123-"27"
cout << TEXT;
will return that function as int and possibly cout the binary except for the cout function is unable to return the proper information of a running process..
but keep in mind it does run by the processor. all things on here that you can see run by the processor and by the processor use the hardware.. which means that the socalled preprocessor directive should be able to allow functionality within a software. That is my opinion and that is why im here in this forum asking about it. I doubt many know about it to begin with even when it was developed.
modified on Monday, September 14, 2009 3:19 PM
|
|
|
|
|
lgm420 wrote: but keep in mind this does run...
"STRING"+1234;
runs by the processor and returns int.
No this is merely a group of text characters which do nothing on their own, and when this statement is compiled it produces a compiler warning.
I think you still misunderstand the use of #define. The #define statement does not create runnable code, it merely provides a way of using an alias for a source code expression. This alias is then replaced in the source by the preprocessor before the source module is passed to the compiler. Thus in your example:
#define TEXT "Alphabet"+12345123-"27"
cout << TEXT;
the preprocessor converts these statements to
cout << "Alphabet"+12345123-"27";
this is then passed to the compiler, which converts the statement into executable code. Which, incidentally will not produce the result you think it may.
|
|
|
|