|
Does drawing the background first and then drawing the painted image solve your problem?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi Senthil,
Thanks for your reply.In my application,user will draw something and after the completion of the drawing,he used to set the background.So in my case the above solution wont work.Any way thanks for your reply.
Regards,
S.Sevugan.
|
|
|
|
|
Sevu wrote:
In my application,user will draw something and after the completion of the drawing,he used to set the background
That doesn't matter really, you can always draw the background first and then draw the other stuff. You do all the drawing in the Paint handler, right? You can do something like
void Paint(Graphics g)
{
DrawBackground(g);
DrawEverythingElse(g);
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I have been having a long debate with the developers in my company about porting our MFC software to C++.Net. The main concern is performance really. The software's primary goal is to track the flight of a ball in three dimensions using vision processing techniques. The software is, however, notoriously unreliable, with pointer errors and other software problems causing crashes quite frequently. Many of you may find this laughable but we are still using the VC6 compiler in Visual Studio 6. Aside from that, having had brief interludes with the .Net framework *and* MFC, I feel the .Net framework is far easier to use than MFC and seems to be a lot more stable too. From what I've seen and heard, .Net seems to be the answer in terms of development and productivity.
The other developers argue that the main issue is real-time performance. They feel that trying to get as low-level as we are would be difficult in .Net (but it's not like we're coding in assembly or even C for that matter; just standard C++). I believe they simply have a misguided understanding of how it all works. They seem to believe that the CLR is functionally the same as the Java Virtual Machine and that the intermediate language requires an extra layer of processing. My understanding is that the main purpose of the MSIL is for cross-platform compatibility and that it is possible to compile to the native machine language thus resulting in performance comparable to a Win32 compiled version.
Firsty, is this the correct analysis, and secondly can anyone give me URL where I could find information on benchtests comparing MFC v .Net compiled C++ programs?
|
|
|
|
|
Well, real-time applications are often cited as those for which managed environments are not suitable - due to the non-deterministic garbage collection. However, I don't have experience of real-time myself.
Having said that, Eiffel, which is also a GC-system has been used successfully in real-time environments - though Eiffel is a more sophisticated language than C# and .NET in this regard.
One thing you might get your company to look into is to port the app. to VC++ 2005 (C++/CLI). This will give you a managed environment, using the highest-performing language within a .NET context. Plus I believe it's the only managed language that will support deterministic GC, so that should handle the real-time aspects.
Another alternative is to stick with unmanaged code but port it to VC++ 7.1 or VC++ 2005 (Unmanaged) and make use of Boost smart pointers, etc., to take care of all your memory management issues.
Kevin
|
|
|
|
|
Hi All
We are using C# and VS.NET 2003. It is a mdi application. When
multiple child forms are opened then on the top right and left hand corner recursive
icons
are shown representing each form. There should be only one icon at a time.
Can any body have solution to this problem. Thanks in advance
imran
|
|
|
|
|
I have a List<t> of objects of type Extension. I want to search through the list looking for an Extension e where e.name = "<something>"
How do I do this in the .NET framework? I am confused on the proper syntax.
Thanks,
Lilli
|
|
|
|
|
Like this?
foreach (Extension ext in myList)
if (ext.Name == "SearchString")
Console.WriteLine("Found something!!!");
|
|
|
|
|
Hello,
I have a COM Type Library which contains two structures. One of the structure (STRUCTURE2) contains an fixed array of another structure (STRUCTURE1).
<br />
typedef struct STRUCTURE1<br />
{<br />
float x;<br />
float values[3];<br />
}<br />
RS_STRUCTURE1;<br />
<br />
typedef struct STRUCTURE2<br />
{<br />
STRUCTURE1 items[6];<br />
}<br />
STRUCTURE2;<br />
<br />
interface IrsLoadResults : IUnknown<br />
{<br />
HRESULT GetStructure2([out,retval]STRUCTURE2* pStructure);<br />
}<br />
In my VS.NET project I added reference to this type library and VS.NET generated an interop file. When I call interface method GetStructure2 I get OutOfMemoryException. In VB6 this work correct. I think this is caused by .NET COM marshaling but I don't know how to solve this problem. Does anybody have an idea?
Jirka
|
|
|
|
|
I have been working on a project where the aplication excutable
contains several resource files (text files.)
Now, it is required that the application will be installed at a client
location on 1 machine where the client will generate additional
resource txt files for the application. These files will need to be
packaged with the entire app and then the application will need be
deployed to several other machines.
We have been trying to figure out the best ways to do this.
Is there a way to add the newly generated resource files to a
pre-existing compiled exe? Is it possible?
Laura C
|
|
|
|
|
After an installation the shortcut points appearently not to my application (.exe) but starts the .msi again.
In the user desktop folder of VS the shortcut points to the primary output of the project.
see also this thead
Any ideas?
Thanks
Ariadne
|
|
|
|
|
I rewrote the whole setup-project: Now it works... It seems an internal error.
Then there is probably a minor bug: If I install a project as all users in the Software-install folder the icon is a yellow folder icon. If I install a project as single user the in the setup project selected icon appears.
Ariadne
|
|
|
|
|
Is there any tool that can generate these? For example, I can't find declarations for tool help library which I need to access from a service app, and since I'm a noob to .NET I really wouldn't know what's LPDWORD in .NET .. IntPtr?? Is there a table of equivalents somewhere??
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
http://sprd.12.forumer.com
Our forum features..err..nothing. You're welcome to contribute.
In the end, war is not about who's right, it's about who's left.
|
|
|
|
|
|
Holy moly! That is freakin beatifull! Man, I really, really like CP community
Thanx a bunch!
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
http://sprd.12.forumer.com
Our forum features..err..nothing. You're welcome to contribute.
In the end, war is not about who's right, it's about who's left.
|
|
|
|
|
I've recently put a .NET tool into public beta test. I would appreciate if anyone who is actively working with medium to large code bases, would participate in the beta and send me your comments to improve the product.
www.antair-chinchilla.com
The website is not the best right now, but it's being redesigned.
Cheers!
|
|
|
|
|
People I need help.
My Pocket PC application has to send emails. I used on of the SOCKET libraries found in inet and it worked with the local SMTP server. But when I tried to use it with the global SMTP server I obtained Socket Response error. This error is raised always. Has any one met with the same problem?
My application is developed using C#
I will appreciate any help.
Thank you in advance
I said that
|
|
|
|
|
Kirill Yatsenko wrote:
Has any one met with the same problem?
My application is developed using C#
Kirill: put this question tin the C#-forum. there is more traffic. Perhaps there is one, has the same problem.
Ariadne
|
|
|
|
|
If you are using system.web.mail try using innerexception to get a more detailed message reg the error. This wrapper has an ugly downside for throwing same error for many different problems that can be seen by using innerception prop on the exception object.
Good luck. /A
|
|
|
|
|
|
Hi,
could anyone tell me why when i draw any image in pocket pc or smartphone application the white color is transformed from 255,255,255 to 255,251,255 ( and many other colors are transformed to something different ). This is happen no matter what image format i'm using, what is the bpp and whether i'm testing on the emulator or the real device.
This problem appears only if i'm drawing images, if i'm drawing some graphic primitives such as rectangles etc. the colors are ok.
Please help!
|
|
|
|
|
"ApplicationName must be set before the DynamicBase can be set"
This is the message of the exception (MemberAccessException) returned when I try to load an assembly into the current domain of my application. The same code worked great in a smaller application I created to test the loading of
assemblies that I create dynamically and save to disk.
However, grafting it into my larger application results in the exception (above) and I'm uncertain why that is. I do recognize the property "ApplicationName" which can be found within the SetupInformation property of the AppDomain (System.AppDomainSetup) but I wouldn't know what to set it to.
Does anyone know why this exception might appear in one instance yet
not in another? The only relative difference between the two apps is one is a simple single assembly while the other is a more elaborate multi-assembly solution.
Thanks in advance,
Rein
|
|
|
|
|
hi,
i dave developed a .net component that is working fine in dot net projects but i want to add this component to a vb 6.0 project for that i have assigned strong name to the project but following problem is hindering
i am using some activex components (one of them is Microsoft.Scripting and other is thirdparty component) in my dotnet component, and i am not able to assign any string name to these components,
what should i do to make my component workable with vb 6.0
regards,
Arus
-- modified at 10:56 Monday 3rd October, 2005
|
|
|
|
|
I have a configuration class, FileMonitorConfig, that has a few string properties, and one ConnectionInfo property. The ConnectionInfo class in turn has a few string properties that describe a SQL Server connection.
When I write the FileMonitorConfig object, the inner ConnectionInfo object does not get serialized. It always appears a an empty tag in the config file.
Nothing in the literature indicates that only the top level of an object graph gets serialized, and the Serializable attribute on either class has no effect. Am I doing something wrong, or should I consider the provided Xml Serializer Transformer effectively useless and develop a custom transformer?
The DJ's took pills to stay awakwe and play for seven days. - Jim Morrison, Black Polished Chrome.
|
|
|
|
|
It seems that when the transaction of my C# Serviced Component times out the code still goes ahead and attempts another operation on that transaction. It then catches an exception. Is there not a way to be aware of the timeout event and abort processing before generating an exception?
The DJ's took pills to stay awakwe and play for seven days. - Jim Morrison, Black Polished Chrome.
|
|
|
|