Ahh yes, this makes a lot of sense.
I think what threw me was that memcpy is expecting pointers (i.e. addresses,) whilst I was busy confusing myself with casts.
Thanks very much for the...
Type: Posts; User: Abyssion
Ahh yes, this makes a lot of sense.
I think what threw me was that memcpy is expecting pointers (i.e. addresses,) whilst I was busy confusing myself with casts.
Thanks very much for the...
Thank you both very much for your swift replies!
Ahh yes, of course. That was an oversight on my part; I actually "un-typedef"ed as a last minute addition to my post and did not clock the...
Hey guys,
I'm sure this will be a quick one - it's probably just something that I've completely overlooked or have some fundamental misunderstanding of.
Please consider (and tear apart) the...
Ahh righto, thank you for the clarification then.
I apologise, I must have misunderstood the documentation.
As I say, my IDE is currently unavailable at the moment, but yes, I could and should...
Hi Salem, thanks very much for the reply.
std::bind is a component of the standard library that I'd never heard of prior to your comment; cheers for the links.
I don't think that's quite what I was...
To be honest, I did realise that; it was just laziness on my part.
Should have known it would never sneak by you guys :tongue:
Cheers for pointing it out anyway!
I'll refactor my code tonight;...
Thank you very much algorism! I'm literally sat here laughing out loud at how simple the solution is; I was overthinking this massively.
And yes, I didn't really think the MessageBox call through;...
Hey all,
I'm currently writing a function that I intend to compile into a personal-use library, so, naturally, I'd like to get things right first time. At the moment, I'm using default (or not)...
Alright Freddie,
Just wanted to say a big cheers for all the material and discussion you've provided! I've been away for a good week or so because I've had an important paper to write, but I shall...
Sorry, I haven't been about in a while.
That's awesome Freddie, thank you! It's given me some insight into the difference between WNDCLASSEX::cbClsExtra and ::cbWndExtra and where each one might...
Excellent, I'm glad I haven't demonstrated some more fundamental misunderstandings that you can point out in a second; cheers Freddie! Aye, I would definitely agree about not wanting to write the...
Ahh, wonderful! I was unaware of the additional window frame messages; I shall look into these.
This certainly does help, thank you Mega :)
Duly noted; I shall try to bare this in mind! The message loop is very easy to overlook given that, as you say, most online tutorials seem to brush over it. Cheers for clarifying; things are much...
Ahh, thank you both so much! I can feel myself starting to become one with the Force.
Excellent idea Mega, thank you! Yes, that clearly demonstrates that a secondary message-handling system is...
In fact, this can be more easily demonstrated by:
// WinMain...
int mbresult = 0;
mbresult = MessageBox(NULL, _T("First messagebox."), _T("WinMain"), MB_OK);
Sleep(10000);
Hey all, this should be a fairly quick one!
I'm currently rolling my own MessageBox function (and maybe whacking it in a library for future use,) to allow for advanced text formatting and...
Wow! Ok, so it appears that I have a lot of information to digest right now; thank you for all the material. (I also have about 20 lengthy Code Project articles open and 7 tabs pertaining to RPC...
Ahh wonderful! Is Microsoft Document Explorer a lightweight application?
I hate programs that hog resources and add things to my user profile directory unnecessarily, that's all.
In fact, I'll...
That might be an idea actually, cheers for the suggestion Codeplug!
Do we know how nicely the MSDN offline library plays with Visual Studio 2015, by any chance? I gather that there is still some...
Many thanks for the compliment Freddie! I wouldn't say "knowledgeable", just willing to learn :)
The example that you provided on how to use CREATESTRUCT objects is exceptionally helpful; thank...
Hey Freddie. Sorry I haven't been about in a while, life has been hectic.
Just wanted to say many thanks for all the effort you've put into your replies! The complete code samples are hugely...
Cheers Codeplug, I'll take a look at the WTL headers.
When you say the object can probably be declared in WinMain, it certainly does make more sense, semantically, to do it that way. To access the...
Freddie, that function pointers technique is exactly the sort of thing I was looking for; thank you! I shall implement that today.
It seems that were share some similar values with respect to code...
Thank you both very much for such detailed responses. I'm genuinely glad to hear that my approach thus far has been wrong; there's no way that any object-oriented code should be as messy as mine...
Hey all.
So I'm currently developing a relatively large raw Win32/WinAPI (what's the correct terminology these days?) application in C++. I have tried to abide by the typical C++ conventions as...