Search:
Type: Posts; User: MilesAhead
Search:
Search took 0.06 seconds.
-
December 1st, 2010, 09:16 PM
Post some code that demonstrates the problem or I don't think anyone can figure out what the problem is.
-
November 22nd, 2010, 10:15 PM
I don't want it to do more. I want it to do less. Basically I just want automatic disposal of my temp buffers. <vector> was around when Bjarne S. wrote The C++ Programming Language 3rd ed. and...
-
November 20th, 2010, 06:02 PM
The way to automate disposal is to make a Buffer object as Bjarne S. does in The C++ Programming Language.
Rather than post copyrighted material from the book, here's one I threw together just...
-
November 17th, 2010, 04:24 PM
Easiest way may be to simulate a mouse click on the OK button after the time-out, or just send the Enter key if OK is the default button.
For mouse click see PostMessage() and WM_LBUTTONDOWN and...
-
November 16th, 2010, 01:38 PM
If the slave processes are also written by you, then you can have them communicate their status instead of creating a new thread just to wait. For example, by using messages. If you are using...
-
November 15th, 2010, 06:58 PM
Did you get a .tlb file with the COM files? Sometimes the type library info is in a .tlb file.
-
November 10th, 2010, 02:42 PM
If not using the IDE real-time lint then I'd check out this free one:
http://astyle.sourceforge.net/
It's a command line app. You input the source with param which style to output.
It has...
-
November 8th, 2010, 10:21 PM
So your unique name is going to be "unique_name" ?
I don't understand what you're talking about with randomizing names.
If you are going to limit your app to a single instance then 99% of the...
-
November 8th, 2010, 06:43 PM
For best results use a Guid string constant generated by a tool and pasted in for the name.
They are legal for kernel object names.
"{C116AAA6-F7F0-48B7-B52D-F6A7F605B678}"
Don't use a...
-
November 1st, 2010, 05:51 PM
The Windows dlls have icons if you know the index number. Google for Windows Dll icons.
One that has icons is Shell32.dll but there are a bunch. You should be able to find a guide or at least a...
-
November 1st, 2010, 05:45 PM
Thanks for posting what you found. That may be handy in the future as not all implementations have the little "add ons" that scripting languages stick in there. :)
-
November 1st, 2010, 03:58 PM
Search MSDN for INTERNET_FLAG_NO_CACHE_WRITE
I've used the function in AutoHotKey which prevents fetching from the cache by default. According to their docs you can stick a star '*' then a...
-
October 30th, 2010, 07:54 PM
Since AfxMessageBox() returns an int you could change your function from void to int return type. Then get a single line exit by
if(! result)
return AfxMessageBox(ErrorMsg)
:)
-
October 28th, 2010, 03:59 PM
Instead of trying to fix invalid input, it's generally better to give an error message and quit. It's not sensible to do a calculation on 470 degrees that's really 110 degrees. It just causes...
-
October 27th, 2010, 10:51 PM
How about something like this?
template<class T>struct Buff {
size_t size;
T* t;
Buff() : size(0),t(0) {}
-
October 24th, 2010, 11:20 AM
The trouble with polymorphism, is you need to anticipate in the base class all the stuff you will need to do through a base class pointer, in the derived classes. iow virtual functions. You can...
-
October 24th, 2010, 02:01 AM
Afa the passing of arrays out of functions instead of using an STL container you could code or find an autoarray_ptr template. If you look in The C++ Programming Language, auto_ptr was provided to...
-
October 21st, 2010, 06:08 PM
You have to plug in an actual type at some point instead of just Type T for the compiler to generate code. Otherwise it's like using variables that are never assigned a value. 2 * x is what if...
-
October 20th, 2010, 02:04 PM
Instead of creating a thread to handle each job in the list you may want to consider having the UI thread as the "producer" and a worker thread as the "consumer". In this scenario the UI thread gets...
-
October 20th, 2010, 01:56 PM
I haven't tried it to see if it's implemented in vc++ 2010 but for grins you
can try the declaration as shown here:
http://en.wikipedia.org/wiki/C%2B%2B0x#Extern_template
-
October 20th, 2010, 11:30 AM
Even more difficult in c++ is anything to do with a hotkey featuring the mouse. Suck as Winkey Click or something like that. For macro stuff the only language I found on Windows that actually grabs...
-
October 20th, 2010, 12:26 AM
I don't know what tool set you have, but if you are using vc++ 2010 Express you may be interested in this:
http://www.codeproject.com/KB/cpp/resedit.aspx?msg=3102372
It's a free resource editor...
-
October 19th, 2010, 02:15 PM
Change the compiler switch to /MT instead of /MD and you won't have the c run time library dependency. For the graphics stuff see about delay loading the .dll and add the lib to the command line...
-
October 15th, 2010, 08:46 PM
Thanks for the info. I'm trying IcoFX. Looks good for a donation-ware. I'll know more when I try to create my own with it. So far I've just created from an existing image.
-
October 15th, 2010, 04:55 PM
Can you say what tool you are using? I've been using SimplyIcon but it seems to max out at 48 or 64 pixels. I'm looking for a Vista compatible icon maker that generates from a .png image.
|
Click Here to Expand Forum to Full Width
|