Yup, thats what I was considering using. But I was hoping I could find something like a delegate (or some other class I was unaware of that would allow a similar functionality in regards to using...
Type: Posts; User: cyreon
Yup, thats what I was considering using. But I was hoping I could find something like a delegate (or some other class I was unaware of that would allow a similar functionality in regards to using...
You can look into the BitConverter class and its methods, for converting specific numbers of bits might just mean bitshifting values in order to obtain the appropriate information before passing it...
Fairly new to C# programming, but very familiar with C and decent with C++. I am in the processing of making an attempt to convert an old C & C++ library over to the new language, but having some...
Ontario is a Canadian province and CA is actually Canada. So yes there are a lot of Canadians here ;) Though I don't know of an Ontario in California, it could exist.
Thanks for pointing that out grumpy, good thing too since I was planning on actually using it now that I was aware of its existence.
I believe if you go back and read what all of us have suggested, probably for the first time since you asked your original question, you will answer that for yourself.
I haven't used this before myself, however, I just came across an interesting function provided in the malloc.h header. You can check it out here: _msize. By passing this function a pointer from an...
Salem, thanks once again.
Sebastiani, lol... not entirely. This isn't a true memory manager, though it does provide some features that assist with memory management of sorts. Mainly intended to...
Thanks Salem. I realize that calling malloc from multiple sources isn't an issue, but in terms of libraries a program includes the code before compile time only once. Would it be safe to assume...
Also using (int)strlen(str) for the condition of a loop statement is also unwise, it forces the program to do this calculation on each pass of the loop.. increasing the processing resources/time...
Hey guys,
I have a quick question, but I feel I need to explain things in a bit of detail prior to the actual question. My next project is going to be requiring the use of a memory manager of...
Thanks both of you.
Tabstop ya I said my work with pointers sucked. I went back and read, and now that realization might actually help me out a lot, so I guess I was trying to get the address of...
I'm having an issue determining the appropriate dereferencing method to get the address of a pointer contained inside of a structure. Pointers were never my strong point. The structure might look...
Its already done but, everytime (whether I try to add it manually or not) it attempts to add "../../debug/dynacgi.lib" and fails. I am simply troubleshooting the issue by attempting various methods...
From the sounds of a quick read, though I could be wrong since I've never used this type of tree myself, sounds like items along the tree are being organized based on string characters starting from...
I'm using VC2008, and currently my linker options look as follows under Properties:
/OUT:"C:\Documents and Settings\scott\My Documents\Visual Studio 2008\Projects\DynaTem\Debug\DTC.cgi" ...
Oh I must be tired, I was thinking that it was called Iter->second() like a method instead of Iter->second... oi. Thanks.
Using something along the lines of:
typedef int (*CBACK)(int,DWORD);
map<int,CBACK> CBFuncs;
// developer calls provided functions to add required callback function pointers to
// map, as...
Okay to rephrase, not all members are pointers such that some are simple data members (such as a DWORD, int, etc.) that signifies specific things to the class itself. Though the items to be...
This question seems to have opened up a discussion, thanks for all of your input. I'm not sure if perhaps I am doing things wrong, but in the case of construction failure I do end up calling the...
Is there any good resources to show the possible methods one could use in order to better handle errors that may occur during the class constructor call?
I know of the throw() and catch() method...
Perfect. I guess I was so wrapped up in my own concept idea, it didn't even occur to me to take my own defines out of the equation. Thanks again :)
Actually since I am seeking technically a map between one definition to another (both of which are number based, even though they technically use different mathematical bases) I think a map would do...
Elysia,
I realize that WndProc() doesn't work in C++, it doesn't work in C either. Its a psuedo/code mix just to display what I was attempting to do, in actuality it should look like LRESULT...
I think there is going to be no easy way to complete this project, at least in the method that I wanted to.
The purpose of the conversion from UINT to string, then back to UINT was simply for...