|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VB.Net calling VC++ library for performanceHi experts,
I am developing a file-reading intensive application which read files and compare bytes / byte array. We have migrated VB6 application to VB.net but found the time doubled. My idea to improve the performance is to write mainly with VB.net while calling functions/class library written in VC++. However, I have no experience on such architecture. Could any expert give me some guides? Should I create Win32 project in VS2005 or VC++ CLR runtime library? Thanks a ton. Alan <ala***@gmail.com> wrote in message
news:1140002250.976652.179760@g44g2000cwa.googlegroups.com... This sort of stuff is fairly easy in C++. You can do it either way, if you > Hi experts, > > I am developing a file-reading intensive application which read files > and compare bytes / byte array. We have migrated VB6 application to > VB.net but found the time doubled. My idea to improve the performance > is to write mainly with VB.net while calling functions/class library > written in VC++. However, I have no experience on such architecture. > Could any expert give me some guides? Should I create Win32 project in > VS2005 or VC++ CLR runtime library? create a win32 dll then marshalling will be done for you and your dll will most likely be simpler. If you do it as a .net dll then it's all considered managed code so your app might require lower security to run. Michael Have you tried first to locate the exact culprit ? Generally it's best
thought not always easy to avoid optimizing "blindly"... -- Show quotePatrice <ala***@gmail.com> a écrit dans le message de news:1140002250.976652.179760@g44g2000cwa.googlegroups.com... > Hi experts, > > I am developing a file-reading intensive application which read files > and compare bytes / byte array. We have migrated VB6 application to > VB.net but found the time doubled. My idea to improve the performance > is to write mainly with VB.net while calling functions/class library > written in VC++. However, I have no experience on such architecture. > Could any expert give me some guides? Should I create Win32 project in > VS2005 or VC++ CLR runtime library? > > Thanks a ton. > > Alan > <ala***@gmail.com> wrote in message
Show quote news:1140002250.976652.179760@g44g2000cwa.googlegroups.com... File reading and comparing contents should be as fast in vb.net as it was in | Hi experts, | | I am developing a file-reading intensive application which read files | and compare bytes / byte array. We have migrated VB6 application to | VB.net but found the time doubled. My idea to improve the performance | is to write mainly with VB.net while calling functions/class library | written in VC++. However, I have no experience on such architecture. | Could any expert give me some guides? Should I create Win32 project in | VS2005 or VC++ CLR runtime library? | | Thanks a ton. | | Alan | VB6, so before you go down the C++ route, I would suggest you to profile your application and try to find the bottleneck. Willy. |
|||||||||||||||||||||||