|
Have a look at this:
http://msdn2.microsoft.com/en-us/library/x9y91h72(vs.80).aspx
I think it is your problem, isn´t it?
If not sorry!
Cheers
You have the thought that modern physics just relay on assumptions, that somehow depends on a smile of a cat, which isn’t there.( Albert Einstein)
|
|
|
|
|
This question belongs in the (Managed)C++/CLI forum.
|
|
|
|
|
You're casting to a MODI::Image instead of a MODI::Image ^.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi I am a newbie in learning .Net now.
I had in mind of writing something similar to a COM standalone executable and my GUI frontend executable will communicate with this server. Does .Net have anything like this?
Please enlighten me!
Thanks for your time!
|
|
|
|
|
Yes - you can achieve this effect using Reflection or Remoting.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi, thanks for the reply!
I got another question, the so-called server I am going to write is on the same computer as the GUI executable, it is not on a remote server or another networked computer. Does that work as well?
Thanks again!
|
|
|
|
|
.NET Remoting yes.
Refelection has nothing to do with interprocess communication.
only two letters away from being an asset
|
|
|
|
|
how do i configure whereby vs2005.net works with framework 1.1???
tks
chris
|
|
|
|
|
|
No, you can not attach FR 1.1 with VS 2005.
|
|
|
|
|
VS2005 does work with .NET 1.1, but only because 1.1 is (basicaly) subset of 2.0 If you want to see only 1.1 classes in intellisense etc, then no, this is not possible. "Orcas" will enable to switch between .NET Framework 2.0, 3.0, 3.5 but till then, every VS unfortunately targets different version of framework.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
|
|
My application runs normally all the time without getting any BadImageFormatException. But if no user interaction happens for more than half an hour and user clicks on one particular menu then application crashes with System.BadImageFormatException. This is happening for one particular toolstrip menu item only but not in normal circumstances.
Please let me know the solution as soon as possible.
Vaibhav
|
|
|
|
|
i got a problem with bitonal image. when i do resizing it's losing it's quality and image losing it's viewability. i am facing this issue with .net gdi+. i also tried converting bitonal image to 32bits bitmap and then resizing it using smoothing with both bilinear and bicubic interpolation. but no use. is there any other way?
Vikram Kumar S
|
|
|
|
|
|
|
This is probably a really basic question but I can't figure it out for the life of me. I am running VS.Net ver 7.0.9466 with .Net Framework 1.0.375. On every other version I have seen, there are lines in the text editor that divide sub routines to make it easier to distinguish where on sub ends and the other begins. This version does not show these lines. Is there a setting or option that needs to be enabled or is this feature just not available on this version?
|
|
|
|
|
My recollection says that it did show these lines, but this article disagrees[^]. I don't recall if there was an option to turn them on. In Visual Studio .NET 2003 the option is in Tools, Options under Text Editor, Basic, VB Specific and is named Show Procedure Line Separators.
C# and C++ do not have this feature in any version of Visual Studio.
I don't know of many people still using VS.NET 2002 and .NET Framework 1.0. Virtually everyone upgraded to VS.NET 2003 and .NET 1.1 (it helped that for several months, the upgrade only cost £19!)
Personally I ensure there are multiple blank lines between procedures in any case. For me, that's enough of a separator.
|
|
|
|
|
Hi
I wrote a multi thread program (windows service) that writes to a log (text) file.
So I used beginInvoke so that only one thread will write to the file.
When I tested it on my machine it worked fine but when I installed the program on a multi processor production server it crashed.
Code:
Public Delegate Sub DelegateLogError(ByVal txtMsg As String)
Public Class Server_main
Private log_ As LogHandler
Public Sub logError(ByVal txtMsg As String)
Dim del As New DelegateLogError(AddressOf log_.LogError)
Dim ac As AsyncCallback = New AsyncCallback(AddressOf cbLogError)
del.BeginInvoke(txtMsg, ac, Nothing)
End Sub
Public Shared Sub cbLogError(ByVal ar As IAsyncResult)
If ar.IsCompleted Then
Dim del As DelegateLogError = CType(CType(ar, _
System.Runtime.Remoting.Messaging.AsyncResult).AsyncDelegate, _
DelegateLogError)
del.EndInvoke(ar)
End If
End Sub
Protected Sub Initialize()
Try
logError("Starting Server")
.
.
.
End Class
Does anyone have any idea how to make it work on a multi processor?
Thank you
Adam
|
|
|
|
|
Hi,
This looks like Basic.NET doesnt it ?
If it runs fine on a single-processor and fails on a multi-processor, then I would
suspect you have some thread synchronization problem; but I would expect it to be
elsewhere, not in code that you force to run on the UI thread.
Why is it you think the logging is causing the problem ??
To investigate, you might replace your logging stuff by simple Console.WriteLine()
operations (or whatever is equivalent in Basic.NET); remark that Console by itself
is multithread-safe.
|
|
|
|
|
Hi,
your usage of BeginInvoke doesn't say that your log method is only called by on thread at a time. You have to lock it instead:
'class variable
Private objMyLock As Object = New Object()
Public Sub LogSafe()
SyncLock objMyLock
'Do your logging here
'Once one thread has passed SyncLock all next threads
'will stop there until this thread has exited the block.
End SyncLock
End Sub
|
|
|
|
|
Hi
yes you are right it didn't work on one thread
so I used monitor.enter and monitor.exit instead.
Thank you
|
|
|
|
|
Hi all,
i am new to .net. could anyone help me to learn about the programming fundamentals of vc++ .net in visual studio 2005.If it is possible send some tutorial link and sample simple programs in vc++ .net..
thanks in advance..
|
|
|
|
|
You should find several tutorials here in codeproject. Do you specifically want to do .NET development in C++ or any kind of development, e.g., MFC, ATL, in VC++?
You can look here:
http://www.codeproject.com/managedcpp/[^]
Kevin
|
|
|
|