Type: Posts; User: Tischnoetentoet
Search took 0.07 seconds.
April 2nd, 2010, 10:50 AM
In the end, it had nothing to do with auto_ptr (it was just the first pointer initialized to get corrupted). It was a corrupted heap due to an external component I used. I have replaced the component...
April 2nd, 2010, 05:52 AM
Thanks for your reply.
I have been studying this issue for some time, and I think it has something to do with a corrupted heap. Currently trying to figure out where this is coming from, but it's a...
April 1st, 2010, 09:19 AM
Additional info: I have changed all calls to CSettings::Instance() instead of storing the pointer.
Now the first pointer I initialize gets the address 0x00000007, and that seems to be the issue...
April 1st, 2010, 08:54 AM
I have a singleton settings class which is initialized and contains the right data. Then, in another class (UI), I want to store the pointer to the settings class so I don't have to retrieve the...
September 10th, 2009, 08:23 AM
See this amazing google search.
September 10th, 2009, 01:12 AM
The root of the problem is that UI elements may only be touched by one thread, and that is the thread that created the UI element.
September 9th, 2009, 03:47 AM
The STA / MTA is to determine the threading model your application uses. This has nothing to do with cross thread operations.
The reason you are having cross thread operations is because you are...
July 21st, 2008, 05:30 AM
Well, the variable (in C#, 99 % of the variables are a "pointer" to a referenced object) is of a specific object.
In C++, you also cast a pointer to a specific type if you want to call its...
Found the problem! I need to convert to a "safe" filename first. Here is some example code:
CString CFtpFileObject::ConvertToSafeFileName(CString sFileName)
// Declare variables
I am having some problems retrieving files with unicode characters inside the filename.
For example, one of the files contains the character ğ, but when I try to request the file, the...
I don't see ANY reason why you want to wrap an enum into a class. Check the Enum class for enum specific functions.
You can simply cast a value to an int if required.
April 8th, 2008, 08:51 AM
You can read it by blocks instead of at once. That will use much lesser memory.
See the ReadBlock function documentation.
April 8th, 2008, 05:05 AM
If you want to load a full dictionary in memory, then there aren't many ways to optimize this.
A thing you can try is not load the dictionary into memory but keep it on disk. When the user enters,...
April 8th, 2008, 02:49 AM
The frames you are talking about, aren't these Forms?
You can use the Form_Load event to start the video to play when the form is loaded.
April 7th, 2008, 11:02 AM
Do you have control over the other application or not?
What you can do is enumerate all process and check if a specific process is running if you don't have control about the other application.
April 7th, 2008, 10:55 AM
I wrote a class to avoid this problem. I have attached it (including a unit test that contains example code how to use it).
March 25th, 2008, 04:38 AM
Please use ShowWindow as designed using SW_SHOW instead of TRUE.
Your second example does exactly what you want. Set a range of 0 - 100 (%). Then, you set the stepsize to 20. Then, you step once...
March 25th, 2008, 04:26 AM
You can serialize the class to a file using the ISerializable interface.
March 21st, 2008, 07:54 AM
Right-mouse click the project -> add web reference... -> add the url to the wsdl
March 19th, 2008, 01:32 PM
When the user is guest, and you want to start an application, this can be accomplished by using CreateProcessWithLogonW.
However, the reason it was failing on my side was because my administrator...
March 18th, 2008, 03:22 PM
Yes, I had someone try it for me, but I will check it out myself first before moving any further.
March 18th, 2008, 03:15 PM
I mean when UAC is completely disabled / turned off on the system.
I tried CreateProcessWithLogonW, but that seems to fail. Maybe I should try again...
March 18th, 2008, 12:05 PM
I want to launch an application on Vista which requires administrator rights (but has the asInvoker manifest option). However, when UAC is disabled, I cannot elevate the process using...
March 17th, 2008, 06:06 AM
Application Data or maybe even the temp folder.
March 13th, 2008, 08:08 AM
Check frmMain.cs:line 490 ;)
Did you delete ApplicationName.exe.config?
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!